|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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 // Reset chip.
141 #define CC2500_SFSTXON \
142 0x31 // Enable and calibrate frequency synthesizer (if MCSM0.FS_AUTOCAL=1).
145 #define CC2500_SXOFF 0x32 // Turn off crystal oscillator.
146 #define CC2500_SCAL 0x33 // Calibrate frequency synthesizer and turn it off
149 0x34 // Enable RX. Perform calibration first if coming from IDLE and
152 0x35 // In IDLE state: Enable TX. Perform calibration first if
155 #define CC2500_SIDLE \
156 0x36 // Exit RX / TX, turn off frequency synthesizer and exit
158 #define CC2500_SAFC 0x37 // Perform AFC adjustment of the frequency synthesizer
159 #define CC2500_SWOR 0x38 // Start automatic RX polling sequence (Wake-on-Radio)
160 #define CC2500_SPWD 0x39 // Enter power down mode when CSn goes high.
161 #define CC2500_SFRX 0x3A // Flush the RX FIFO buffer.
162 #define CC2500_SFTX 0x3B // Flush the TX FIFO buffer.
163 #define CC2500_SWORRST 0x3C // Reset real time clock.
164 #define CC2500_SNOP \
165 0x3D // No operation. May be used to pad strobe commands to two
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 cc2500SetPower(uint8_t power)
void cc2500Strobe(uint8_t address)
uint8_t cc2500Reset(void)
void cc2500WriteRegisterMulti(uint8_t address, uint8_t *data, uint8_t length)
void cc2500WriteReg(uint8_t address, uint8_t data)
void cc2500ReadFifo(uint8_t *dpbuffer, uint8_t len)
uint8_t cc2500ReadReg(uint8_t reg)
void cc2500WriteFifo(uint8_t *dpbuffer, uint8_t len)
void cc2500ReadRegisterMulti(uint8_t address, uint8_t *data, uint8_t length)