48 send_packet(mac_callback_t sent,
void *ptr)
56 mac_call_sent_callback(sent, ptr, ret, 1);
60 send_list(mac_callback_t sent,
void *ptr,
struct rdc_buf_list *buf_list)
62 if(buf_list !=
NULL) {
63 queuebuf_to_packetbuf(buf_list->buf);
64 send_packet(sent, ptr);
77 return NETSTACK_RADIO.on();
81 off(
int keep_radio_on)
84 return NETSTACK_RADIO.on();
86 return NETSTACK_RADIO.off();
102 const struct rdc_driver nullrdc_noframer_driver = {
unsigned short(* channel_check_interval)(void)
Returns the channel check interval, expressed in clock_time_t ticks.
Header file for the Rime buffer (packetbuf) management
#define NULL
The null pointer.
int(* off)(int keep_radio_on)
Turn the MAC layer off.
The MAC layer transmission could not be performed because of a fatal error.
A MAC protocol implementation that does not do anything.
uint16_t packetbuf_totlen(void)
Get the total length of the header and data in the packetbuf.
void * packetbuf_hdrptr(void)
Get a pointer to the header in the packetbuf, for outbound packets.
int(* on)(void)
Turn the MAC layer on.
int(* off)(int keep_radio_on)
Turn the MAC layer off.
Header file for the Rime queue buffer management
void(* init)(void)
Initialize the MAC driver.
unsigned short(* channel_check_interval)(void)
Returns the channel check interval, expressed in clock_time_t ticks.
The structure of a RDC (radio duty cycling) driver in Contiki.
void(* init)(void)
Initialize the RDC driver.
The MAC layer transmission was OK.
int(* on)(void)
Turn the MAC layer on.
void(* send_list)(mac_callback_t sent_callback, void *ptr, struct rdc_buf_list *list)
Send a packet list.
Include file for the Contiki low-layer network stack (NETSTACK)