Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "cc2500_compat.h"
Go to the source code of this file.
Data Structures | |
struct | rxRuntimeConfig_s |
Macros | |
#define | MAX_SUPPORTED_RC_CHANNEL_COUNT 18 |
#define | NON_AUX_CHANNEL_COUNT 4 |
#define | MAX_AUX_CHANNEL_COUNT (MAX_SUPPORTED_RC_CHANNEL_COUNT - NON_AUX_CHANNEL_COUNT) |
Typedefs | |
typedef uint16_t(* | rcReadRawDataFnPtr) (const struct rxRuntimeConfig_s *rxRuntimeConfig, uint8_t chan) |
typedef uint8_t(* | rcFrameStatusFnPtr) (struct rxRuntimeConfig_s *rxRuntimeConfig) |
typedef bool(* | rcProcessFrameFnPtr) (const struct rxRuntimeConfig_s *rxRuntimeConfig) |
typedef struct rxRuntimeConfig_s | rxRuntimeConfig_t |
Enumerations | |
enum | rxFrameState_e { RX_FRAME_PENDING = 0, RX_FRAME_COMPLETE = (1 << 0), RX_FRAME_FAILSAFE = (1 << 1), RX_FRAME_PROCESSING_REQUIRED = (1 << 2), RX_FRAME_DROPPED = (1 << 3) } |
enum | SerialRXType { SERIALRX_SPEKTRUM1024 = 0, SERIALRX_SPEKTRUM2048 = 1, SERIALRX_SBUS = 2, SERIALRX_SUMD = 3, SERIALRX_SUMH = 4, SERIALRX_XBUS_MODE_B = 5, SERIALRX_XBUS_MODE_B_RJ01 = 6, SERIALRX_IBUS = 7, SERIALRX_JETIEXBUS = 8, SERIALRX_CRSF = 9, SERIALRX_SRXL = 10, SERIALRX_TARGET_CUSTOM = 11, SERIALRX_FPORT = 12, SERIALRX_SRXL2 = 13 } |
enum | rxProvider_t { RX_PROVIDER_NONE = 0, RX_PROVIDER_PARALLEL_PWM, RX_PROVIDER_PPM, RX_PROVIDER_SERIAL, RX_PROVIDER_MSP, RX_PROVIDER_SPI } |
enum | rssiSource_e { RSSI_SOURCE_NONE = 0, RSSI_SOURCE_ADC, RSSI_SOURCE_RX_CHANNEL, RSSI_SOURCE_RX_PROTOCOL, RSSI_SOURCE_MSP, RSSI_SOURCE_FRAME_ERRORS, RSSI_SOURCE_RX_PROTOCOL_CRSF } |
Functions | |
void | rxInit (void) |
!TODO remove this extern, only needed once for channelCount More... | |
void | setRssiDirect (uint16_t newRssi, rssiSource_e source) |
void | setRssi (uint16_t rssiValue, rssiSource_e source) |
Variables | |
rssiSource_e | rssiSource |
rxRuntimeConfig_t | rxRuntimeConfig |
struct rxRuntimeConfig_s |
Definition at line 142 of file cc2500_rx.h.
Data Fields | ||
---|---|---|
uint8_t | channelCount | |
uint16_t * | channelData | |
void * | frameData | |
rcFrameStatusFnPtr | rcFrameStatusFn | |
rcProcessFrameFnPtr | rcProcessFrameFn | |
rcReadRawDataFnPtr | rcReadRawFn | |
rxProvider_t | rxProvider | |
uint16_t | rxRefreshRate | |
SerialRXType | serialrxProvider |
#define MAX_AUX_CHANNEL_COUNT (MAX_SUPPORTED_RC_CHANNEL_COUNT - NON_AUX_CHANNEL_COUNT) |
Definition at line 81 of file cc2500_rx.h.
#define MAX_SUPPORTED_RC_CHANNEL_COUNT 18 |
Definition at line 78 of file cc2500_rx.h.
#define NON_AUX_CHANNEL_COUNT 4 |
Definition at line 80 of file cc2500_rx.h.
typedef uint8_t(* rcFrameStatusFnPtr) (struct rxRuntimeConfig_s *rxRuntimeConfig) |
Definition at line 130 of file cc2500_rx.h.
typedef bool(* rcProcessFrameFnPtr) (const struct rxRuntimeConfig_s *rxRuntimeConfig) |
Definition at line 131 of file cc2500_rx.h.
typedef uint16_t(* rcReadRawDataFnPtr) (const struct rxRuntimeConfig_s *rxRuntimeConfig, uint8_t chan) |
Definition at line 129 of file cc2500_rx.h.
typedef struct rxRuntimeConfig_s rxRuntimeConfig_t |
enum rssiSource_e |
Enumerator | |
---|---|
RSSI_SOURCE_NONE | |
RSSI_SOURCE_ADC | |
RSSI_SOURCE_RX_CHANNEL | |
RSSI_SOURCE_RX_PROTOCOL | |
RSSI_SOURCE_MSP | |
RSSI_SOURCE_FRAME_ERRORS | |
RSSI_SOURCE_RX_PROTOCOL_CRSF |
Definition at line 154 of file cc2500_rx.h.
enum rxFrameState_e |
Enumerator | |
---|---|
RX_FRAME_PENDING | |
RX_FRAME_COMPLETE | |
RX_FRAME_FAILSAFE | |
RX_FRAME_PROCESSING_REQUIRED | |
RX_FRAME_DROPPED |
Definition at line 51 of file cc2500_rx.h.
enum rxProvider_t |
Enumerator | |
---|---|
RX_PROVIDER_NONE | |
RX_PROVIDER_PARALLEL_PWM | |
RX_PROVIDER_PPM | |
RX_PROVIDER_SERIAL | |
RX_PROVIDER_MSP | |
RX_PROVIDER_SPI |
Definition at line 133 of file cc2500_rx.h.
enum SerialRXType |
Definition at line 59 of file cc2500_rx.h.
void rxInit | ( | void | ) |
!TODO remove this extern, only needed once for channelCount
Definition at line 263 of file cc2500_rx.c.
References rxRuntimeConfig_s::channelCount, DELAY_10_HZ, FEATURE_RSSI_ADC, FEATURE_RX_MSP, FEATURE_RX_PARALLEL_PWM, FEATURE_RX_PPM, FEATURE_RX_SERIAL, FEATURE_RX_SPI, featureIsEnabled, FRAME_ERR_RESAMPLE_US, frameErrFilter, GET_FRAME_ERR_LPF_FREQUENCY, MAX_INVALID_PULS_TIME, MAX_SUPPORTED_RC_CHANNEL_COUNT, rxConfig_s::midrc, millis, MIN, needRxSignalMaxDelayUs, NON_AUX_CHANNEL_COUNT, nullFrameStatus(), nullProcessFrame(), nullReadRawRC(), pt1FilterGain(), pt1FilterInit(), rcData, rxRuntimeConfig_s::rcFrameStatusFn, rcInvalidPulsPeriod, rxRuntimeConfig_s::rcProcessFrameFn, rxRuntimeConfig_s::rcReadRawFn, rcSampleIndex, RSSI_SOURCE_ADC, RSSI_SOURCE_RX_CHANNEL, rssiSource, RX_PROVIDER_MSP, RX_PROVIDER_NONE, RX_PROVIDER_PARALLEL_PWM, RX_PROVIDER_PPM, RX_PROVIDER_SERIAL, RX_PROVIDER_SPI, rxChannelCount, rxConfig(), rxRuntimeConfig_s::rxProvider, rxRuntimeConfig, rxSpiConfig(), rxSpiInit(), rxConfig_s::serialrx_provider, and rxRuntimeConfig_s::serialrxProvider.
Referenced by radio_control_impl_init().
void setRssi | ( | uint16_t | rssiValue, |
rssiSource_e | source | ||
) |
Definition at line 723 of file cc2500_rx.c.
References frameErrFilter, pt1FilterApply(), rssi, RSSI_SOURCE_FRAME_ERRORS, rssiSource, and updateRssiSamples().
Referenced by cc2500setRssiDbm().
void setRssiDirect | ( | uint16_t | newRssi, |
rssiSource_e | source | ||
) |
Definition at line 700 of file cc2500_rx.c.
References rssi, and rssiSource.
Referenced by frSkyXHandlePacket().
rssiSource_e rssiSource |
Definition at line 100 of file cc2500_rx.c.
Referenced by cc2500SpiInit(), frSkySpiInit(), rxInit(), setRssi(), and setRssiDirect().
rxRuntimeConfig_t rxRuntimeConfig |
Definition at line 131 of file cc2500_rx.c.
Referenced by frSkySpiInit(), nullFrameStatus(), nullProcessFrame(), nullReadRawRC(), radio_control_impl_event(), rxInit(), rxSpiFrameStatus(), rxSpiInit(), rxSpiProcessFrame(), and rxSpiReadRawRC().