* T096, and Station G3: refactoring the 'FEM' prefs to variant-specific code
* CommonCLI: 'FEM' commands removed * introduced static no-op attachDynamicPrefs() for all boards
This commit is contained in:
1 parent
ae61e1a61c
commit
8c73c948b4
21 files changed
+243
-101
No files matched your search
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#include "ConfigSerializer.h"
|
||||
#include "KeyValueStore.h"
|
||||
|
||||
class CommonRadioPrefs : public ConfigSerializer {
|
||||
class CommonRadioPrefs : public ConfigSerializer, public KeyValueStore{
|
||||
bool _is_dirty = false;
|
||||
protected:
|
||||
CommonRadioPrefs() { }
|
||||
@@ -54,5 +56,14 @@ public:
|
||||
virtual float getDirectTxDelay() const = 0;
|
||||
virtual void setDirectTxDelay(float d) = 0;
|
||||
|
||||
virtual uint8_t getFEMRxGain() const = 0;
|
||||
virtual void setFEMRxGain(uint8_t g) = 0;
|
||||
|
||||
virtual uint8_t getFEMTxGain() const = 0;
|
||||
virtual void setFEMTxGain(uint8_t g) = 0;
|
||||
|
||||
bool handleCommand(const char* command, uint32_t sender_timestamp, char* reply);
|
||||
|
||||
void setByKey(const char* key, const char* value) override; // for dynamic key/value access
|
||||
void getByKey(const char* key, char* value, size_t max_len) override;
|
||||
};
|
||||
Reference in new issue
Block a user