44 #include "contiki-conf.h"
46 #ifndef NETSTACK_NETWORK
47 #ifdef NETSTACK_CONF_NETWORK
48 #define NETSTACK_NETWORK NETSTACK_CONF_NETWORK
50 #define NETSTACK_NETWORK rime_driver
54 #ifndef NETSTACK_LLSEC
55 #ifdef NETSTACK_CONF_LLSEC
56 #define NETSTACK_LLSEC NETSTACK_CONF_LLSEC
58 #define NETSTACK_LLSEC nullsec_driver
63 #ifdef NETSTACK_CONF_MAC
64 #define NETSTACK_MAC NETSTACK_CONF_MAC
66 #define NETSTACK_MAC nullmac_driver
71 #ifdef NETSTACK_CONF_RDC
72 #define NETSTACK_RDC NETSTACK_CONF_RDC
74 #define NETSTACK_RDC nullrdc_driver
78 #ifndef NETSTACK_RDC_CHANNEL_CHECK_RATE
79 #ifdef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
80 #define NETSTACK_RDC_CHANNEL_CHECK_RATE NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
82 #define NETSTACK_RDC_CHANNEL_CHECK_RATE 8
86 #if (NETSTACK_RDC_CHANNEL_CHECK_RATE & (NETSTACK_RDC_CHANNEL_CHECK_RATE - 1)) != 0
87 #error NETSTACK_RDC_CONF_CHANNEL_CHECK_RATE must be a power of two (i.e., 1, 2, 4, 8, 16, 32, 64, ...).
88 #error Change NETSTACK_RDC_CONF_CHANNEL_CHECK_RATE in contiki-conf.h, project-conf.h or in your Makefile.
92 #ifndef NETSTACK_RADIO
93 #ifdef NETSTACK_CONF_RADIO
94 #define NETSTACK_RADIO NETSTACK_CONF_RADIO
96 #define NETSTACK_RADIO nullradio_driver
100 #ifndef NETSTACK_FRAMER
101 #ifdef NETSTACK_CONF_FRAMER
102 #define NETSTACK_FRAMER NETSTACK_CONF_FRAMER
104 #define NETSTACK_FRAMER framer_nullmac
132 extern const struct framer NETSTACK_FRAMER;
134 void netstack_init(
void);
Header file for the radio API
Link layer security header file.
The structure of a device driver for a radio in Contiki.
The structure of a network driver in Contiki.
void(* input)(void)
Callback for getting notified of incoming packet.
The structure of a link layer security driver.
The structure of a RDC (radio duty cycling) driver in Contiki.
void(* init)(void)
Initialize the network driver.
The structure of a MAC protocol driver in Contiki.
A MAC framer is responsible for constructing and parsing the header in MAC frames...