blob: 7f7a7a5d53236e97d0dd71b640034e297debed70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: SX1272 LoRa modem registers and bits definitions
License: Revised BSD License, see LICENSE.TXT file include in the project
Maintainer: Michael Coracin
*/
#ifndef _LORAGW_SX1272_REGS_LORA_H
#define _LORAGW_SX1272_REGS_LORA_H
/*!
* ============================================================================
* SX1272 Internal registers Address
* ============================================================================
*/
#define SX1272_REG_LR_FIFO 0x00
// Common settings
#define SX1272_REG_LR_OPMODE 0x01
#define SX1272_REG_LR_FRFMSB 0x06
#define SX1272_REG_LR_FRFMID 0x07
#define SX1272_REG_LR_FRFLSB 0x08
// Tx settings
#define SX1272_REG_LR_PACONFIG 0x09
#define SX1272_REG_LR_PARAMP 0x0A
#define SX1272_REG_LR_OCP 0x0B
// Rx settings
#define SX1272_REG_LR_LNA 0x0C
// LoRa registers
#define SX1272_REG_LR_FIFOADDRPTR 0x0D
#define SX1272_REG_LR_FIFOTXBASEADDR 0x0E
#define SX1272_REG_LR_FIFORXBASEADDR 0x0F
#define SX1272_REG_LR_FIFORXCURRENTADDR 0x10
#define SX1272_REG_LR_IRQFLAGSMASK 0x11
#define SX1272_REG_LR_IRQFLAGS 0x12
#define SX1272_REG_LR_RXNBBYTES 0x13
#define SX1272_REG_LR_RXHEADERCNTVALUEMSB 0x14
#define SX1272_REG_LR_RXHEADERCNTVALUELSB 0x15
#define SX1272_REG_LR_RXPACKETCNTVALUEMSB 0x16
#define SX1272_REG_LR_RXPACKETCNTVALUELSB 0x17
#define SX1272_REG_LR_MODEMSTAT 0x18
#define SX1272_REG_LR_PKTSNRVALUE 0x19
#define SX1272_REG_LR_PKTRSSIVALUE 0x1A
#define SX1272_REG_LR_RSSIVALUE 0x1B
#define SX1272_REG_LR_HOPCHANNEL 0x1C
#define SX1272_REG_LR_MODEMCONFIG1 0x1D
#define SX1272_REG_LR_MODEMCONFIG2 0x1E
#define SX1272_REG_LR_SYMBTIMEOUTLSB 0x1F
#define SX1272_REG_LR_PREAMBLEMSB 0x20
#define SX1272_REG_LR_PREAMBLELSB 0x21
#define SX1272_REG_LR_PAYLOADLENGTH 0x22
#define SX1272_REG_LR_PAYLOADMAXLENGTH 0x23
#define SX1272_REG_LR_HOPPERIOD 0x24
#define SX1272_REG_LR_FIFORXBYTEADDR 0x25
#define SX1272_REG_LR_FEIMSB 0x28
#define SX1272_REG_LR_FEIMID 0x29
#define SX1272_REG_LR_FEILSB 0x2A
#define SX1272_REG_LR_RSSIWIDEBAND 0x2C
#define SX1272_REG_LR_DETECTOPTIMIZE 0x31
#define SX1272_REG_LR_INVERTIQ 0x33
#define SX1272_REG_LR_DETECTIONTHRESHOLD 0x37
#define SX1272_REG_LR_SYNCWORD 0x39
#define SX1272_REG_LR_INVERTIQ2 0x3B
// end of documented register in datasheet
// I/O settings
#define SX1272_REG_LR_DIOMAPPING1 0x40
#define SX1272_REG_LR_DIOMAPPING2 0x41
// Version
#define SX1272_REG_LR_VERSION 0x42
// Additional settings
#define SX1272_REG_LR_AGCREF 0x43
#define SX1272_REG_LR_AGCTHRESH1 0x44
#define SX1272_REG_LR_AGCTHRESH2 0x45
#define SX1272_REG_LR_AGCTHRESH3 0x46
#define SX1272_REG_LR_PLLHOP 0x4B
#define SX1272_REG_LR_TCXO 0x58
#define SX1272_REG_LR_PADAC 0x5A
#define SX1272_REG_LR_PLL 0x5C
#define SX1272_REG_LR_PLLLOWPN 0x5E
#define SX1272_REG_LR_FORMERTEMP 0x6C
#endif // _LORAGW_SX1272_REGS_LORA_H
|