custom-uv-k5-firmware/settings.h
2023-08-11 11:51:17 +01:00

112 lines
2.9 KiB
C

/* Copyright 2023 Dual Tachyon
* https://github.com/DualTachyon
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef SETTINGS_H
#define SETTINGS_H
#include <stdbool.h>
#include <stdint.h>
#include "radio.h"
typedef struct {
uint8_t EEPROM_0E80_0E83[2];
uint8_t EEPROM_0E82_0E85[2];
uint8_t EEPROM_0E81_0E84[2];
uint8_t EEPROM_0E86;
uint8_t EEPROM_0E87;
uint8_t RX_CHANNEL;
uint8_t TX_CHANNEL;
uint8_t field7_0xa;
uint8_t field8_0xb;
uint32_t POWER_ON_PASSWORD;
uint8_t SQUELCH_LEVEL;
uint8_t TX_TIMEOUT_TIMER;
bool KEY_LOCK;
bool VOX_SWITCH;
uint8_t VOX_LEVEL;
uint8_t KEYPAD_TONE;
bool BEEP_CONTROL;
uint8_t CHANNEL_DISPLAY_MODE;
bool TAIL_NOTE_ELIMINATION;
bool VFO_OPEN;
uint8_t DUAL_WATCH;
uint8_t CROSS_BAND_RX_TX;
uint8_t BATTERY_SAVE;
uint8_t BACKLIGHT;
uint8_t SCAN_RESUME_MODE;
uint8_t SCAN_LIST_DEFAULT;
bool SCAN_LIST_ENABLED[2];
uint8_t SCANLIST_PRIORITY_CH1[2];
uint8_t SCANLIST_PRIORITY_CH2[2];
uint8_t field29_0x26;
uint8_t field30_0x27;
uint16_t VOX1_THRESHOLD;
uint16_t VOX0_THRESHOLD;
uint16_t FM_CurrentFrequency;
uint8_t FM_CurrentChannel;
bool FM_IsChannelSelected;
uint16_t FM_FrequencyToPlay;
uint8_t field37_0x32;
uint8_t field38_0x33;
uint16_t FM_LowerLimit;
uint16_t FM_UpperLimit;
bool AUTO_KEYPAD_LOCK;
uint8_t ALARM_MODE;
uint8_t POWER_ON_DISPLAY_MODE;
uint8_t ROGER;
uint8_t REPEATER_TAIL_TONE_ELIMINATION;
uint8_t KEY_1_SHORT_PRESS_ACTION;
uint8_t KEY_1_LONG_PRESS_ACTION;
uint8_t KEY_2_SHORT_PRESS_ACTION;
uint8_t KEY_2_LONG_PRESS_ACTION;
uint8_t MIC_SENSITIVITY;
uint8_t MIC_SENSITIVITY_TUNING;
uint8_t CHAN_1_CALL;
uint8_t ANI_DTMF_ID[8];
uint8_t KILL_CODE[8];
uint8_t REVIVE_CODE[8];
uint8_t DTMF_UP_CODE[16];
uint8_t field57_0x6c;
uint8_t field58_0x6d;
char DTMF_DOWN_CODE[16];
uint8_t field60_0x7e;
uint8_t field61_0x7f;
char DTMF_SEPARATE_CODE;
char DTMF_GROUP_CALL_CODE;
uint8_t DTMF_DECODE_RESPONSE;
uint8_t DTMF_AUTO_RESET_TIME;
uint16_t DTMF_PRELOAD_TIME;
uint16_t DTMF_FIRST_CODE_PERSIST_TIME;
uint16_t DTMF_HASH_CODE_PERSIST_TIME;
uint16_t DTMF_CODE_PERSIST_TIME;
uint16_t DTMF_CODE_INTERVAL_TIME;
bool DTMF_SIDE_TONE;
bool PERMIT_REMOTE_KILL;
uint16_t BK4819_XTAL_FREQ_LOW;
bool NOAA_AUTO_SCAN;
uint8_t EEPROM_1F8E;
uint8_t EEPROM_1F8F;
uint8_t field77_0x95;
uint8_t field78_0x96;
uint8_t field79_0x97;
RADIO_Info_t RadioInfo[2];
} EEPROM_Config_t;
extern EEPROM_Config_t gEeprom;
#endif