mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 14:21:25 +03:00
added 1750Hz tone burst ptt-id menu option
This commit is contained in:
parent
c9ee299b8f
commit
21584a8d1e
@ -453,6 +453,7 @@ bool DTMF_Reply(void)
|
|||||||
g_dtmf_call_state != DTMF_CALL_STATE_NONE ||
|
g_dtmf_call_state != DTMF_CALL_STATE_NONE ||
|
||||||
#endif
|
#endif
|
||||||
g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_APOLLO ||
|
g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_APOLLO ||
|
||||||
|
g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_1750 ||
|
||||||
g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_OFF ||
|
g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_OFF ||
|
||||||
g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_EOT)
|
g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_EOT)
|
||||||
{
|
{
|
||||||
|
@ -808,9 +808,10 @@ void MENU_AcceptSetting(void)
|
|||||||
|
|
||||||
case MENU_PTT_ID:
|
case MENU_PTT_ID:
|
||||||
g_tx_vfo->channel.dtmf_ptt_id_tx_mode = g_sub_menu_selection;
|
g_tx_vfo->channel.dtmf_ptt_id_tx_mode = g_sub_menu_selection;
|
||||||
if (g_tx_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_EOT ||
|
if (g_tx_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_EOT ||
|
||||||
g_tx_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_BOTH ||
|
g_tx_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_BOTH ||
|
||||||
g_tx_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_APOLLO)
|
g_tx_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_APOLLO ||
|
||||||
|
g_tx_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_1750)
|
||||||
{
|
{
|
||||||
g_eeprom.config.setting.roger_mode = ROGER_MODE_OFF;
|
g_eeprom.config.setting.roger_mode = ROGER_MODE_OFF;
|
||||||
break;
|
break;
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -295,6 +295,13 @@ void FUNCTION_Select(function_type_t Function)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
if (g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_1750)
|
||||||
|
{
|
||||||
|
BK4819_start_tone(1750, 28, true, false);
|
||||||
|
SYSTEM_DelayMs(TONE_1750_MS);
|
||||||
|
BK4819_stop_tones(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
if (g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_APOLLO)
|
if (g_current_vfo->channel.dtmf_ptt_id_tx_mode == PTT_ID_APOLLO)
|
||||||
{
|
{
|
||||||
BK4819_start_tone(APOLLO_TONE1_HZ, 28, true, false);
|
BK4819_start_tone(APOLLO_TONE1_HZ, 28, true, false);
|
||||||
|
2
misc.h
2
misc.h
@ -57,6 +57,8 @@
|
|||||||
#define APOLLO_TONE1_HZ 2525
|
#define APOLLO_TONE1_HZ 2525
|
||||||
#define APOLLO_TONE2_HZ 2475
|
#define APOLLO_TONE2_HZ 2475
|
||||||
|
|
||||||
|
#define TONE_1750_MS 500
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
USER_CHANNEL_FIRST = 0,
|
USER_CHANNEL_FIRST = 0,
|
||||||
USER_CHANNEL_LAST = 199u,
|
USER_CHANNEL_LAST = 199u,
|
||||||
|
@ -160,7 +160,8 @@ enum ptt_id_e {
|
|||||||
PTT_ID_BOT, // BEGIN OF TX
|
PTT_ID_BOT, // BEGIN OF TX
|
||||||
PTT_ID_EOT, // END OF TX
|
PTT_ID_EOT, // END OF TX
|
||||||
PTT_ID_BOTH, // BOTH
|
PTT_ID_BOTH, // BOTH
|
||||||
PTT_ID_APOLLO // Apolo quindar tones
|
PTT_ID_APOLLO, // Apolo quindar tones
|
||||||
|
PTT_ID_1750, // 1750Hz tone burst
|
||||||
};
|
};
|
||||||
typedef enum ptt_id_e ptt_id_t;
|
typedef enum ptt_id_e ptt_id_t;
|
||||||
|
|
||||||
|
@ -312,13 +312,14 @@ const char g_sub_menu_mem_disp[4][12] =
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char g_sub_menu_ptt_id[5][16] =
|
const char g_sub_menu_ptt_id[6][18] =
|
||||||
{
|
{
|
||||||
"DTMF ID\nOFF",
|
"DTMF ID\nOFF",
|
||||||
"DTMF ID\nBOT",
|
"DTMF ID\nBOT",
|
||||||
"DTMF ID\nEOT",
|
"DTMF ID\nEOT",
|
||||||
"DTMF ID\nBOT+EOT",
|
"DTMF ID\nBOT+EOT",
|
||||||
"APOLLO\nQUINDAR"
|
"APOLLO\nQUINDAR",
|
||||||
|
"TONE BURST\n1750Hz"
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef ENABLE_MDC1200
|
#ifdef ENABLE_MDC1200
|
||||||
|
@ -207,7 +207,7 @@ extern const char g_sub_menu_mem_disp[4][12];
|
|||||||
#ifdef ENABLE_DTMF_CALLING
|
#ifdef ENABLE_DTMF_CALLING
|
||||||
extern const char g_sub_menu_dtmf_rsp[4][9];
|
extern const char g_sub_menu_dtmf_rsp[4][9];
|
||||||
#endif
|
#endif
|
||||||
extern const char g_sub_menu_ptt_id[5][16];
|
extern const char g_sub_menu_ptt_id[6][18];
|
||||||
#ifdef ENABLE_MDC1200
|
#ifdef ENABLE_MDC1200
|
||||||
extern const char g_sub_menu_mdc1200_mode[4][5];
|
extern const char g_sub_menu_mdc1200_mode[4][5];
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user