mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-22 08:54:24 +00:00
Skip redundant modulation writes during owned fast RX retunes when the last acknowledged SF/BW/CR/LDRO tuple matches. Invalidate that cache after ordinary setters, failed writes, and lifecycle changes. Include the remaining scan, preamble, settling, and memory-soak experiments, their collectors, validation notes, and original capture records. Preserve capture bytes across checkouts and keep private soak credentials local. Run lab collector and compiled contract tests in CI. Update the expectation, profile mapping, and result-buffer tests for the extended lab tools, and make the private WiFi override header optional for ordinary soak diagnostics. Validation: 145 host tests passed from the staged source snapshot. Clean heltec_v4_repeater and Xiao_S3_WIO_companion_radio_usb builds passed their RAM/flash gates. All 229 staged capture files retain their original bytes; all 75 local documentation links resolve in the clean snapshot.
24 lines
900 B
C++
24 lines
900 B
C++
#pragma once
|
|
#include "LoRaFEMControl.h"
|
|
|
|
// HIL-only RF front-end adapter. The chip's requested TX power is not a
|
|
// calibrated antenna-port power, especially on a KCT8103L amplified path.
|
|
class ProfileHeltecV4 {
|
|
public:
|
|
LoRaFEMControl fem;
|
|
void begin() { fem.init(); fem.setRxModeEnable(); }
|
|
void beforeTransmit() {
|
|
if (fem.getFEMType() == GC1109_PA) {
|
|
// CSD=1, CPS=0; SX1262 DIO2 supplies CTX=1 during TX: PA bypass.
|
|
// GC1109 datasheet Rev0.9.2, table 4. Keep the low-power experiment
|
|
// from silently enabling the V4's external TX amplifier.
|
|
fem.setRxModeEnable();
|
|
} else {
|
|
fem.setTxModeEnable();
|
|
}
|
|
}
|
|
void afterTransmit() { fem.setRxModeEnable(); }
|
|
const char* type() const { return fem.getFEMType() == GC1109_PA ? "GC1109" : "KCT8103L"; }
|
|
const char* txMode() const { return fem.getFEMType() == GC1109_PA ? "bypass" : "amplified"; }
|
|
};
|