Microchip® Advanced Software Framework

nullrdc.c File Reference

    A null RDC implementation that uses framer for headers.
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se Niclas Finne nfi@s.nosp@m.ics..nosp@m.se
#include "net/mac/mac-sequence.h"
#include "net/mac/nullrdc.h"
#include "net/packetbuf.h"
#include "net/queuebuf.h"
#include "net/netstack.h"
#include "net/rime/rimestats.h"
#include <string.h>
#include "net/mac/frame802154.h"

Macros

#define _DEBUG_   0
 
#define ACK_LEN   3
 
#define NULLRDC_802154_AUTOACK   0
 
#define NULLRDC_802154_AUTOACK_HW   0
 
#define NULLRDC_ADDRESS_FILTER   1
 
#define NULLRDC_SEND_802154_ACK   0
 
#define PRINTF(...)
 

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 int send_one_packet (mac_callback_t sent, void *ptr)
 
static void send_packet (mac_callback_t sent, void *ptr)
 

Variables

struct rdc_driver nullrdc_driver
 

#define _DEBUG_   0
#define ACK_LEN   3

Referenced by packet_input(), and send_one_packet().

#define NULLRDC_802154_AUTOACK   0
#define NULLRDC_802154_AUTOACK_HW   0
#define NULLRDC_ADDRESS_FILTER   1
#define NULLRDC_SEND_802154_ACK   0

Referenced by packet_input().

#define PRINTF (   ...)

Referenced by packet_input(), and send_one_packet().

static unsigned short channel_check_interval ( void  )
static
static void init ( void  )
static

References on().

static int off ( int  keep_radio_on)
static
static int on ( void  )
static

References NETSTACK_RADIO, and radio_driver::on.

Referenced by init().

static void send_list ( mac_callback_t  sent,
void *  ptr,
struct rdc_buf_list buf_list 
)
static
static void send_packet ( mac_callback_t  sent,
void *  ptr 
)
static

References send_one_packet().

struct rdc_driver nullrdc_driver
Initial value:
= {
"nullrdc",
on,
off,
}
static void send_packet(mac_callback_t sent, void *ptr)
Definition: nullrdc.c:242
static int on(void)
Definition: nullrdc.c:334
static void send_list(mac_callback_t sent, void *ptr, struct rdc_buf_list *buf_list)
Definition: nullrdc.c:248
goto init
Definition: dhcpc.c:392
static unsigned short channel_check_interval(void)
Definition: nullrdc.c:350
static void packet_input(void)
Definition: nullrdc.c:270
static int off(int keep_radio_on)
Definition: nullrdc.c:340