Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Single-hop unicast

The unicast module sends a packet to an identified single-hop neighbor.

The unicast primitive uses the broadcast primitive and adds the single-hop receiver address attribute to the outgoing packets. For incoming packets, the unicast module inspects the single-hop receiver address attribute and discards the packet if the address does not match the address of the node.

Channels

The unicast module uses 1 channel.

Data Structures

struct  unicast_callbacks
 
struct  unicast_conn
 

Files

file  unicast.h
 
    Header file for Rime's single-hop unicast

 

Macros

#define UNICAST_ATTRIBUTES
 

Functions

void unicast_close (struct unicast_conn *c)
 
void unicast_open (struct unicast_conn *c, uint16_t channel, const struct unicast_callbacks *u)
 
int unicast_send (struct unicast_conn *c, const linkaddr_t *receiver)
 

#define UNICAST_ATTRIBUTES
Value:
#define BROADCAST_ATTRIBUTES
Definition: broadcast.h:73
Definition: packetbuf.h:378
#define PACKETBUF_ADDRSIZE
Definition: packetbuf.h:446

void unicast_close ( struct unicast_conn c)
void unicast_open ( struct unicast_conn c,
uint16_t  channel,
const struct unicast_callbacks u 
)

Referenced by uip_over_mesh_init().

int unicast_send ( struct unicast_conn c,
const linkaddr_t receiver 
)

Referenced by send_data().