dRonin
adbada4
dRonin firmware
|
Files | |
file | tbs_smartaudio.h |
This module configures the video transmitter. | |
file | tbs_smartaudio.c |
This module configures the video transmitter. | |
file | VTXConfig.c |
This module configures the video transmitter. | |
Data Structures | |
struct | __attribute__ |
Macros | |
#define | NUM_TBS_CH 40 |
#define | STACK_SIZE_BYTES 560 |
#define | TASK_PRIORITY PIOS_THREAD_PRIO_LOW |
#define | MAX_FAILS 5 |
#define | TBS_MIN_BAUD 4600 |
#define | TBS_MAX_BAUD 5100 |
Enumerations | |
enum | TBS_VTX_PROTOCOL { UNKNOWN, TBS_SMARTAUDIO_1, TBS_SMARTAUDIO_2 } |
enum | VTXTYPE { VTX_NONE, VTX_TBS_SMARTAUDIO } |
enum | STATE { DISCONNECTED, CONNECTED } |
Functions | |
int32_t | tbsvtx_get_state (uintptr_t usart_id, VTXInfoData *info) |
int32_t | tbsvtx_set_freq (uintptr_t usart_id, uint16_t frequency) |
int32_t | tbsvtx_set_power (uintptr_t usart_id, uint16_t power) |
static int32_t | tbsvtx_tx_msg (uintptr_t usart_id, uint8_t *buff, uint8_t n_bytes) |
int32_t | tbsvtx_rx_msg (uintptr_t usart_id, uint8_t n_bytes, uint8_t *buff, uint16_t timeout) |
static int32_t | tbsvtx_set_mode (uintptr_t usart_id, uint8_t mode) |
static void | vtxConfigTask (void *parameters) |
int32_t | VTXConfigStart (void) |
int32_t | VTXConfigInitialize (void) |
MODULE_INITCALL (VTXConfigInitialize, VTXConfigStart) | |
Variables | |
const uint16_t | TBS_CH [NUM_TBS_CH] |
uint8_t | __attribute__::command |
uint8_t | __attribute__::length |
uint8_t | __attribute__::channel |
uint8_t | __attribute__::pwr_level |
uint8_t | __attribute__::operation_mode |
uint8_t | __attribute__::freq0 |
uint8_t | __attribute__::freq1 |
uint8_t | __attribute__::crc |
uint8_t | __attribute__::dummy |
uint8_t | __attribute__::pwr |
uint8_t | __attribute__::mode |
static enum TBS_VTX_PROTOCOL | vtx_protocol = UNKNOWN |
static const uint16_t | BAND_5G8_A_FREQS [VTXSETTINGS_BAND_5G8_A_FREQUENCY_MAXOPTVAL+1] |
static const uint16_t | BAND_5G8_B_FREQS [VTXSETTINGS_BAND_5G8_B_FREQUENCY_MAXOPTVAL+1] |
static const uint16_t | BAND_5G8_E_FREQS [VTXSETTINGS_BAND_5G8_E_FREQUENCY_MAXOPTVAL+1] |
static const uint16_t | AIRWAVE_FREQS [VTXSETTINGS_AIRWAVE_FREQUENCY_MAXOPTVAL+1] |
static const uint16_t | RACEBAND_FREQS [VTXSETTINGS_RACEBAND_FREQUENCY_MAXOPTVAL+1] |
static const uint16_t | VTX_POWER [VTXSETTINGS_POWER_GLOBAL_MAXOPTVAL+1] |
static uint32_t | vtxConfigPort |
static bool | module_enabled = false |
static volatile bool | settings_updated = false |
static struct pios_thread * | vtxConfigTaskHandle |
static enum VTXTYPE | vtx_type = VTX_NONE |
#define MAX_FAILS 5 |
Definition at line 66 of file VTXConfig.c.
#define NUM_TBS_CH 40 |
Definition at line 41 of file tbs_smartaudio.c.
#define STACK_SIZE_BYTES 560 |
Definition at line 63 of file VTXConfig.c.
#define TASK_PRIORITY PIOS_THREAD_PRIO_LOW |
Definition at line 64 of file VTXConfig.c.
#define TBS_MAX_BAUD 5100 |
Definition at line 68 of file VTXConfig.c.
#define TBS_MIN_BAUD 4600 |
Definition at line 67 of file VTXConfig.c.
enum STATE |
Enumerator | |
---|---|
DISCONNECTED | |
CONNECTED |
Definition at line 56 of file VTXConfig.c.
enum TBS_VTX_PROTOCOL |
Enumerator | |
---|---|
UNKNOWN | |
TBS_SMARTAUDIO_1 | |
TBS_SMARTAUDIO_2 |
Definition at line 51 of file tbs_smartaudio.c.
enum VTXTYPE |
Enumerator | |
---|---|
VTX_NONE | |
VTX_TBS_SMARTAUDIO |
Definition at line 51 of file VTXConfig.c.
MODULE_INITCALL | ( | VTXConfigInitialize | , |
VTXConfigStart | |||
) |
int32_t tbsvtx_get_state | ( | uintptr_t | usart_id, |
VTXInfoData * | info | ||
) |
Definition at line 158 of file tbs_smartaudio.c.
int32_t tbsvtx_rx_msg | ( | uintptr_t | usart_id, |
uint8_t | n_bytes, | ||
uint8_t * | buff, | ||
uint16_t | timeout | ||
) |
Definition at line 113 of file tbs_smartaudio.c.
int32_t tbsvtx_set_freq | ( | uintptr_t | usart_id, |
uint16_t | frequency | ||
) |
Definition at line 244 of file tbs_smartaudio.c.
|
static |
Definition at line 276 of file tbs_smartaudio.c.
int32_t tbsvtx_set_power | ( | uintptr_t | usart_id, |
uint16_t | power | ||
) |
Definition at line 295 of file tbs_smartaudio.c.
|
static |
Definition at line 97 of file tbs_smartaudio.c.
int32_t VTXConfigInitialize | ( | void | ) |
Initialise the VTXConfig module
Definition at line 174 of file VTXConfig.c.
int32_t VTXConfigStart | ( | void | ) |
Initialise the VTXConfig module
Definition at line 156 of file VTXConfig.c.
|
static |
Main VTXConfig Task
Definition at line 207 of file VTXConfig.c.
|
static |
Definition at line 105 of file VTXConfig.c.
|
static |
Definition at line 72 of file VTXConfig.c.
|
static |
Definition at line 83 of file VTXConfig.c.
|
static |
Definition at line 94 of file VTXConfig.c.
uint8_t __attribute__::channel |
Definition at line 61 of file tbs_smartaudio.c.
uint8_t __attribute__::command |
Definition at line 59 of file tbs_smartaudio.c.
uint8_t __attribute__::crc |
Definition at line 66 of file tbs_smartaudio.c.
uint8_t __attribute__::dummy |
Definition at line 73 of file tbs_smartaudio.c.
uint8_t __attribute__::freq0 |
Definition at line 64 of file tbs_smartaudio.c.
uint8_t __attribute__::freq1 |
Definition at line 65 of file tbs_smartaudio.c.
uint8_t __attribute__::length |
Definition at line 60 of file tbs_smartaudio.c.
uint8_t __attribute__::mode |
Definition at line 89 of file tbs_smartaudio.c.
|
static |
Definition at line 138 of file VTXConfig.c.
uint8_t __attribute__::operation_mode |
Definition at line 63 of file tbs_smartaudio.c.
uint8_t __attribute__::pwr |
Definition at line 81 of file tbs_smartaudio.c.
uint8_t __attribute__::pwr_level |
Definition at line 62 of file tbs_smartaudio.c.
|
static |
Definition at line 116 of file VTXConfig.c.
|
static |
Definition at line 139 of file VTXConfig.c.
const uint16_t TBS_CH[NUM_TBS_CH] |
Definition at line 43 of file tbs_smartaudio.c.
|
static |
Definition at line 127 of file VTXConfig.c.
|
static |
Definition at line 94 of file tbs_smartaudio.c.
Definition at line 142 of file VTXConfig.c.
|
static |
Definition at line 137 of file VTXConfig.c.
|
static |
Definition at line 140 of file VTXConfig.c.