1 #if !defined(_RADIOLIB_SX1231_H)
2 #define _RADIOLIB_SX1231_H
4 #include "../../TypeDef.h"
6 #if !RADIOLIB_EXCLUDE_SX1231
8 #include "../../Module.h"
9 #include "../RF69/RF69.h"
11 #define RADIOLIB_SX1231_CHIP_REVISION_2_A 0x21
12 #define RADIOLIB_SX1231_CHIP_REVISION_2_B 0x22
13 #define RADIOLIB_SX1231_CHIP_REVISION_2_C 0x23
16 #define RADIOLIB_SX1231_REG_TEST_OOK 0x6E
19 #define RADIOLIB_SX1231_OOK_DELTA_THRESHOLD 0x0C
22 #define RADIOLIB_SX1231_DIO0_CONT_LOW_BAT 0b10000000
23 #define RADIOLIB_SX1231_DIO0_CONT_MODE_READY 0b11000000
24 #define RADIOLIB_SX1231_DIO0_CONT_PLL_LOCK 0b00000000
25 #define RADIOLIB_SX1231_DIO0_CONT_SYNC_ADDRESS 0b00000000
26 #define RADIOLIB_SX1231_DIO0_CONT_TIMEOUT 0b01000000
27 #define RADIOLIB_SX1231_DIO0_CONT_RSSI 0b10000000
28 #define RADIOLIB_SX1231_DIO0_CONT_MODE_READY 0b11000000
29 #define RADIOLIB_SX1231_DIO0_CONT_TX_READY 0b01000000
30 #define RADIOLIB_SX1231_DIO0_PACK_LOW_BAT 0b10000000
31 #define RADIOLIB_SX1231_DIO0_PACK_PLL_LOCK 0b11000000
32 #define RADIOLIB_SX1231_DIO0_PACK_CRC_OK 0b00000000
33 #define RADIOLIB_SX1231_DIO0_PACK_PAYLOAD_READY 0b01000000
34 #define RADIOLIB_SX1231_DIO0_PACK_SYNC_ADDRESS 0b10000000
35 #define RADIOLIB_SX1231_DIO0_PACK_RSSI 0b11000000
36 #define RADIOLIB_SX1231_DIO0_PACK_PACKET_SENT 0b00000000
37 #define RADIOLIB_SX1231_DIO0_PACK_TX_READY 0b01000000
38 #define RADIOLIB_SX1231_DIO1_CONT_LOW_BAT 0b00100000
39 #define RADIOLIB_SX1231_DIO1_CONT_PLL_LOCK 0b00110000
40 #define RADIOLIB_SX1231_DIO1_CONT_DCLK 0b00000000
41 #define RADIOLIB_SX1231_DIO1_CONT_RX_READY 0b00010000
42 #define RADIOLIB_SX1231_DIO1_CONT_SYNC_ADDRESS 0b00110000
43 #define RADIOLIB_SX1231_DIO1_CONT_TX_READY 0b00010000
44 #define RADIOLIB_SX1231_DIO1_PACK_FIFO_LEVEL 0b00000000
45 #define RADIOLIB_SX1231_DIO1_PACK_FIFO_FULL 0b00010000
46 #define RADIOLIB_SX1231_DIO1_PACK_FIFO_NOT_EMPTY 0b00100000
47 #define RADIOLIB_SX1231_DIO1_PACK_PLL_LOCK 0b00110000
48 #define RADIOLIB_SX1231_DIO1_PACK_TIMEOUT 0b00110000
49 #define RADIOLIB_SX1231_DIO2_CONT_DATA 0b00000000
50 #define RADIOLIB_SX1231_DIO2_PACK_FIFO_NOT_EMPTY 0b00000000
51 #define RADIOLIB_SX1231_DIO2_PACK_LOW_BAT 0b00001000
52 #define RADIOLIB_SX1231_DIO2_PACK_AUTO_MODE 0b00001100
53 #define RADIOLIB_SX1231_DIO2_PACK_DATA 0b00000100
54 #define RADIOLIB_SX1231_DIO3_CONT_AUTO_MODE 0b00000010
55 #define RADIOLIB_SX1231_DIO3_CONT_RSSI 0b00000000
56 #define RADIOLIB_SX1231_DIO3_CONT_RX_READY 0b00000001
57 #define RADIOLIB_SX1231_DIO3_CONT_TIMEOUT 0b00000011
58 #define RADIOLIB_SX1231_DIO3_CONT_TX_READY 0b00000001
59 #define RADIOLIB_SX1231_DIO3_PACK_FIFO_FULL 0b00000000
60 #define RADIOLIB_SX1231_DIO3_PACK_LOW_BAT 0b00000010
61 #define RADIOLIB_SX1231_DIO3_PACK_PLL_LOCK 0b00000011
62 #define RADIOLIB_SX1231_DIO3_PACK_RSSI 0b00000001
63 #define RADIOLIB_SX1231_DIO3_PACK_SYNC_ADDRESSS 0b00000010
64 #define RADIOLIB_SX1231_DIO3_PACK_TX_READY 0b00000001
67 #define RADIOLIB_SX1231_DIO4_CONT_LOW_BAT 0b10000000
68 #define RADIOLIB_SX1231_DIO4_CONT_PLL_LOCK 0b11000000
69 #define RADIOLIB_SX1231_DIO4_CONT_TIMEOUT 0b00000000
70 #define RADIOLIB_SX1231_DIO4_CONT_RX_READY 0b01000000
71 #define RADIOLIB_SX1231_DIO4_CONT_SYNC_ADDRESS 0b10000000
72 #define RADIOLIB_SX1231_DIO4_CONT_TX_READY 0b01000000
73 #define RADIOLIB_SX1231_DIO4_PACK_LOW_BAT 0b10000000
74 #define RADIOLIB_SX1231_DIO4_PACK_PLL_LOCK 0b11000000
75 #define RADIOLIB_SX1231_DIO4_PACK_TIMEOUT 0b00000000
76 #define RADIOLIB_SX1231_DIO4_PACK_RSSI 0b01000000
77 #define RADIOLIB_SX1231_DIO4_PACK_RX_READY 0b10000000
78 #define RADIOLIB_SX1231_DIO4_PACK_MODE_READY 0b00000000
79 #define RADIOLIB_SX1231_DIO4_PACK_TX_READY 0b01000000
80 #define RADIOLIB_SX1231_DIO5_CONT_LOW_BAT 0b00100000
81 #define RADIOLIB_SX1231_DIO5_CONT_MODE_READY 0b00110000
82 #define RADIOLIB_SX1231_DIO5_CONT_CLK_OUT 0b00000000
83 #define RADIOLIB_SX1231_DIO5_CONT_RSSI 0b00010000
84 #define RADIOLIB_SX1231_DIO5_PACK_LOW_BAT 0b00100000
85 #define RADIOLIB_SX1231_DIO5_PACK_MODE_READY 0b00110000
86 #define RADIOLIB_SX1231_DIO5_PACK_CLK_OUT 0b00000000
87 #define RADIOLIB_SX1231_DIO5_PACK_DATA 0b00010000
111 int16_t
begin(
float freq = 434.0,
float br = 4.8,
float freqDev = 5.0,
float rxBw = 125.0, int8_t power = 10, uint8_t preambleLen = 16);
113 #if !RADIOLIB_GODMODE
116 uint8_t chipRevision = 0;
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:31
Control class for RF69 module. Also serves as base class for SX1231.
Definition: RF69.h:479
Control class for SX1231 module. Overrides some methods from RF69 due to different register values.
Definition: SX1231.h:93
int16_t begin(float freq=434.0, float br=4.8, float freqDev=5.0, float rxBw=125.0, int8_t power=10, uint8_t preambleLen=16)
Initialization method.
Definition: SX1231.cpp:8
SX1231(Module *mod)
Default constructor.
Definition: SX1231.cpp:4