|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include <stdbool.h>#include <stdint.h>
Include dependency graph for cc2500.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | CC2500_WRITE_SINGLE 0x00 |
| #define | CC2500_WRITE_BURST 0x40 |
| #define | CC2500_READ_SINGLE 0x80 |
| #define | CC2500_READ_BURST 0xC0 |
| #define | CC2500_SRES 0x30 |
| #define | CC2500_SFSTXON 0x31 |
| #define | CC2500_SXOFF 0x32 |
| #define | CC2500_SCAL 0x33 |
| #define | CC2500_SRX 0x34 |
| #define | CC2500_STX 0x35 |
| #define | CC2500_SIDLE 0x36 |
| #define | CC2500_SAFC 0x37 |
| #define | CC2500_SWOR 0x38 |
| #define | CC2500_SPWD 0x39 |
| #define | CC2500_SFRX 0x3A |
| #define | CC2500_SFTX 0x3B |
| #define | CC2500_SWORRST 0x3C |
| #define | CC2500_SNOP 0x3D |
| #define | CC2500_STATUS_CHIP_RDYn_BM 0x80 |
| #define | CC2500_STATUS_STATE_BM 0x70 |
| #define | CC2500_STATUS_FIFO_BYTES_AVAILABLE_BM 0x0F |
| #define | CC2500_STATE_IDLE 0x00 |
| #define | CC2500_STATE_RX 0x10 |
| #define | CC2500_STATE_TX 0x20 |
| #define | CC2500_STATE_FSTXON 0x30 |
| #define | CC2500_STATE_CALIBRATE 0x40 |
| #define | CC2500_STATE_SETTLING 0x50 |
| #define | CC2500_STATE_RX_OVERFLOW 0x60 |
| #define | CC2500_STATE_TX_UNDERFLOW 0x70 |
| #define | CC2500_LQI_CRC_OK_BM 0x80 |
| #define | CC2500_LQI_EST_BM 0x7F |
Functions | |
| void | cc2500_init (void) |
| void | cc2500ReadFifo (uint8_t *dpbuffer, uint8_t len) |
| void | cc2500WriteFifo (uint8_t *dpbuffer, uint8_t len) |
| void | cc2500ReadRegisterMulti (uint8_t address, uint8_t *data, uint8_t length) |
| void | cc2500WriteRegisterMulti (uint8_t address, uint8_t *data, uint8_t length) |
| uint8_t | cc2500ReadReg (uint8_t reg) |
| void | cc2500Strobe (uint8_t address) |
| void | cc2500WriteReg (uint8_t address, uint8_t data) |
| void | cc2500SetPower (uint8_t power) |
| uint8_t | cc2500Reset (void) |
Definition at line 43 of file cc2500.c.
References spi_transaction::bitorder, cc2500_input_buf, cc2500_output_buf, cc2500_spi_p, cc2500_spi_t, spi_transaction::cdiv, spi_transaction::cpha, spi_transaction::cpol, spi_transaction::dss, foo, spi_transaction::input_buf, spi_transaction::input_length, spi_transaction::output_buf, spi_transaction::output_length, spi_transaction::select, spi_transaction::slave_idx, SPICphaEdge1, SPICpolIdleLow, SPIDiv32, SPIDss8bit, SPIMSBFirst, SPISelectUnselect, SPITransDone, and spi_transaction::status.
Referenced by radio_control_cc2500_init().
Here is the caller graph for this function:Definition at line 174 of file cc2500.c.
References CC2500_3F_RXFIFO, CC2500_READ_BURST, foo, NOP, and rxSpiReadCommandMulti().
Referenced by frSkyXHandlePacket(), getBind1(), getBind2(), and tuneRx().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 199 of file cc2500.c.
References NOP, and rxSpiReadCommand().
Referenced by cc2500Reset(), cc2500SpiDetect(), frSkyXHandlePacket(), getBind1(), getBind2(), initialise(), and tuneRx().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 188 of file cc2500.c.
References NOP, and rxSpiReadCommandMulti().
Here is the call graph for this function:Definition at line 228 of file cc2500.c.
References CC2500_0E_FREQ1, CC2500_SRES, cc2500ReadReg(), cc2500Strobe(), and delayMicroseconds.
Referenced by initialise(), and radio_control_cc2500_init().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 211 of file cc2500.c.
References CC2500_3E_PATABLE, cc2500WriteReg(), and foo.
Referenced by frSkyXHandlePacket().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 204 of file cc2500.c.
References rxSpiWriteByte().
Referenced by cc2500Reset(), cc2500WriteFifo(), frSkySpiDataReceived(), frSkyXHandlePacket(), initGetBind(), initialise(), initTuneRx(), and nextChannel().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 180 of file cc2500.c.
References CC2500_3F_TXFIFO, CC2500_SFTX, CC2500_STX, CC2500_WRITE_BURST, cc2500Strobe(), foo, and rxSpiWriteCommandMulti().
Referenced by frSkyXHandlePacket().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 206 of file cc2500.c.
References rxSpiWriteCommand().
Referenced by cc2500SetPower(), initGetBind(), initialise(), initialiseData(), initTuneRx(), nextChannel(), and tuneRx().
Here is the call graph for this function:
Here is the caller graph for this function: