RadioLib
Universal wireless communication library for Arduino
SX1231.h
1
#if !defined(_RADIOLIB_SX1231_H)
2
#define _RADIOLIB_SX1231_H
3
4
#include "../../TypeDef.h"
5
6
#if !defined(RADIOLIB_EXCLUDE_SX1231)
7
8
#include "../../Module.h"
9
#include "../RF69/RF69.h"
10
11
#define SX1231_CHIP_REVISION_2_A 0x21
12
#define SX1231_CHIP_REVISION_2_B 0x22
13
#define SX1231_CHIP_REVISION_2_C 0x23
14
15
//SX1231 specific register map
16
#define SX1231_REG_TEST_OOK 0x6E
17
18
//SX1231_REG_TEST_OOK
19
#define SX1231_OOK_DELTA_THRESHOLD 0x0C
20
26
class
SX1231
:
public
RF69
{
27
public
:
33
SX1231
(
Module
* mod);
34
52
int16_t
begin
(
float
freq = 434.0,
float
br = 48.0,
float
rxBw = 125.0,
float
freqDev = 50.0, int8_t power = 10, uint8_t preambleLen = 16);
53
54
#if !defined(RADIOLIB_GODMODE)
55
private
:
56
#endif
57
uint8_t _chipRevision = 0;
58
};
59
60
#endif
61
62
#endif
SX1231::SX1231
SX1231(Module *mod)
Default constructor.
Definition:
SX1231.cpp:4
SX1231
Control class for SX1231 module. Overrides some methods from RF69 due to different register values.
Definition:
SX1231.h:26
RF69
Control class for RF69 module. Also serves as base class for SX1231.
Definition:
RF69.h:440
SX1231::begin
int16_t begin(float freq=434.0, float br=48.0, float rxBw=125.0, float freqDev=50.0, int8_t power=10, uint8_t preambleLen=16)
Initialization method.
Definition:
SX1231.cpp:8
Module
Implements all common low-level SPI/UART/I2C methods to control the wireless module....
Definition:
Module.h:17
src
modules
SX1231
SX1231.h
Generated by
1.8.17