|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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)
154 #endif // USE_RX_FRSKY_SPI
163 #ifdef USE_RX_SFHSS_SPI
170 #ifdef USE_RX_SPEKTRUM
rcProcessFrameFnPtr rcProcessFrameFn
STATIC_UNIT_TESTED bool rxSpiSetProtocol(rx_spi_protocol_e protocol)
#define RX_SPI_MAX_PAYLOAD_SIZE
bool frSkySpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
static protocolSetRcDataFromPayloadFnPtr protocolSetRcDataFromPayload
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
@ RX_SPI_ROCESSING_REQUIRED
void(* protocolSetRcDataFromPayloadFnPtr)(uint16_t *rcData, const uint8_t *payload)
bool(* protocolInitFnPtr)(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
rx_spi_received_e(* protocolDataReceivedFnPtr)(uint8_t *payload)
static bool rxSpiProcessFrame(const rxRuntimeConfig_t *rxRuntimeConfig)
STATIC_UNIT_TESTED uint16_t rxSpiReadRawRC(const rxRuntimeConfig_t *rxRuntimeConfig, uint8_t channel)
#define STATIC_UNIT_TESTED
#define MAX_SUPPORTED_RC_CHANNEL_COUNT
rxRuntimeConfig_t rxRuntimeConfig
uint16_t rxSpiRcData[MAX_SUPPORTED_RC_CHANNEL_COUNT]
void frSkySpiSetRcData(uint16_t *rcData, const uint8_t *payload)
#define rxSpiDeviceInit(rxSpiConfig)
static protocolDataReceivedFnPtr protocolDataReceived
rx_spi_received_e frSkySpiDataReceived(uint8_t *packet)
rcFrameStatusFnPtr rcFrameStatusFn
const rxSpiConfig_t * rxSpiConfig(void)
rx_spi_received_e(* protocolProcessFrameFnPtr)(uint8_t *payload)
STATIC_UNIT_TESTED uint8_t rxSpiPayload[RX_SPI_MAX_PAYLOAD_SIZE]
rcReadRawDataFnPtr rcReadRawFn
bool rxSpiInit(const rxSpiConfig_t *rxSpiConfig, rxRuntimeConfig_t *rxRuntimeConfig)
static protocolInitFnPtr protocolInit
STATIC_UNIT_TESTED uint8_t rxSpiNewPacketAvailable
static protocolProcessFrameFnPtr protocolProcessFrame
@ RX_FRAME_PROCESSING_REQUIRED
static uint8_t rxSpiFrameStatus(rxRuntimeConfig_t *rxRuntimeConfig)
rx_spi_received_e frSkySpiProcessFrame(uint8_t *packet)
#define STATIC_ASSERT(...)