Revised to support JFET LoRa Module

Fork of SX1272Liby by Timothy Mulrooney

Committer:
mluis
Date:
Tue Jan 05 16:43:48 2016 +0000
Revision:
0:45c4f0364ca4
Library creation based on SX1276Lib and https://github.com/Lora-net/LoRaMac-node

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mluis 0:45c4f0364ca4 1 /*
mluis 0:45c4f0364ca4 2 / _____) _ | |
mluis 0:45c4f0364ca4 3 ( (____ _____ ____ _| |_ _____ ____| |__
mluis 0:45c4f0364ca4 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
mluis 0:45c4f0364ca4 5 _____) ) ____| | | || |_| ____( (___| | | |
mluis 0:45c4f0364ca4 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
mluis 0:45c4f0364ca4 7 (C) 2015 Semtech
mluis 0:45c4f0364ca4 8
mluis 0:45c4f0364ca4 9 Description: SX1272 FSK modem registers and bits definitions
mluis 0:45c4f0364ca4 10
mluis 0:45c4f0364ca4 11 License: Revised BSD License, see LICENSE.TXT file include in the project
mluis 0:45c4f0364ca4 12
mluis 0:45c4f0364ca4 13 Maintainer: Miguel Luis and Gregory Cristian
mluis 0:45c4f0364ca4 14 */
mluis 0:45c4f0364ca4 15 #ifndef __SX1272_REGS_FSK_H__
mluis 0:45c4f0364ca4 16 #define __SX1272_REGS_FSK_H__
mluis 0:45c4f0364ca4 17
mluis 0:45c4f0364ca4 18 /*!
mluis 0:45c4f0364ca4 19 * ============================================================================
mluis 0:45c4f0364ca4 20 * SX1272 Internal registers Address
mluis 0:45c4f0364ca4 21 * ============================================================================
mluis 0:45c4f0364ca4 22 */
mluis 0:45c4f0364ca4 23 #define REG_FIFO 0x00
mluis 0:45c4f0364ca4 24 // Common settings
mluis 0:45c4f0364ca4 25 #define REG_OPMODE 0x01
mluis 0:45c4f0364ca4 26 #define REG_BITRATEMSB 0x02
mluis 0:45c4f0364ca4 27 #define REG_BITRATELSB 0x03
mluis 0:45c4f0364ca4 28 #define REG_FDEVMSB 0x04
mluis 0:45c4f0364ca4 29 #define REG_FDEVLSB 0x05
mluis 0:45c4f0364ca4 30 #define REG_FRFMSB 0x06
mluis 0:45c4f0364ca4 31 #define REG_FRFMID 0x07
mluis 0:45c4f0364ca4 32 #define REG_FRFLSB 0x08
mluis 0:45c4f0364ca4 33 // Tx settings
mluis 0:45c4f0364ca4 34 #define REG_PACONFIG 0x09
mluis 0:45c4f0364ca4 35 #define REG_PARAMP 0x0A
mluis 0:45c4f0364ca4 36 #define REG_OCP 0x0B
mluis 0:45c4f0364ca4 37 // Rx settings
mluis 0:45c4f0364ca4 38 #define REG_LNA 0x0C
mluis 0:45c4f0364ca4 39 #define REG_RXCONFIG 0x0D
mluis 0:45c4f0364ca4 40 #define REG_RSSICONFIG 0x0E
mluis 0:45c4f0364ca4 41 #define REG_RSSICOLLISION 0x0F
mluis 0:45c4f0364ca4 42 #define REG_RSSITHRESH 0x10
mluis 0:45c4f0364ca4 43 #define REG_RSSIVALUE 0x11
mluis 0:45c4f0364ca4 44 #define REG_RXBW 0x12
mluis 0:45c4f0364ca4 45 #define REG_AFCBW 0x13
mluis 0:45c4f0364ca4 46 #define REG_OOKPEAK 0x14
mluis 0:45c4f0364ca4 47 #define REG_OOKFIX 0x15
mluis 0:45c4f0364ca4 48 #define REG_OOKAVG 0x16
mluis 0:45c4f0364ca4 49 #define REG_RES17 0x17
mluis 0:45c4f0364ca4 50 #define REG_RES18 0x18
mluis 0:45c4f0364ca4 51 #define REG_RES19 0x19
mluis 0:45c4f0364ca4 52 #define REG_AFCFEI 0x1A
mluis 0:45c4f0364ca4 53 #define REG_AFCMSB 0x1B
mluis 0:45c4f0364ca4 54 #define REG_AFCLSB 0x1C
mluis 0:45c4f0364ca4 55 #define REG_FEIMSB 0x1D
mluis 0:45c4f0364ca4 56 #define REG_FEILSB 0x1E
mluis 0:45c4f0364ca4 57 #define REG_PREAMBLEDETECT 0x1F
mluis 0:45c4f0364ca4 58 #define REG_RXTIMEOUT1 0x20
mluis 0:45c4f0364ca4 59 #define REG_RXTIMEOUT2 0x21
mluis 0:45c4f0364ca4 60 #define REG_RXTIMEOUT3 0x22
mluis 0:45c4f0364ca4 61 #define REG_RXDELAY 0x23
mluis 0:45c4f0364ca4 62 // Oscillator settings
mluis 0:45c4f0364ca4 63 #define REG_OSC 0x24
mluis 0:45c4f0364ca4 64 // Packet handler settings
mluis 0:45c4f0364ca4 65 #define REG_PREAMBLEMSB 0x25
mluis 0:45c4f0364ca4 66 #define REG_PREAMBLELSB 0x26
mluis 0:45c4f0364ca4 67 #define REG_SYNCCONFIG 0x27
mluis 0:45c4f0364ca4 68 #define REG_SYNCVALUE1 0x28
mluis 0:45c4f0364ca4 69 #define REG_SYNCVALUE2 0x29
mluis 0:45c4f0364ca4 70 #define REG_SYNCVALUE3 0x2A
mluis 0:45c4f0364ca4 71 #define REG_SYNCVALUE4 0x2B
mluis 0:45c4f0364ca4 72 #define REG_SYNCVALUE5 0x2C
mluis 0:45c4f0364ca4 73 #define REG_SYNCVALUE6 0x2D
mluis 0:45c4f0364ca4 74 #define REG_SYNCVALUE7 0x2E
mluis 0:45c4f0364ca4 75 #define REG_SYNCVALUE8 0x2F
mluis 0:45c4f0364ca4 76 #define REG_PACKETCONFIG1 0x30
mluis 0:45c4f0364ca4 77 #define REG_PACKETCONFIG2 0x31
mluis 0:45c4f0364ca4 78 #define REG_PAYLOADLENGTH 0x32
mluis 0:45c4f0364ca4 79 #define REG_NODEADRS 0x33
mluis 0:45c4f0364ca4 80 #define REG_BROADCASTADRS 0x34
mluis 0:45c4f0364ca4 81 #define REG_FIFOTHRESH 0x35
mluis 0:45c4f0364ca4 82 // SM settings
mluis 0:45c4f0364ca4 83 #define REG_SEQCONFIG1 0x36
mluis 0:45c4f0364ca4 84 #define REG_SEQCONFIG2 0x37
mluis 0:45c4f0364ca4 85 #define REG_TIMERRESOL 0x38
mluis 0:45c4f0364ca4 86 #define REG_TIMER1COEF 0x39
mluis 0:45c4f0364ca4 87 #define REG_TIMER2COEF 0x3A
mluis 0:45c4f0364ca4 88 // Service settings
mluis 0:45c4f0364ca4 89 #define REG_IMAGECAL 0x3B
mluis 0:45c4f0364ca4 90 #define REG_TEMP 0x3C
mluis 0:45c4f0364ca4 91 #define REG_LOWBAT 0x3D
mluis 0:45c4f0364ca4 92 // Status
mluis 0:45c4f0364ca4 93 #define REG_IRQFLAGS1 0x3E
mluis 0:45c4f0364ca4 94 #define REG_IRQFLAGS2 0x3F
mluis 0:45c4f0364ca4 95 // I/O settings
mluis 0:45c4f0364ca4 96 #define REG_DIOMAPPING1 0x40
mluis 0:45c4f0364ca4 97 #define REG_DIOMAPPING2 0x41
mluis 0:45c4f0364ca4 98 // Version
mluis 0:45c4f0364ca4 99 #define REG_VERSION 0x42
mluis 0:45c4f0364ca4 100 // Additional settings
mluis 0:45c4f0364ca4 101 #define REG_AGCREF 0x43
mluis 0:45c4f0364ca4 102 #define REG_AGCTHRESH1 0x44
mluis 0:45c4f0364ca4 103 #define REG_AGCTHRESH2 0x45
mluis 0:45c4f0364ca4 104 #define REG_AGCTHRESH3 0x46
mluis 0:45c4f0364ca4 105 #define REG_PLLHOP 0x4B
mluis 0:45c4f0364ca4 106 #define REG_TCXO 0x58
mluis 0:45c4f0364ca4 107 #define REG_PADAC 0x5A
mluis 0:45c4f0364ca4 108 #define REG_PLL 0x5C
mluis 0:45c4f0364ca4 109 #define REG_PLLLOWPN 0x5E
mluis 0:45c4f0364ca4 110 #define REG_FORMERTEMP 0x6C
mluis 0:45c4f0364ca4 111 #define REG_BITRATEFRAC 0x70
mluis 0:45c4f0364ca4 112
mluis 0:45c4f0364ca4 113 /*!
mluis 0:45c4f0364ca4 114 * ============================================================================
mluis 0:45c4f0364ca4 115 * SX1272 FSK bits control definition
mluis 0:45c4f0364ca4 116 * ============================================================================
mluis 0:45c4f0364ca4 117 */
mluis 0:45c4f0364ca4 118
mluis 0:45c4f0364ca4 119 /*!
mluis 0:45c4f0364ca4 120 * RegFifo
mluis 0:45c4f0364ca4 121 */
mluis 0:45c4f0364ca4 122
mluis 0:45c4f0364ca4 123 /*!
mluis 0:45c4f0364ca4 124 * RegOpMode
mluis 0:45c4f0364ca4 125 */
mluis 0:45c4f0364ca4 126 #define RF_OPMODE_LONGRANGEMODE_MASK 0x7F
mluis 0:45c4f0364ca4 127 #define RF_OPMODE_LONGRANGEMODE_OFF 0x00
mluis 0:45c4f0364ca4 128 #define RF_OPMODE_LONGRANGEMODE_ON 0x80
mluis 0:45c4f0364ca4 129
mluis 0:45c4f0364ca4 130 #define RF_OPMODE_MODULATIONTYPE_MASK 0x9F
mluis 0:45c4f0364ca4 131 #define RF_OPMODE_MODULATIONTYPE_FSK 0x00 // Default
mluis 0:45c4f0364ca4 132 #define RF_OPMODE_MODULATIONTYPE_OOK 0x20
mluis 0:45c4f0364ca4 133
mluis 0:45c4f0364ca4 134 #define RF_OPMODE_MODULATIONSHAPING_MASK 0xE7
mluis 0:45c4f0364ca4 135 #define RF_OPMODE_MODULATIONSHAPING_00 0x00 // Default
mluis 0:45c4f0364ca4 136 #define RF_OPMODE_MODULATIONSHAPING_01 0x08
mluis 0:45c4f0364ca4 137 #define RF_OPMODE_MODULATIONSHAPING_10 0x10
mluis 0:45c4f0364ca4 138 #define RF_OPMODE_MODULATIONSHAPING_11 0x18
mluis 0:45c4f0364ca4 139
mluis 0:45c4f0364ca4 140 #define RF_OPMODE_MASK 0xF8
mluis 0:45c4f0364ca4 141 #define RF_OPMODE_SLEEP 0x00
mluis 0:45c4f0364ca4 142 #define RF_OPMODE_STANDBY 0x01 // Default
mluis 0:45c4f0364ca4 143 #define RF_OPMODE_SYNTHESIZER_TX 0x02
mluis 0:45c4f0364ca4 144 #define RF_OPMODE_TRANSMITTER 0x03
mluis 0:45c4f0364ca4 145 #define RF_OPMODE_SYNTHESIZER_RX 0x04
mluis 0:45c4f0364ca4 146 #define RF_OPMODE_RECEIVER 0x05
mluis 0:45c4f0364ca4 147
mluis 0:45c4f0364ca4 148 /*!
mluis 0:45c4f0364ca4 149 * RegBitRate (bits/sec)
mluis 0:45c4f0364ca4 150 */
mluis 0:45c4f0364ca4 151 #define RF_BITRATEMSB_1200_BPS 0x68
mluis 0:45c4f0364ca4 152 #define RF_BITRATELSB_1200_BPS 0x2B
mluis 0:45c4f0364ca4 153 #define RF_BITRATEMSB_2400_BPS 0x34
mluis 0:45c4f0364ca4 154 #define RF_BITRATELSB_2400_BPS 0x15
mluis 0:45c4f0364ca4 155 #define RF_BITRATEMSB_4800_BPS 0x1A // Default
mluis 0:45c4f0364ca4 156 #define RF_BITRATELSB_4800_BPS 0x0B // Default
mluis 0:45c4f0364ca4 157 #define RF_BITRATEMSB_9600_BPS 0x0D
mluis 0:45c4f0364ca4 158 #define RF_BITRATELSB_9600_BPS 0x05
mluis 0:45c4f0364ca4 159 #define RF_BITRATEMSB_15000_BPS 0x08
mluis 0:45c4f0364ca4 160 #define RF_BITRATELSB_15000_BPS 0x55
mluis 0:45c4f0364ca4 161 #define RF_BITRATEMSB_19200_BPS 0x06
mluis 0:45c4f0364ca4 162 #define RF_BITRATELSB_19200_BPS 0x83
mluis 0:45c4f0364ca4 163 #define RF_BITRATEMSB_38400_BPS 0x03
mluis 0:45c4f0364ca4 164 #define RF_BITRATELSB_38400_BPS 0x41
mluis 0:45c4f0364ca4 165 #define RF_BITRATEMSB_76800_BPS 0x01
mluis 0:45c4f0364ca4 166 #define RF_BITRATELSB_76800_BPS 0xA1
mluis 0:45c4f0364ca4 167 #define RF_BITRATEMSB_153600_BPS 0x00
mluis 0:45c4f0364ca4 168 #define RF_BITRATELSB_153600_BPS 0xD0
mluis 0:45c4f0364ca4 169 #define RF_BITRATEMSB_57600_BPS 0x02
mluis 0:45c4f0364ca4 170 #define RF_BITRATELSB_57600_BPS 0x2C
mluis 0:45c4f0364ca4 171 #define RF_BITRATEMSB_115200_BPS 0x01
mluis 0:45c4f0364ca4 172 #define RF_BITRATELSB_115200_BPS 0x16
mluis 0:45c4f0364ca4 173 #define RF_BITRATEMSB_12500_BPS 0x0A
mluis 0:45c4f0364ca4 174 #define RF_BITRATELSB_12500_BPS 0x00
mluis 0:45c4f0364ca4 175 #define RF_BITRATEMSB_25000_BPS 0x05
mluis 0:45c4f0364ca4 176 #define RF_BITRATELSB_25000_BPS 0x00
mluis 0:45c4f0364ca4 177 #define RF_BITRATEMSB_50000_BPS 0x02
mluis 0:45c4f0364ca4 178 #define RF_BITRATELSB_50000_BPS 0x80
mluis 0:45c4f0364ca4 179 #define RF_BITRATEMSB_100000_BPS 0x01
mluis 0:45c4f0364ca4 180 #define RF_BITRATELSB_100000_BPS 0x40
mluis 0:45c4f0364ca4 181 #define RF_BITRATEMSB_150000_BPS 0x00
mluis 0:45c4f0364ca4 182 #define RF_BITRATELSB_150000_BPS 0xD5
mluis 0:45c4f0364ca4 183 #define RF_BITRATEMSB_200000_BPS 0x00
mluis 0:45c4f0364ca4 184 #define RF_BITRATELSB_200000_BPS 0xA0
mluis 0:45c4f0364ca4 185 #define RF_BITRATEMSB_250000_BPS 0x00
mluis 0:45c4f0364ca4 186 #define RF_BITRATELSB_250000_BPS 0x80
mluis 0:45c4f0364ca4 187 #define RF_BITRATEMSB_32768_BPS 0x03
mluis 0:45c4f0364ca4 188 #define RF_BITRATELSB_32768_BPS 0xD1
mluis 0:45c4f0364ca4 189
mluis 0:45c4f0364ca4 190 /*!
mluis 0:45c4f0364ca4 191 * RegFdev (Hz)
mluis 0:45c4f0364ca4 192 */
mluis 0:45c4f0364ca4 193 #define RF_FDEVMSB_2000_HZ 0x00
mluis 0:45c4f0364ca4 194 #define RF_FDEVLSB_2000_HZ 0x21
mluis 0:45c4f0364ca4 195 #define RF_FDEVMSB_5000_HZ 0x00 // Default
mluis 0:45c4f0364ca4 196 #define RF_FDEVLSB_5000_HZ 0x52 // Default
mluis 0:45c4f0364ca4 197 #define RF_FDEVMSB_10000_HZ 0x00
mluis 0:45c4f0364ca4 198 #define RF_FDEVLSB_10000_HZ 0xA4
mluis 0:45c4f0364ca4 199 #define RF_FDEVMSB_15000_HZ 0x00
mluis 0:45c4f0364ca4 200 #define RF_FDEVLSB_15000_HZ 0xF6
mluis 0:45c4f0364ca4 201 #define RF_FDEVMSB_20000_HZ 0x01
mluis 0:45c4f0364ca4 202 #define RF_FDEVLSB_20000_HZ 0x48
mluis 0:45c4f0364ca4 203 #define RF_FDEVMSB_25000_HZ 0x01
mluis 0:45c4f0364ca4 204 #define RF_FDEVLSB_25000_HZ 0x9A
mluis 0:45c4f0364ca4 205 #define RF_FDEVMSB_30000_HZ 0x01
mluis 0:45c4f0364ca4 206 #define RF_FDEVLSB_30000_HZ 0xEC
mluis 0:45c4f0364ca4 207 #define RF_FDEVMSB_35000_HZ 0x02
mluis 0:45c4f0364ca4 208 #define RF_FDEVLSB_35000_HZ 0x3D
mluis 0:45c4f0364ca4 209 #define RF_FDEVMSB_40000_HZ 0x02
mluis 0:45c4f0364ca4 210 #define RF_FDEVLSB_40000_HZ 0x8F
mluis 0:45c4f0364ca4 211 #define RF_FDEVMSB_45000_HZ 0x02
mluis 0:45c4f0364ca4 212 #define RF_FDEVLSB_45000_HZ 0xE1
mluis 0:45c4f0364ca4 213 #define RF_FDEVMSB_50000_HZ 0x03
mluis 0:45c4f0364ca4 214 #define RF_FDEVLSB_50000_HZ 0x33
mluis 0:45c4f0364ca4 215 #define RF_FDEVMSB_55000_HZ 0x03
mluis 0:45c4f0364ca4 216 #define RF_FDEVLSB_55000_HZ 0x85
mluis 0:45c4f0364ca4 217 #define RF_FDEVMSB_60000_HZ 0x03
mluis 0:45c4f0364ca4 218 #define RF_FDEVLSB_60000_HZ 0xD7
mluis 0:45c4f0364ca4 219 #define RF_FDEVMSB_65000_HZ 0x04
mluis 0:45c4f0364ca4 220 #define RF_FDEVLSB_65000_HZ 0x29
mluis 0:45c4f0364ca4 221 #define RF_FDEVMSB_70000_HZ 0x04
mluis 0:45c4f0364ca4 222 #define RF_FDEVLSB_70000_HZ 0x7B
mluis 0:45c4f0364ca4 223 #define RF_FDEVMSB_75000_HZ 0x04
mluis 0:45c4f0364ca4 224 #define RF_FDEVLSB_75000_HZ 0xCD
mluis 0:45c4f0364ca4 225 #define RF_FDEVMSB_80000_HZ 0x05
mluis 0:45c4f0364ca4 226 #define RF_FDEVLSB_80000_HZ 0x1F
mluis 0:45c4f0364ca4 227 #define RF_FDEVMSB_85000_HZ 0x05
mluis 0:45c4f0364ca4 228 #define RF_FDEVLSB_85000_HZ 0x71
mluis 0:45c4f0364ca4 229 #define RF_FDEVMSB_90000_HZ 0x05
mluis 0:45c4f0364ca4 230 #define RF_FDEVLSB_90000_HZ 0xC3
mluis 0:45c4f0364ca4 231 #define RF_FDEVMSB_95000_HZ 0x06
mluis 0:45c4f0364ca4 232 #define RF_FDEVLSB_95000_HZ 0x14
mluis 0:45c4f0364ca4 233 #define RF_FDEVMSB_100000_HZ 0x06
mluis 0:45c4f0364ca4 234 #define RF_FDEVLSB_100000_HZ 0x66
mluis 0:45c4f0364ca4 235 #define RF_FDEVMSB_110000_HZ 0x07
mluis 0:45c4f0364ca4 236 #define RF_FDEVLSB_110000_HZ 0x0A
mluis 0:45c4f0364ca4 237 #define RF_FDEVMSB_120000_HZ 0x07
mluis 0:45c4f0364ca4 238 #define RF_FDEVLSB_120000_HZ 0xAE
mluis 0:45c4f0364ca4 239 #define RF_FDEVMSB_130000_HZ 0x08
mluis 0:45c4f0364ca4 240 #define RF_FDEVLSB_130000_HZ 0x52
mluis 0:45c4f0364ca4 241 #define RF_FDEVMSB_140000_HZ 0x08
mluis 0:45c4f0364ca4 242 #define RF_FDEVLSB_140000_HZ 0xF6
mluis 0:45c4f0364ca4 243 #define RF_FDEVMSB_150000_HZ 0x09
mluis 0:45c4f0364ca4 244 #define RF_FDEVLSB_150000_HZ 0x9A
mluis 0:45c4f0364ca4 245 #define RF_FDEVMSB_160000_HZ 0x0A
mluis 0:45c4f0364ca4 246 #define RF_FDEVLSB_160000_HZ 0x3D
mluis 0:45c4f0364ca4 247 #define RF_FDEVMSB_170000_HZ 0x0A
mluis 0:45c4f0364ca4 248 #define RF_FDEVLSB_170000_HZ 0xE1
mluis 0:45c4f0364ca4 249 #define RF_FDEVMSB_180000_HZ 0x0B
mluis 0:45c4f0364ca4 250 #define RF_FDEVLSB_180000_HZ 0x85
mluis 0:45c4f0364ca4 251 #define RF_FDEVMSB_190000_HZ 0x0C
mluis 0:45c4f0364ca4 252 #define RF_FDEVLSB_190000_HZ 0x29
mluis 0:45c4f0364ca4 253 #define RF_FDEVMSB_200000_HZ 0x0C
mluis 0:45c4f0364ca4 254 #define RF_FDEVLSB_200000_HZ 0xCD
mluis 0:45c4f0364ca4 255
mluis 0:45c4f0364ca4 256 /*!
mluis 0:45c4f0364ca4 257 * RegFrf (MHz)
mluis 0:45c4f0364ca4 258 */
mluis 0:45c4f0364ca4 259 #define RF_FRFMSB_863_MHZ 0xD7
mluis 0:45c4f0364ca4 260 #define RF_FRFMID_863_MHZ 0xC0
mluis 0:45c4f0364ca4 261 #define RF_FRFLSB_863_MHZ 0x00
mluis 0:45c4f0364ca4 262 #define RF_FRFMSB_864_MHZ 0xD8
mluis 0:45c4f0364ca4 263 #define RF_FRFMID_864_MHZ 0x00
mluis 0:45c4f0364ca4 264 #define RF_FRFLSB_864_MHZ 0x00
mluis 0:45c4f0364ca4 265 #define RF_FRFMSB_865_MHZ 0xD8
mluis 0:45c4f0364ca4 266 #define RF_FRFMID_865_MHZ 0x40
mluis 0:45c4f0364ca4 267 #define RF_FRFLSB_865_MHZ 0x00
mluis 0:45c4f0364ca4 268 #define RF_FRFMSB_866_MHZ 0xD8
mluis 0:45c4f0364ca4 269 #define RF_FRFMID_866_MHZ 0x80
mluis 0:45c4f0364ca4 270 #define RF_FRFLSB_866_MHZ 0x00
mluis 0:45c4f0364ca4 271 #define RF_FRFMSB_867_MHZ 0xD8
mluis 0:45c4f0364ca4 272 #define RF_FRFMID_867_MHZ 0xC0
mluis 0:45c4f0364ca4 273 #define RF_FRFLSB_867_MHZ 0x00
mluis 0:45c4f0364ca4 274 #define RF_FRFMSB_868_MHZ 0xD9
mluis 0:45c4f0364ca4 275 #define RF_FRFMID_868_MHZ 0x00
mluis 0:45c4f0364ca4 276 #define RF_FRFLSB_868_MHZ 0x00
mluis 0:45c4f0364ca4 277 #define RF_FRFMSB_869_MHZ 0xD9
mluis 0:45c4f0364ca4 278 #define RF_FRFMID_869_MHZ 0x40
mluis 0:45c4f0364ca4 279 #define RF_FRFLSB_869_MHZ 0x00
mluis 0:45c4f0364ca4 280 #define RF_FRFMSB_870_MHZ 0xD9
mluis 0:45c4f0364ca4 281 #define RF_FRFMID_870_MHZ 0x80
mluis 0:45c4f0364ca4 282 #define RF_FRFLSB_870_MHZ 0x00
mluis 0:45c4f0364ca4 283
mluis 0:45c4f0364ca4 284 #define RF_FRFMSB_902_MHZ 0xE1
mluis 0:45c4f0364ca4 285 #define RF_FRFMID_902_MHZ 0x80
mluis 0:45c4f0364ca4 286 #define RF_FRFLSB_902_MHZ 0x00
mluis 0:45c4f0364ca4 287 #define RF_FRFMSB_903_MHZ 0xE1
mluis 0:45c4f0364ca4 288 #define RF_FRFMID_903_MHZ 0xC0
mluis 0:45c4f0364ca4 289 #define RF_FRFLSB_903_MHZ 0x00
mluis 0:45c4f0364ca4 290 #define RF_FRFMSB_904_MHZ 0xE2
mluis 0:45c4f0364ca4 291 #define RF_FRFMID_904_MHZ 0x00
mluis 0:45c4f0364ca4 292 #define RF_FRFLSB_904_MHZ 0x00
mluis 0:45c4f0364ca4 293 #define RF_FRFMSB_905_MHZ 0xE2
mluis 0:45c4f0364ca4 294 #define RF_FRFMID_905_MHZ 0x40
mluis 0:45c4f0364ca4 295 #define RF_FRFLSB_905_MHZ 0x00
mluis 0:45c4f0364ca4 296 #define RF_FRFMSB_906_MHZ 0xE2
mluis 0:45c4f0364ca4 297 #define RF_FRFMID_906_MHZ 0x80
mluis 0:45c4f0364ca4 298 #define RF_FRFLSB_906_MHZ 0x00
mluis 0:45c4f0364ca4 299 #define RF_FRFMSB_907_MHZ 0xE2
mluis 0:45c4f0364ca4 300 #define RF_FRFMID_907_MHZ 0xC0
mluis 0:45c4f0364ca4 301 #define RF_FRFLSB_907_MHZ 0x00
mluis 0:45c4f0364ca4 302 #define RF_FRFMSB_908_MHZ 0xE3
mluis 0:45c4f0364ca4 303 #define RF_FRFMID_908_MHZ 0x00
mluis 0:45c4f0364ca4 304 #define RF_FRFLSB_908_MHZ 0x00
mluis 0:45c4f0364ca4 305 #define RF_FRFMSB_909_MHZ 0xE3
mluis 0:45c4f0364ca4 306 #define RF_FRFMID_909_MHZ 0x40
mluis 0:45c4f0364ca4 307 #define RF_FRFLSB_909_MHZ 0x00
mluis 0:45c4f0364ca4 308 #define RF_FRFMSB_910_MHZ 0xE3
mluis 0:45c4f0364ca4 309 #define RF_FRFMID_910_MHZ 0x80
mluis 0:45c4f0364ca4 310 #define RF_FRFLSB_910_MHZ 0x00
mluis 0:45c4f0364ca4 311 #define RF_FRFMSB_911_MHZ 0xE3
mluis 0:45c4f0364ca4 312 #define RF_FRFMID_911_MHZ 0xC0
mluis 0:45c4f0364ca4 313 #define RF_FRFLSB_911_MHZ 0x00
mluis 0:45c4f0364ca4 314 #define RF_FRFMSB_912_MHZ 0xE4
mluis 0:45c4f0364ca4 315 #define RF_FRFMID_912_MHZ 0x00
mluis 0:45c4f0364ca4 316 #define RF_FRFLSB_912_MHZ 0x00
mluis 0:45c4f0364ca4 317 #define RF_FRFMSB_913_MHZ 0xE4
mluis 0:45c4f0364ca4 318 #define RF_FRFMID_913_MHZ 0x40
mluis 0:45c4f0364ca4 319 #define RF_FRFLSB_913_MHZ 0x00
mluis 0:45c4f0364ca4 320 #define RF_FRFMSB_914_MHZ 0xE4
mluis 0:45c4f0364ca4 321 #define RF_FRFMID_914_MHZ 0x80
mluis 0:45c4f0364ca4 322 #define RF_FRFLSB_914_MHZ 0x00
mluis 0:45c4f0364ca4 323 #define RF_FRFMSB_915_MHZ 0xE4 // Default
mluis 0:45c4f0364ca4 324 #define RF_FRFMID_915_MHZ 0xC0 // Default
mluis 0:45c4f0364ca4 325 #define RF_FRFLSB_915_MHZ 0x00 // Default
mluis 0:45c4f0364ca4 326 #define RF_FRFMSB_916_MHZ 0xE5
mluis 0:45c4f0364ca4 327 #define RF_FRFMID_916_MHZ 0x00
mluis 0:45c4f0364ca4 328 #define RF_FRFLSB_916_MHZ 0x00
mluis 0:45c4f0364ca4 329 #define RF_FRFMSB_917_MHZ 0xE5
mluis 0:45c4f0364ca4 330 #define RF_FRFMID_917_MHZ 0x40
mluis 0:45c4f0364ca4 331 #define RF_FRFLSB_917_MHZ 0x00
mluis 0:45c4f0364ca4 332 #define RF_FRFMSB_918_MHZ 0xE5
mluis 0:45c4f0364ca4 333 #define RF_FRFMID_918_MHZ 0x80
mluis 0:45c4f0364ca4 334 #define RF_FRFLSB_918_MHZ 0x00
mluis 0:45c4f0364ca4 335 #define RF_FRFMSB_919_MHZ 0xE5
mluis 0:45c4f0364ca4 336 #define RF_FRFMID_919_MHZ 0xC0
mluis 0:45c4f0364ca4 337 #define RF_FRFLSB_919_MHZ 0x00
mluis 0:45c4f0364ca4 338 #define RF_FRFMSB_920_MHZ 0xE6
mluis 0:45c4f0364ca4 339 #define RF_FRFMID_920_MHZ 0x00
mluis 0:45c4f0364ca4 340 #define RF_FRFLSB_920_MHZ 0x00
mluis 0:45c4f0364ca4 341 #define RF_FRFMSB_921_MHZ 0xE6
mluis 0:45c4f0364ca4 342 #define RF_FRFMID_921_MHZ 0x40
mluis 0:45c4f0364ca4 343 #define RF_FRFLSB_921_MHZ 0x00
mluis 0:45c4f0364ca4 344 #define RF_FRFMSB_922_MHZ 0xE6
mluis 0:45c4f0364ca4 345 #define RF_FRFMID_922_MHZ 0x80
mluis 0:45c4f0364ca4 346 #define RF_FRFLSB_922_MHZ 0x00
mluis 0:45c4f0364ca4 347 #define RF_FRFMSB_923_MHZ 0xE6
mluis 0:45c4f0364ca4 348 #define RF_FRFMID_923_MHZ 0xC0
mluis 0:45c4f0364ca4 349 #define RF_FRFLSB_923_MHZ 0x00
mluis 0:45c4f0364ca4 350 #define RF_FRFMSB_924_MHZ 0xE7
mluis 0:45c4f0364ca4 351 #define RF_FRFMID_924_MHZ 0x00
mluis 0:45c4f0364ca4 352 #define RF_FRFLSB_924_MHZ 0x00
mluis 0:45c4f0364ca4 353 #define RF_FRFMSB_925_MHZ 0xE7
mluis 0:45c4f0364ca4 354 #define RF_FRFMID_925_MHZ 0x40
mluis 0:45c4f0364ca4 355 #define RF_FRFLSB_925_MHZ 0x00
mluis 0:45c4f0364ca4 356 #define RF_FRFMSB_926_MHZ 0xE7
mluis 0:45c4f0364ca4 357 #define RF_FRFMID_926_MHZ 0x80
mluis 0:45c4f0364ca4 358 #define RF_FRFLSB_926_MHZ 0x00
mluis 0:45c4f0364ca4 359 #define RF_FRFMSB_927_MHZ 0xE7
mluis 0:45c4f0364ca4 360 #define RF_FRFMID_927_MHZ 0xC0
mluis 0:45c4f0364ca4 361 #define RF_FRFLSB_927_MHZ 0x00
mluis 0:45c4f0364ca4 362 #define RF_FRFMSB_928_MHZ 0xE8
mluis 0:45c4f0364ca4 363 #define RF_FRFMID_928_MHZ 0x00
mluis 0:45c4f0364ca4 364 #define RF_FRFLSB_928_MHZ 0x00
mluis 0:45c4f0364ca4 365
mluis 0:45c4f0364ca4 366 /*!
mluis 0:45c4f0364ca4 367 * RegPaConfig
mluis 0:45c4f0364ca4 368 */
mluis 0:45c4f0364ca4 369 #define RF_PACONFIG_PASELECT_MASK 0x7F
mluis 0:45c4f0364ca4 370 #define RF_PACONFIG_PASELECT_PABOOST 0x80
mluis 0:45c4f0364ca4 371 #define RF_PACONFIG_PASELECT_RFO 0x00 // Default
mluis 0:45c4f0364ca4 372
mluis 0:45c4f0364ca4 373 #define RF_PACONFIG_OUTPUTPOWER_MASK 0xF0
mluis 0:45c4f0364ca4 374
mluis 0:45c4f0364ca4 375 /*!
mluis 0:45c4f0364ca4 376 * RegPaRamp
mluis 0:45c4f0364ca4 377 */
mluis 0:45c4f0364ca4 378 #define RF_PARAMP_LOWPNTXPLL_MASK 0xE0
mluis 0:45c4f0364ca4 379 #define RF_PARAMP_LOWPNTXPLL_OFF 0x10 // Default
mluis 0:45c4f0364ca4 380 #define RF_PARAMP_LOWPNTXPLL_ON 0x00
mluis 0:45c4f0364ca4 381
mluis 0:45c4f0364ca4 382 #define RF_PARAMP_MASK 0xF0
mluis 0:45c4f0364ca4 383 #define RF_PARAMP_3400_US 0x00
mluis 0:45c4f0364ca4 384 #define RF_PARAMP_2000_US 0x01
mluis 0:45c4f0364ca4 385 #define RF_PARAMP_1000_US 0x02
mluis 0:45c4f0364ca4 386 #define RF_PARAMP_0500_US 0x03
mluis 0:45c4f0364ca4 387 #define RF_PARAMP_0250_US 0x04
mluis 0:45c4f0364ca4 388 #define RF_PARAMP_0125_US 0x05
mluis 0:45c4f0364ca4 389 #define RF_PARAMP_0100_US 0x06
mluis 0:45c4f0364ca4 390 #define RF_PARAMP_0062_US 0x07
mluis 0:45c4f0364ca4 391 #define RF_PARAMP_0050_US 0x08
mluis 0:45c4f0364ca4 392 #define RF_PARAMP_0040_US 0x09 // Default
mluis 0:45c4f0364ca4 393 #define RF_PARAMP_0031_US 0x0A
mluis 0:45c4f0364ca4 394 #define RF_PARAMP_0025_US 0x0B
mluis 0:45c4f0364ca4 395 #define RF_PARAMP_0020_US 0x0C
mluis 0:45c4f0364ca4 396 #define RF_PARAMP_0015_US 0x0D
mluis 0:45c4f0364ca4 397 #define RF_PARAMP_0012_US 0x0E
mluis 0:45c4f0364ca4 398 #define RF_PARAMP_0010_US 0x0F
mluis 0:45c4f0364ca4 399
mluis 0:45c4f0364ca4 400 /*!
mluis 0:45c4f0364ca4 401 * RegOcp
mluis 0:45c4f0364ca4 402 */
mluis 0:45c4f0364ca4 403 #define RF_OCP_MASK 0xDF
mluis 0:45c4f0364ca4 404 #define RF_OCP_ON 0x20 // Default
mluis 0:45c4f0364ca4 405 #define RF_OCP_OFF 0x00
mluis 0:45c4f0364ca4 406
mluis 0:45c4f0364ca4 407 #define RF_OCP_TRIM_MASK 0xE0
mluis 0:45c4f0364ca4 408 #define RF_OCP_TRIM_045_MA 0x00
mluis 0:45c4f0364ca4 409 #define RF_OCP_TRIM_050_MA 0x01
mluis 0:45c4f0364ca4 410 #define RF_OCP_TRIM_055_MA 0x02
mluis 0:45c4f0364ca4 411 #define RF_OCP_TRIM_060_MA 0x03
mluis 0:45c4f0364ca4 412 #define RF_OCP_TRIM_065_MA 0x04
mluis 0:45c4f0364ca4 413 #define RF_OCP_TRIM_070_MA 0x05
mluis 0:45c4f0364ca4 414 #define RF_OCP_TRIM_075_MA 0x06
mluis 0:45c4f0364ca4 415 #define RF_OCP_TRIM_080_MA 0x07
mluis 0:45c4f0364ca4 416 #define RF_OCP_TRIM_085_MA 0x08
mluis 0:45c4f0364ca4 417 #define RF_OCP_TRIM_090_MA 0x09
mluis 0:45c4f0364ca4 418 #define RF_OCP_TRIM_095_MA 0x0A
mluis 0:45c4f0364ca4 419 #define RF_OCP_TRIM_100_MA 0x0B // Default
mluis 0:45c4f0364ca4 420 #define RF_OCP_TRIM_105_MA 0x0C
mluis 0:45c4f0364ca4 421 #define RF_OCP_TRIM_110_MA 0x0D
mluis 0:45c4f0364ca4 422 #define RF_OCP_TRIM_115_MA 0x0E
mluis 0:45c4f0364ca4 423 #define RF_OCP_TRIM_120_MA 0x0F
mluis 0:45c4f0364ca4 424 #define RF_OCP_TRIM_130_MA 0x10
mluis 0:45c4f0364ca4 425 #define RF_OCP_TRIM_140_MA 0x11
mluis 0:45c4f0364ca4 426 #define RF_OCP_TRIM_150_MA 0x12
mluis 0:45c4f0364ca4 427 #define RF_OCP_TRIM_160_MA 0x13
mluis 0:45c4f0364ca4 428 #define RF_OCP_TRIM_170_MA 0x14
mluis 0:45c4f0364ca4 429 #define RF_OCP_TRIM_180_MA 0x15
mluis 0:45c4f0364ca4 430 #define RF_OCP_TRIM_190_MA 0x16
mluis 0:45c4f0364ca4 431 #define RF_OCP_TRIM_200_MA 0x17
mluis 0:45c4f0364ca4 432 #define RF_OCP_TRIM_210_MA 0x18
mluis 0:45c4f0364ca4 433 #define RF_OCP_TRIM_220_MA 0x19
mluis 0:45c4f0364ca4 434 #define RF_OCP_TRIM_230_MA 0x1A
mluis 0:45c4f0364ca4 435 #define RF_OCP_TRIM_240_MA 0x1B
mluis 0:45c4f0364ca4 436
mluis 0:45c4f0364ca4 437 /*!
mluis 0:45c4f0364ca4 438 * RegLna
mluis 0:45c4f0364ca4 439 */
mluis 0:45c4f0364ca4 440 #define RF_LNA_GAIN_MASK 0x1F
mluis 0:45c4f0364ca4 441 #define RF_LNA_GAIN_G1 0x20 // Default
mluis 0:45c4f0364ca4 442 #define RF_LNA_GAIN_G2 0x40
mluis 0:45c4f0364ca4 443 #define RF_LNA_GAIN_G3 0x60
mluis 0:45c4f0364ca4 444 #define RF_LNA_GAIN_G4 0x80
mluis 0:45c4f0364ca4 445 #define RF_LNA_GAIN_G5 0xA0
mluis 0:45c4f0364ca4 446 #define RF_LNA_GAIN_G6 0xC0
mluis 0:45c4f0364ca4 447
mluis 0:45c4f0364ca4 448 #define RF_LNA_BOOST_MASK 0xFC
mluis 0:45c4f0364ca4 449 #define RF_LNA_BOOST_OFF 0x00 // Default
mluis 0:45c4f0364ca4 450 #define RF_LNA_BOOST_ON 0x03
mluis 0:45c4f0364ca4 451
mluis 0:45c4f0364ca4 452 /*!
mluis 0:45c4f0364ca4 453 * RegRxConfig
mluis 0:45c4f0364ca4 454 */
mluis 0:45c4f0364ca4 455 #define RF_RXCONFIG_RESTARTRXONCOLLISION_MASK 0x7F
mluis 0:45c4f0364ca4 456 #define RF_RXCONFIG_RESTARTRXONCOLLISION_ON 0x80
mluis 0:45c4f0364ca4 457 #define RF_RXCONFIG_RESTARTRXONCOLLISION_OFF 0x00 // Default
mluis 0:45c4f0364ca4 458
mluis 0:45c4f0364ca4 459 #define RF_RXCONFIG_RESTARTRXWITHOUTPLLLOCK 0x40 // Write only
mluis 0:45c4f0364ca4 460
mluis 0:45c4f0364ca4 461 #define RF_RXCONFIG_RESTARTRXWITHPLLLOCK 0x20 // Write only
mluis 0:45c4f0364ca4 462
mluis 0:45c4f0364ca4 463 #define RF_RXCONFIG_AFCAUTO_MASK 0xEF
mluis 0:45c4f0364ca4 464 #define RF_RXCONFIG_AFCAUTO_ON 0x10
mluis 0:45c4f0364ca4 465 #define RF_RXCONFIG_AFCAUTO_OFF 0x00 // Default
mluis 0:45c4f0364ca4 466
mluis 0:45c4f0364ca4 467 #define RF_RXCONFIG_AGCAUTO_MASK 0xF7
mluis 0:45c4f0364ca4 468 #define RF_RXCONFIG_AGCAUTO_ON 0x08 // Default
mluis 0:45c4f0364ca4 469 #define RF_RXCONFIG_AGCAUTO_OFF 0x00
mluis 0:45c4f0364ca4 470
mluis 0:45c4f0364ca4 471 #define RF_RXCONFIG_RXTRIGER_MASK 0xF8
mluis 0:45c4f0364ca4 472 #define RF_RXCONFIG_RXTRIGER_OFF 0x00
mluis 0:45c4f0364ca4 473 #define RF_RXCONFIG_RXTRIGER_RSSI 0x01
mluis 0:45c4f0364ca4 474 #define RF_RXCONFIG_RXTRIGER_PREAMBLEDETECT 0x06 // Default
mluis 0:45c4f0364ca4 475 #define RF_RXCONFIG_RXTRIGER_RSSI_PREAMBLEDETECT 0x07
mluis 0:45c4f0364ca4 476
mluis 0:45c4f0364ca4 477 /*!
mluis 0:45c4f0364ca4 478 * RegRssiConfig
mluis 0:45c4f0364ca4 479 */
mluis 0:45c4f0364ca4 480 #define RF_RSSICONFIG_OFFSET_MASK 0x07
mluis 0:45c4f0364ca4 481 #define RF_RSSICONFIG_OFFSET_P_00_DB 0x00 // Default
mluis 0:45c4f0364ca4 482 #define RF_RSSICONFIG_OFFSET_P_01_DB 0x08
mluis 0:45c4f0364ca4 483 #define RF_RSSICONFIG_OFFSET_P_02_DB 0x10
mluis 0:45c4f0364ca4 484 #define RF_RSSICONFIG_OFFSET_P_03_DB 0x18
mluis 0:45c4f0364ca4 485 #define RF_RSSICONFIG_OFFSET_P_04_DB 0x20
mluis 0:45c4f0364ca4 486 #define RF_RSSICONFIG_OFFSET_P_05_DB 0x28
mluis 0:45c4f0364ca4 487 #define RF_RSSICONFIG_OFFSET_P_06_DB 0x30
mluis 0:45c4f0364ca4 488 #define RF_RSSICONFIG_OFFSET_P_07_DB 0x38
mluis 0:45c4f0364ca4 489 #define RF_RSSICONFIG_OFFSET_P_08_DB 0x40
mluis 0:45c4f0364ca4 490 #define RF_RSSICONFIG_OFFSET_P_09_DB 0x48
mluis 0:45c4f0364ca4 491 #define RF_RSSICONFIG_OFFSET_P_10_DB 0x50
mluis 0:45c4f0364ca4 492 #define RF_RSSICONFIG_OFFSET_P_11_DB 0x58
mluis 0:45c4f0364ca4 493 #define RF_RSSICONFIG_OFFSET_P_12_DB 0x60
mluis 0:45c4f0364ca4 494 #define RF_RSSICONFIG_OFFSET_P_13_DB 0x68
mluis 0:45c4f0364ca4 495 #define RF_RSSICONFIG_OFFSET_P_14_DB 0x70
mluis 0:45c4f0364ca4 496 #define RF_RSSICONFIG_OFFSET_P_15_DB 0x78
mluis 0:45c4f0364ca4 497 #define RF_RSSICONFIG_OFFSET_M_16_DB 0x80
mluis 0:45c4f0364ca4 498 #define RF_RSSICONFIG_OFFSET_M_15_DB 0x88
mluis 0:45c4f0364ca4 499 #define RF_RSSICONFIG_OFFSET_M_14_DB 0x90
mluis 0:45c4f0364ca4 500 #define RF_RSSICONFIG_OFFSET_M_13_DB 0x98
mluis 0:45c4f0364ca4 501 #define RF_RSSICONFIG_OFFSET_M_12_DB 0xA0
mluis 0:45c4f0364ca4 502 #define RF_RSSICONFIG_OFFSET_M_11_DB 0xA8
mluis 0:45c4f0364ca4 503 #define RF_RSSICONFIG_OFFSET_M_10_DB 0xB0
mluis 0:45c4f0364ca4 504 #define RF_RSSICONFIG_OFFSET_M_09_DB 0xB8
mluis 0:45c4f0364ca4 505 #define RF_RSSICONFIG_OFFSET_M_08_DB 0xC0
mluis 0:45c4f0364ca4 506 #define RF_RSSICONFIG_OFFSET_M_07_DB 0xC8
mluis 0:45c4f0364ca4 507 #define RF_RSSICONFIG_OFFSET_M_06_DB 0xD0
mluis 0:45c4f0364ca4 508 #define RF_RSSICONFIG_OFFSET_M_05_DB 0xD8
mluis 0:45c4f0364ca4 509 #define RF_RSSICONFIG_OFFSET_M_04_DB 0xE0
mluis 0:45c4f0364ca4 510 #define RF_RSSICONFIG_OFFSET_M_03_DB 0xE8
mluis 0:45c4f0364ca4 511 #define RF_RSSICONFIG_OFFSET_M_02_DB 0xF0
mluis 0:45c4f0364ca4 512 #define RF_RSSICONFIG_OFFSET_M_01_DB 0xF8
mluis 0:45c4f0364ca4 513
mluis 0:45c4f0364ca4 514 #define RF_RSSICONFIG_SMOOTHING_MASK 0xF8
mluis 0:45c4f0364ca4 515 #define RF_RSSICONFIG_SMOOTHING_2 0x00
mluis 0:45c4f0364ca4 516 #define RF_RSSICONFIG_SMOOTHING_4 0x01
mluis 0:45c4f0364ca4 517 #define RF_RSSICONFIG_SMOOTHING_8 0x02 // Default
mluis 0:45c4f0364ca4 518 #define RF_RSSICONFIG_SMOOTHING_16 0x03
mluis 0:45c4f0364ca4 519 #define RF_RSSICONFIG_SMOOTHING_32 0x04
mluis 0:45c4f0364ca4 520 #define RF_RSSICONFIG_SMOOTHING_64 0x05
mluis 0:45c4f0364ca4 521 #define RF_RSSICONFIG_SMOOTHING_128 0x06
mluis 0:45c4f0364ca4 522 #define RF_RSSICONFIG_SMOOTHING_256 0x07
mluis 0:45c4f0364ca4 523
mluis 0:45c4f0364ca4 524 /*!
mluis 0:45c4f0364ca4 525 * RegRssiCollision
mluis 0:45c4f0364ca4 526 */
mluis 0:45c4f0364ca4 527 #define RF_RSSICOLISION_THRESHOLD 0x0A // Default
mluis 0:45c4f0364ca4 528
mluis 0:45c4f0364ca4 529 /*!
mluis 0:45c4f0364ca4 530 * RegRssiThresh
mluis 0:45c4f0364ca4 531 */
mluis 0:45c4f0364ca4 532 #define RF_RSSITHRESH_THRESHOLD 0xFF // Default
mluis 0:45c4f0364ca4 533
mluis 0:45c4f0364ca4 534 /*!
mluis 0:45c4f0364ca4 535 * RegRssiValue (Read Only)
mluis 0:45c4f0364ca4 536 */
mluis 0:45c4f0364ca4 537
mluis 0:45c4f0364ca4 538 /*!
mluis 0:45c4f0364ca4 539 * RegRxBw
mluis 0:45c4f0364ca4 540 */
mluis 0:45c4f0364ca4 541 #define RF_RXBW_MANT_MASK 0xE7
mluis 0:45c4f0364ca4 542 #define RF_RXBW_MANT_16 0x00
mluis 0:45c4f0364ca4 543 #define RF_RXBW_MANT_20 0x08
mluis 0:45c4f0364ca4 544 #define RF_RXBW_MANT_24 0x10 // Default
mluis 0:45c4f0364ca4 545
mluis 0:45c4f0364ca4 546 #define RF_RXBW_EXP_MASK 0xF8
mluis 0:45c4f0364ca4 547 #define RF_RXBW_EXP_0 0x00
mluis 0:45c4f0364ca4 548 #define RF_RXBW_EXP_1 0x01
mluis 0:45c4f0364ca4 549 #define RF_RXBW_EXP_2 0x02
mluis 0:45c4f0364ca4 550 #define RF_RXBW_EXP_3 0x03
mluis 0:45c4f0364ca4 551 #define RF_RXBW_EXP_4 0x04
mluis 0:45c4f0364ca4 552 #define RF_RXBW_EXP_5 0x05 // Default
mluis 0:45c4f0364ca4 553 #define RF_RXBW_EXP_6 0x06
mluis 0:45c4f0364ca4 554 #define RF_RXBW_EXP_7 0x07
mluis 0:45c4f0364ca4 555
mluis 0:45c4f0364ca4 556 /*!
mluis 0:45c4f0364ca4 557 * RegAfcBw
mluis 0:45c4f0364ca4 558 */
mluis 0:45c4f0364ca4 559 #define RF_AFCBW_MANTAFC_MASK 0xE7
mluis 0:45c4f0364ca4 560 #define RF_AFCBW_MANTAFC_16 0x00
mluis 0:45c4f0364ca4 561 #define RF_AFCBW_MANTAFC_20 0x08 // Default
mluis 0:45c4f0364ca4 562 #define RF_AFCBW_MANTAFC_24 0x10
mluis 0:45c4f0364ca4 563
mluis 0:45c4f0364ca4 564 #define RF_AFCBW_EXPAFC_MASK 0xF8
mluis 0:45c4f0364ca4 565 #define RF_AFCBW_EXPAFC_0 0x00
mluis 0:45c4f0364ca4 566 #define RF_AFCBW_EXPAFC_1 0x01
mluis 0:45c4f0364ca4 567 #define RF_AFCBW_EXPAFC_2 0x02
mluis 0:45c4f0364ca4 568 #define RF_AFCBW_EXPAFC_3 0x03 // Default
mluis 0:45c4f0364ca4 569 #define RF_AFCBW_EXPAFC_4 0x04
mluis 0:45c4f0364ca4 570 #define RF_AFCBW_EXPAFC_5 0x05
mluis 0:45c4f0364ca4 571 #define RF_AFCBW_EXPAFC_6 0x06
mluis 0:45c4f0364ca4 572 #define RF_AFCBW_EXPAFC_7 0x07
mluis 0:45c4f0364ca4 573
mluis 0:45c4f0364ca4 574 /*!
mluis 0:45c4f0364ca4 575 * RegOokPeak
mluis 0:45c4f0364ca4 576 */
mluis 0:45c4f0364ca4 577 #define RF_OOKPEAK_BITSYNC_MASK 0xDF // Default
mluis 0:45c4f0364ca4 578 #define RF_OOKPEAK_BITSYNC_ON 0x20 // Default
mluis 0:45c4f0364ca4 579 #define RF_OOKPEAK_BITSYNC_OFF 0x00
mluis 0:45c4f0364ca4 580
mluis 0:45c4f0364ca4 581 #define RF_OOKPEAK_OOKTHRESHTYPE_MASK 0xE7
mluis 0:45c4f0364ca4 582 #define RF_OOKPEAK_OOKTHRESHTYPE_FIXED 0x00
mluis 0:45c4f0364ca4 583 #define RF_OOKPEAK_OOKTHRESHTYPE_PEAK 0x08 // Default
mluis 0:45c4f0364ca4 584 #define RF_OOKPEAK_OOKTHRESHTYPE_AVERAGE 0x10
mluis 0:45c4f0364ca4 585
mluis 0:45c4f0364ca4 586 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_MASK 0xF8
mluis 0:45c4f0364ca4 587 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_0_5_DB 0x00 // Default
mluis 0:45c4f0364ca4 588 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_1_0_DB 0x01
mluis 0:45c4f0364ca4 589 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_1_5_DB 0x02
mluis 0:45c4f0364ca4 590 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_2_0_DB 0x03
mluis 0:45c4f0364ca4 591 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_3_0_DB 0x04
mluis 0:45c4f0364ca4 592 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_4_0_DB 0x05
mluis 0:45c4f0364ca4 593 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_5_0_DB 0x06
mluis 0:45c4f0364ca4 594 #define RF_OOKPEAK_OOKPEAKTHRESHSTEP_6_0_DB 0x07
mluis 0:45c4f0364ca4 595
mluis 0:45c4f0364ca4 596 /*!
mluis 0:45c4f0364ca4 597 * RegOokFix
mluis 0:45c4f0364ca4 598 */
mluis 0:45c4f0364ca4 599 #define RF_OOKFIX_OOKFIXEDTHRESHOLD 0x0C // Default
mluis 0:45c4f0364ca4 600
mluis 0:45c4f0364ca4 601 /*!
mluis 0:45c4f0364ca4 602 * RegOokAvg
mluis 0:45c4f0364ca4 603 */
mluis 0:45c4f0364ca4 604 #define RF_OOKAVG_OOKPEAKTHRESHDEC_MASK 0x1F
mluis 0:45c4f0364ca4 605 #define RF_OOKAVG_OOKPEAKTHRESHDEC_000 0x00 // Default
mluis 0:45c4f0364ca4 606 #define RF_OOKAVG_OOKPEAKTHRESHDEC_001 0x20
mluis 0:45c4f0364ca4 607 #define RF_OOKAVG_OOKPEAKTHRESHDEC_010 0x40
mluis 0:45c4f0364ca4 608 #define RF_OOKAVG_OOKPEAKTHRESHDEC_011 0x60
mluis 0:45c4f0364ca4 609 #define RF_OOKAVG_OOKPEAKTHRESHDEC_100 0x80
mluis 0:45c4f0364ca4 610 #define RF_OOKAVG_OOKPEAKTHRESHDEC_101 0xA0
mluis 0:45c4f0364ca4 611 #define RF_OOKAVG_OOKPEAKTHRESHDEC_110 0xC0
mluis 0:45c4f0364ca4 612 #define RF_OOKAVG_OOKPEAKTHRESHDEC_111 0xE0
mluis 0:45c4f0364ca4 613
mluis 0:45c4f0364ca4 614 #define RF_OOKAVG_AVERAGEOFFSET_MASK 0xF3
mluis 0:45c4f0364ca4 615 #define RF_OOKAVG_AVERAGEOFFSET_0_DB 0x00 // Default
mluis 0:45c4f0364ca4 616 #define RF_OOKAVG_AVERAGEOFFSET_2_DB 0x04
mluis 0:45c4f0364ca4 617 #define RF_OOKAVG_AVERAGEOFFSET_4_DB 0x08
mluis 0:45c4f0364ca4 618 #define RF_OOKAVG_AVERAGEOFFSET_6_DB 0x0C
mluis 0:45c4f0364ca4 619
mluis 0:45c4f0364ca4 620 #define RF_OOKAVG_OOKAVERAGETHRESHFILT_MASK 0xFC
mluis 0:45c4f0364ca4 621 #define RF_OOKAVG_OOKAVERAGETHRESHFILT_00 0x00
mluis 0:45c4f0364ca4 622 #define RF_OOKAVG_OOKAVERAGETHRESHFILT_01 0x01
mluis 0:45c4f0364ca4 623 #define RF_OOKAVG_OOKAVERAGETHRESHFILT_10 0x02 // Default
mluis 0:45c4f0364ca4 624 #define RF_OOKAVG_OOKAVERAGETHRESHFILT_11 0x03
mluis 0:45c4f0364ca4 625
mluis 0:45c4f0364ca4 626 /*!
mluis 0:45c4f0364ca4 627 * RegAfcFei
mluis 0:45c4f0364ca4 628 */
mluis 0:45c4f0364ca4 629 #define RF_AFCFEI_AGCSTART 0x10
mluis 0:45c4f0364ca4 630
mluis 0:45c4f0364ca4 631 #define RF_AFCFEI_AFCCLEAR 0x02
mluis 0:45c4f0364ca4 632
mluis 0:45c4f0364ca4 633 #define RF_AFCFEI_AFCAUTOCLEAR_MASK 0xFE
mluis 0:45c4f0364ca4 634 #define RF_AFCFEI_AFCAUTOCLEAR_ON 0x01
mluis 0:45c4f0364ca4 635 #define RF_AFCFEI_AFCAUTOCLEAR_OFF 0x00 // Default
mluis 0:45c4f0364ca4 636
mluis 0:45c4f0364ca4 637 /*!
mluis 0:45c4f0364ca4 638 * RegAfcMsb (Read Only)
mluis 0:45c4f0364ca4 639 */
mluis 0:45c4f0364ca4 640
mluis 0:45c4f0364ca4 641 /*!
mluis 0:45c4f0364ca4 642 * RegAfcLsb (Read Only)
mluis 0:45c4f0364ca4 643 */
mluis 0:45c4f0364ca4 644
mluis 0:45c4f0364ca4 645 /*!
mluis 0:45c4f0364ca4 646 * RegFeiMsb (Read Only)
mluis 0:45c4f0364ca4 647 */
mluis 0:45c4f0364ca4 648
mluis 0:45c4f0364ca4 649 /*!
mluis 0:45c4f0364ca4 650 * RegFeiLsb (Read Only)
mluis 0:45c4f0364ca4 651 */
mluis 0:45c4f0364ca4 652
mluis 0:45c4f0364ca4 653 /*!
mluis 0:45c4f0364ca4 654 * RegPreambleDetect
mluis 0:45c4f0364ca4 655 */
mluis 0:45c4f0364ca4 656 #define RF_PREAMBLEDETECT_DETECTOR_MASK 0x7F
mluis 0:45c4f0364ca4 657 #define RF_PREAMBLEDETECT_DETECTOR_ON 0x80 // Default
mluis 0:45c4f0364ca4 658 #define RF_PREAMBLEDETECT_DETECTOR_OFF 0x00
mluis 0:45c4f0364ca4 659
mluis 0:45c4f0364ca4 660 #define RF_PREAMBLEDETECT_DETECTORSIZE_MASK 0x9F
mluis 0:45c4f0364ca4 661 #define RF_PREAMBLEDETECT_DETECTORSIZE_1 0x00
mluis 0:45c4f0364ca4 662 #define RF_PREAMBLEDETECT_DETECTORSIZE_2 0x20 // Default
mluis 0:45c4f0364ca4 663 #define RF_PREAMBLEDETECT_DETECTORSIZE_3 0x40
mluis 0:45c4f0364ca4 664 #define RF_PREAMBLEDETECT_DETECTORSIZE_4 0x60
mluis 0:45c4f0364ca4 665
mluis 0:45c4f0364ca4 666 #define RF_PREAMBLEDETECT_DETECTORTOL_MASK 0xE0
mluis 0:45c4f0364ca4 667 #define RF_PREAMBLEDETECT_DETECTORTOL_0 0x00
mluis 0:45c4f0364ca4 668 #define RF_PREAMBLEDETECT_DETECTORTOL_1 0x01
mluis 0:45c4f0364ca4 669 #define RF_PREAMBLEDETECT_DETECTORTOL_2 0x02
mluis 0:45c4f0364ca4 670 #define RF_PREAMBLEDETECT_DETECTORTOL_3 0x03
mluis 0:45c4f0364ca4 671 #define RF_PREAMBLEDETECT_DETECTORTOL_4 0x04
mluis 0:45c4f0364ca4 672 #define RF_PREAMBLEDETECT_DETECTORTOL_5 0x05
mluis 0:45c4f0364ca4 673 #define RF_PREAMBLEDETECT_DETECTORTOL_6 0x06
mluis 0:45c4f0364ca4 674 #define RF_PREAMBLEDETECT_DETECTORTOL_7 0x07
mluis 0:45c4f0364ca4 675 #define RF_PREAMBLEDETECT_DETECTORTOL_8 0x08
mluis 0:45c4f0364ca4 676 #define RF_PREAMBLEDETECT_DETECTORTOL_9 0x09
mluis 0:45c4f0364ca4 677 #define RF_PREAMBLEDETECT_DETECTORTOL_10 0x0A // Default
mluis 0:45c4f0364ca4 678 #define RF_PREAMBLEDETECT_DETECTORTOL_11 0x0B
mluis 0:45c4f0364ca4 679 #define RF_PREAMBLEDETECT_DETECTORTOL_12 0x0C
mluis 0:45c4f0364ca4 680 #define RF_PREAMBLEDETECT_DETECTORTOL_13 0x0D
mluis 0:45c4f0364ca4 681 #define RF_PREAMBLEDETECT_DETECTORTOL_14 0x0E
mluis 0:45c4f0364ca4 682 #define RF_PREAMBLEDETECT_DETECTORTOL_15 0x0F
mluis 0:45c4f0364ca4 683 #define RF_PREAMBLEDETECT_DETECTORTOL_16 0x10
mluis 0:45c4f0364ca4 684 #define RF_PREAMBLEDETECT_DETECTORTOL_17 0x11
mluis 0:45c4f0364ca4 685 #define RF_PREAMBLEDETECT_DETECTORTOL_18 0x12
mluis 0:45c4f0364ca4 686 #define RF_PREAMBLEDETECT_DETECTORTOL_19 0x13
mluis 0:45c4f0364ca4 687 #define RF_PREAMBLEDETECT_DETECTORTOL_20 0x14
mluis 0:45c4f0364ca4 688 #define RF_PREAMBLEDETECT_DETECTORTOL_21 0x15
mluis 0:45c4f0364ca4 689 #define RF_PREAMBLEDETECT_DETECTORTOL_22 0x16
mluis 0:45c4f0364ca4 690 #define RF_PREAMBLEDETECT_DETECTORTOL_23 0x17
mluis 0:45c4f0364ca4 691 #define RF_PREAMBLEDETECT_DETECTORTOL_24 0x18
mluis 0:45c4f0364ca4 692 #define RF_PREAMBLEDETECT_DETECTORTOL_25 0x19
mluis 0:45c4f0364ca4 693 #define RF_PREAMBLEDETECT_DETECTORTOL_26 0x1A
mluis 0:45c4f0364ca4 694 #define RF_PREAMBLEDETECT_DETECTORTOL_27 0x1B
mluis 0:45c4f0364ca4 695 #define RF_PREAMBLEDETECT_DETECTORTOL_28 0x1C
mluis 0:45c4f0364ca4 696 #define RF_PREAMBLEDETECT_DETECTORTOL_29 0x1D
mluis 0:45c4f0364ca4 697 #define RF_PREAMBLEDETECT_DETECTORTOL_30 0x1E
mluis 0:45c4f0364ca4 698 #define RF_PREAMBLEDETECT_DETECTORTOL_31 0x1F
mluis 0:45c4f0364ca4 699
mluis 0:45c4f0364ca4 700 /*!
mluis 0:45c4f0364ca4 701 * RegRxTimeout1
mluis 0:45c4f0364ca4 702 */
mluis 0:45c4f0364ca4 703 #define RF_RXTIMEOUT1_TIMEOUTRXRSSI 0x00 // Default
mluis 0:45c4f0364ca4 704
mluis 0:45c4f0364ca4 705 /*!
mluis 0:45c4f0364ca4 706 * RegRxTimeout2
mluis 0:45c4f0364ca4 707 */
mluis 0:45c4f0364ca4 708 #define RF_RXTIMEOUT2_TIMEOUTRXPREAMBLE 0x00 // Default
mluis 0:45c4f0364ca4 709
mluis 0:45c4f0364ca4 710 /*!
mluis 0:45c4f0364ca4 711 * RegRxTimeout3
mluis 0:45c4f0364ca4 712 */
mluis 0:45c4f0364ca4 713 #define RF_RXTIMEOUT3_TIMEOUTSIGNALSYNC 0x00 // Default
mluis 0:45c4f0364ca4 714
mluis 0:45c4f0364ca4 715 /*!
mluis 0:45c4f0364ca4 716 * RegRxDelay
mluis 0:45c4f0364ca4 717 */
mluis 0:45c4f0364ca4 718 #define RF_RXDELAY_INTERPACKETRXDELAY 0x00 // Default
mluis 0:45c4f0364ca4 719
mluis 0:45c4f0364ca4 720 /*!
mluis 0:45c4f0364ca4 721 * RegOsc
mluis 0:45c4f0364ca4 722 */
mluis 0:45c4f0364ca4 723 #define RF_OSC_RCCALSTART 0x08
mluis 0:45c4f0364ca4 724
mluis 0:45c4f0364ca4 725 #define RF_OSC_CLKOUT_MASK 0xF8
mluis 0:45c4f0364ca4 726 #define RF_OSC_CLKOUT_32_MHZ 0x00
mluis 0:45c4f0364ca4 727 #define RF_OSC_CLKOUT_16_MHZ 0x01
mluis 0:45c4f0364ca4 728 #define RF_OSC_CLKOUT_8_MHZ 0x02
mluis 0:45c4f0364ca4 729 #define RF_OSC_CLKOUT_4_MHZ 0x03
mluis 0:45c4f0364ca4 730 #define RF_OSC_CLKOUT_2_MHZ 0x04
mluis 0:45c4f0364ca4 731 #define RF_OSC_CLKOUT_1_MHZ 0x05
mluis 0:45c4f0364ca4 732 #define RF_OSC_CLKOUT_RC 0x06
mluis 0:45c4f0364ca4 733 #define RF_OSC_CLKOUT_OFF 0x07 // Default
mluis 0:45c4f0364ca4 734
mluis 0:45c4f0364ca4 735 /*!
mluis 0:45c4f0364ca4 736 * RegPreambleMsb/RegPreambleLsb
mluis 0:45c4f0364ca4 737 */
mluis 0:45c4f0364ca4 738 #define RF_PREAMBLEMSB_SIZE 0x00 // Default
mluis 0:45c4f0364ca4 739 #define RF_PREAMBLELSB_SIZE 0x03 // Default
mluis 0:45c4f0364ca4 740
mluis 0:45c4f0364ca4 741 /*!
mluis 0:45c4f0364ca4 742 * RegSyncConfig
mluis 0:45c4f0364ca4 743 */
mluis 0:45c4f0364ca4 744 #define RF_SYNCCONFIG_AUTORESTARTRXMODE_MASK 0x3F
mluis 0:45c4f0364ca4 745 #define RF_SYNCCONFIG_AUTORESTARTRXMODE_WAITPLL_ON 0x80 // Default
mluis 0:45c4f0364ca4 746 #define RF_SYNCCONFIG_AUTORESTARTRXMODE_WAITPLL_OFF 0x40
mluis 0:45c4f0364ca4 747 #define RF_SYNCCONFIG_AUTORESTARTRXMODE_OFF 0x00
mluis 0:45c4f0364ca4 748
mluis 0:45c4f0364ca4 749
mluis 0:45c4f0364ca4 750 #define RF_SYNCCONFIG_PREAMBLEPOLARITY_MASK 0xDF
mluis 0:45c4f0364ca4 751 #define RF_SYNCCONFIG_PREAMBLEPOLARITY_55 0x20
mluis 0:45c4f0364ca4 752 #define RF_SYNCCONFIG_PREAMBLEPOLARITY_AA 0x00 // Default
mluis 0:45c4f0364ca4 753
mluis 0:45c4f0364ca4 754 #define RF_SYNCCONFIG_SYNC_MASK 0xEF
mluis 0:45c4f0364ca4 755 #define RF_SYNCCONFIG_SYNC_ON 0x10 // Default
mluis 0:45c4f0364ca4 756 #define RF_SYNCCONFIG_SYNC_OFF 0x00
mluis 0:45c4f0364ca4 757
mluis 0:45c4f0364ca4 758 #define RF_SYNCCONFIG_FIFOFILLCONDITION_MASK 0xF7
mluis 0:45c4f0364ca4 759 #define RF_SYNCCONFIG_FIFOFILLCONDITION_AUTO 0x00 // Default
mluis 0:45c4f0364ca4 760 #define RF_SYNCCONFIG_FIFOFILLCONDITION_MANUAL 0x08
mluis 0:45c4f0364ca4 761
mluis 0:45c4f0364ca4 762 #define RF_SYNCCONFIG_SYNCSIZE_MASK 0xF8
mluis 0:45c4f0364ca4 763 #define RF_SYNCCONFIG_SYNCSIZE_1 0x00
mluis 0:45c4f0364ca4 764 #define RF_SYNCCONFIG_SYNCSIZE_2 0x01
mluis 0:45c4f0364ca4 765 #define RF_SYNCCONFIG_SYNCSIZE_3 0x02
mluis 0:45c4f0364ca4 766 #define RF_SYNCCONFIG_SYNCSIZE_4 0x03 // Default
mluis 0:45c4f0364ca4 767 #define RF_SYNCCONFIG_SYNCSIZE_5 0x04
mluis 0:45c4f0364ca4 768 #define RF_SYNCCONFIG_SYNCSIZE_6 0x05
mluis 0:45c4f0364ca4 769 #define RF_SYNCCONFIG_SYNCSIZE_7 0x06
mluis 0:45c4f0364ca4 770 #define RF_SYNCCONFIG_SYNCSIZE_8 0x07
mluis 0:45c4f0364ca4 771
mluis 0:45c4f0364ca4 772 /*!
mluis 0:45c4f0364ca4 773 * RegSyncValue1-8
mluis 0:45c4f0364ca4 774 */
mluis 0:45c4f0364ca4 775 #define RF_SYNCVALUE1_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 776 #define RF_SYNCVALUE2_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 777 #define RF_SYNCVALUE3_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 778 #define RF_SYNCVALUE4_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 779 #define RF_SYNCVALUE5_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 780 #define RF_SYNCVALUE6_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 781 #define RF_SYNCVALUE7_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 782 #define RF_SYNCVALUE8_SYNCVALUE 0x01 // Default
mluis 0:45c4f0364ca4 783
mluis 0:45c4f0364ca4 784 /*!
mluis 0:45c4f0364ca4 785 * RegPacketConfig1
mluis 0:45c4f0364ca4 786 */
mluis 0:45c4f0364ca4 787 #define RF_PACKETCONFIG1_PACKETFORMAT_MASK 0x7F
mluis 0:45c4f0364ca4 788 #define RF_PACKETCONFIG1_PACKETFORMAT_FIXED 0x00
mluis 0:45c4f0364ca4 789 #define RF_PACKETCONFIG1_PACKETFORMAT_VARIABLE 0x80 // Default
mluis 0:45c4f0364ca4 790
mluis 0:45c4f0364ca4 791 #define RF_PACKETCONFIG1_DCFREE_MASK 0x9F
mluis 0:45c4f0364ca4 792 #define RF_PACKETCONFIG1_DCFREE_OFF 0x00 // Default
mluis 0:45c4f0364ca4 793 #define RF_PACKETCONFIG1_DCFREE_MANCHESTER 0x20
mluis 0:45c4f0364ca4 794 #define RF_PACKETCONFIG1_DCFREE_WHITENING 0x40
mluis 0:45c4f0364ca4 795
mluis 0:45c4f0364ca4 796 #define RF_PACKETCONFIG1_CRC_MASK 0xEF
mluis 0:45c4f0364ca4 797 #define RF_PACKETCONFIG1_CRC_ON 0x10 // Default
mluis 0:45c4f0364ca4 798 #define RF_PACKETCONFIG1_CRC_OFF 0x00
mluis 0:45c4f0364ca4 799
mluis 0:45c4f0364ca4 800 #define RF_PACKETCONFIG1_CRCAUTOCLEAR_MASK 0xF7
mluis 0:45c4f0364ca4 801 #define RF_PACKETCONFIG1_CRCAUTOCLEAR_ON 0x00 // Default
mluis 0:45c4f0364ca4 802 #define RF_PACKETCONFIG1_CRCAUTOCLEAR_OFF 0x08
mluis 0:45c4f0364ca4 803
mluis 0:45c4f0364ca4 804 #define RF_PACKETCONFIG1_ADDRSFILTERING_MASK 0xF9
mluis 0:45c4f0364ca4 805 #define RF_PACKETCONFIG1_ADDRSFILTERING_OFF 0x00 // Default
mluis 0:45c4f0364ca4 806 #define RF_PACKETCONFIG1_ADDRSFILTERING_NODE 0x02
mluis 0:45c4f0364ca4 807 #define RF_PACKETCONFIG1_ADDRSFILTERING_NODEBROADCAST 0x04
mluis 0:45c4f0364ca4 808
mluis 0:45c4f0364ca4 809 #define RF_PACKETCONFIG1_CRCWHITENINGTYPE_MASK 0xFE
mluis 0:45c4f0364ca4 810 #define RF_PACKETCONFIG1_CRCWHITENINGTYPE_CCITT 0x00 // Default
mluis 0:45c4f0364ca4 811 #define RF_PACKETCONFIG1_CRCWHITENINGTYPE_IBM 0x01
mluis 0:45c4f0364ca4 812
mluis 0:45c4f0364ca4 813 /*!
mluis 0:45c4f0364ca4 814 * RegPacketConfig2
mluis 0:45c4f0364ca4 815 */
mluis 0:45c4f0364ca4 816 #define RF_PACKETCONFIG2_DATAMODE_MASK 0xBF
mluis 0:45c4f0364ca4 817 #define RF_PACKETCONFIG2_DATAMODE_CONTINUOUS 0x00
mluis 0:45c4f0364ca4 818 #define RF_PACKETCONFIG2_DATAMODE_PACKET 0x40 // Default
mluis 0:45c4f0364ca4 819
mluis 0:45c4f0364ca4 820 #define RF_PACKETCONFIG2_IOHOME_MASK 0xDF
mluis 0:45c4f0364ca4 821 #define RF_PACKETCONFIG2_IOHOME_ON 0x20
mluis 0:45c4f0364ca4 822 #define RF_PACKETCONFIG2_IOHOME_OFF 0x00 // Default
mluis 0:45c4f0364ca4 823
mluis 0:45c4f0364ca4 824 #define RF_PACKETCONFIG2_BEACON_MASK 0xF7
mluis 0:45c4f0364ca4 825 #define RF_PACKETCONFIG2_BEACON_ON 0x08
mluis 0:45c4f0364ca4 826 #define RF_PACKETCONFIG2_BEACON_OFF 0x00 // Default
mluis 0:45c4f0364ca4 827
mluis 0:45c4f0364ca4 828 #define RF_PACKETCONFIG2_PAYLOADLENGTH_MSB_MASK 0xF8
mluis 0:45c4f0364ca4 829
mluis 0:45c4f0364ca4 830 /*!
mluis 0:45c4f0364ca4 831 * RegPayloadLength
mluis 0:45c4f0364ca4 832 */
mluis 0:45c4f0364ca4 833 #define RF_PAYLOADLENGTH_LENGTH 0x40 // Default
mluis 0:45c4f0364ca4 834
mluis 0:45c4f0364ca4 835 /*!
mluis 0:45c4f0364ca4 836 * RegNodeAdrs
mluis 0:45c4f0364ca4 837 */
mluis 0:45c4f0364ca4 838 #define RF_NODEADDRESS_ADDRESS 0x00
mluis 0:45c4f0364ca4 839
mluis 0:45c4f0364ca4 840 /*!
mluis 0:45c4f0364ca4 841 * RegBroadcastAdrs
mluis 0:45c4f0364ca4 842 */
mluis 0:45c4f0364ca4 843 #define RF_BROADCASTADDRESS_ADDRESS 0x00
mluis 0:45c4f0364ca4 844
mluis 0:45c4f0364ca4 845 /*!
mluis 0:45c4f0364ca4 846 * RegFifoThresh
mluis 0:45c4f0364ca4 847 */
mluis 0:45c4f0364ca4 848 #define RF_FIFOTHRESH_TXSTARTCONDITION_MASK 0x7F
mluis 0:45c4f0364ca4 849 #define RF_FIFOTHRESH_TXSTARTCONDITION_FIFOTHRESH 0x00
mluis 0:45c4f0364ca4 850 #define RF_FIFOTHRESH_TXSTARTCONDITION_FIFONOTEMPTY 0x80 // Default
mluis 0:45c4f0364ca4 851
mluis 0:45c4f0364ca4 852 #define RF_FIFOTHRESH_FIFOTHRESHOLD_MASK 0xC0
mluis 0:45c4f0364ca4 853 #define RF_FIFOTHRESH_FIFOTHRESHOLD_THRESHOLD 0x0F // Default
mluis 0:45c4f0364ca4 854
mluis 0:45c4f0364ca4 855 /*!
mluis 0:45c4f0364ca4 856 * RegSeqConfig1
mluis 0:45c4f0364ca4 857 */
mluis 0:45c4f0364ca4 858 #define RF_SEQCONFIG1_SEQUENCER_START 0x80
mluis 0:45c4f0364ca4 859
mluis 0:45c4f0364ca4 860 #define RF_SEQCONFIG1_SEQUENCER_STOP 0x40
mluis 0:45c4f0364ca4 861
mluis 0:45c4f0364ca4 862 #define RF_SEQCONFIG1_IDLEMODE_MASK 0xDF
mluis 0:45c4f0364ca4 863 #define RF_SEQCONFIG1_IDLEMODE_SLEEP 0x20
mluis 0:45c4f0364ca4 864 #define RF_SEQCONFIG1_IDLEMODE_STANDBY 0x00 // Default
mluis 0:45c4f0364ca4 865
mluis 0:45c4f0364ca4 866 #define RF_SEQCONFIG1_FROMSTART_MASK 0xE7
mluis 0:45c4f0364ca4 867 #define RF_SEQCONFIG1_FROMSTART_TOLPS 0x00 // Default
mluis 0:45c4f0364ca4 868 #define RF_SEQCONFIG1_FROMSTART_TORX 0x08
mluis 0:45c4f0364ca4 869 #define RF_SEQCONFIG1_FROMSTART_TOTX 0x10
mluis 0:45c4f0364ca4 870 #define RF_SEQCONFIG1_FROMSTART_TOTX_ONFIFOLEVEL 0x18
mluis 0:45c4f0364ca4 871
mluis 0:45c4f0364ca4 872 #define RF_SEQCONFIG1_LPS_MASK 0xFB
mluis 0:45c4f0364ca4 873 #define RF_SEQCONFIG1_LPS_SEQUENCER_OFF 0x00 // Default
mluis 0:45c4f0364ca4 874 #define RF_SEQCONFIG1_LPS_IDLE 0x04
mluis 0:45c4f0364ca4 875
mluis 0:45c4f0364ca4 876 #define RF_SEQCONFIG1_FROMIDLE_MASK 0xFD
mluis 0:45c4f0364ca4 877 #define RF_SEQCONFIG1_FROMIDLE_TOTX 0x00 // Default
mluis 0:45c4f0364ca4 878 #define RF_SEQCONFIG1_FROMIDLE_TORX 0x02
mluis 0:45c4f0364ca4 879
mluis 0:45c4f0364ca4 880 #define RF_SEQCONFIG1_FROMTX_MASK 0xFE
mluis 0:45c4f0364ca4 881 #define RF_SEQCONFIG1_FROMTX_TOLPS 0x00 // Default
mluis 0:45c4f0364ca4 882 #define RF_SEQCONFIG1_FROMTX_TORX 0x01
mluis 0:45c4f0364ca4 883
mluis 0:45c4f0364ca4 884 /*!
mluis 0:45c4f0364ca4 885 * RegSeqConfig2
mluis 0:45c4f0364ca4 886 */
mluis 0:45c4f0364ca4 887 #define RF_SEQCONFIG2_FROMRX_MASK 0x1F
mluis 0:45c4f0364ca4 888 #define RF_SEQCONFIG2_FROMRX_TOUNUSED_000 0x00 // Default
mluis 0:45c4f0364ca4 889 #define RF_SEQCONFIG2_FROMRX_TORXPKT_ONPLDRDY 0x20
mluis 0:45c4f0364ca4 890 #define RF_SEQCONFIG2_FROMRX_TOLPS_ONPLDRDY 0x40
mluis 0:45c4f0364ca4 891 #define RF_SEQCONFIG2_FROMRX_TORXPKT_ONCRCOK 0x60
mluis 0:45c4f0364ca4 892 #define RF_SEQCONFIG2_FROMRX_TOSEQUENCEROFF_ONRSSI 0x80
mluis 0:45c4f0364ca4 893 #define RF_SEQCONFIG2_FROMRX_TOSEQUENCEROFF_ONSYNC 0xA0
mluis 0:45c4f0364ca4 894 #define RF_SEQCONFIG2_FROMRX_TOSEQUENCEROFF_ONPREAMBLE 0xC0
mluis 0:45c4f0364ca4 895 #define RF_SEQCONFIG2_FROMRX_TOUNUSED_111 0xE0
mluis 0:45c4f0364ca4 896
mluis 0:45c4f0364ca4 897 #define RF_SEQCONFIG2_FROMRXTIMEOUT_MASK 0xE7
mluis 0:45c4f0364ca4 898 #define RF_SEQCONFIG2_FROMRXTIMEOUT_TORXRESTART 0x00 // Default
mluis 0:45c4f0364ca4 899 #define RF_SEQCONFIG2_FROMRXTIMEOUT_TOTX 0x08
mluis 0:45c4f0364ca4 900 #define RF_SEQCONFIG2_FROMRXTIMEOUT_TOLPS 0x10
mluis 0:45c4f0364ca4 901 #define RF_SEQCONFIG2_FROMRXTIMEOUT_TOSEQUENCEROFF 0x18
mluis 0:45c4f0364ca4 902
mluis 0:45c4f0364ca4 903 #define RF_SEQCONFIG2_FROMRXPKT_MASK 0xF8
mluis 0:45c4f0364ca4 904 #define RF_SEQCONFIG2_FROMRXPKT_TOSEQUENCEROFF 0x00 // Default
mluis 0:45c4f0364ca4 905 #define RF_SEQCONFIG2_FROMRXPKT_TOTX_ONFIFOEMPTY 0x01
mluis 0:45c4f0364ca4 906 #define RF_SEQCONFIG2_FROMRXPKT_TOLPS 0x02
mluis 0:45c4f0364ca4 907 #define RF_SEQCONFIG2_FROMRXPKT_TOSYNTHESIZERRX 0x03
mluis 0:45c4f0364ca4 908 #define RF_SEQCONFIG2_FROMRXPKT_TORX 0x04
mluis 0:45c4f0364ca4 909
mluis 0:45c4f0364ca4 910 /*!
mluis 0:45c4f0364ca4 911 * RegTimerResol
mluis 0:45c4f0364ca4 912 */
mluis 0:45c4f0364ca4 913 #define RF_TIMERRESOL_TIMER1RESOL_MASK 0xF3
mluis 0:45c4f0364ca4 914 #define RF_TIMERRESOL_TIMER1RESOL_OFF 0x00 // Default
mluis 0:45c4f0364ca4 915 #define RF_TIMERRESOL_TIMER1RESOL_000064_US 0x04
mluis 0:45c4f0364ca4 916 #define RF_TIMERRESOL_TIMER1RESOL_004100_US 0x08
mluis 0:45c4f0364ca4 917 #define RF_TIMERRESOL_TIMER1RESOL_262000_US 0x0C
mluis 0:45c4f0364ca4 918
mluis 0:45c4f0364ca4 919 #define RF_TIMERRESOL_TIMER2RESOL_MASK 0xFC
mluis 0:45c4f0364ca4 920 #define RF_TIMERRESOL_TIMER2RESOL_OFF 0x00 // Default
mluis 0:45c4f0364ca4 921 #define RF_TIMERRESOL_TIMER2RESOL_000064_US 0x01
mluis 0:45c4f0364ca4 922 #define RF_TIMERRESOL_TIMER2RESOL_004100_US 0x02
mluis 0:45c4f0364ca4 923 #define RF_TIMERRESOL_TIMER2RESOL_262000_US 0x03
mluis 0:45c4f0364ca4 924
mluis 0:45c4f0364ca4 925 /*!
mluis 0:45c4f0364ca4 926 * RegTimer1Coef
mluis 0:45c4f0364ca4 927 */
mluis 0:45c4f0364ca4 928 #define RF_TIMER1COEF_TIMER1COEFFICIENT 0xF5 // Default
mluis 0:45c4f0364ca4 929
mluis 0:45c4f0364ca4 930 /*!
mluis 0:45c4f0364ca4 931 * RegTimer2Coef
mluis 0:45c4f0364ca4 932 */
mluis 0:45c4f0364ca4 933 #define RF_TIMER2COEF_TIMER2COEFFICIENT 0x20 // Default
mluis 0:45c4f0364ca4 934
mluis 0:45c4f0364ca4 935 /*!
mluis 0:45c4f0364ca4 936 * RegImageCal
mluis 0:45c4f0364ca4 937 */
mluis 0:45c4f0364ca4 938 #define RF_IMAGECAL_AUTOIMAGECAL_MASK 0x7F
mluis 0:45c4f0364ca4 939 #define RF_IMAGECAL_AUTOIMAGECAL_ON 0x80
mluis 0:45c4f0364ca4 940 #define RF_IMAGECAL_AUTOIMAGECAL_OFF 0x00 // Default
mluis 0:45c4f0364ca4 941
mluis 0:45c4f0364ca4 942 #define RF_IMAGECAL_IMAGECAL_MASK 0xBF
mluis 0:45c4f0364ca4 943 #define RF_IMAGECAL_IMAGECAL_START 0x40
mluis 0:45c4f0364ca4 944
mluis 0:45c4f0364ca4 945 #define RF_IMAGECAL_IMAGECAL_RUNNING 0x20
mluis 0:45c4f0364ca4 946 #define RF_IMAGECAL_IMAGECAL_DONE 0x00 // Default
mluis 0:45c4f0364ca4 947
mluis 0:45c4f0364ca4 948 #define RF_IMAGECAL_TEMPCHANGE_HIGHER 0x08
mluis 0:45c4f0364ca4 949 #define RF_IMAGECAL_TEMPCHANGE_LOWER 0x00
mluis 0:45c4f0364ca4 950
mluis 0:45c4f0364ca4 951 #define RF_IMAGECAL_TEMPTHRESHOLD_MASK 0xF9
mluis 0:45c4f0364ca4 952 #define RF_IMAGECAL_TEMPTHRESHOLD_05 0x00
mluis 0:45c4f0364ca4 953 #define RF_IMAGECAL_TEMPTHRESHOLD_10 0x02 // Default
mluis 0:45c4f0364ca4 954 #define RF_IMAGECAL_TEMPTHRESHOLD_15 0x04
mluis 0:45c4f0364ca4 955 #define RF_IMAGECAL_TEMPTHRESHOLD_20 0x06
mluis 0:45c4f0364ca4 956
mluis 0:45c4f0364ca4 957 #define RF_IMAGECAL_TEMPMONITOR_MASK 0xFE
mluis 0:45c4f0364ca4 958 #define RF_IMAGECAL_TEMPMONITOR_ON 0x00 // Default
mluis 0:45c4f0364ca4 959 #define RF_IMAGECAL_TEMPMONITOR_OFF 0x01
mluis 0:45c4f0364ca4 960
mluis 0:45c4f0364ca4 961 /*!
mluis 0:45c4f0364ca4 962 * RegTemp (Read Only)
mluis 0:45c4f0364ca4 963 */
mluis 0:45c4f0364ca4 964
mluis 0:45c4f0364ca4 965 /*!
mluis 0:45c4f0364ca4 966 * RegLowBat
mluis 0:45c4f0364ca4 967 */
mluis 0:45c4f0364ca4 968 #define RF_LOWBAT_MASK 0xF7
mluis 0:45c4f0364ca4 969 #define RF_LOWBAT_ON 0x08
mluis 0:45c4f0364ca4 970 #define RF_LOWBAT_OFF 0x00 // Default
mluis 0:45c4f0364ca4 971
mluis 0:45c4f0364ca4 972 #define RF_LOWBAT_TRIM_MASK 0xF8
mluis 0:45c4f0364ca4 973 #define RF_LOWBAT_TRIM_1695 0x00
mluis 0:45c4f0364ca4 974 #define RF_LOWBAT_TRIM_1764 0x01
mluis 0:45c4f0364ca4 975 #define RF_LOWBAT_TRIM_1835 0x02 // Default
mluis 0:45c4f0364ca4 976 #define RF_LOWBAT_TRIM_1905 0x03
mluis 0:45c4f0364ca4 977 #define RF_LOWBAT_TRIM_1976 0x04
mluis 0:45c4f0364ca4 978 #define RF_LOWBAT_TRIM_2045 0x05
mluis 0:45c4f0364ca4 979 #define RF_LOWBAT_TRIM_2116 0x06
mluis 0:45c4f0364ca4 980 #define RF_LOWBAT_TRIM_2185 0x07
mluis 0:45c4f0364ca4 981
mluis 0:45c4f0364ca4 982 /*!
mluis 0:45c4f0364ca4 983 * RegIrqFlags1
mluis 0:45c4f0364ca4 984 */
mluis 0:45c4f0364ca4 985 #define RF_IRQFLAGS1_MODEREADY 0x80
mluis 0:45c4f0364ca4 986
mluis 0:45c4f0364ca4 987 #define RF_IRQFLAGS1_RXREADY 0x40
mluis 0:45c4f0364ca4 988
mluis 0:45c4f0364ca4 989 #define RF_IRQFLAGS1_TXREADY 0x20
mluis 0:45c4f0364ca4 990
mluis 0:45c4f0364ca4 991 #define RF_IRQFLAGS1_PLLLOCK 0x10
mluis 0:45c4f0364ca4 992
mluis 0:45c4f0364ca4 993 #define RF_IRQFLAGS1_RSSI 0x08
mluis 0:45c4f0364ca4 994
mluis 0:45c4f0364ca4 995 #define RF_IRQFLAGS1_TIMEOUT 0x04
mluis 0:45c4f0364ca4 996
mluis 0:45c4f0364ca4 997 #define RF_IRQFLAGS1_PREAMBLEDETECT 0x02
mluis 0:45c4f0364ca4 998
mluis 0:45c4f0364ca4 999 #define RF_IRQFLAGS1_SYNCADDRESSMATCH 0x01
mluis 0:45c4f0364ca4 1000
mluis 0:45c4f0364ca4 1001 /*!
mluis 0:45c4f0364ca4 1002 * RegIrqFlags2
mluis 0:45c4f0364ca4 1003 */
mluis 0:45c4f0364ca4 1004 #define RF_IRQFLAGS2_FIFOFULL 0x80
mluis 0:45c4f0364ca4 1005
mluis 0:45c4f0364ca4 1006 #define RF_IRQFLAGS2_FIFOEMPTY 0x40
mluis 0:45c4f0364ca4 1007
mluis 0:45c4f0364ca4 1008 #define RF_IRQFLAGS2_FIFOLEVEL 0x20
mluis 0:45c4f0364ca4 1009
mluis 0:45c4f0364ca4 1010 #define RF_IRQFLAGS2_FIFOOVERRUN 0x10
mluis 0:45c4f0364ca4 1011
mluis 0:45c4f0364ca4 1012 #define RF_IRQFLAGS2_PACKETSENT 0x08
mluis 0:45c4f0364ca4 1013
mluis 0:45c4f0364ca4 1014 #define RF_IRQFLAGS2_PAYLOADREADY 0x04
mluis 0:45c4f0364ca4 1015
mluis 0:45c4f0364ca4 1016 #define RF_IRQFLAGS2_CRCOK 0x02
mluis 0:45c4f0364ca4 1017
mluis 0:45c4f0364ca4 1018 #define RF_IRQFLAGS2_LOWBAT 0x01
mluis 0:45c4f0364ca4 1019
mluis 0:45c4f0364ca4 1020 /*!
mluis 0:45c4f0364ca4 1021 * RegDioMapping1
mluis 0:45c4f0364ca4 1022 */
mluis 0:45c4f0364ca4 1023 #define RF_DIOMAPPING1_DIO0_MASK 0x3F
mluis 0:45c4f0364ca4 1024 #define RF_DIOMAPPING1_DIO0_00 0x00 // Default
mluis 0:45c4f0364ca4 1025 #define RF_DIOMAPPING1_DIO0_01 0x40
mluis 0:45c4f0364ca4 1026 #define RF_DIOMAPPING1_DIO0_10 0x80
mluis 0:45c4f0364ca4 1027 #define RF_DIOMAPPING1_DIO0_11 0xC0
mluis 0:45c4f0364ca4 1028
mluis 0:45c4f0364ca4 1029 #define RF_DIOMAPPING1_DIO1_MASK 0xCF
mluis 0:45c4f0364ca4 1030 #define RF_DIOMAPPING1_DIO1_00 0x00 // Default
mluis 0:45c4f0364ca4 1031 #define RF_DIOMAPPING1_DIO1_01 0x10
mluis 0:45c4f0364ca4 1032 #define RF_DIOMAPPING1_DIO1_10 0x20
mluis 0:45c4f0364ca4 1033 #define RF_DIOMAPPING1_DIO1_11 0x30
mluis 0:45c4f0364ca4 1034
mluis 0:45c4f0364ca4 1035 #define RF_DIOMAPPING1_DIO2_MASK 0xF3
mluis 0:45c4f0364ca4 1036 #define RF_DIOMAPPING1_DIO2_00 0x00 // Default
mluis 0:45c4f0364ca4 1037 #define RF_DIOMAPPING1_DIO2_01 0x04
mluis 0:45c4f0364ca4 1038 #define RF_DIOMAPPING1_DIO2_10 0x08
mluis 0:45c4f0364ca4 1039 #define RF_DIOMAPPING1_DIO2_11 0x0C
mluis 0:45c4f0364ca4 1040
mluis 0:45c4f0364ca4 1041 #define RF_DIOMAPPING1_DIO3_MASK 0xFC
mluis 0:45c4f0364ca4 1042 #define RF_DIOMAPPING1_DIO3_00 0x00 // Default
mluis 0:45c4f0364ca4 1043 #define RF_DIOMAPPING1_DIO3_01 0x01
mluis 0:45c4f0364ca4 1044 #define RF_DIOMAPPING1_DIO3_10 0x02
mluis 0:45c4f0364ca4 1045 #define RF_DIOMAPPING1_DIO3_11 0x03
mluis 0:45c4f0364ca4 1046
mluis 0:45c4f0364ca4 1047 /*!
mluis 0:45c4f0364ca4 1048 * RegDioMapping2
mluis 0:45c4f0364ca4 1049 */
mluis 0:45c4f0364ca4 1050 #define RF_DIOMAPPING2_DIO4_MASK 0x3F
mluis 0:45c4f0364ca4 1051 #define RF_DIOMAPPING2_DIO4_00 0x00 // Default
mluis 0:45c4f0364ca4 1052 #define RF_DIOMAPPING2_DIO4_01 0x40
mluis 0:45c4f0364ca4 1053 #define RF_DIOMAPPING2_DIO4_10 0x80
mluis 0:45c4f0364ca4 1054 #define RF_DIOMAPPING2_DIO4_11 0xC0
mluis 0:45c4f0364ca4 1055
mluis 0:45c4f0364ca4 1056 #define RF_DIOMAPPING2_DIO5_MASK 0xCF
mluis 0:45c4f0364ca4 1057 #define RF_DIOMAPPING2_DIO5_00 0x00 // Default
mluis 0:45c4f0364ca4 1058 #define RF_DIOMAPPING2_DIO5_01 0x10
mluis 0:45c4f0364ca4 1059 #define RF_DIOMAPPING2_DIO5_10 0x20
mluis 0:45c4f0364ca4 1060 #define RF_DIOMAPPING2_DIO5_11 0x30
mluis 0:45c4f0364ca4 1061
mluis 0:45c4f0364ca4 1062 #define RF_DIOMAPPING2_MAP_MASK 0xFE
mluis 0:45c4f0364ca4 1063 #define RF_DIOMAPPING2_MAP_PREAMBLEDETECT 0x01
mluis 0:45c4f0364ca4 1064 #define RF_DIOMAPPING2_MAP_RSSI 0x00 // Default
mluis 0:45c4f0364ca4 1065
mluis 0:45c4f0364ca4 1066 /*!
mluis 0:45c4f0364ca4 1067 * RegVersion (Read Only)
mluis 0:45c4f0364ca4 1068 */
mluis 0:45c4f0364ca4 1069
mluis 0:45c4f0364ca4 1070 /*!
mluis 0:45c4f0364ca4 1071 * RegAgcRef
mluis 0:45c4f0364ca4 1072 */
mluis 0:45c4f0364ca4 1073
mluis 0:45c4f0364ca4 1074 /*!
mluis 0:45c4f0364ca4 1075 * RegAgcThresh1
mluis 0:45c4f0364ca4 1076 */
mluis 0:45c4f0364ca4 1077
mluis 0:45c4f0364ca4 1078 /*!
mluis 0:45c4f0364ca4 1079 * RegAgcThresh2
mluis 0:45c4f0364ca4 1080 */
mluis 0:45c4f0364ca4 1081
mluis 0:45c4f0364ca4 1082 /*!
mluis 0:45c4f0364ca4 1083 * RegAgcThresh3
mluis 0:45c4f0364ca4 1084 */
mluis 0:45c4f0364ca4 1085
mluis 0:45c4f0364ca4 1086 /*!
mluis 0:45c4f0364ca4 1087 * RegPllHop
mluis 0:45c4f0364ca4 1088 */
mluis 0:45c4f0364ca4 1089 #define RF_PLLHOP_FASTHOP_MASK 0x7F
mluis 0:45c4f0364ca4 1090 #define RF_PLLHOP_FASTHOP_ON 0x80
mluis 0:45c4f0364ca4 1091 #define RF_PLLHOP_FASTHOP_OFF 0x00 // Default
mluis 0:45c4f0364ca4 1092
mluis 0:45c4f0364ca4 1093 /*!
mluis 0:45c4f0364ca4 1094 * RegTcxo
mluis 0:45c4f0364ca4 1095 */
mluis 0:45c4f0364ca4 1096 #define RF_TCXO_TCXOINPUT_MASK 0xEF
mluis 0:45c4f0364ca4 1097 #define RF_TCXO_TCXOINPUT_ON 0x10
mluis 0:45c4f0364ca4 1098 #define RF_TCXO_TCXOINPUT_OFF 0x00 // Default
mluis 0:45c4f0364ca4 1099
mluis 0:45c4f0364ca4 1100 /*!
mluis 0:45c4f0364ca4 1101 * RegPaDac
mluis 0:45c4f0364ca4 1102 */
mluis 0:45c4f0364ca4 1103 #define RF_PADAC_20DBM_MASK 0xF8
mluis 0:45c4f0364ca4 1104 #define RF_PADAC_20DBM_ON 0x07
mluis 0:45c4f0364ca4 1105 #define RF_PADAC_20DBM_OFF 0x04 // Default
mluis 0:45c4f0364ca4 1106
mluis 0:45c4f0364ca4 1107 /*!
mluis 0:45c4f0364ca4 1108 * RegPll
mluis 0:45c4f0364ca4 1109 */
mluis 0:45c4f0364ca4 1110 #define RF_PLL_BANDWIDTH_MASK 0x3F
mluis 0:45c4f0364ca4 1111 #define RF_PLL_BANDWIDTH_75 0x00
mluis 0:45c4f0364ca4 1112 #define RF_PLL_BANDWIDTH_150 0x40
mluis 0:45c4f0364ca4 1113 #define RF_PLL_BANDWIDTH_225 0x80
mluis 0:45c4f0364ca4 1114 #define RF_PLL_BANDWIDTH_300 0xC0 // Default
mluis 0:45c4f0364ca4 1115
mluis 0:45c4f0364ca4 1116 /*!
mluis 0:45c4f0364ca4 1117 * RegPllLowPn
mluis 0:45c4f0364ca4 1118 */
mluis 0:45c4f0364ca4 1119 #define RF_PLLLOWPN_BANDWIDTH_MASK 0x3F
mluis 0:45c4f0364ca4 1120 #define RF_PLLLOWPN_BANDWIDTH_75 0x00
mluis 0:45c4f0364ca4 1121 #define RF_PLLLOWPN_BANDWIDTH_150 0x40
mluis 0:45c4f0364ca4 1122 #define RF_PLLLOWPN_BANDWIDTH_225 0x80
mluis 0:45c4f0364ca4 1123 #define RF_PLLLOWPN_BANDWIDTH_300 0xC0 // Default
mluis 0:45c4f0364ca4 1124
mluis 0:45c4f0364ca4 1125 /*!
mluis 0:45c4f0364ca4 1126 * RegFormerTemp
mluis 0:45c4f0364ca4 1127 */
mluis 0:45c4f0364ca4 1128
mluis 0:45c4f0364ca4 1129 /*!
mluis 0:45c4f0364ca4 1130 * RegBitrateFrac
mluis 0:45c4f0364ca4 1131 */
mluis 0:45c4f0364ca4 1132 #define RF_BITRATEFRAC_MASK 0xF0
mluis 0:45c4f0364ca4 1133
mluis 0:45c4f0364ca4 1134 #endif // __SX1272_REGS_FSK_H__