Microchip® Advanced Software Framework

nullmac.c File Reference

    A MAC protocol that does not do anything.
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "net/mac/nullmac.h"
#include "net/netstack.h"
#include "net/ip/uip.h"
#include "net/ip/tcpip.h"
#include "net/packetbuf.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_packet (mac_callback_t sent, void *ptr)
 

Variables

struct mac_driver nullmac_driver
 

static unsigned short channel_check_interval ( void  )
static
static void init ( void  )
static
static int off ( int  keep_radio_on)
static

References NETSTACK_RDC, and rdc_driver::off.

static int on ( void  )
static

References NETSTACK_RDC, and rdc_driver::on.

static void packet_input ( void  )
static
static void send_packet ( mac_callback_t  sent,
void *  ptr 
)
static

References NETSTACK_RDC, and rdc_driver::send.

struct mac_driver nullmac_driver
Initial value:
= {
"nullmac",
on,
off,
}
static void packet_input(void)
Definition: nullmac.c:55
static void send_packet(mac_callback_t sent, void *ptr)
Definition: nullmac.c:49
static unsigned short channel_check_interval(void)
Definition: nullmac.c:73
goto init
Definition: dhcpc.c:392
static int off(int keep_radio_on)
Definition: nullmac.c:67
static int on(void)
Definition: nullmac.c:61