Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
cc2500_settings.h File Reference
#include "cc2500_compat.h"
#include <stdint.h>
+ Include dependency graph for cc2500_settings.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cc2500_settings_persistent_s
 
struct  rxConfig_s
 
struct  rxSpiConfig_s
 
struct  rxCc2500SpiConfig_s
 
struct  telemetryConfig_s
 

Macros

#define writeEEPROM()   bf_writeEEPROM()
 
#define FRAME_ERR_RESAMPLE_US   100000
 
#define GET_FRAME_ERR_LPF_FREQUENCY(period)   (1 / (period / 10.0f))
 
#define SENSOR_NONE   0
 

Typedefs

typedef struct rxConfig_s rxConfig_t
 
typedef struct rxSpiConfig_s rxSpiConfig_t
 
typedef struct rxCc2500SpiConfig_s rxCc2500SpiConfig_t
 
typedef struct telemetryConfig_s telemetryConfig_t
 

Enumerations

enum  frSkySpiA1Source_e { FRSKY_SPI_A1_SOURCE_VBAT = 0, FRSKY_SPI_A1_SOURCE_EXTADC, FRSKY_SPI_A1_SOURCE_CONST }
 
enum  sensor_e {
  SENSOR_VOLTAGE = 1 << 0, SENSOR_CURRENT = 1 << 1, SENSOR_FUEL = 1 << 2, SENSOR_MODE = 1 << 3,
  SENSOR_ACC_X = 1 << 4, SENSOR_ACC_Y = 1 << 5, SENSOR_ACC_Z = 1 << 6, SENSOR_PITCH = 1 << 7,
  SENSOR_ROLL = 1 << 8, SENSOR_HEADING = 1 << 9, SENSOR_ALTITUDE = 1 << 10, SENSOR_VARIO = 1 << 11,
  SENSOR_LAT_LONG = 1 << 12, SENSOR_GROUND_SPEED = 1 << 13, SENSOR_DISTANCE = 1 << 14, ESC_SENSOR_CURRENT = 1 << 15,
  ESC_SENSOR_VOLTAGE = 1 << 16, ESC_SENSOR_RPM = 1 << 17, ESC_SENSOR_TEMPERATURE = 1 << 18, ESC_SENSOR_ALL,
  SENSOR_TEMPERATURE = 1 << 19, SENSOR_ALL = (1 << 20) - 1
}
 

Functions

void cc2500_settings_init (void)
 
void bf_writeEEPROM (void)
 
const rxConfig_trxConfig (void)
 
const rxSpiConfig_trxSpiConfig (void)
 
const rxCc2500SpiConfig_trxCc2500SpiConfig (void)
 
rxCc2500SpiConfig_trxCc2500SpiConfigMutable (void)
 
const telemetryConfig_ttelemetryConfig (void)
 
bool telemetryIsSensorEnabled (sensor_e sensor)
 

Variables

struct cc2500_settings_persistent_s cc2500_settings_persistent
 

Data Structure Documentation

◆ cc2500_settings_persistent_s

struct cc2500_settings_persistent_s

Definition at line 35 of file cc2500_settings.h.

Data Fields
uint32_t bindHopData[13]
uint32_t bindVars

◆ rxConfig_s

struct rxConfig_s

Definition at line 53 of file cc2500_settings.h.

Data Fields
uint8_t max_aux_channel
uint16_t midrc
uint8_t rssi_channel
uint8_t rssi_src_frame_lpf_period
uint8_t serialrx_provider

◆ rxSpiConfig_s

struct rxSpiConfig_s

Definition at line 96 of file cc2500_settings.h.

+ Collaboration diagram for rxSpiConfig_s:
Data Fields
ioTag_t bindIoTag
ioTag_t extiIoTag
uint8_t ledInversion
ioTag_t ledIoTag
uint8_t rx_spi_protocol

◆ rxCc2500SpiConfig_s

struct rxCc2500SpiConfig_s

Definition at line 124 of file cc2500_settings.h.

Data Fields
uint8_t a1Source
uint8_t autoBind
uint8_t bindHopData[50]
int8_t bindOffset
uint8_t bindTxId[2]
uint8_t chipDetectEnabled
uint8_t rxNum

◆ telemetryConfig_s

struct telemetryConfig_s

Definition at line 142 of file cc2500_settings.h.

Data Fields
uint8_t pidValuesAsTelemetry
uint8_t report_cell_voltage

Macro Definition Documentation

◆ FRAME_ERR_RESAMPLE_US

#define FRAME_ERR_RESAMPLE_US   100000

Definition at line 49 of file cc2500_settings.h.

◆ GET_FRAME_ERR_LPF_FREQUENCY

#define GET_FRAME_ERR_LPF_FREQUENCY (   period)    (1 / (period / 10.0f))

Definition at line 51 of file cc2500_settings.h.

◆ SENSOR_NONE

#define SENSOR_NONE   0

Definition at line 187 of file cc2500_settings.h.

◆ writeEEPROM

#define writeEEPROM ( )    bf_writeEEPROM()

Definition at line 45 of file cc2500_settings.h.

Typedef Documentation

◆ rxCc2500SpiConfig_t

◆ rxConfig_t

typedef struct rxConfig_s rxConfig_t

◆ rxSpiConfig_t

typedef struct rxSpiConfig_s rxSpiConfig_t

◆ telemetryConfig_t

Enumeration Type Documentation

◆ frSkySpiA1Source_e

Enumerator
FRSKY_SPI_A1_SOURCE_VBAT 
FRSKY_SPI_A1_SOURCE_EXTADC 
FRSKY_SPI_A1_SOURCE_CONST 

Definition at line 118 of file cc2500_settings.h.

◆ sensor_e

enum sensor_e
Enumerator
SENSOR_VOLTAGE 
SENSOR_CURRENT 
SENSOR_FUEL 
SENSOR_MODE 
SENSOR_ACC_X 
SENSOR_ACC_Y 
SENSOR_ACC_Z 
SENSOR_PITCH 
SENSOR_ROLL 
SENSOR_HEADING 
SENSOR_ALTITUDE 
SENSOR_VARIO 
SENSOR_LAT_LONG 
SENSOR_GROUND_SPEED 
SENSOR_DISTANCE 
ESC_SENSOR_CURRENT 
ESC_SENSOR_VOLTAGE 
ESC_SENSOR_RPM 
ESC_SENSOR_TEMPERATURE 
ESC_SENSOR_ALL 
SENSOR_TEMPERATURE 
SENSOR_ALL 

Definition at line 160 of file cc2500_settings.h.

Function Documentation

◆ bf_writeEEPROM()

void bf_writeEEPROM ( void  )

Definition at line 68 of file cc2500_settings.c.

References cc2500_persistent_write(), and settings_StoreSettings.

+ Here is the call graph for this function:

◆ cc2500_settings_init()

◆ rxCc2500SpiConfig()

const rxCc2500SpiConfig_t* rxCc2500SpiConfig ( void  )

Definition at line 94 of file cc2500_settings.c.

References cc2500spiconfig.

Referenced by buildTelemetryFrame(), cc2500SpiInit(), frSkySpiDataReceived(), getBind2(), initialiseData(), isValidPacket(), and nextChannel().

+ Here is the caller graph for this function:

◆ rxCc2500SpiConfigMutable()

rxCc2500SpiConfig_t* rxCc2500SpiConfigMutable ( void  )

Definition at line 97 of file cc2500_settings.c.

References cc2500spiconfig.

Referenced by getBind1(), getBind2(), and tuneRx().

+ Here is the caller graph for this function:

◆ rxConfig()

const rxConfig_t* rxConfig ( void  )

Definition at line 77 of file cc2500_settings.c.

References rxconfig.

Referenced by rxInit().

+ Here is the caller graph for this function:

◆ rxSpiConfig()

const rxSpiConfig_t* rxSpiConfig ( void  )

Definition at line 87 of file cc2500_settings.c.

References spiconfig.

Referenced by cc2500SpiInit(), frSkySpiInit(), rxInit(), rxSpiCommonIOInit(), and rxSpiInit().

+ Here is the caller graph for this function:

◆ telemetryConfig()

const telemetryConfig_t* telemetryConfig ( void  )

Definition at line 105 of file cc2500_settings.c.

References telemetryconfig.

Referenced by processSmartPortTelemetry().

+ Here is the caller graph for this function:

◆ telemetryIsSensorEnabled()

bool telemetryIsSensorEnabled ( sensor_e  sensor)

Definition at line 111 of file cc2500_settings.c.

References CC2500_TELEMETRY_SENSORS.

Referenced by initSmartPortSensors().

+ Here is the caller graph for this function:

Variable Documentation

◆ cc2500_settings_persistent

struct cc2500_settings_persistent_s cc2500_settings_persistent

Definition at line 117 of file cc2500_settings.c.

Referenced by cc2500_persistent_read(), and cc2500_persistent_write().