19 typedef enum rf_address_mode_t {
21 RF_DECODER_COORDINATOR,
48 #define ISTXONCCA 0xE4
50 #define ISFLUSHRX 0xE6
51 #define ISFLUSHTX 0xE7
53 #define ISACKPEND 0xE9
58 #define MAC_IFS (1200/128)
60 #define CC2430_MAX_PACKET_LEN 127
61 #define CC2430_MIN_PACKET_LEN 4
63 #define CC2430_CCA_CLEAR 1
64 #define CC2430_CCA_BUSY 0
66 #ifdef CC2430_CONF_RFERR_INTERRUPT
67 #define CC2430_RFERR_INTERRUPT CC2430_CONF_RFERR_INTERRUPT
69 #define CC2430_RFERR_INTERRUPT 0
76 uint8_t cc2430_rf_channel_get();
80 #if !NETSTACK_CONF_SHORTCUTS
83 #if CC2430_RFERR_INTERRUPT
84 extern void cc2430_rf_error_ISR(
void) __interrupt(RFERR_VECTOR);
88 void rf_dma_callback_isr(
void);
CC2430 registers header file for CC2430.
Header file for the radio API
int8_t cc2430_rf_channel_set(uint8_t channel)
Select RF channel.
The structure of a device driver for a radio in Contiki.
uint8_t cc2430_rf_power_set(uint8_t new_power)
Select RF transmit power.
void cc2430_rf_ISR(void) __interrupt(RF_VECTOR)
RF interrupt service routine.
void cc2430_rf_command(uint8_t command)
Execute a single CSP command.
void cc2430_rf_set_addr(unsigned pan, unsigned addr, const uint8_t *ieee_addr)
Set MAC addresses.