|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "cc2500_compat.h"#include "cc2500_rx.h"#include "cc2500_rx_spi.h"#include "cc2500_settings.h"#include <stdbool.h>#include <stdint.h>#include <stdlib.h>#include <string.h>
Include dependency graph for cc2500_rx.c:Go to the source code of this file.
Macros | |
| #define | UNUSED(x) (void)(x) |
| #define | MAX_INVALID_PULS_TIME 300 |
| #define | DELAY_10_HZ (1000000 / 10) |
| #define | RSSI_SAMPLE_COUNT 16 |
Functions | |
| static uint16_t | nullReadRawRC (const rxRuntimeConfig_t *rxRuntimeConfig, uint8_t channel) |
| static uint8_t | nullFrameStatus (rxRuntimeConfig_t *rxRuntimeConfig) |
| static bool | nullProcessFrame (const rxRuntimeConfig_t *rxRuntimeConfig) |
| void | rxInit (void) |
| !TODO remove this extern, only needed once for channelCount | |
| void | setRssiDirect (uint16_t newRssi, rssiSource_e source) |
| static uint16_t | updateRssiSamples (uint16_t value) |
| void | setRssi (uint16_t rssiValue, rssiSource_e source) |
| #define DELAY_10_HZ (1000000 / 10) |
Definition at line 126 of file cc2500_rx.c.
| #define MAX_INVALID_PULS_TIME 300 |
Definition at line 121 of file cc2500_rx.c.
| #define RSSI_SAMPLE_COUNT 16 |
Definition at line 709 of file cc2500_rx.c.
Definition at line 7 of file cc2500_rx.c.
|
static |
Definition at line 172 of file cc2500_rx.c.
References RX_FRAME_PENDING, rxRuntimeConfig, and UNUSED.
Referenced by rxInit().
Here is the caller graph for this function:
|
static |
Definition at line 179 of file cc2500_rx.c.
References rxRuntimeConfig, and UNUSED.
Referenced by rxInit().
Here is the caller graph for this function:
|
static |
Definition at line 164 of file cc2500_rx.c.
References PPM_RCVR_TIMEOUT, rxRuntimeConfig, and UNUSED.
Referenced by rxInit().
Here is the caller graph for this function:!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, foo, 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_cc2500_init().
Here is the call graph for this function:
Here is the caller graph for this function:| void setRssi | ( | uint16_t | rssiValue, |
| rssiSource_e | source | ||
| ) |
Definition at line 723 of file cc2500_rx.c.
References foo, frameErrFilter, pt1FilterApply(), rssi, RSSI_SOURCE_FRAME_ERRORS, rssiSource, and updateRssiSamples().
Referenced by cc2500setRssiDbm().
Here is the call graph for this function:
Here is the caller graph for this function:| void setRssiDirect | ( | uint16_t | newRssi, |
| rssiSource_e | source | ||
| ) |
Definition at line 700 of file cc2500_rx.c.
References foo, rssi, and rssiSource.
Referenced by frSkyXHandlePacket().
Here is the caller graph for this function:Definition at line 711 of file cc2500_rx.c.
References foo, and RSSI_SAMPLE_COUNT.
Referenced by setRssi().
Here is the caller graph for this function:
|
static |
Definition at line 89 of file cc2500_rx.c.
|
static |
Definition at line 113 of file cc2500_rx.c.
Referenced by rxInit().
Definition at line 118 of file cc2500_rx.c.
Referenced by frSkyDSetRcData(), frSkySpiSetRcData(), frSkyXSetRcData(), and rxInit().
| uint32_t rcInvalidPulsPeriod[MAX_SUPPORTED_RC_CHANNEL_COUNT] |
Definition at line 119 of file cc2500_rx.c.
Referenced by rxInit().
|
static |
Definition at line 132 of file cc2500_rx.c.
Referenced by rxInit().
|
static |
Definition at line 85 of file cc2500_rx.c.
Referenced by bluegiga_receive(), gsm_send_report_continue(), handle_radio(), setRssi(), and setRssiDirect().
| rssiSource_e rssiSource |
Definition at line 100 of file cc2500_rx.c.
Referenced by cc2500SpiInit(), frSkySpiInit(), rxInit(), setRssi(), and setRssiDirect().
|
static |
Definition at line 109 of file cc2500_rx.c.
Referenced by rxInit().
| rxRuntimeConfig_t rxRuntimeConfig |
Definition at line 131 of file cc2500_rx.c.
Referenced by frSkySpiInit(), nullFrameStatus(), nullProcessFrame(), nullReadRawRC(), radio_control_cc2500_event(), rxInit(), rxSpiFrameStatus(), rxSpiInit(), rxSpiProcessFrame(), and rxSpiReadRawRC().