Mistake on this page?
Report an issue in GitHub or email us
sx1276Regs-LoRa.h
1 /**
2  / _____) _ | |
3 ( (____ _____ ____ _| |_ _____ ____| |__
4  \____ \| ___ | (_ _) ___ |/ ___) _ \
5  _____) ) ____| | | || |_| ____( (___| | | |
6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
7  (C) 2014 Semtech
8 
9 Description: SX1276 LoRa modem registers and bits definitions
10 
11 License: Revised BSD License, see LICENSE.TXT file include in the project
12 
13 Maintainer: Miguel Luis and Gregory Cristian
14 
15 Copyright (c) 2017, Arm Limited and affiliates.
16 
17 SPDX-License-Identifier: BSD-3-Clause
18 */
19 #ifndef __SX1276_REGS_LORA_H__
20 #define __SX1276_REGS_LORA_H__
21 
22 /*!
23  * ============================================================================
24  * SX1276 Internal registers Address
25  * ============================================================================
26  */
27 #define REG_LR_FIFO 0x00
28 // Common settings
29 #define REG_LR_OPMODE 0x01
30 #define REG_LR_FRFMSB 0x06
31 #define REG_LR_FRFMID 0x07
32 #define REG_LR_FRFLSB 0x08
33 // Tx settings
34 #define REG_LR_PACONFIG 0x09
35 #define REG_LR_PARAMP 0x0A
36 #define REG_LR_OCP 0x0B
37 // Rx settings
38 #define REG_LR_LNA 0x0C
39 // LoRa registers
40 #define REG_LR_FIFOADDRPTR 0x0D
41 #define REG_LR_FIFOTXBASEADDR 0x0E
42 #define REG_LR_FIFORXBASEADDR 0x0F
43 #define REG_LR_FIFORXCURRENTADDR 0x10
44 #define REG_LR_IRQFLAGSMASK 0x11
45 #define REG_LR_IRQFLAGS 0x12
46 #define REG_LR_RXNBBYTES 0x13
47 #define REG_LR_RXHEADERCNTVALUEMSB 0x14
48 #define REG_LR_RXHEADERCNTVALUELSB 0x15
49 #define REG_LR_RXPACKETCNTVALUEMSB 0x16
50 #define REG_LR_RXPACKETCNTVALUELSB 0x17
51 #define REG_LR_MODEMSTAT 0x18
52 #define REG_LR_PKTSNRVALUE 0x19
53 #define REG_LR_PKTRSSIVALUE 0x1A
54 #define REG_LR_RSSIVALUE 0x1B
55 #define REG_LR_HOPCHANNEL 0x1C
56 #define REG_LR_MODEMCONFIG1 0x1D
57 #define REG_LR_MODEMCONFIG2 0x1E
58 #define REG_LR_SYMBTIMEOUTLSB 0x1F
59 #define REG_LR_PREAMBLEMSB 0x20
60 #define REG_LR_PREAMBLELSB 0x21
61 #define REG_LR_PAYLOADLENGTH 0x22
62 #define REG_LR_PAYLOADMAXLENGTH 0x23
63 #define REG_LR_HOPPERIOD 0x24
64 #define REG_LR_FIFORXBYTEADDR 0x25
65 #define REG_LR_MODEMCONFIG3 0x26
66 #define REG_LR_FEIMSB 0x28
67 #define REG_LR_FEIMID 0x29
68 #define REG_LR_FEILSB 0x2A
69 #define REG_LR_RSSIWIDEBAND 0x2C
70 #define REG_LR_TEST2F 0x2F
71 #define REG_LR_TEST30 0x30
72 #define REG_LR_DETECTOPTIMIZE 0x31
73 #define REG_LR_INVERTIQ 0x33
74 #define REG_LR_TEST36 0x36
75 #define REG_LR_DETECTIONTHRESHOLD 0x37
76 #define REG_LR_SYNCWORD 0x39
77 #define REG_LR_TEST3A 0x3A
78 #define REG_LR_INVERTIQ2 0x3B
79 
80 // end of documented register in datasheet
81 // I/O settings
82 #define REG_LR_DIOMAPPING1 0x40
83 #define REG_LR_DIOMAPPING2 0x41
84 // Version
85 #define REG_LR_VERSION 0x42
86 // Additional settings
87 #define REG_LR_PLLHOP 0x44
88 #define REG_LR_TCXO 0x4B
89 #define REG_LR_PADAC 0x4D
90 #define REG_LR_FORMERTEMP 0x5B
91 #define REG_LR_BITRATEFRAC 0x5D
92 #define REG_LR_AGCREF 0x61
93 #define REG_LR_AGCTHRESH1 0x62
94 #define REG_LR_AGCTHRESH2 0x63
95 #define REG_LR_AGCTHRESH3 0x64
96 #define REG_LR_PLL 0x70
97 
98 /*!
99  * ============================================================================
100  * SX1276 LoRa bits control definition
101  * ============================================================================
102  */
103 
104 /*!
105  * RegFifo
106  */
107 
108 /*!
109  * RegOpMode
110  */
111 #define RFLR_OPMODE_LONGRANGEMODE_MASK 0x7F
112 #define RFLR_OPMODE_LONGRANGEMODE_OFF 0x00 // Default
113 #define RFLR_OPMODE_LONGRANGEMODE_ON 0x80
114 
115 #define RFLR_OPMODE_ACCESSSHAREDREG_MASK 0xBF
116 #define RFLR_OPMODE_ACCESSSHAREDREG_ENABLE 0x40
117 #define RFLR_OPMODE_ACCESSSHAREDREG_DISABLE 0x00 // Default
118 
119 #define RFLR_OPMODE_FREQMODE_ACCESS_MASK 0xF7
120 #define RFLR_OPMODE_FREQMODE_ACCESS_LF 0x08 // Default
121 #define RFLR_OPMODE_FREQMODE_ACCESS_HF 0x00
122 
123 #define RFLR_OPMODE_MASK 0xF8
124 #define RFLR_OPMODE_SLEEP 0x00
125 #define RFLR_OPMODE_STANDBY 0x01 // Default
126 #define RFLR_OPMODE_SYNTHESIZER_TX 0x02
127 #define RFLR_OPMODE_TRANSMITTER 0x03
128 #define RFLR_OPMODE_SYNTHESIZER_RX 0x04
129 #define RFLR_OPMODE_RECEIVER 0x05
130 // LoRa specific modes
131 #define RFLR_OPMODE_RECEIVER_SINGLE 0x06
132 #define RFLR_OPMODE_CAD 0x07
133 
134 /*!
135  * RegFrf (MHz)
136  */
137 #define RFLR_FRFMSB_434_MHZ 0x6C // Default
138 #define RFLR_FRFMID_434_MHZ 0x80 // Default
139 #define RFLR_FRFLSB_434_MHZ 0x00 // Default
140 
141 /*!
142  * RegPaConfig
143  */
144 #define RFLR_PACONFIG_PASELECT_MASK 0x7F
145 #define RFLR_PACONFIG_PASELECT_PABOOST 0x80
146 #define RFLR_PACONFIG_PASELECT_RFO 0x00 // Default
147 
148 #define RFLR_PACONFIG_MAX_POWER_MASK 0x8F
149 
150 #define RFLR_PACONFIG_OUTPUTPOWER_MASK 0xF0
151 
152 /*!
153  * RegPaRamp
154  */
155 #define RFLR_PARAMP_TXBANDFORCE_MASK 0xEF
156 #define RFLR_PARAMP_TXBANDFORCE_BAND_SEL 0x10
157 #define RFLR_PARAMP_TXBANDFORCE_AUTO 0x00 // Default
158 
159 #define RFLR_PARAMP_MASK 0xF0
160 #define RFLR_PARAMP_3400_US 0x00
161 #define RFLR_PARAMP_2000_US 0x01
162 #define RFLR_PARAMP_1000_US 0x02
163 #define RFLR_PARAMP_0500_US 0x03
164 #define RFLR_PARAMP_0250_US 0x04
165 #define RFLR_PARAMP_0125_US 0x05
166 #define RFLR_PARAMP_0100_US 0x06
167 #define RFLR_PARAMP_0062_US 0x07
168 #define RFLR_PARAMP_0050_US 0x08
169 #define RFLR_PARAMP_0040_US 0x09 // Default
170 #define RFLR_PARAMP_0031_US 0x0A
171 #define RFLR_PARAMP_0025_US 0x0B
172 #define RFLR_PARAMP_0020_US 0x0C
173 #define RFLR_PARAMP_0015_US 0x0D
174 #define RFLR_PARAMP_0012_US 0x0E
175 #define RFLR_PARAMP_0010_US 0x0F
176 
177 /*!
178  * RegOcp
179  */
180 #define RFLR_OCP_MASK 0xDF
181 #define RFLR_OCP_ON 0x20 // Default
182 #define RFLR_OCP_OFF 0x00
183 
184 #define RFLR_OCP_TRIM_MASK 0xE0
185 #define RFLR_OCP_TRIM_045_MA 0x00
186 #define RFLR_OCP_TRIM_050_MA 0x01
187 #define RFLR_OCP_TRIM_055_MA 0x02
188 #define RFLR_OCP_TRIM_060_MA 0x03
189 #define RFLR_OCP_TRIM_065_MA 0x04
190 #define RFLR_OCP_TRIM_070_MA 0x05
191 #define RFLR_OCP_TRIM_075_MA 0x06
192 #define RFLR_OCP_TRIM_080_MA 0x07
193 #define RFLR_OCP_TRIM_085_MA 0x08
194 #define RFLR_OCP_TRIM_090_MA 0x09
195 #define RFLR_OCP_TRIM_095_MA 0x0A
196 #define RFLR_OCP_TRIM_100_MA 0x0B // Default
197 #define RFLR_OCP_TRIM_105_MA 0x0C
198 #define RFLR_OCP_TRIM_110_MA 0x0D
199 #define RFLR_OCP_TRIM_115_MA 0x0E
200 #define RFLR_OCP_TRIM_120_MA 0x0F
201 #define RFLR_OCP_TRIM_130_MA 0x10
202 #define RFLR_OCP_TRIM_140_MA 0x11
203 #define RFLR_OCP_TRIM_150_MA 0x12
204 #define RFLR_OCP_TRIM_160_MA 0x13
205 #define RFLR_OCP_TRIM_170_MA 0x14
206 #define RFLR_OCP_TRIM_180_MA 0x15
207 #define RFLR_OCP_TRIM_190_MA 0x16
208 #define RFLR_OCP_TRIM_200_MA 0x17
209 #define RFLR_OCP_TRIM_210_MA 0x18
210 #define RFLR_OCP_TRIM_220_MA 0x19
211 #define RFLR_OCP_TRIM_230_MA 0x1A
212 #define RFLR_OCP_TRIM_240_MA 0x1B
213 
214 /*!
215  * RegLna
216  */
217 #define RFLR_LNA_GAIN_MASK 0x1F
218 #define RFLR_LNA_GAIN_G1 0x20 // Default
219 #define RFLR_LNA_GAIN_G2 0x40
220 #define RFLR_LNA_GAIN_G3 0x60
221 #define RFLR_LNA_GAIN_G4 0x80
222 #define RFLR_LNA_GAIN_G5 0xA0
223 #define RFLR_LNA_GAIN_G6 0xC0
224 
225 #define RFLR_LNA_BOOST_LF_MASK 0xE7
226 #define RFLR_LNA_BOOST_LF_DEFAULT 0x00 // Default
227 
228 #define RFLR_LNA_BOOST_HF_MASK 0xFC
229 #define RFLR_LNA_BOOST_HF_OFF 0x00 // Default
230 #define RFLR_LNA_BOOST_HF_ON 0x03
231 
232 /*!
233  * RegFifoAddrPtr
234  */
235 #define RFLR_FIFOADDRPTR 0x00 // Default
236 
237 /*!
238  * RegFifoTxBaseAddr
239  */
240 #define RFLR_FIFOTXBASEADDR 0x80 // Default
241 
242 /*!
243  * RegFifoTxBaseAddr
244  */
245 #define RFLR_FIFORXBASEADDR 0x00 // Default
246 
247 /*!
248  * RegFifoRxCurrentAddr (Read Only)
249  */
250 
251 /*!
252  * RegIrqFlagsMask
253  */
254 #define RFLR_IRQFLAGS_RXTIMEOUT_MASK 0x80
255 #define RFLR_IRQFLAGS_RXDONE_MASK 0x40
256 #define RFLR_IRQFLAGS_PAYLOADCRCERROR_MASK 0x20
257 #define RFLR_IRQFLAGS_VALIDHEADER_MASK 0x10
258 #define RFLR_IRQFLAGS_TXDONE_MASK 0x08
259 #define RFLR_IRQFLAGS_CADDONE_MASK 0x04
260 #define RFLR_IRQFLAGS_FHSSCHANGEDCHANNEL_MASK 0x02
261 #define RFLR_IRQFLAGS_CADDETECTED_MASK 0x01
262 
263 /*!
264  * RegIrqFlags
265  */
266 #define RFLR_IRQFLAGS_RXTIMEOUT 0x80
267 #define RFLR_IRQFLAGS_RXDONE 0x40
268 #define RFLR_IRQFLAGS_PAYLOADCRCERROR 0x20
269 #define RFLR_IRQFLAGS_VALIDHEADER 0x10
270 #define RFLR_IRQFLAGS_TXDONE 0x08
271 #define RFLR_IRQFLAGS_CADDONE 0x04
272 #define RFLR_IRQFLAGS_FHSSCHANGEDCHANNEL 0x02
273 #define RFLR_IRQFLAGS_CADDETECTED 0x01
274 
275 /*!
276  * RegFifoRxNbBytes (Read Only)
277  */
278 
279 /*!
280  * RegRxHeaderCntValueMsb (Read Only)
281  */
282 
283 /*!
284  * RegRxHeaderCntValueLsb (Read Only)
285  */
286 
287 /*!
288  * RegRxPacketCntValueMsb (Read Only)
289  */
290 
291 /*!
292  * RegRxPacketCntValueLsb (Read Only)
293  */
294 
295 /*!
296  * RegModemStat (Read Only)
297  */
298 #define RFLR_MODEMSTAT_RX_CR_MASK 0x1F
299 #define RFLR_MODEMSTAT_MODEM_STATUS_MASK 0xE0
300 
301 /*!
302  * RegPktSnrValue (Read Only)
303  */
304 
305 /*!
306  * RegPktRssiValue (Read Only)
307  */
308 
309 /*!
310  * RegRssiValue (Read Only)
311  */
312 
313 /*!
314  * RegHopChannel (Read Only)
315  */
316 #define RFLR_HOPCHANNEL_PLL_LOCK_TIMEOUT_MASK 0x7F
317 #define RFLR_HOPCHANNEL_PLL_LOCK_FAIL 0x80
318 #define RFLR_HOPCHANNEL_PLL_LOCK_SUCCEED 0x00 // Default
319 
320 #define RFLR_HOPCHANNEL_CRCONPAYLOAD_MASK 0xBF
321 #define RFLR_HOPCHANNEL_CRCONPAYLOAD_ON 0x40
322 #define RFLR_HOPCHANNEL_CRCONPAYLOAD_OFF 0x00 // Default
323 
324 #define RFLR_HOPCHANNEL_CHANNEL_MASK 0x3F
325 
326 /*!
327  * RegModemConfig1
328  */
329 #define RFLR_MODEMCONFIG1_BW_MASK 0x0F
330 #define RFLR_MODEMCONFIG1_BW_7_81_KHZ 0x00
331 #define RFLR_MODEMCONFIG1_BW_10_41_KHZ 0x10
332 #define RFLR_MODEMCONFIG1_BW_15_62_KHZ 0x20
333 #define RFLR_MODEMCONFIG1_BW_20_83_KHZ 0x30
334 #define RFLR_MODEMCONFIG1_BW_31_25_KHZ 0x40
335 #define RFLR_MODEMCONFIG1_BW_41_66_KHZ 0x50
336 #define RFLR_MODEMCONFIG1_BW_62_50_KHZ 0x60
337 #define RFLR_MODEMCONFIG1_BW_125_KHZ 0x70 // Default
338 #define RFLR_MODEMCONFIG1_BW_250_KHZ 0x80
339 #define RFLR_MODEMCONFIG1_BW_500_KHZ 0x90
340 
341 #define RFLR_MODEMCONFIG1_CODINGRATE_MASK 0xF1
342 #define RFLR_MODEMCONFIG1_CODINGRATE_4_5 0x02
343 #define RFLR_MODEMCONFIG1_CODINGRATE_4_6 0x04 // Default
344 #define RFLR_MODEMCONFIG1_CODINGRATE_4_7 0x06
345 #define RFLR_MODEMCONFIG1_CODINGRATE_4_8 0x08
346 
347 #define RFLR_MODEMCONFIG1_IMPLICITHEADER_MASK 0xFE
348 #define RFLR_MODEMCONFIG1_IMPLICITHEADER_ON 0x01
349 #define RFLR_MODEMCONFIG1_IMPLICITHEADER_OFF 0x00 // Default
350 
351 /*!
352  * RegModemConfig2
353  */
354 #define RFLR_MODEMCONFIG2_SF_MASK 0x0F
355 #define RFLR_MODEMCONFIG2_SF_6 0x60
356 #define RFLR_MODEMCONFIG2_SF_7 0x70 // Default
357 #define RFLR_MODEMCONFIG2_SF_8 0x80
358 #define RFLR_MODEMCONFIG2_SF_9 0x90
359 #define RFLR_MODEMCONFIG2_SF_10 0xA0
360 #define RFLR_MODEMCONFIG2_SF_11 0xB0
361 #define RFLR_MODEMCONFIG2_SF_12 0xC0
362 
363 #define RFLR_MODEMCONFIG2_TXCONTINUOUSMODE_MASK 0xF7
364 #define RFLR_MODEMCONFIG2_TXCONTINUOUSMODE_ON 0x08
365 #define RFLR_MODEMCONFIG2_TXCONTINUOUSMODE_OFF 0x00
366 
367 #define RFLR_MODEMCONFIG2_RXPAYLOADCRC_MASK 0xFB
368 #define RFLR_MODEMCONFIG2_RXPAYLOADCRC_ON 0x04
369 #define RFLR_MODEMCONFIG2_RXPAYLOADCRC_OFF 0x00 // Default
370 
371 #define RFLR_MODEMCONFIG2_SYMBTIMEOUTMSB_MASK 0xFC
372 #define RFLR_MODEMCONFIG2_SYMBTIMEOUTMSB 0x00 // Default
373 
374 /*!
375  * RegSymbTimeoutLsb
376  */
377 #define RFLR_SYMBTIMEOUTLSB_SYMBTIMEOUT 0x64 // Default
378 
379 /*!
380  * RegPreambleLengthMsb
381  */
382 #define RFLR_PREAMBLELENGTHMSB 0x00 // Default
383 
384 /*!
385  * RegPreambleLengthLsb
386  */
387 #define RFLR_PREAMBLELENGTHLSB 0x08 // Default
388 
389 /*!
390  * RegPayloadLength
391  */
392 #define RFLR_PAYLOADLENGTH 0x0E // Default
393 
394 /*!
395  * RegPayloadMaxLength
396  */
397 #define RFLR_PAYLOADMAXLENGTH 0xFF // Default
398 
399 /*!
400  * RegHopPeriod
401  */
402 #define RFLR_HOPPERIOD_FREQFOPPINGPERIOD 0x00 // Default
403 
404 /*!
405  * RegFifoRxByteAddr (Read Only)
406  */
407 
408 /*!
409  * RegModemConfig3
410  */
411 #define RFLR_MODEMCONFIG3_LOWDATARATEOPTIMIZE_MASK 0xF7
412 #define RFLR_MODEMCONFIG3_LOWDATARATEOPTIMIZE_ON 0x08
413 #define RFLR_MODEMCONFIG3_LOWDATARATEOPTIMIZE_OFF 0x00 // Default
414 
415 #define RFLR_MODEMCONFIG3_AGCAUTO_MASK 0xFB
416 #define RFLR_MODEMCONFIG3_AGCAUTO_ON 0x04 // Default
417 #define RFLR_MODEMCONFIG3_AGCAUTO_OFF 0x00
418 
419 /*!
420  * RegFeiMsb (Read Only)
421  */
422 
423 /*!
424  * RegFeiMid (Read Only)
425  */
426 
427 /*!
428  * RegFeiLsb (Read Only)
429  */
430 
431 /*!
432  * RegRssiWideband (Read Only)
433  */
434 
435 /*!
436  * RegDetectOptimize
437  */
438 #define RFLR_DETECTIONOPTIMIZE_MASK 0xF8
439 #define RFLR_DETECTIONOPTIMIZE_SF7_TO_SF12 0x03 // Default
440 #define RFLR_DETECTIONOPTIMIZE_SF6 0x05
441 
442 /*!
443  * RegInvertIQ
444  */
445 #define RFLR_INVERTIQ_RX_MASK 0xBF
446 #define RFLR_INVERTIQ_RX_OFF 0x00
447 #define RFLR_INVERTIQ_RX_ON 0x40
448 #define RFLR_INVERTIQ_TX_MASK 0xFE
449 #define RFLR_INVERTIQ_TX_OFF 0x01
450 #define RFLR_INVERTIQ_TX_ON 0x00
451 
452 /*!
453  * RegDetectionThreshold
454  */
455 #define RFLR_DETECTIONTHRESH_SF7_TO_SF12 0x0A // Default
456 #define RFLR_DETECTIONTHRESH_SF6 0x0C
457 
458 /*!
459  * RegInvertIQ2
460  */
461 #define RFLR_INVERTIQ2_ON 0x19
462 #define RFLR_INVERTIQ2_OFF 0x1D
463 
464 /*!
465  * RegDioMapping1
466  */
467 #define RFLR_DIOMAPPING1_DIO0_MASK 0x3F
468 #define RFLR_DIOMAPPING1_DIO0_00 0x00 // Default
469 #define RFLR_DIOMAPPING1_DIO0_01 0x40
470 #define RFLR_DIOMAPPING1_DIO0_10 0x80
471 #define RFLR_DIOMAPPING1_DIO0_11 0xC0
472 
473 #define RFLR_DIOMAPPING1_DIO1_MASK 0xCF
474 #define RFLR_DIOMAPPING1_DIO1_00 0x00 // Default
475 #define RFLR_DIOMAPPING1_DIO1_01 0x10
476 #define RFLR_DIOMAPPING1_DIO1_10 0x20
477 #define RFLR_DIOMAPPING1_DIO1_11 0x30
478 
479 #define RFLR_DIOMAPPING1_DIO2_MASK 0xF3
480 #define RFLR_DIOMAPPING1_DIO2_00 0x00 // Default
481 #define RFLR_DIOMAPPING1_DIO2_01 0x04
482 #define RFLR_DIOMAPPING1_DIO2_10 0x08
483 #define RFLR_DIOMAPPING1_DIO2_11 0x0C
484 
485 #define RFLR_DIOMAPPING1_DIO3_MASK 0xFC
486 #define RFLR_DIOMAPPING1_DIO3_00 0x00 // Default
487 #define RFLR_DIOMAPPING1_DIO3_01 0x01
488 #define RFLR_DIOMAPPING1_DIO3_10 0x02
489 #define RFLR_DIOMAPPING1_DIO3_11 0x03
490 
491 /*!
492  * RegDioMapping2
493  */
494 #define RFLR_DIOMAPPING2_DIO4_MASK 0x3F
495 #define RFLR_DIOMAPPING2_DIO4_00 0x00 // Default
496 #define RFLR_DIOMAPPING2_DIO4_01 0x40
497 #define RFLR_DIOMAPPING2_DIO4_10 0x80
498 #define RFLR_DIOMAPPING2_DIO4_11 0xC0
499 
500 #define RFLR_DIOMAPPING2_DIO5_MASK 0xCF
501 #define RFLR_DIOMAPPING2_DIO5_00 0x00 // Default
502 #define RFLR_DIOMAPPING2_DIO5_01 0x10
503 #define RFLR_DIOMAPPING2_DIO5_10 0x20
504 #define RFLR_DIOMAPPING2_DIO5_11 0x30
505 
506 #define RFLR_DIOMAPPING2_MAP_MASK 0xFE
507 #define RFLR_DIOMAPPING2_MAP_PREAMBLEDETECT 0x01
508 #define RFLR_DIOMAPPING2_MAP_RSSI 0x00 // Default
509 
510 /*!
511  * RegVersion (Read Only)
512  */
513 
514 /*!
515  * RegPllHop
516  */
517 #define RFLR_PLLHOP_FASTHOP_MASK 0x7F
518 #define RFLR_PLLHOP_FASTHOP_ON 0x80
519 #define RFLR_PLLHOP_FASTHOP_OFF 0x00 // Default
520 
521 /*!
522  * RegTcxo
523  */
524 #define RFLR_TCXO_TCXOINPUT_MASK 0xEF
525 #define RFLR_TCXO_TCXOINPUT_ON 0x10
526 #define RFLR_TCXO_TCXOINPUT_OFF 0x00 // Default
527 
528 /*!
529  * RegPaDac
530  */
531 #define RFLR_PADAC_20DBM_MASK 0xF8
532 #define RFLR_PADAC_20DBM_ON 0x07
533 #define RFLR_PADAC_20DBM_OFF 0x04 // Default
534 
535 /*!
536  * RegFormerTemp
537  */
538 
539 /*!
540  * RegBitrateFrac
541  */
542 #define RF_BITRATEFRAC_MASK 0xF0
543 
544 /*!
545  * RegAgcRef
546  */
547 
548 /*!
549  * RegAgcThresh1
550  */
551 
552 /*!
553  * RegAgcThresh2
554  */
555 
556 /*!
557  * RegAgcThresh3
558  */
559 
560 /*!
561  * RegPll
562  */
563 #define RF_PLL_BANDWIDTH_MASK 0x3F
564 #define RF_PLL_BANDWIDTH_75 0x00
565 #define RF_PLL_BANDWIDTH_150 0x40
566 #define RF_PLL_BANDWIDTH_225 0x80
567 #define RF_PLL_BANDWIDTH_300 0xC0 // Default
568 
569 #endif // __SX1276_REGS_LORA_H__
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.