49#ifdef IEEE802154_CONF_DEFAULT_CHANNEL
50#define IEEE802154_DEFAULT_CHANNEL IEEE802154_CONF_DEFAULT_CHANNEL
52#define IEEE802154_DEFAULT_CHANNEL 26
55typedef void (* mac_callback_t)(
void *ptr,
int status,
int transmissions);
57void mac_call_sent_callback(mac_callback_t sent,
void *ptr,
int status,
int num_tx);
69 void (*
send)(mac_callback_t sent_callback,
void *ptr);
@ MAC_TX_COLLISION
The MAC layer did not get an acknowledgement for the packet.
@ MAC_TX_DEFERRED
The MAC layer transmission could not be performed because of an error.
@ MAC_TX_OK
The MAC layer transmission was OK.
@ MAC_TX_NOACK
The MAC layer deferred the transmission for a later time.
@ MAC_TX_ERR_FATAL
The MAC layer transmission could not be performed because of insufficient queue space,...
@ MAC_TX_ERR
The MAC layer transmission could not be performed because of a fatal error.
Header file for the radio API.
The structure of a MAC protocol driver in Contiki.
int(* on)(void)
Turn the MAC layer on.
int(* max_payload)(void)
Read out estimated max payload size based on payload in packetbuf.
int(* off)(void)
Turn the MAC layer off.
void(* init)(void)
Initialize the MAC driver.
void(* input)(void)
Callback for getting notified of incoming packet.
void(* send)(mac_callback_t sent_callback, void *ptr)
Send a packet from the packetbuf