43 #include "contiki-conf.h"
47 typedef void (* mac_callback_t)(
void *ptr,
int status,
int transmissions);
49 void mac_call_sent_callback(mac_callback_t sent,
void *ptr,
int status,
int num_tx);
61 void (*
send)(mac_callback_t sent_callback,
void *ptr);
70 int (*
off)(
int keep_radio_on);
void(* input)(void)
Callback for getting notified of incoming packet.
Header file for the radio API
The MAC layer deferred the transmission for a later time.
unsigned short(* channel_check_interval)(void)
Returns the channel check interval, expressed in clock_time_t ticks.
int(* off)(int keep_radio_on)
Turn the MAC layer off.
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 Rime buffer.
int(* on)(void)
Turn the MAC layer on.
void(* init)(void)
Initialize the MAC driver.
The MAC layer transmission was OK.
The structure of a MAC protocol driver in Contiki.
The MAC layer transmission could not be performed because of an error.
The MAC layer did not get an acknowledgement for the packet.