A MAC protocol that does not do anything.
#include "net/mac/nullrdc-noframer.h"
#include "net/packetbuf.h"
#include "net/queuebuf.h"
#include "net/netstack.h"
#include <string.h>
Functions | |
static unsigned short | channel_check_interval (void) |
static void | init (void) |
static int | off (int keep_radio_on) |
static int | on (void) |
static void | packet_input (void) |
static void | send_list (mac_callback_t sent, void *ptr, struct rdc_buf_list *buf_list) |
static void | send_packet (mac_callback_t sent, void *ptr) |
Variables | |
struct rdc_driver | nullrdc_noframer_driver |
|
static |
|
static |
References on().
|
static |
References NETSTACK_RADIO, radio_driver::off, and radio_driver::on.
|
static |
References NETSTACK_RADIO, and radio_driver::on.
Referenced by init().
|
static |
References mac_driver::input, and NETSTACK_MAC.
|
static |
References rdc_buf_list::buf, NULL, queuebuf_to_packetbuf(), and send_packet().
|
static |
References mac_call_sent_callback(), MAC_TX_ERR, MAC_TX_OK, NETSTACK_RADIO, packetbuf_hdrptr(), packetbuf_totlen(), RADIO_TX_OK, ret, and radio_driver::send.
Referenced by send_list().
struct rdc_driver nullrdc_noframer_driver |