Wixel SDK
radio_mac.h
Go to the documentation of this file.
1 
25 #ifndef _RADIO_MAC_H_
26 #define _RADIO_MAC_H_
27 
28 #include <cc2511_map.h>
29 #include <cc2511_types.h>
30 
32 #define RADIO_MAC_EVENT_TX 30
33 
34 #define RADIO_MAC_EVENT_RX 31
35 
36 #define RADIO_MAC_EVENT_RX_TIMEOUT 32
37 
38 #define RADIO_MAC_EVENT_STROBE 33
39 
43 void radioMacInit(void);
44 
59 void radioMacStrobe(void);
60 
68 void radioMacTx(uint8 XDATA * packet);
69 
84 void radioMacRx(uint8 XDATA * packet, uint8 timeout);
85 
105 void radioMacEventHandler(uint8 event);
106 
113 extern volatile BIT radioRxOverflowOccurred;
114 
120 extern volatile BIT radioTxUnderflowOccurred;
121 
123 ISR(RF, 0);
124 
125 #endif /* RADIO_H_ */
void radioMacInit(void)
Definition: radio_mac.c:209
void radioMacStrobe(void)
Definition: radio_mac.c:201
#define XDATA
Definition: cc2511_types.h:65
volatile BIT radioRxOverflowOccurred
Definition: radio_mac.c:47
volatile BIT radioTxUnderflowOccurred
Definition: radio_mac.c:48
void radioMacTx(uint8 XDATA *packet)
Definition: radio_mac.c:254
void radioMacEventHandler(uint8 event)
Definition: radio_link.c:262
__bit BIT
Definition: cc2511_types.h:32
void radioMacRx(uint8 XDATA *packet, uint8 timeout)
Definition: radio_mac.c:226
unsigned char uint8
Definition: cc2511_types.h:9
ISR(RF, 0)
Definition: radio_mac.c:57