25 #ifndef PERIPHERALS_CC2500_H
26 #define PERIPHERALS_CC2500_H
134 #define CC2500_WRITE_SINGLE 0x00
135 #define CC2500_WRITE_BURST 0x40
136 #define CC2500_READ_SINGLE 0x80
137 #define CC2500_READ_BURST 0xC0
140 #define CC2500_SRES 0x30
141 #define CC2500_SFSTXON \
145 #define CC2500_SXOFF 0x32
146 #define CC2500_SCAL 0x33
155 #define CC2500_SIDLE \
158 #define CC2500_SAFC 0x37
159 #define CC2500_SWOR 0x38
160 #define CC2500_SPWD 0x39
161 #define CC2500_SFRX 0x3A
162 #define CC2500_SFTX 0x3B
163 #define CC2500_SWORRST 0x3C
164 #define CC2500_SNOP \
172 #define CC2500_STATUS_CHIP_RDYn_BM 0x80
173 #define CC2500_STATUS_STATE_BM 0x70
174 #define CC2500_STATUS_FIFO_BYTES_AVAILABLE_BM 0x0F
177 #define CC2500_STATE_IDLE 0x00
178 #define CC2500_STATE_RX 0x10
179 #define CC2500_STATE_TX 0x20
180 #define CC2500_STATE_FSTXON 0x30
181 #define CC2500_STATE_CALIBRATE 0x40
182 #define CC2500_STATE_SETTLING 0x50
183 #define CC2500_STATE_RX_OVERFLOW 0x60
184 #define CC2500_STATE_TX_UNDERFLOW 0x70
189 #define CC2500_LQI_CRC_OK_BM 0x80
190 #define CC2500_LQI_EST_BM 0x7F
void cc2500WriteReg(uint8_t address, uint8_t data)
void cc2500ReadFifo(uint8_t *dpbuffer, uint8_t len)
uint8_t cc2500ReadReg(uint8_t reg)
void cc2500ReadRegisterMulti(uint8_t address, uint8_t *data, uint8_t length)
void cc2500WriteRegisterMulti(uint8_t address, uint8_t *data, uint8_t length)
void cc2500WriteFifo(uint8_t *dpbuffer, uint8_t len)
void cc2500Strobe(uint8_t address)
uint8_t cc2500Reset(void)
void cc2500SetPower(uint8_t power)
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.