acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
SX1261.h (862B)
1 #if !defined(_RADIOLIB_SX1261_H) 2 #define _RADIOLIB_SX1261_H 3 4 #include "../../TypeDef.h" 5 6 #if !defined(RADIOLIB_EXCLUDE_SX126X) 7 8 #include "../../Module.h" 9 #include "SX126x.h" 10 #include "SX1262.h" 11 12 //RADIOLIB_SX126X_CMD_SET_PA_CONFIG 13 #define RADIOLIB_SX126X_PA_CONFIG_SX1261 0x01 14 15 /*! 16 \class SX1261 17 18 \brief Derived class for %SX1261 modules. 19 */ 20 class SX1261 : public SX1262 { 21 public: 22 /*! 23 \brief Default constructor. 24 25 \param mod Instance of Module that will be used to communicate with the radio. 26 */ 27 SX1261(Module* mod); 28 29 /*! 30 \brief Sets output power. Allowed values are in range from -17 to 14 dBm. 31 32 \param power Output power to be set in dBm. 33 34 \returns \ref status_codes 35 */ 36 int16_t setOutputPower(int8_t power); 37 38 #if !defined(RADIOLIB_GODMODE) 39 private: 40 #endif 41 42 }; 43 44 #endif 45 46 #endif