# RadioLib: src/modules/SX126x/SX1261.h Source File

SX1261.h
#if !defined(_RADIOLIB_SX1261_H)
#define _RADIOLIB_SX1261_H
#include "../../TypeDef.h"
#if !RADIOLIB_EXCLUDE_SX126X
#include "../../Module.h"
#include "SX126x.h"
#include "SX1262.h"
//RADIOLIB_SX126X_CMD_SET_PA_CONFIG
#define RADIOLIB_SX126X_PA_CONFIG_SX1261 0x01
//RADIOLIB_SX126X_REG_VERSION_STRING
#define RADIOLIB_SX1261_CHIP_TYPE "SX1261"
class SX1261 : public SX1262 {
public:
SX1261(Module* mod); // cppcheck-suppress noExplicitConstructor
int16_t setOutputPower(int8_t power) override;
int16_t checkOutputPower(int8_t power, int8_t* clipped) override;
#if !RADIOLIB_GODMODE
private:
#endif
};
#endif
#endif
Module
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:68
SX1261
Derived class for SX1261 modules.
Definition: SX1261.h:22
SX1261::setOutputPower
int16_t setOutputPower(int8_t power) override
Sets output power. Allowed values are in range from -17 to 14 dBm.
Definition: SX1261.cpp:8
SX1261::SX1261
SX1261(Module *mod)
Default constructor.
Definition: SX1261.cpp:4
SX1261::checkOutputPower
int16_t checkOutputPower(int8_t power, int8_t *clipped) override
Check if output power is configurable.
Definition: SX1261.cpp:30
SX1262
Derived class for SX1262 modules.
Definition: SX1262.h:22