48 #include "cc2420_const.h" 51 #define WITH_SEND_CCA 1 53 #ifndef CC2420_CONF_CCA_THRESH 54 #define CC2420_CONF_CCA_THRESH -45 57 #ifndef CC2420_CONF_AUTOACK 58 #define CC2420_CONF_AUTOACK 1 61 #define CHECKSUM_LEN 2 63 #define FOOTER1_CRC_OK 0x80 64 #define FOOTER1_CORRELATION 0x7f 66 #ifdef CC2420_CONF_RSSI_OFFSET 67 #define RSSI_OFFSET CC2420_CONF_RSSI_OFFSET 70 #define RSSI_OFFSET -45 73 int cc2420_init(
void);
75 #define CC2420_MAX_PACKET_LEN 127 77 int cc2420_set_channel(
int channel);
78 int cc2420_get_channel(
void);
80 void cc2420_set_pan_addr(
unsigned pan,
82 const uint8_t *ieee_addr);
84 extern signed char cc2420_last_rssi;
85 extern uint8_t cc2420_last_correlation;
87 int cc2420_rssi(
void);
95 int cc2420_get_txpower(
void);
96 #define CC2420_TXPOWER_MAX 31 97 #define CC2420_TXPOWER_MIN 0 105 extern int cc2420_authority_level_of_sender;
108 int cc2420_off(
void);
110 void cc2420_set_cca_threshold(
int value);
static uip_ds6_addr_t * addr
Pointer to a nbr cache entry.
Header file for the radio API
int cc2420_interrupt(void)
Interrupt function, called from the simple-cc2420-arch driver.
Structure of AES drivers.
The structure of a device driver for a radio in Contiki.
void cc2420_set_txpower(uint8_t power)