mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 22:58:04 +03:00
fix missing display details
This commit is contained in:
105
radio.h
105
radio.h
@ -20,111 +20,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "misc.h"
|
||||
#include "dcs.h"
|
||||
#include "frequencies.h"
|
||||
|
||||
/*
|
||||
enum {
|
||||
RADIO_CHANNEL_UP = 0x01u,
|
||||
RADIO_CHANNEL_DOWN = 0xFFu,
|
||||
};
|
||||
*/
|
||||
enum {
|
||||
BANDWIDTH_WIDE = 0,
|
||||
BANDWIDTH_NARROW
|
||||
};
|
||||
|
||||
enum ptt_id_e {
|
||||
PTT_ID_OFF = 0, // OFF
|
||||
PTT_ID_TX_UP, // BEGIN OF TX
|
||||
PTT_ID_TX_DOWN, // END OF TX
|
||||
PTT_ID_BOTH, // BOTH
|
||||
PTT_ID_APOLLO // Apolo quindar tones
|
||||
};
|
||||
typedef enum ptt_id_e ptt_id_t;
|
||||
|
||||
enum mdc1200_mode_e {
|
||||
MDC1200_MODE_OFF = 0, // OFF
|
||||
MDC1200_MODE_BOT, // BEGIN OF TX
|
||||
MDC1200_MODE_EOT, // END OF TX
|
||||
MDC1200_MODE_BOTH // BOTH
|
||||
};
|
||||
typedef enum mdc1200_mode_e mdc1200_mode_t;
|
||||
|
||||
enum vfo_state_e
|
||||
{
|
||||
VFO_STATE_NORMAL = 0,
|
||||
VFO_STATE_BUSY,
|
||||
VFO_STATE_BAT_LOW,
|
||||
VFO_STATE_TX_DISABLE,
|
||||
VFO_STATE_TIMEOUT,
|
||||
VFO_STATE_ALARM,
|
||||
VFO_STATE_VOLTAGE_HIGH
|
||||
};
|
||||
typedef enum vfo_state_e vfo_state_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t frequency;
|
||||
dcs_code_type_t code_type;
|
||||
uint8_t code;
|
||||
uint8_t padding[2];
|
||||
} freq_config_t;
|
||||
|
||||
typedef struct vfo_info_t
|
||||
{
|
||||
freq_config_t freq_config_rx;
|
||||
freq_config_t freq_config_tx;
|
||||
freq_config_t *p_rx;
|
||||
freq_config_t *p_tx;
|
||||
|
||||
uint32_t tx_offset_freq;
|
||||
uint16_t step_freq;
|
||||
|
||||
uint8_t channel_save;
|
||||
|
||||
uint8_t tx_offset_freq_dir;
|
||||
|
||||
uint8_t squelch_level; // per channel squelch level
|
||||
|
||||
uint8_t squelch_open_rssi_thresh;
|
||||
uint8_t squelch_open_noise_thresh;
|
||||
uint8_t squelch_close_glitch_thresh;
|
||||
uint8_t squelch_close_rssi_thresh;
|
||||
uint8_t squelch_close_noise_thresh;
|
||||
uint8_t squelch_open_glitch_thresh;
|
||||
|
||||
step_setting_t step_setting;
|
||||
uint8_t output_power;
|
||||
uint8_t txp_calculated_setting;
|
||||
bool frequency_reverse;
|
||||
|
||||
uint8_t scrambling_type;
|
||||
uint8_t channel_bandwidth;
|
||||
|
||||
uint8_t scanlist_1_participation;
|
||||
uint8_t scanlist_2_participation;
|
||||
|
||||
uint8_t band;
|
||||
|
||||
uint8_t dtmf_decoding_enable;
|
||||
ptt_id_t dtmf_ptt_id_tx_mode;
|
||||
|
||||
#ifdef ENABLE_MDC1200
|
||||
mdc1200_mode_t mdc1200_mode;
|
||||
#endif
|
||||
|
||||
uint8_t busy_channel_lock;
|
||||
|
||||
uint8_t am_mode;
|
||||
|
||||
uint8_t compand;
|
||||
|
||||
uint8_t freq_in_channel; // channel number if the VFO's frequency is found stored in a channel
|
||||
|
||||
char name[16];
|
||||
} vfo_info_t;
|
||||
#include "settings.h"
|
||||
|
||||
extern vfo_info_t g_vfo_info[2];
|
||||
|
||||
|
Reference in New Issue
Block a user