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 |
SX1280.h (1249B)
1 #if !defined(_RADIOLIB_SX1280_H) 2 #define _RADIOLIB_SX1280_H 3 4 #include "../../TypeDef.h" 5 6 #if !defined(RADIOLIB_EXCLUDE_SX128X) 7 8 #include "../../Module.h" 9 #include "SX128x.h" 10 #include "SX1281.h" 11 12 /*! 13 \class SX1280 14 15 \brief Derived class for %SX1280 modules. 16 */ 17 class SX1280: public SX1281 { 18 public: 19 /*! 20 \brief Default constructor. 21 22 \param mod Instance of Module that will be used to communicate with the radio. 23 */ 24 SX1280(Module* mod); 25 26 /*! 27 \brief Blocking ranging method. 28 29 \param master Whether to execute ranging in master mode (true) or slave mode (false). 30 31 \param addr Ranging address to be used. 32 33 \returns \ref status_codes 34 */ 35 int16_t range(bool master, uint32_t addr); 36 37 /*! 38 \brief Interrupt-driven ranging method. 39 40 \param master Whether to execute ranging in master mode (true) or slave mode (false). 41 42 \param addr Ranging address to be used. 43 44 \returns \ref status_codes 45 */ 46 int16_t startRanging(bool master, uint32_t addr); 47 48 /*! 49 \brief Gets ranging result of the last ranging exchange. 50 51 \returns Ranging result in meters. 52 */ 53 float getRangingResult(); 54 55 #if !defined(RADIOLIB_GODMODE) 56 private: 57 #endif 58 59 }; 60 61 #endif 62 63 #endif