|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
37 #ifdef USE_RX_FRSKY_SPI
157 for(
unsigned c = 0;
c < 0xFF;
c++)
214 if (packet[ccLen - 1] & 0x80) {
215 if (packet[2] == 0x01) {
216 uint8_t Lqi = packet[ccLen - 1] & 0x7F;
254 if (packet[ccLen - 1] & 0x80) {
255 if (packet[2] == 0x01) {
256 if (packet[5] == 0x00) {
259 for (
uint8_t n = 0; n < 5; n++) {
283 if (packet[ccLen - 1] & 0x80) {
284 if (packet[2] == 0x01) {
289 if (packet[5] == 0x2D) {
290 for (
uint8_t i = 0; i < 2; i++) {
299 for (
uint8_t n = 0; n < 5; n++) {
300 if (packet[6 + n] == packet[ccLen - 3] || (packet[6 + n] == 0)) {
456 #if defined(USE_RX_FRSKY_SPI_TELEMETRY) && defined(USE_TELEMETRY_SMARTPORT)
468 #if defined(USE_RX_FRSKY_SPI_TELEMETRY)
void initialiseData(bool inBindState)
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
rx_spi_received_e processFrameFn(uint8_t *const packet)
static rx_spi_received_e frSkyDHandlePacket(uint8_t *const packet, uint8_t *const protocolState)
static void initTuneRx(void)
static void frSkyDSetRcData(uint16_t *rcData, const uint8_t *payload)
void frSkyXInit(const rx_spi_protocol_e spiProtocol)
rx_spi_received_e frSkySpiDataReceived(uint8_t *packet)
rx_spi_received_e frSkySpiProcessFrame(uint8_t *packet)
void setRcDataFn(uint16_t *rcData, const uint8_t *payload)
const rxCc2500SpiConfig_t * rxCc2500SpiConfig(void)
static void frSkyDInit(void)
#define RC_CHANNEL_COUNT_FRSKY_D
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
static setRcDataFn * setRcData
rx_spi_received_e frSkyXProcessFrame(uint8_t *const packet)
bool rxSpiCheckBindRequested(bool reset)
void frSkySpiSetRcData(uint16_t *rcData, const uint8_t *payload)
static uint8_t protocolState
uint8_t cc2500Reset(void)
static bool getBind2(uint8_t *packet)
void rxSpiCommonIOInit(const rxSpiConfig_t *rxSpiConfig)
rxRuntimeConfig_t rxRuntimeConfig
uint8_t cc2500ReadReg(uint8_t reg)
void rxSpiLedToggle(void)
static bool tuneRx(uint8_t *packet)
static processFrameFn * processFrame
const rxSpiConfig_t * rxSpiConfig(void)
static uint8_t calData[255][3]
@ RSSI_SOURCE_RX_PROTOCOL
static void initGetBind(void)
void cc2500Strobe(uint8_t address)
void frSkyXSetRcData(uint16_t *rcData, const uint8_t *packet)
#define CC2500_READ_BURST
static rx_spi_protocol_e spiProtocol
#define delayMicroseconds(us)
static bool getBind1(uint8_t *packet)
#define RC_CHANNEL_COUNT_FRSKY_X
rx_spi_received_e frSkyXHandlePacket(uint8_t *const packet, uint8_t *const protocolState)
void cc2500WriteReg(uint8_t address, uint8_t data)
uint8_t handlePacketFn(uint8_t *const packet, uint8_t *const protocolState)
void cc2500ReadFifo(uint8_t *dpbuffer, uint8_t len)
static timeMs_t timeTunedMs
static timeMs_t start_time
rxCc2500SpiConfig_t * rxCc2500SpiConfigMutable(void)
static handlePacketFn * handlePacket
void nextChannel(uint8_t skip)
bool frSkySpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)