mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 22:58:04 +03:00
Renamed lots more
This commit is contained in:
54
radio.h
54
radio.h
@ -40,16 +40,16 @@ enum {
|
||||
BANDWIDTH_NARROW
|
||||
};
|
||||
|
||||
enum PTT_ID_t {
|
||||
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_t PTT_ID_t;
|
||||
typedef enum ptt_id_e ptt_id_t;
|
||||
|
||||
enum VfoState_t
|
||||
enum vfo_state_e
|
||||
{
|
||||
VFO_STATE_NORMAL = 0,
|
||||
VFO_STATE_BUSY,
|
||||
@ -59,7 +59,7 @@ enum VfoState_t
|
||||
VFO_STATE_ALARM,
|
||||
VFO_STATE_VOLTAGE_HIGH
|
||||
};
|
||||
typedef enum VfoState_t VfoState_t;
|
||||
typedef enum vfo_state_e vfo_state_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -67,14 +67,14 @@ typedef struct
|
||||
dcs_code_type_t code_type;
|
||||
uint8_t code;
|
||||
uint8_t padding[2];
|
||||
} FREQ_Config_t;
|
||||
} freq_config_t;
|
||||
|
||||
typedef struct VFO_Info_t
|
||||
typedef struct vfo_info_t
|
||||
{
|
||||
FREQ_Config_t freq_config_rx;
|
||||
FREQ_Config_t freq_config_tx;
|
||||
FREQ_Config_t *pRX;
|
||||
FREQ_Config_t *pTX;
|
||||
freq_config_t freq_config_rx;
|
||||
freq_config_t freq_config_tx;
|
||||
freq_config_t *pRX;
|
||||
freq_config_t *pTX;
|
||||
|
||||
uint32_t tx_offset_freq;
|
||||
uint16_t step_freq;
|
||||
@ -83,10 +83,10 @@ typedef struct VFO_Info_t
|
||||
|
||||
uint8_t tx_offset_freq_dir;
|
||||
|
||||
uint8_t squelch_open_RSSI_thresh;
|
||||
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_rssi_thresh;
|
||||
uint8_t squelch_close_noise_thresh;
|
||||
uint8_t squelch_open_glitch_thresh;
|
||||
|
||||
@ -103,8 +103,8 @@ typedef struct VFO_Info_t
|
||||
|
||||
uint8_t band;
|
||||
|
||||
uint8_t DTMF_decoding_enable;
|
||||
PTT_ID_t DTMF_ptt_id_tx_mode;
|
||||
uint8_t dtmf_decoding_enable;
|
||||
ptt_id_t dtmf_ptt_id_tx_mode;
|
||||
|
||||
uint8_t busy_channel_lock;
|
||||
|
||||
@ -113,26 +113,26 @@ typedef struct VFO_Info_t
|
||||
uint8_t compander;
|
||||
|
||||
char name[16];
|
||||
} VFO_Info_t;
|
||||
} vfo_info_t;
|
||||
|
||||
extern VFO_Info_t *gTxVfo;
|
||||
extern VFO_Info_t *gRxVfo;
|
||||
extern VFO_Info_t *gCurrentVfo;
|
||||
extern vfo_info_t *g_tx_vfo;
|
||||
extern vfo_info_t *g_rx_vfo;
|
||||
extern vfo_info_t *g_current_vfo;
|
||||
|
||||
extern dcs_code_type_t gSelectedcode_type;
|
||||
extern dcs_code_type_t gCurrentcode_type;
|
||||
extern uint8_t gSelectedCode;
|
||||
extern dcs_code_type_t g_selected_code_type;
|
||||
extern dcs_code_type_t g_current_code_type;
|
||||
extern uint8_t g_selected_code;
|
||||
|
||||
extern step_setting_t gStepSetting;
|
||||
extern step_setting_t g_step_setting;
|
||||
|
||||
extern VfoState_t VfoState[2];
|
||||
extern vfo_state_t g_vfo_state[2];
|
||||
|
||||
bool RADIO_CheckValidChannel(uint16_t ChNum, bool bCheckScanList, uint8_t RadioNum);
|
||||
uint8_t RADIO_FindNextChannel(uint8_t ChNum, int8_t Direction, bool bCheckScanList, uint8_t RadioNum);
|
||||
void RADIO_InitInfo(VFO_Info_t *pInfo, const uint8_t ChannelSave, const uint32_t Frequency);
|
||||
void RADIO_InitInfo(vfo_info_t *pInfo, const uint8_t ChannelSave, const uint32_t Frequency);
|
||||
void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure);
|
||||
void RADIO_ConfigureSquelchAndOutputPower(VFO_Info_t *pInfo);
|
||||
void RADIO_ApplyOffset(VFO_Info_t *pInfo);
|
||||
void RADIO_ConfigureSquelchAndOutputPower(vfo_info_t *pInfo);
|
||||
void RADIO_ApplyOffset(vfo_info_t *pInfo);
|
||||
void RADIO_SelectVfos(void);
|
||||
void RADIO_SetupRegisters(bool bSwitchToFunction0);
|
||||
#ifdef ENABLE_NOAA
|
||||
@ -140,7 +140,7 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0);
|
||||
#endif
|
||||
void RADIO_SetTxParameters(void);
|
||||
|
||||
void RADIO_SetVfoState(VfoState_t State);
|
||||
void RADIO_Setg_vfo_state(vfo_state_t State);
|
||||
void RADIO_PrepareTX(void);
|
||||
void RADIO_EnableCxCSS(void);
|
||||
void RADIO_PrepareCssTX(void);
|
||||
|
Reference in New Issue
Block a user