This is code is part of a Technion course project in advanced IoT, implementing a device to read and transmit sensors data from a Formula racing car built by students at Technion - Israel Institute of Technology.

Dependencies:   mbed Buffer

Fork of DISCO-L072CZ-LRWAN1_LoRa_PingPong by ST

This is code is part of a Technion course project in advanced IoT, implementing a device to read and transmit sensors data from a Formula racing car built by students at Technion - Israel Institute of Technology.

How to install

  • Create an account on Mbed: https://os.mbed.com/account/signup/
  • Import project into Compiler
  • In the Program Workspace select "Formula_Nucleo_Reader"
  • Select a Platform like so:
  1. Click button at top-left
  2. Add Board
  3. Search "B-L072Z-LRWAN1" and then "Add to your Mbed Compiler"
  • Finally click "Compile", if the build was successful, the binary would download automatically
  • To install it on device simply plug it in to a PC, open device drive and drag then drop binary file in it
Committer:
wardm
Date:
Sat May 19 11:41:10 2018 +0000
Revision:
12:02d779e8c4f6
Code for Technion Formula car sensors reader transmit

Who changed what in which revision?

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