Level measurement using range finder and lora technology

Dependencies:   Cayenne-LPP SDBlockDevice

Committer:
wamae
Date:
Wed Jun 26 10:35:50 2019 +0000
Revision:
0:f930f0440fd5
better copy

Who changed what in which revision?

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