The structure of a MAC protocol driver in Contiki.
More...
#include <os/net/mac/mac.h>
|
void(* | init )(void) |
| Initialize the MAC driver.
|
|
void(* | send )(mac_callback_t sent_callback, void *ptr) |
| Send a packet from the packetbuf
|
|
void(* | input )(void) |
| Callback for getting notified of incoming packet.
|
|
int(* | on )(void) |
| Turn the MAC layer on.
|
|
int(* | off )(void) |
| Turn the MAC layer off.
|
|
int(* | max_payload )(void) |
| Read out estimated max payload size based on payload in packetbuf.
|
|
The structure of a MAC protocol driver in Contiki.
Definition at line 62 of file mac.h.