First board lands. wadamesh builds the LVGL touch firmware as its own project, consuming the MeshCore core via lib_deps @ git tag (ALLFATHER-BV/MeshCore #v1.16.0-wada.0) — no vendored core in this repo. Output is byte-identical to the in-tree meshcomod build (delta = embedded build-path strings only). Contents: companion_radio app (MyMesh/main/DataStore), ui-touch LVGL UI, variants/heltec_v4 board glue, boards/heltec_v4.json, lv_conf, the bundled ed25519 lib, AsyncElegantOTA, partition table, and a flattened platformio.ini for env heltec_v4_tft_companion_radio_usb_tcp_touch. MeshCore-derived files (app glue) remain MIT; ui-touch is GPL — see NOTICE. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Kaj Schittecat <kaj@schittecat.com>
30 lines
723 B
C++
30 lines
723 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
GC1109_PA,
|
|
KCT8103L_PA,
|
|
OTHER_FEM_TYPES
|
|
} LoRaFEMType;
|
|
|
|
class LoRaFEMControl
|
|
{
|
|
public:
|
|
LoRaFEMControl(){ }
|
|
virtual ~LoRaFEMControl(){ }
|
|
void init(void);
|
|
void setSleepModeEnable(void);
|
|
void setTxModeEnable(void);
|
|
void setRxModeEnable(void);
|
|
void setRxModeEnableWhenMCUSleep(void);
|
|
void setLNAEnable(bool enabled);
|
|
bool isLnaCanControl(void) { return lna_can_control; }
|
|
void setLnaCanControl(bool can_control) { lna_can_control = can_control; }
|
|
LoRaFEMType getFEMType(void) const { return fem_type; }
|
|
private:
|
|
LoRaFEMType fem_type=OTHER_FEM_TYPES;
|
|
bool lna_enabled=false;
|
|
bool lna_can_control=false;
|
|
};
|
|
|