pin pong

Dependents:   SX1272PingPong

Fork of SX1276Lib by Semtech

Committer:
tmulrooney
Date:
Wed Feb 17 00:47:12 2016 +0000
Revision:
24:9100348e6c28
Parent:
23:273a2f93ae99
pin changes for FRDK-K22F

Who changed what in which revision?

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