RadioLib
Universal wireless communication library for Arduino
SX1280.h
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 
17 class SX1280: public SX1281 {
18  public:
24  SX1280(Module* mod);
25 
35  int16_t range(bool master, uint32_t addr);
36 
46  int16_t startRanging(bool master, uint32_t addr);
47 
53  float getRangingResult();
54 
55 #ifndef RADIOLIB_GODMODE
56  private:
57 #endif
58 
59 };
60 
61 #endif
62 
63 #endif
Derived class for SX1280 modules.
Definition: SX1280.h:17
int16_t range(bool master, uint32_t addr)
Blocking ranging method.
Definition: SX1280.cpp:8
int16_t startRanging(bool master, uint32_t addr)
Interrupt-driven ranging method.
Definition: SX1280.cpp:34
Derived class for SX1281 modules.
Definition: SX1281.h:16
Implements all common low-level SPI/UART/I2C methods to control the wireless module. Every module class contains one private instance of this class.
Definition: Module.h:17
float getRangingResult()
Gets ranging result of the last ranging exchange.
Definition: SX1280.cpp:104
SX1280(Module *mod)
Default constructor.
Definition: SX1280.cpp:4