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