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