8 #ifndef __CC2430_RF_H__
9 #define __CC2430_RF_H__
18 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
66 void cc2430_rf_set_receiver(
void (* recv)(
const struct radio_driver *));
67 int cc2430_rf_on(
void);
68 int cc2430_rf_off(
void);
69 int cc2430_rf_read(
void *buf,
unsigned short bufsize);
70 int cc2430_rf_read_banked (
void *buf,
unsigned short bufsize) __banked;
71 int cc2430_rf_send(
void *data,
unsigned short len);
72 int cc2430_rf_send_b (
void *data,
unsigned short len) __banked;
73 extern unsigned short cc2430_rf_payload_len;
74 extern void *cc2430_rf_payload;
77 void cc2430_rf_init(
void) __banked;
94 void rf_dma_callback_isr(
void);