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 !RADIOLIB_EXCLUDE_SX128X
7 
8 #include "../../Module.h"
9 #include "SX128x.h"
10 #include "SX1281.h"
11 
16 class SX1280: public SX1281 {
17  public:
22  SX1280(Module* mod);
23 
31  int16_t range(bool master, uint32_t addr, uint16_t calTable[3][6] = NULL);
32 
40  int16_t startRanging(bool master, uint32_t addr, uint16_t calTable[3][6] = NULL);
41 
46  float getRangingResult();
47 
48 #if !RADIOLIB_GODMODE
49  private:
50 #endif
51 
52 };
53 
54 #endif
55 
56 #endif
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:68
Derived class for SX1280 modules.
Definition: SX1280.h:16
SX1280(Module *mod)
Default constructor.
Definition: SX1280.cpp:5
int16_t range(bool master, uint32_t addr, uint16_t calTable[3][6]=NULL)
Blocking ranging method.
Definition: SX1280.cpp:9
int16_t startRanging(bool master, uint32_t addr, uint16_t calTable[3][6]=NULL)
Interrupt-driven ranging method.
Definition: SX1280.cpp:36
float getRangingResult()
Gets ranging result of the last ranging exchange.
Definition: SX1280.cpp:143
Derived class for SX1281 modules.
Definition: SX1281.h:15