SingingCat 0
application
sx126x_regs.h
Go to the documentation of this file.
1
32#ifndef SX126X_REGS_H
33#define SX126X_REGS_H
34
35/*
36 * -----------------------------------------------------------------------------
37 * --- DEPENDENCIES ------------------------------------------------------------
38 */
39
40/*
41 * -----------------------------------------------------------------------------
42 * --- PUBLIC MACROS -----------------------------------------------------------
43 */
44
45/*
46 * -----------------------------------------------------------------------------
47 * --- PUBLIC CONSTANTS --------------------------------------------------------
48 */
49
53#define SX126X_REG_CRCSEEDBASEADDRESS 0x06BC
54
58#define SX126X_REG_CRCPOLYBASEADDRESS 0x06BE
59
63#define SX126X_REG_WHITSEEDBASEADDRESS 0x06B8
64
68#define SX126X_REG_PKTPARAMS 0x0704
69
73#define SX126X_REG_SYNCWORDBASEADDRESS 0x06C0
74
80#define SX126X_REG_LR_SYNCWORD 0x0740
81
85#define SX126X_REG_RNGBASEADDRESS 0x0819
86
90#define SX126X_REG_ANA_LNA 0x08E2
91
95#define SX126X_REG_ANA_MIXER 0x08E5
96
102#define SX126X_REG_RXGAIN 0x08AC
103
107#define SX126X_REG_XTATRIM 0x0911
108
112#define SX126X_REG_OCP 0x08E7
113
117#define SX126X_REG_IRQ_POLARITY 0x0736
118
122#define SX126X_REG_TX_MODULATION 0x0889
123
127#define SX126X_REG_TX_CLAMP_CFG 0x08D8
128#define SX126X_REG_TX_CLAMP_CFG_POS (1U)
129#define SX126X_REG_TX_CLAMP_CFG_MASK (0x0FUL << SX126X_REG_TX_CLAMP_CFG_POS)
130
134#define SX126X_REG_RTC_CTRL 0x0902
135
139#define SX126X_REG_EVT_CLR 0x0944
140#define SX126X_REG_EVT_CLR_TIMEOUT_POS (1U)
141#define SX126X_REG_EVT_CLR_TIMEOUT_MASK (0x01UL << SX126X_REG_EVT_CLR_TIMEOUT_POS)
142
146#define SX126X_REG_RX_ADDRESS_POINTER 0x0803
147
151#define SX126X_REG_RXTX_PAYLOAD_LEN 0x06BB
152
156#define SX126X_REG_OUT_DIS_REG 0x0580
157#define SX126X_REG_OUT_DIS_REG_DIO3_POS (3U)
158#define SX126X_REG_OUT_DIS_REG_DIO3_MASK (0x01UL << SX126X_REG_OUT_DIS_REG_DIO3_POS)
159
163#define SX126X_REG_IN_EN_REG 0x0583
164#define SX126X_REG_IN_EN_REG_DIO3_POS (3U)
165#define SX126X_REG_IN_EN_REG_DIO3_MASK (0x01UL << SX126X_REG_IN_EN_REG_DIO3_POS)
166
170#define SX126X_REG_BITBANG_A_REG 0x0680
171#define SX126X_REG_BITBANG_A_REG_ENABLE_POS (4U)
172#define SX126X_REG_BITBANG_A_REG_ENABLE_MASK (0x07UL << SX126X_REG_BITBANG_A_REG_ENABLE_POS)
173#define SX126X_REG_BITBANG_A_REG_ENABLE_VAL (0x01UL << SX126X_REG_BITBANG_A_REG_ENABLE_POS)
174
178#define SX126X_REG_BITBANG_B_REG 0x0587
179#define SX126X_REG_BITBANG_B_REG_ENABLE_POS (0U)
180#define SX126X_REG_BITBANG_B_REG_ENABLE_MASK (0x0FUL << SX126X_REG_BITBANG_B_REG_ENABLE_POS)
181#define SX126X_REG_BITBANG_B_REG_ENABLE_VAL (0x0CUL << SX126X_REG_BITBANG_B_REG_ENABLE_POS)
182
186#define SX126X_REG_LR_SYNCH_TIMEOUT 0x0706
187
188/*
189 * -----------------------------------------------------------------------------
190 * --- PUBLIC TYPES ------------------------------------------------------------
191 */
192
193/*
194 * -----------------------------------------------------------------------------
195 * --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
196 */
197
198#endif // SX126X_REGS_H
199
200/* --- EOF ------------------------------------------------------------------ */