mac_driver Struct Reference

The structure of a MAC protocol driver in Contiki. More...

#include <core/net/mac/mac.h>

Data Fields

void(* init )(void)
 Initialize the MAC driver.
void(* send )(mac_callback_t sent_callback, void *ptr)
 Send a packet from the Rime buffer.
void(* input )(void)
 Callback for getting notified of incoming packet.
int(* on )(void)
 Turn the MAC layer on.
int(* off )(int keep_radio_on)
 Turn the MAC layer off.
unsigned short(* channel_check_interval )(void)
 Returns the channel check interval, expressed in clock_time_t ticks.

Detailed Description

The structure of a MAC protocol driver in Contiki.

Definition at line 55 of file mac.h.


Field Documentation

unsigned short(* mac_driver::channel_check_interval)(void)

Returns the channel check interval, expressed in clock_time_t ticks.

void(* mac_driver::input)(void)

Callback for getting notified of incoming packet.

int(* mac_driver::off)(int keep_radio_on)

Turn the MAC layer off.

int(* mac_driver::on)(void)

Turn the MAC layer on.


Generated on Mon Apr 11 14:23:58 2011 for Contiki 2.5 by  doxygen 1.6.1