RadioLib
Universal wireless communication library for Arduino
Loading...
Searching...
No Matches
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
12// RADIOLIB_SX128X_REG_VERSION_STRING
13#define RADIOLIB_SX1280_CHIP_TYPE "SX1280"
14
19class SX1280: public SX1281 {
20 public:
25 SX1280(Module* mod); // cppcheck-suppress noExplicitConstructor
26
34 int16_t range(bool master, uint32_t addr, uint16_t calTable[3][6] = NULL);
35
43 int16_t startRanging(bool master, uint32_t addr, const uint16_t calTable[3][6] = NULL);
44
49 int16_t finishRanging();
50
55 float getRangingResult();
56
62 int32_t getRangingResultRaw();
63
64#if !RADIOLIB_GODMODE
65 private:
66#endif
67
68 int32_t getRangingResultCommon(bool filtered);
69};
70
71#endif
72
73#endif
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition Module.h:73
Derived class for SX1280 modules.
Definition SX1280.h:19
int16_t startRanging(bool master, uint32_t addr, const uint16_t calTable[3][6]=NULL)
Interrupt-driven ranging method.
Definition SX1280.cpp:28
int32_t getRangingResultRaw()
Gets ranging result of the last ranging exchange.
Definition SX1280.cpp:155
int16_t range(bool master, uint32_t addr, uint16_t calTable[3][6]=NULL)
Blocking ranging method.
Definition SX1280.cpp:9
float getRangingResult()
Gets ranging result of the last ranging exchange.
Definition SX1280.cpp:159
int16_t finishRanging()
Clean up after ranging is done. Will set modem back to LoRa mode.
Definition SX1280.cpp:135
Derived class for SX1281 modules.
Definition SX1281.h:18