19 lines
785 B
C++
19 lines
785 B
C++
// CUSTOM (TeTeHacko): from EasySkyMesh PowerSaving v18 (IoTThinks/MeshCore,
|
|
// MIT, https://github.com/IoTThinks/MeshCore/tree/PowerSaving-v18) -- RXPS, the
|
|
// SX126x/LR11x0 RX duty cycle. Compiled only with -D WITH_RX_POWERSAVING.
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "RXPowerSaving.h"
|
|
|
|
class RXPowerSavingCLI {
|
|
public:
|
|
static bool set(const char* value, uint8_t sf, float bw, RxPowerSavingConfig* config,
|
|
RxPowerSavingControl* control, char* reply, size_t reply_size);
|
|
// sf/bw are needed to turn the stored periods back into symbols, which is
|
|
// what the level scale is expressed in.
|
|
static void get(const RxPowerSavingConfig* config, const RxPowerSavingControl* control,
|
|
uint8_t sf, float bw, char* reply, size_t reply_size);
|
|
};
|