The structure of a MAC protocol driver in Contiki.
#include <mac.h>
Data Fields | |
unsigned short(* | channel_check_interval )(void) |
Returns the channel check interval, expressed in clock_time_t ticks. More... | |
void(* | init )(void) |
Initialize the MAC driver. More... | |
void(* | input )(void) |
Callback for getting notified of incoming packet. More... | |
const char * | name |
int(* | off )(int keep_radio_on) |
Turn the MAC layer off. More... | |
int(* | on )(void) |
Turn the MAC layer on. More... | |
void(* | send )(mac_callback_t sent_callback, void *ptr) |
Send a packet from the Rime buffer. More... | |
unsigned short(* mac_driver::channel_check_interval)(void) |
Returns the channel check interval, expressed in clock_time_t ticks.
void(* mac_driver::init)(void) |
Initialize the MAC driver.
Referenced by netstack_init().
void(* mac_driver::input)(void) |
Callback for getting notified of incoming packet.
Referenced by input_packet(), and packet_input().
const char* mac_driver::name |
int(* mac_driver::off)(int keep_radio_on) |
Turn the MAC layer off.
int(* mac_driver::on)(void) |
Turn the MAC layer on.
void(* mac_driver::send)(mac_callback_t sent_callback, void *ptr) |
Send a packet from the Rime buffer.
Referenced by send_packet().