7 #define UNUSED(x) (void)(x)
140 #if defined(USE_RX_FRSKY_SPI)
141 #if defined(USE_RX_FRSKY_SPI_D)
144 #if defined(USE_RX_FRSKY_SPI_X)
163 #ifdef USE_RX_SFHSS_SPI
170 #ifdef USE_RX_SPEKTRUM
#define STATIC_UNIT_TESTED
#define rxSpiDeviceInit(rxSpiConfig)
#define STATIC_ASSERT(...)
#define RX_SPI_MAX_PAYLOAD_SIZE
rx_spi_received_e frSkySpiDataReceived(uint8_t *packet)
void frSkySpiSetRcData(uint16_t *rcData, const uint8_t *payload)
rx_spi_received_e frSkySpiProcessFrame(uint8_t *packet)
bool frSkySpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
rxRuntimeConfig_t rxRuntimeConfig
#define MAX_SUPPORTED_RC_CHANNEL_COUNT
@ RX_FRAME_PROCESSING_REQUIRED
rcFrameStatusFnPtr rcFrameStatusFn
rcProcessFrameFnPtr rcProcessFrameFn
rcReadRawDataFnPtr rcReadRawFn
rx_spi_received_e(* protocolDataReceivedFnPtr)(uint8_t *payload)
static protocolSetRcDataFromPayloadFnPtr protocolSetRcDataFromPayload
static bool rxSpiProcessFrame(const rxRuntimeConfig_t *rxRuntimeConfig)
static protocolInitFnPtr protocolInit
STATIC_UNIT_TESTED bool rxSpiSetProtocol(rx_spi_protocol_e protocol)
rx_spi_received_e(* protocolProcessFrameFnPtr)(uint8_t *payload)
uint16_t rxSpiRcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
static protocolDataReceivedFnPtr protocolDataReceived
bool rxSpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
static protocolProcessFrameFnPtr protocolProcessFrame
bool(* protocolInitFnPtr)(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
STATIC_UNIT_TESTED uint8_t rxSpiPayload[RX_SPI_MAX_PAYLOAD_SIZE]
STATIC_UNIT_TESTED uint8_t rxSpiNewPacketAvailable
void(* protocolSetRcDataFromPayloadFnPtr)(uint16_t *rcData, const uint8_t *payload)
static uint8_t rxSpiFrameStatus(rxRuntimeConfig_t *rxRuntimeConfig)
STATIC_UNIT_TESTED uint16_t rxSpiReadRawRC(const rxRuntimeConfig_t *rxRuntimeConfig, uint8_t channel)
@ RX_SPI_ROCESSING_REQUIRED
const rxSpiConfig_t * rxSpiConfig(void)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.