mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 05:57:40 +00:00
Added HamItUp option (#840)
* Added HamItUp option to allow quick offset of the tuned frequency * New HamItUp icon for top bar * HamItUp checkbox status and frequency persistent settings in Settings/Radio
This commit is contained in:
@@ -288,6 +288,10 @@ struct data_t {
|
||||
// Recon App
|
||||
uint64_t recon_config;
|
||||
|
||||
// HamItUp (+125MHz offset by default, configurable)
|
||||
bool hamitup;
|
||||
int64_t hamitup_freq;
|
||||
|
||||
constexpr data_t() :
|
||||
structure_version(data_structure_version_enum::VERSION_CURRENT),
|
||||
tuned_frequency(tuned_frequency_reset_value),
|
||||
@@ -315,7 +319,9 @@ struct data_t {
|
||||
tone_mix(tone_mix_reset_value),
|
||||
|
||||
hardware_config(0),
|
||||
recon_config(0)
|
||||
recon_config(0),
|
||||
hamitup(0),
|
||||
hamitup_freq(125000000)
|
||||
{
|
||||
}
|
||||
};
|
||||
@@ -733,6 +739,17 @@ void set_recon_load_hamradios(const bool v ){
|
||||
void set_recon_match_mode(const bool v ) {
|
||||
data->recon_config = (data->recon_config & ~0x00800000UL) | (v << 23);
|
||||
}
|
||||
|
||||
bool config_hamitup() {
|
||||
return data->hamitup;
|
||||
}
|
||||
void set_config_hamitup(const bool v ){
|
||||
data-> hamitup = v ;
|
||||
}
|
||||
int64_t config_hamitup_freq() {
|
||||
return data->hamitup_freq ;
|
||||
}
|
||||
void set_config_hamitup_freq(const int64_t v ){
|
||||
data-> hamitup_freq = v ;
|
||||
}
|
||||
} /* namespace persistent_memory */
|
||||
} /* namespace portapack */
|
||||
|
@@ -151,6 +151,8 @@ uint8_t config_cpld();
|
||||
void set_config_cpld(uint8_t i);
|
||||
|
||||
bool config_splash();
|
||||
bool config_hamitup();
|
||||
int64_t config_hamitup_freq();
|
||||
bool show_gui_return_icon();
|
||||
bool load_app_settings();
|
||||
bool save_app_settings();
|
||||
@@ -167,6 +169,8 @@ void set_load_app_settings(bool v);
|
||||
void set_save_app_settings(bool v);
|
||||
void set_show_bigger_qr_code(bool v);
|
||||
void set_config_splash(bool v);
|
||||
void set_config_hamitup(bool v);
|
||||
void set_config_hamitup_freq(const int64_t v );
|
||||
void set_clock_hidden(bool v);
|
||||
void set_clock_with_date(bool v);
|
||||
void set_config_login(bool v);
|
||||
|
Reference in New Issue
Block a user