[SX126x] Make setPaConfig public (#852)

pull/860/head
jgromes 2023-10-20 19:37:44 +02:00
rodzic eabc752703
commit f1f3336e59
2 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -222,6 +222,7 @@ spectralScanStart KEYWORD2
spectralScanAbort KEYWORD2
spectralScanGetStatus KEYWORD2
spectralScanGetResult KEYWORD2
setPaConfig KEYWORD2
# nRF24
setIrqAction KEYWORD2

Wyświetl plik

@ -1070,6 +1070,19 @@ class SX126x: public PhysicalLayer {
*/
int16_t spectralScanGetResult(uint16_t* results);
/*!
\brief Set the PA configuration. Allows user to optimize PA for a specific output power
and matching network. Any calls to this method must be done after calling begin/beginFSK and/or setOutputPower.
WARNING: Use at your own risk! Setting invalid values can and will lead to permanent damage!
\param paDutyCycle PA duty cycle raw value.
\param deviceSel Device select, usually RADIOLIB_SX126X_PA_CONFIG_SX1261,
RADIOLIB_SX126X_PA_CONFIG_SX1262 or RADIOLIB_SX126X_PA_CONFIG_SX1268.
\param hpMax hpMax raw value.
\param paLut paLut PA lookup table raw value.
\returns \ref status_codes
*/
int16_t setPaConfig(uint8_t paDutyCycle, uint8_t deviceSel, uint8_t hpMax = RADIOLIB_SX126X_PA_CONFIG_HP_MAX, uint8_t paLut = RADIOLIB_SX126X_PA_CONFIG_PA_LUT);
#if !defined(RADIOLIB_GODMODE)
protected:
#endif