Stash radio settings per app (#1151)

* add a little Stash utility.
* add radio state RAII helper.
* first part of radio_state changes
* add radio_state_ to rest of apps
* fix freq_step and format
* fix unused ui_sigfrx: corrected sample rate, added back freq setting
This commit is contained in:
Kyle Reed
2023-06-14 00:57:20 -07:00
committed by GitHub
parent 19491ce3f7
commit 6298388fe1
89 changed files with 283 additions and 130 deletions

View File

@@ -24,6 +24,7 @@
#include "ui.hpp"
#include "ui_transmitter.hpp"
#include "transmitter_model.hpp"
#include "radio_state.hpp"
// The coding in notpike's script is quite complex, using multiple LUTs to form the data sent to the YSO.
// The format is actually very simple if it is rather seen as short and long gaps between pulses (as seen in many OOK remotes).
@@ -113,6 +114,11 @@ class TouchTunesView : public View {
std::string title() const override { return "TouchTunes"; };
private:
TxRadioState radio_state_{
3500000 /* bandwidth */,
3072000 /* sampling rate */
};
uint32_t scan_button_index{};
uint32_t pin{0};