|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
29 #include "generated/modules.h"
67 #ifdef delayMicroseconds
68 #undef delayMicroseconds
70 #define delayMicroseconds(us) cc2500_delayMicroseconds(us)
87 for (
uint8_t i = 0; i < length; ++i) {
107 for (
uint8_t i = 0; i < length; ++i) {
enum SPIClockDiv cdiv
prescaler of main clock to use as SPI clock
enum SPIClockPolarity cpol
clock polarity control
static struct spi_periph * cc2500_spi_p
static uint8_t cc2500_input_buf[64]
uint16_t output_length
number of data words to write
static float get_sys_time_float(void)
Get the time in seconds since startup.
SPI transaction structure.
static void rxSpiWriteCommandMulti(uint8_t command, uint8_t *data, uint8_t length)
@ SPISelectUnselect
slave is selected before transaction and unselected after
enum SPIBitOrder bitorder
MSB/LSB order.
uint8_t cc2500Reset(void)
volatile uint8_t * output_buf
pointer to transmit buffer for DMA
void cc2500ReadRegisterMulti(uint8_t address, uint8_t *data, uint8_t length)
SPI peripheral structure.
enum SPISlaveSelect select
slave selection behavior
uint8_t cc2500ReadReg(uint8_t reg)
static void rxSpiWriteCommand(uint8_t command, uint8_t data)
@ SPICpolIdleLow
CPOL = 0.
static void cc2500_delayMicroseconds(uint32_t us)
enum SPIClockPhase cpha
clock phase control
bool spi_submit(struct spi_periph *p, struct spi_transaction *t)
Submit SPI transaction.
Architecture independent timing functions.
void cc2500WriteFifo(uint8_t *dpbuffer, uint8_t len)
static void rxSpiWriteByte(uint8_t data)
void cc2500Strobe(uint8_t address)
Common code for AP and FBW telemetry.
#define CC2500_READ_BURST
#define delayMicroseconds(us)
uint16_t input_length
number of data words to read
void cc2500SetPower(uint8_t power)
enum SPIDataSizeSelect dss
data transfer word size
uint8_t slave_idx
slave id: SPI_SLAVE0 to SPI_SLAVE4
static uint8_t cc2500_output_buf[64]
#define CC2500_WRITE_BURST
static uint8_t rxSpiReadCommand(uint8_t command, uint8_t commandData)
volatile uint8_t * input_buf
pointer to receive buffer for DMA
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)
static struct spi_transaction cc2500_spi_t
static void rxSpiReadCommandMulti(uint8_t command, uint8_t commandData, uint8_t *retData, uint8_t length)
enum SPITransactionStatus status