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 cc2500WriteReg(uint8_t address, uint8_t data)
void cc2500ReadFifo(uint8_t *dpbuffer, uint8_t len)
uint8_t cc2500ReadReg(uint8_t reg)
void cc2500Strobe(uint8_t address)
uint8_t cc2500Reset(void)
#define CC2500_READ_BURST
#define delayMicroseconds(us)
static void frSkyDSetRcData(uint16_t *rcData, const uint8_t *payload)
static rx_spi_received_e frSkyDHandlePacket(uint8_t *const packet, uint8_t *const protocolState)
#define RC_CHANNEL_COUNT_FRSKY_D
static void frSkyDInit(void)
static bool tuneRx(uint8_t *packet)
rx_spi_received_e frSkySpiDataReceived(uint8_t *packet)
void setRcDataFn(uint16_t *rcData, const uint8_t *payload)
rx_spi_received_e processFrameFn(uint8_t *const packet)
static void initGetBind(void)
static bool getBind1(uint8_t *packet)
static bool getBind2(uint8_t *packet)
void frSkySpiSetRcData(uint16_t *rcData, const uint8_t *payload)
static timeMs_t start_time
static processFrameFn * processFrame
rx_spi_received_e frSkySpiProcessFrame(uint8_t *packet)
void nextChannel(uint8_t skip)
static setRcDataFn * setRcData
static uint8_t calData[255][3]
static void initTuneRx(void)
static timeMs_t timeTunedMs
rx_spi_received_e handlePacketFn(uint8_t *const packet, uint8_t *const protocolState)
static handlePacketFn * handlePacket
bool frSkySpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
void initialiseData(bool inBindState)
static uint8_t protocolState
static rx_spi_protocol_e spiProtocol
void frSkyXInit(const rx_spi_protocol_e spiProtocol)
rx_spi_received_e frSkyXHandlePacket(uint8_t *const packet, uint8_t *const protocolState)
rx_spi_received_e frSkyXProcessFrame(uint8_t *const packet)
void frSkyXSetRcData(uint16_t *rcData, const uint8_t *packet)
#define RC_CHANNEL_COUNT_FRSKY_X
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
rxRuntimeConfig_t rxRuntimeConfig
@ RSSI_SOURCE_RX_PROTOCOL
void rxSpiLedToggle(void)
void rxSpiCommonIOInit(const rxSpiConfig_t *rxSpiConfig)
bool rxSpiCheckBindRequested(bool reset)
const rxSpiConfig_t * rxSpiConfig(void)
const rxCc2500SpiConfig_t * rxCc2500SpiConfig(void)
rxCc2500SpiConfig_t * rxCc2500SpiConfigMutable(void)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.