49 #ifdef IEEE802154_CONF_DEFAULT_CHANNEL 50 #define IEEE802154_DEFAULT_CHANNEL IEEE802154_CONF_DEFAULT_CHANNEL 52 #define IEEE802154_DEFAULT_CHANNEL 26 55 typedef void (* mac_callback_t)(
void *ptr,
int status,
int transmissions);
57 void 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);
The MAC layer did not get an acknowledgement for the packet.
int(* on)(void)
Turn the MAC layer on.
The structure of a MAC protocol driver in Contiki.
Header file for the radio API
The MAC layer transmission was OK.
int(* off)(void)
Turn the MAC layer off.
The MAC layer transmission could not be performed because of an error.
void(* input)(void)
Callback for getting notified of incoming packet.
The MAC layer transmission could not be performed because of a fatal error.
void(* send)(mac_callback_t sent_callback, void *ptr)
Send a packet from the packetbuf.
void(* init)(void)
Initialize the MAC driver.
int(* max_payload)(void)
Read out estimated max payload size based on payload in packetbuf.
The MAC layer deferred the transmission for a later time.