Fork of my original MQTTGateway

Dependencies:   mbed-http

Committer:
vpcola
Date:
Sat Apr 08 14:43:14 2017 +0000
Revision:
0:a1734fe1ec4b
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vpcola 0:a1734fe1ec4b 1 /**
vpcola 0:a1734fe1ec4b 2 ******************************************************************************
vpcola 0:a1734fe1ec4b 3 * @file SPIRIT_Regs.h
vpcola 0:a1734fe1ec4b 4 * @author VMA division - AMS
vpcola 0:a1734fe1ec4b 5 * @version 3.2.2
vpcola 0:a1734fe1ec4b 6 * @date 08-July-2015
vpcola 0:a1734fe1ec4b 7 * @brief This file contains all the SPIRIT registers address and masks.
vpcola 0:a1734fe1ec4b 8 * @details
vpcola 0:a1734fe1ec4b 9 *
vpcola 0:a1734fe1ec4b 10 * @attention
vpcola 0:a1734fe1ec4b 11 *
vpcola 0:a1734fe1ec4b 12 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
vpcola 0:a1734fe1ec4b 13 *
vpcola 0:a1734fe1ec4b 14 * Redistribution and use in source and binary forms, with or without modification,
vpcola 0:a1734fe1ec4b 15 * are permitted provided that the following conditions are met:
vpcola 0:a1734fe1ec4b 16 * 1. Redistributions of source code must retain the above copyright notice,
vpcola 0:a1734fe1ec4b 17 * this list of conditions and the following disclaimer.
vpcola 0:a1734fe1ec4b 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
vpcola 0:a1734fe1ec4b 19 * this list of conditions and the following disclaimer in the documentation
vpcola 0:a1734fe1ec4b 20 * and/or other materials provided with the distribution.
vpcola 0:a1734fe1ec4b 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
vpcola 0:a1734fe1ec4b 22 * may be used to endorse or promote products derived from this software
vpcola 0:a1734fe1ec4b 23 * without specific prior written permission.
vpcola 0:a1734fe1ec4b 24 *
vpcola 0:a1734fe1ec4b 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
vpcola 0:a1734fe1ec4b 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
vpcola 0:a1734fe1ec4b 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
vpcola 0:a1734fe1ec4b 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
vpcola 0:a1734fe1ec4b 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
vpcola 0:a1734fe1ec4b 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
vpcola 0:a1734fe1ec4b 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
vpcola 0:a1734fe1ec4b 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
vpcola 0:a1734fe1ec4b 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
vpcola 0:a1734fe1ec4b 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
vpcola 0:a1734fe1ec4b 35 *
vpcola 0:a1734fe1ec4b 36 ******************************************************************************
vpcola 0:a1734fe1ec4b 37 */
vpcola 0:a1734fe1ec4b 38
vpcola 0:a1734fe1ec4b 39 /* Define to prevent recursive inclusion -------------------------------------*/
vpcola 0:a1734fe1ec4b 40 #ifndef __SPIRIT1_REGS_H
vpcola 0:a1734fe1ec4b 41 #define __SPIRIT1_REGS_H
vpcola 0:a1734fe1ec4b 42
vpcola 0:a1734fe1ec4b 43 #ifdef __cplusplus
vpcola 0:a1734fe1ec4b 44 extern "C" {
vpcola 0:a1734fe1ec4b 45 #endif
vpcola 0:a1734fe1ec4b 46
vpcola 0:a1734fe1ec4b 47 /**
vpcola 0:a1734fe1ec4b 48 * @addtogroup SPIRIT_Registers SPIRIT Registers
vpcola 0:a1734fe1ec4b 49 * @brief Header file containing all the SPIRIT registers address and masks.
vpcola 0:a1734fe1ec4b 50 * @details See the file <i>@ref SPIRIT_Regs.h</i> for more details.
vpcola 0:a1734fe1ec4b 51 * @{
vpcola 0:a1734fe1ec4b 52 */
vpcola 0:a1734fe1ec4b 53
vpcola 0:a1734fe1ec4b 54 /** @defgroup General_Configuration_Registers
vpcola 0:a1734fe1ec4b 55 * @{
vpcola 0:a1734fe1ec4b 56 */
vpcola 0:a1734fe1ec4b 57
vpcola 0:a1734fe1ec4b 58 /** @defgroup ANA_FUNC_CONF_1_Register
vpcola 0:a1734fe1ec4b 59 * @{
vpcola 0:a1734fe1ec4b 60 */
vpcola 0:a1734fe1ec4b 61
vpcola 0:a1734fe1ec4b 62 /**
vpcola 0:a1734fe1ec4b 63 * \brief ANA_FUNC_CONF register 1
vpcola 0:a1734fe1ec4b 64 * \code
vpcola 0:a1734fe1ec4b 65 * Read Write
vpcola 0:a1734fe1ec4b 66 * Default value: 0x0C
vpcola 0:a1734fe1ec4b 67 * 7:5 NUM_EN_PIPES: Number of enabled pipes (starting from Data Pipe 0).
vpcola 0:a1734fe1ec4b 68 * 4:2 GM_CONF[2:0]: Sets the driver gm of the XO at start-up:
vpcola 0:a1734fe1ec4b 69 * GM_CONF2 | GM_CONF1 | GM_CONF0 | GM [mS]
vpcola 0:a1734fe1ec4b 70 * ------------------------------------------
vpcola 0:a1734fe1ec4b 71 * 0 | 0 | 0 | 13.2
vpcola 0:a1734fe1ec4b 72 * 0 | 0 | 1 | 18.2
vpcola 0:a1734fe1ec4b 73 * 0 | 1 | 0 | 21.5
vpcola 0:a1734fe1ec4b 74 * 0 | 1 | 1 | 25.6
vpcola 0:a1734fe1ec4b 75 * 1 | 0 | 0 | 28.8
vpcola 0:a1734fe1ec4b 76 * 1 | 0 | 1 | 33.9
vpcola 0:a1734fe1ec4b 77 * 1 | 1 | 0 | 38.5
vpcola 0:a1734fe1ec4b 78 * 1 | 1 | 1 | 43.0
vpcola 0:a1734fe1ec4b 79 * 1:0 SET_BLD_LVL[1:0]: Sets the Battery Level Detector threshold:
vpcola 0:a1734fe1ec4b 80 * SET_BLD_LVL1 | SET_BLD_LVL0 | Threshold [V]
vpcola 0:a1734fe1ec4b 81 * ------------------------------------------
vpcola 0:a1734fe1ec4b 82 * 0 | 0 | 2.7
vpcola 0:a1734fe1ec4b 83 * 0 | 1 | 2.5
vpcola 0:a1734fe1ec4b 84 * 1 | 0 | 2.3
vpcola 0:a1734fe1ec4b 85 * 1 | 1 | 2.1
vpcola 0:a1734fe1ec4b 86 * \endcode
vpcola 0:a1734fe1ec4b 87 */
vpcola 0:a1734fe1ec4b 88
vpcola 0:a1734fe1ec4b 89 #define ANA_FUNC_CONF1_BASE ((uint8_t)0x00) /*!< ANA_FUNC_CONF1 Address (R/W) */
vpcola 0:a1734fe1ec4b 90
vpcola 0:a1734fe1ec4b 91 #define ANA_FUNC_CONF1_NUM_PIPES_MASK ((uint8_t)0xE0) /*!< Mask for number of enabled pipes*/
vpcola 0:a1734fe1ec4b 92
vpcola 0:a1734fe1ec4b 93 #define ANA_FUNC_CONF1_GMCONF_MASK ((uint8_t)0x1C) /*!< Mask of the GmConf field of ANA_FUNC_CONF1 register (R/W) */
vpcola 0:a1734fe1ec4b 94
vpcola 0:a1734fe1ec4b 95 #define GM_13_2 ((uint8_t)0x00) /*!< Transconducatance Gm at start-up 13.2 mS */
vpcola 0:a1734fe1ec4b 96 #define GM_18_2 ((uint8_t)0x04) /*!< Transconducatance Gm at start-up 18.2 mS */
vpcola 0:a1734fe1ec4b 97 #define GM_21_5 ((uint8_t)0x08) /*!< Transconducatance Gm at start-up 21.5 mS */
vpcola 0:a1734fe1ec4b 98 #define GM_25_6 ((uint8_t)0x0C) /*!< Transconducatance Gm at start-up 25.6 mS */
vpcola 0:a1734fe1ec4b 99 #define GM_28_8 ((uint8_t)0x10) /*!< Transconducatance Gm at start-up 28.8 mS */
vpcola 0:a1734fe1ec4b 100 #define GM_33_9 ((uint8_t)0x14) /*!< Transconducatance Gm at start-up 33.9 mS */
vpcola 0:a1734fe1ec4b 101 #define GM_38_5 ((uint8_t)0x18) /*!< Transconducatance Gm at start-up 38.5 mS */
vpcola 0:a1734fe1ec4b 102 #define GM_43_0 ((uint8_t)0x1C) /*!< Transconducatance Gm at start-up 43.0 mS */
vpcola 0:a1734fe1ec4b 103
vpcola 0:a1734fe1ec4b 104 #define ANA_FUNC_CONF1_SET_BLD_LVL_MASK ((uint8_t)0x03) /*!< Mask of the SET_BLD_LV field of ANA_FUNC_CONF1 register (R/W) */
vpcola 0:a1734fe1ec4b 105
vpcola 0:a1734fe1ec4b 106 #define BLD_LVL_2_7 ((uint8_t)0x00) /*!< Sets the Battery Level Detector threshold to 2.7V */
vpcola 0:a1734fe1ec4b 107 #define BLD_LVL_2_5 ((uint8_t)0x01) /*!< Sets the Battery Level Detector threshold to 2.5V */
vpcola 0:a1734fe1ec4b 108 #define BLD_LVL_2_3 ((uint8_t)0x02) /*!< Sets the Battery Level Detector threshold to 2.3V */
vpcola 0:a1734fe1ec4b 109 #define BLD_LVL_2_1 ((uint8_t)0x03) /*!< Sets the Battery Level Detector threshold to 2.1V */
vpcola 0:a1734fe1ec4b 110
vpcola 0:a1734fe1ec4b 111 /**
vpcola 0:a1734fe1ec4b 112 * @}
vpcola 0:a1734fe1ec4b 113 */
vpcola 0:a1734fe1ec4b 114
vpcola 0:a1734fe1ec4b 115
vpcola 0:a1734fe1ec4b 116 /** @defgroup ANA_FUNC_CONF_0_Register
vpcola 0:a1734fe1ec4b 117 * @{
vpcola 0:a1734fe1ec4b 118 */
vpcola 0:a1734fe1ec4b 119
vpcola 0:a1734fe1ec4b 120 /**
vpcola 0:a1734fe1ec4b 121 * \brief ANA_FUNC_CONF register 0
vpcola 0:a1734fe1ec4b 122 * \code
vpcola 0:a1734fe1ec4b 123 * Read Write
vpcola 0:a1734fe1ec4b 124 * Default value: 0xC0
vpcola 0:a1734fe1ec4b 125 * 7 Reserved.
vpcola 0:a1734fe1ec4b 126 * 6 24_26_MHz_SELECT: 1 - 26 MHz configuration
vpcola 0:a1734fe1ec4b 127 * 0 - 24 MHz configuration
vpcola 0:a1734fe1ec4b 128 * 5 AES_ON: 1 - AES engine enabled
vpcola 0:a1734fe1ec4b 129 * 0 - AES engine disabled
vpcola 0:a1734fe1ec4b 130 * 4 EXT_REF: 1 - Reference signal from XIN pin
vpcola 0:a1734fe1ec4b 131 * 0 - Reference signal from XO circuit
vpcola 0:a1734fe1ec4b 132 * 3 HIGH_POWER_MODE: 1 - SET_SMPS_LEVEL word will be set to the value to
vpcola 0:a1734fe1ec4b 133 * PM_TEST register in RX state, while in TX state it
vpcola 0:a1734fe1ec4b 134 * will be fixed to 111 (which programs the SMPS output
vpcola 0:a1734fe1ec4b 135 * at max value 1.8V)
vpcola 0:a1734fe1ec4b 136 * 0 - SET_SMPS_LEVEL word will hold the value written in the
vpcola 0:a1734fe1ec4b 137 * PM_TEST register both in RX and TX state
vpcola 0:a1734fe1ec4b 138 * 2 BROWN_OUT: 1 - Brown_Out Detection enabled
vpcola 0:a1734fe1ec4b 139 * 0 - Brown_Out Detection disabled
vpcola 0:a1734fe1ec4b 140 * 1 BATTERY_LEVEL: 1 - Battery level detector enabled
vpcola 0:a1734fe1ec4b 141 * 0 - Battery level detector disabled
vpcola 0:a1734fe1ec4b 142 * 0 TS: 1 - Enable the "Temperature Sensor" function
vpcola 0:a1734fe1ec4b 143 * 0 - Disable the "Temperature Sensor" function
vpcola 0:a1734fe1ec4b 144 * \endcode
vpcola 0:a1734fe1ec4b 145 */
vpcola 0:a1734fe1ec4b 146
vpcola 0:a1734fe1ec4b 147
vpcola 0:a1734fe1ec4b 148 #define ANA_FUNC_CONF0_BASE ((uint8_t)0x01) /*!< ANA_FUNC_CONF0 Address (R/W) */
vpcola 0:a1734fe1ec4b 149
vpcola 0:a1734fe1ec4b 150 #define SELECT_24_26_MHZ_MASK ((uint8_t)0x40) /*!< Configure the RCO if using 26 MHz or 24 MHz master clock/reference signal */
vpcola 0:a1734fe1ec4b 151 #define AES_MASK ((uint8_t)0x20) /*!< AES engine on/off */
vpcola 0:a1734fe1ec4b 152 #define EXT_REF_MASK ((uint8_t)0x10) /*!< Reference signal from XIN pin (oscillator external) or from XO circuit (oscillator internal)*/
vpcola 0:a1734fe1ec4b 153 #define HIGH_POWER_MODE_MASK ((uint8_t)0x08) /*!< SET_SMPS_LEVEL word will be set to the value to PM_TEST register
vpcola 0:a1734fe1ec4b 154 in RX state, while in TX state it will be fixed to 111
vpcola 0:a1734fe1ec4b 155 (which programs the SMPS output at max value, 1.8V) */
vpcola 0:a1734fe1ec4b 156 #define BROWN_OUT_MASK ((uint8_t)0x04) /*!< Accurate Brown-Out detection on/off */
vpcola 0:a1734fe1ec4b 157 #define BATTERY_LEVEL_MASK ((uint8_t)0x02) /*!< Battery level detector circuit on/off */
vpcola 0:a1734fe1ec4b 158 #define TEMPERATURE_SENSOR_MASK ((uint8_t)0x01) /*!< The Temperature Sensor (available on GPIO0) on/off */
vpcola 0:a1734fe1ec4b 159
vpcola 0:a1734fe1ec4b 160 /**
vpcola 0:a1734fe1ec4b 161 * @}
vpcola 0:a1734fe1ec4b 162 */
vpcola 0:a1734fe1ec4b 163
vpcola 0:a1734fe1ec4b 164 /** @defgroup ANT_SELECT_CONF_Register
vpcola 0:a1734fe1ec4b 165 * @{
vpcola 0:a1734fe1ec4b 166 */
vpcola 0:a1734fe1ec4b 167
vpcola 0:a1734fe1ec4b 168 /**
vpcola 0:a1734fe1ec4b 169 * \brief ANT_SELECT_CONF register
vpcola 0:a1734fe1ec4b 170 * \code
vpcola 0:a1734fe1ec4b 171 * Read Write
vpcola 0:a1734fe1ec4b 172 * Default value: 0x05
vpcola 0:a1734fe1ec4b 173 *
vpcola 0:a1734fe1ec4b 174 * 7:5 Reserved.
vpcola 0:a1734fe1ec4b 175 *
vpcola 0:a1734fe1ec4b 176 * 4 CS_BLANKING: Blank received data if signal is below the CS threshold
vpcola 0:a1734fe1ec4b 177 *
vpcola 0:a1734fe1ec4b 178 * 3 AS_ENABLE: Enable antenna switching
vpcola 0:a1734fe1ec4b 179 * 1 - Enable
vpcola 0:a1734fe1ec4b 180 * 0 - Disable
vpcola 0:a1734fe1ec4b 181 *
vpcola 0:a1734fe1ec4b 182 * 2:0 AS_MEAS_TIME[2:0]: Measurement time according to the formula Tmeas = 24*2^(EchFlt)*2^AS_MEAS_TIME/fxo
vpcola 0:a1734fe1ec4b 183 * \endcode
vpcola 0:a1734fe1ec4b 184 */
vpcola 0:a1734fe1ec4b 185 #define ANT_SELECT_CONF_BASE ((uint8_t)0x27) /*!< Antenna diversity (works only in static carrier sense mode) */
vpcola 0:a1734fe1ec4b 186 #define ANT_SELECT_CS_BLANKING_MASK ((uint8_t)0x10) /*!< CS data blanking on/off */
vpcola 0:a1734fe1ec4b 187 #define ANT_SELECT_CONF_AS_MASK ((uint8_t)0x08) /*!< Antenna diversity on/off */
vpcola 0:a1734fe1ec4b 188
vpcola 0:a1734fe1ec4b 189 /**
vpcola 0:a1734fe1ec4b 190 * @}
vpcola 0:a1734fe1ec4b 191 */
vpcola 0:a1734fe1ec4b 192
vpcola 0:a1734fe1ec4b 193 /** @defgroup DEVICE_INFO1_Register
vpcola 0:a1734fe1ec4b 194 * @{
vpcola 0:a1734fe1ec4b 195 */
vpcola 0:a1734fe1ec4b 196
vpcola 0:a1734fe1ec4b 197 /**
vpcola 0:a1734fe1ec4b 198 * \brief DEVICE_INFO1[7:0] registers
vpcola 0:a1734fe1ec4b 199 * \code
vpcola 0:a1734fe1ec4b 200 * Default value: 0x01
vpcola 0:a1734fe1ec4b 201 * Read
vpcola 0:a1734fe1ec4b 202 *
vpcola 0:a1734fe1ec4b 203 * 7:0 PARTNUM[7:0]: Device part number
vpcola 0:a1734fe1ec4b 204 * \endcode
vpcola 0:a1734fe1ec4b 205 */
vpcola 0:a1734fe1ec4b 206 #define DEVICE_INFO1_PARTNUM ((uint8_t)(0xF0)) /*!< Device part number [7:0] */
vpcola 0:a1734fe1ec4b 207
vpcola 0:a1734fe1ec4b 208 /**
vpcola 0:a1734fe1ec4b 209 * @}
vpcola 0:a1734fe1ec4b 210 */
vpcola 0:a1734fe1ec4b 211
vpcola 0:a1734fe1ec4b 212 /** @defgroup DEVICE_INFO0_Register
vpcola 0:a1734fe1ec4b 213 * @{
vpcola 0:a1734fe1ec4b 214 */
vpcola 0:a1734fe1ec4b 215
vpcola 0:a1734fe1ec4b 216 /**
vpcola 0:a1734fe1ec4b 217 * \brief DEVICE_INFO0[7:0] registers
vpcola 0:a1734fe1ec4b 218 * \code
vpcola 0:a1734fe1ec4b 219 * Read
vpcola 0:a1734fe1ec4b 220 *
vpcola 0:a1734fe1ec4b 221 * 7:0 VERSION[7:0]: Device version number
vpcola 0:a1734fe1ec4b 222 * \endcode
vpcola 0:a1734fe1ec4b 223 */
vpcola 0:a1734fe1ec4b 224 #define DEVICE_INFO0_VERSION ((uint8_t)(0xF1)) /*!< Device version [7:0]; (0x55 in CUT1.0) */
vpcola 0:a1734fe1ec4b 225
vpcola 0:a1734fe1ec4b 226 /**
vpcola 0:a1734fe1ec4b 227 * @}
vpcola 0:a1734fe1ec4b 228 */
vpcola 0:a1734fe1ec4b 229
vpcola 0:a1734fe1ec4b 230
vpcola 0:a1734fe1ec4b 231 /**
vpcola 0:a1734fe1ec4b 232 * @}
vpcola 0:a1734fe1ec4b 233 */
vpcola 0:a1734fe1ec4b 234
vpcola 0:a1734fe1ec4b 235
vpcola 0:a1734fe1ec4b 236 /** @defgroup GPIO_Registers
vpcola 0:a1734fe1ec4b 237 * @{
vpcola 0:a1734fe1ec4b 238 */
vpcola 0:a1734fe1ec4b 239
vpcola 0:a1734fe1ec4b 240 /** @defgroup GPIOx_CONF_Registers
vpcola 0:a1734fe1ec4b 241 * @{
vpcola 0:a1734fe1ec4b 242 */
vpcola 0:a1734fe1ec4b 243
vpcola 0:a1734fe1ec4b 244 /**
vpcola 0:a1734fe1ec4b 245 * \brief GPIOx registers
vpcola 0:a1734fe1ec4b 246 * \code
vpcola 0:a1734fe1ec4b 247 * Read Write
vpcola 0:a1734fe1ec4b 248 * Default value: 0x03
vpcola 0:a1734fe1ec4b 249 * 7:3 GPIO_SELECT[4:0]: Specify the I/O signal.
vpcola 0:a1734fe1ec4b 250 * GPIO_SELECT[4:0] | I/O | Signal
vpcola 0:a1734fe1ec4b 251 * ------------------------------------------------
vpcola 0:a1734fe1ec4b 252 * 0 | Output | nIRQ
vpcola 0:a1734fe1ec4b 253 * 0 | Input | TX command
vpcola 0:a1734fe1ec4b 254 * 1 | Output | POR inverted
vpcola 0:a1734fe1ec4b 255 * 1 | Input | RX command
vpcola 0:a1734fe1ec4b 256 * 2 | Output | Wake-Up timer expiration
vpcola 0:a1734fe1ec4b 257 * 2 | Input | TX data for direct modulation
vpcola 0:a1734fe1ec4b 258 * 3 | Output | Low Battery Detection
vpcola 0:a1734fe1ec4b 259 * 3 | Input | Wake-up from external input
vpcola 0:a1734fe1ec4b 260 * 4 | Output | TX clock output
vpcola 0:a1734fe1ec4b 261 * 5 | Output | TX state
vpcola 0:a1734fe1ec4b 262 * 6 | Output | TX FIFO Almost Empty Flag
vpcola 0:a1734fe1ec4b 263 * 7 | Output | TX FIFO ALmost Full Flag
vpcola 0:a1734fe1ec4b 264 * 8 | Output | RX data output
vpcola 0:a1734fe1ec4b 265 * 9 | Output | RX clock output
vpcola 0:a1734fe1ec4b 266 * 10 | Output | RX state
vpcola 0:a1734fe1ec4b 267 * 11 | Output | RX FIFO Almost Full Flag
vpcola 0:a1734fe1ec4b 268 * 12 | Output | RX FIFO Almost Empty Flag
vpcola 0:a1734fe1ec4b 269 * 13 | Output | Antenna switch
vpcola 0:a1734fe1ec4b 270 * 14 | Output | Valid preamble detected
vpcola 0:a1734fe1ec4b 271 * 15 | Output | Sync word detected
vpcola 0:a1734fe1ec4b 272 * 16 | Output | RSSI above threshold
vpcola 0:a1734fe1ec4b 273 * 17 | Output | MCU clock
vpcola 0:a1734fe1ec4b 274 * 18 | Output | TX or RX mode indicator
vpcola 0:a1734fe1ec4b 275 * 19 | Output | VDD
vpcola 0:a1734fe1ec4b 276 * 20 | Output | GND
vpcola 0:a1734fe1ec4b 277 * 21 | Output | External SMPS enable signal
vpcola 0:a1734fe1ec4b 278 * 22-31 | Not Used | Not Used
vpcola 0:a1734fe1ec4b 279 * 2 Reserved
vpcola 0:a1734fe1ec4b 280 * 1:0 GpioMode[1:0]: Specify the mode:
vpcola 0:a1734fe1ec4b 281 * GPIO_MODE1 | GPIO_MODE0 | MODE
vpcola 0:a1734fe1ec4b 282 * ------------------------------------------------------------
vpcola 0:a1734fe1ec4b 283 * 0 | 0 | Analog (valid only for GPIO_0)
vpcola 0:a1734fe1ec4b 284 * 0 | 1 | Digital Input
vpcola 0:a1734fe1ec4b 285 * 1 | 0 | Digital Output Low Power
vpcola 0:a1734fe1ec4b 286 * 1 | 1 | Digital Output High Power
vpcola 0:a1734fe1ec4b 287 *
vpcola 0:a1734fe1ec4b 288 * Note: The Analog mode is used only for temperature sensor indication. This is available only
vpcola 0:a1734fe1ec4b 289 * on GPIO_0 by setting the TS bit in the ANA_FUNC_CONF_0_Register.
vpcola 0:a1734fe1ec4b 290 * \endcode
vpcola 0:a1734fe1ec4b 291 */
vpcola 0:a1734fe1ec4b 292
vpcola 0:a1734fe1ec4b 293
vpcola 0:a1734fe1ec4b 294 #define GPIO3_CONF_BASE ((uint8_t)0x02) /*!< GPIO_3 register address */
vpcola 0:a1734fe1ec4b 295 #define GPIO2_CONF_BASE ((uint8_t)0x03) /*!< GPIO_3 register address */
vpcola 0:a1734fe1ec4b 296 #define GPIO1_CONF_BASE ((uint8_t)0x04) /*!< GPIO_3 register address */
vpcola 0:a1734fe1ec4b 297 #define GPIO0_CONF_BASE ((uint8_t)0x05) /*!< GPIO_3 register address */
vpcola 0:a1734fe1ec4b 298
vpcola 0:a1734fe1ec4b 299 #define CONF_GPIO_IN_TX_Command ((uint8_t)0x00) /*!< TX command direct from PIN (rising edge, width min=50ns) */
vpcola 0:a1734fe1ec4b 300 #define CONF_GPIO_IN_RX_Command ((uint8_t)0x08) /*!< RX command direct from PIN (rising edge, width min=50ns)*/
vpcola 0:a1734fe1ec4b 301 #define CONF_GPIO_IN_TX_Data ((uint8_t)0x10) /*!< TX data input for direct modulation */
vpcola 0:a1734fe1ec4b 302 #define CONF_GPIO_IN_WKUP_Ext ((uint8_t)0x18) /*!< Wake up from external input */
vpcola 0:a1734fe1ec4b 303
vpcola 0:a1734fe1ec4b 304 #define CONF_GPIO_OUT_nIRQ ((uint8_t)0x00) /*!< nIRQ (Interrupt Request, active low) , default configuration after POR */
vpcola 0:a1734fe1ec4b 305 #define CONF_GPIO_OUT_POR_Inv ((uint8_t)0x08) /*!< POR inverted (active low) */
vpcola 0:a1734fe1ec4b 306 #define CONF_GPIO_OUT_WUT_Exp ((uint8_t)0x10) /*!< Wake-Up Timer expiration: ‘1’ when WUT has expired */
vpcola 0:a1734fe1ec4b 307 #define CONF_GPIO_OUT_LBD ((uint8_t)0x18) /*!< Low battery detection: ‘1’ when battery is below threshold setting */
vpcola 0:a1734fe1ec4b 308 #define CONF_GPIO_OUT_TX_Data ((uint8_t)0x20) /*!< TX data internal clock output (TX data are sampled on the rising edge of it) */
vpcola 0:a1734fe1ec4b 309 #define CONF_GPIO_OUT_TX_State ((uint8_t)0x28) /*!< TX state indication: ‘1’ when Spirit1 is transiting in the TX state */
vpcola 0:a1734fe1ec4b 310 #define CONF_GPIO_OUT_TX_FIFO_Almost_Empty ((uint8_t)0x30) /*!< TX FIFO Almost Empty Flag */
vpcola 0:a1734fe1ec4b 311 #define CONF_GPIO_OUT_TX_FIFO_Amost_Full ((uint8_t)0x38) /*!< TX FIFO Almost Full Flag */
vpcola 0:a1734fe1ec4b 312 #define CONF_GPIO_OUT_RX_Data ((uint8_t)0x40) /*!< RX data output */
vpcola 0:a1734fe1ec4b 313 #define CONF_GPIO_OUT_RX_Clock ((uint8_t)0x48) /*!< RX clock output (recovered from received data) */
vpcola 0:a1734fe1ec4b 314 #define CONF_GPIO_OUT_RX_State ((uint8_t)0x50) /*!< RX state indication: ‘1’ when Spirit1 is transiting in the RX state */
vpcola 0:a1734fe1ec4b 315 #define CONF_GPIO_OUT_RX_FIFO_Almost_Full ((uint8_t)0x58) /*!< RX FIFO Almost Full Flag */
vpcola 0:a1734fe1ec4b 316 #define CONF_GPIO_OUT_RX_FIFO_Almost_Empty ((uint8_t)0x60) /*!< RX FIFO Almost Empty Flag */
vpcola 0:a1734fe1ec4b 317 #define CONF_GPIO_OUT_Antenna_Switch ((uint8_t)0x68) /*!< Antenna switch used for antenna diversity */
vpcola 0:a1734fe1ec4b 318 #define CONF_GPIO_OUT_Valid_Preamble ((uint8_t)0x70) /*!< Valid Preamble Detected Flag */
vpcola 0:a1734fe1ec4b 319 #define CONF_GPIO_OUT_Sync_Detected ((uint8_t)0x78) /*!< Sync WordSync Word Detected Flag */
vpcola 0:a1734fe1ec4b 320 #define CONF_GPIO_OUT_RSSI_Threshold ((uint8_t)0x80) /*!< CCA Assessment Flag */
vpcola 0:a1734fe1ec4b 321 #define CONF_GPIO_OUT_MCU_Clock ((uint8_t)0x88) /*!< MCU Clock */
vpcola 0:a1734fe1ec4b 322 #define CONF_GPIO_OUT_TX_RX_Mode ((uint8_t)0x90) /*!< TX or RX mode indicator (to enable an external range extender) */
vpcola 0:a1734fe1ec4b 323 #define CONF_GPIO_OUT_VDD ((uint8_t)0x98) /*!< VDD (to emulate an additional GPIO of the MCU, programmable by SPI) */
vpcola 0:a1734fe1ec4b 324 #define CONF_GPIO_OUT_GND ((uint8_t)0xA0) /*!< GND (to emulate an additional GPIO of the MCU, programmable by SPI) */
vpcola 0:a1734fe1ec4b 325 #define CONF_GPIO_OUT_SMPS_Ext ((uint8_t)0xA8) /*!< External SMPS enable signal (active high) */
vpcola 0:a1734fe1ec4b 326
vpcola 0:a1734fe1ec4b 327 #define CONF_GPIO_MODE_ANALOG ((uint8_t)0x00) /*!< Analog test BUS on GPIO; used only in test mode (except for temperature sensor) */
vpcola 0:a1734fe1ec4b 328 #define CONF_GPIO_MODE_DIG_IN ((uint8_t)0x01) /*!< Digital Input on GPIO */
vpcola 0:a1734fe1ec4b 329 #define CONF_GPIO_MODE_DIG_OUTL ((uint8_t)0x02) /*!< Digital Output on GPIO (low current) */
vpcola 0:a1734fe1ec4b 330 #define CONF_GPIO_MODE_DIG_OUTH ((uint8_t)0x03) /*!< Digital Output on GPIO (high current) */
vpcola 0:a1734fe1ec4b 331
vpcola 0:a1734fe1ec4b 332 /**
vpcola 0:a1734fe1ec4b 333 * @}
vpcola 0:a1734fe1ec4b 334 */
vpcola 0:a1734fe1ec4b 335
vpcola 0:a1734fe1ec4b 336
vpcola 0:a1734fe1ec4b 337 /** @defgroup MCU_CK_CONF_Register
vpcola 0:a1734fe1ec4b 338 * @{
vpcola 0:a1734fe1ec4b 339 */
vpcola 0:a1734fe1ec4b 340
vpcola 0:a1734fe1ec4b 341 /**
vpcola 0:a1734fe1ec4b 342 * \brief MCU_CK_CONF register
vpcola 0:a1734fe1ec4b 343 * \code
vpcola 0:a1734fe1ec4b 344 * Read Write
vpcola 0:a1734fe1ec4b 345 * Default value: 0x00
vpcola 0:a1734fe1ec4b 346 * 7 Reserved.
vpcola 0:a1734fe1ec4b 347 * 6:5 CLOCK_TAIL[1:0]: Specifies the number of extra cylces provided before entering in STANDBY state.
vpcola 0:a1734fe1ec4b 348 * CLOCK_TAIL1 | CLOCK_TAIL0 | Number of Extra Cycles
vpcola 0:a1734fe1ec4b 349 * ------------------------------------------------------------
vpcola 0:a1734fe1ec4b 350 * 0 | 0 | 0
vpcola 0:a1734fe1ec4b 351 * 0 | 1 | 64
vpcola 0:a1734fe1ec4b 352 * 1 | 0 | 256
vpcola 0:a1734fe1ec4b 353 * 1 | 1 | 512
vpcola 0:a1734fe1ec4b 354 * 4:1 XO_RATIO[3:0]: Specifies the division ratio when XO oscillator is the clock source
vpcola 0:a1734fe1ec4b 355 * XO_RATIO[3:0] | Division Ratio
vpcola 0:a1734fe1ec4b 356 * -----------------------------------
vpcola 0:a1734fe1ec4b 357 * 0 | 1
vpcola 0:a1734fe1ec4b 358 * 1 | 2/3
vpcola 0:a1734fe1ec4b 359 * 2 | 1/2
vpcola 0:a1734fe1ec4b 360 * 3 | 1/3
vpcola 0:a1734fe1ec4b 361 * 4 | 1/4
vpcola 0:a1734fe1ec4b 362 * 5 | 1/6
vpcola 0:a1734fe1ec4b 363 * 6 | 1/8
vpcola 0:a1734fe1ec4b 364 * 7 | 1/12
vpcola 0:a1734fe1ec4b 365 * 8 | 1/16
vpcola 0:a1734fe1ec4b 366 * 9 | 1/24
vpcola 0:a1734fe1ec4b 367 * 10 | 1/36
vpcola 0:a1734fe1ec4b 368 * 11 | 1/48
vpcola 0:a1734fe1ec4b 369 * 12 | 1/64
vpcola 0:a1734fe1ec4b 370 * 13 | 1/96
vpcola 0:a1734fe1ec4b 371 * 14 | 1/128
vpcola 0:a1734fe1ec4b 372 * 15 | 1/256
vpcola 0:a1734fe1ec4b 373 * 0 RCO_RATIO: Specifies the divsion ratio when RC oscillator is the clock source
vpcola 0:a1734fe1ec4b 374 * 0 - Division Ratio equal to 0
vpcola 0:a1734fe1ec4b 375 * 1 - Division Ratio equal to 1/128
vpcola 0:a1734fe1ec4b 376 * \endcode
vpcola 0:a1734fe1ec4b 377 */
vpcola 0:a1734fe1ec4b 378
vpcola 0:a1734fe1ec4b 379
vpcola 0:a1734fe1ec4b 380 #define MCU_CK_CONF_BASE ((uint8_t)0x06) /*!< MCU Clock Config register address */
vpcola 0:a1734fe1ec4b 381
vpcola 0:a1734fe1ec4b 382 #define MCU_CK_ENABLE ((uint8_t)0x80) /*!< MCU clock enable bit */
vpcola 0:a1734fe1ec4b 383
vpcola 0:a1734fe1ec4b 384 #define MCU_CK_CONF_CLOCK_TAIL_0 ((uint8_t)0x00) /*!< 0 extra clock cycles provided to the MCU before switching to STANDBY state */
vpcola 0:a1734fe1ec4b 385 #define MCU_CK_CONF_CLOCK_TAIL_64 ((uint8_t)0x20) /*!< 64 extra clock cycles provided to the MCU before switching to STANDBY state */
vpcola 0:a1734fe1ec4b 386 #define MCU_CK_CONF_CLOCK_TAIL_256 ((uint8_t)0x40) /*!< 256 extra clock cycles provided to the MCU before switching to STANDBY state */
vpcola 0:a1734fe1ec4b 387 #define MCU_CK_CONF_CLOCK_TAIL_512 ((uint8_t)0x60) /*!< 512 extra clock cycles provided to the MCU before switching to STANDBY state */
vpcola 0:a1734fe1ec4b 388 #define MCU_CK_CONF_XO_RATIO_1 ((uint8_t)0x00) /*!< XO Clock signal available on the GPIO divided by 1 */
vpcola 0:a1734fe1ec4b 389 #define MCU_CK_CONF_XO_RATIO_2_3 ((uint8_t)0x02) /*!< XO Clock signal available on the GPIO divided by 2/3 */
vpcola 0:a1734fe1ec4b 390 #define MCU_CK_CONF_XO_RATIO_1_2 ((uint8_t)0x04) /*!< XO Clock signal available on the GPIO divided by 1/2 */
vpcola 0:a1734fe1ec4b 391 #define MCU_CK_CONF_XO_RATIO_1_3 ((uint8_t)0x06) /*!< XO Clock signal available on the GPIO divided by 1/3 */
vpcola 0:a1734fe1ec4b 392 #define MCU_CK_CONF_XO_RATIO_1_4 ((uint8_t)0x08) /*!< XO Clock signal available on the GPIO divided by 1/4 */
vpcola 0:a1734fe1ec4b 393 #define MCU_CK_CONF_XO_RATIO_1_6 ((uint8_t)0x0A) /*!< XO Clock signal available on the GPIO divided by 1/6 */
vpcola 0:a1734fe1ec4b 394 #define MCU_CK_CONF_XO_RATIO_1_8 ((uint8_t)0x0C) /*!< XO Clock signal available on the GPIO divided by 1/8 */
vpcola 0:a1734fe1ec4b 395 #define MCU_CK_CONF_XO_RATIO_1_12 ((uint8_t)0x0E) /*!< XO Clock signal available on the GPIO divided by 1/12 */
vpcola 0:a1734fe1ec4b 396 #define MCU_CK_CONF_XO_RATIO_1_16 ((uint8_t)0x10) /*!< XO Clock signal available on the GPIO divided by 1/16 */
vpcola 0:a1734fe1ec4b 397 #define MCU_CK_CONF_XO_RATIO_1_24 ((uint8_t)0x12) /*!< XO Clock signal available on the GPIO divided by 1/24 */
vpcola 0:a1734fe1ec4b 398 #define MCU_CK_CONF_XO_RATIO_1_36 ((uint8_t)0x14) /*!< XO Clock signal available on the GPIO divided by 1/36 */
vpcola 0:a1734fe1ec4b 399 #define MCU_CK_CONF_XO_RATIO_1_48 ((uint8_t)0x16) /*!< XO Clock signal available on the GPIO divided by 1/48 */
vpcola 0:a1734fe1ec4b 400 #define MCU_CK_CONF_XO_RATIO_1_64 ((uint8_t)0x18) /*!< XO Clock signal available on the GPIO divided by 1/64 */
vpcola 0:a1734fe1ec4b 401 #define MCU_CK_CONF_XO_RATIO_1_96 ((uint8_t)0x1A) /*!< XO Clock signal available on the GPIO divided by 1/96 */
vpcola 0:a1734fe1ec4b 402 #define MCU_CK_CONF_XO_RATIO_1_128 ((uint8_t)0x1C) /*!< XO Clock signal available on the GPIO divided by 1/128 */
vpcola 0:a1734fe1ec4b 403 #define MCU_CK_CONF_XO_RATIO_1_192 ((uint8_t)0x1E) /*!< XO Clock signal available on the GPIO divided by 1/196 */
vpcola 0:a1734fe1ec4b 404 #define MCU_CK_CONF_RCO_RATIO_1 ((uint8_t)0x00) /*!< RCO Clock signal available on the GPIO divided by 1 */
vpcola 0:a1734fe1ec4b 405 #define MCU_CK_CONF_RCO_RATIO_1_128 ((uint8_t)0x01) /*!< RCO Clock signal available on the GPIO divided by 1/128*/
vpcola 0:a1734fe1ec4b 406
vpcola 0:a1734fe1ec4b 407 /**
vpcola 0:a1734fe1ec4b 408 * @}
vpcola 0:a1734fe1ec4b 409 */
vpcola 0:a1734fe1ec4b 410
vpcola 0:a1734fe1ec4b 411 /**
vpcola 0:a1734fe1ec4b 412 * @}
vpcola 0:a1734fe1ec4b 413 */
vpcola 0:a1734fe1ec4b 414
vpcola 0:a1734fe1ec4b 415
vpcola 0:a1734fe1ec4b 416 /** @defgroup Radio_Configuration_Registers
vpcola 0:a1734fe1ec4b 417 * @{
vpcola 0:a1734fe1ec4b 418 */
vpcola 0:a1734fe1ec4b 419
vpcola 0:a1734fe1ec4b 420
vpcola 0:a1734fe1ec4b 421
vpcola 0:a1734fe1ec4b 422 /** @defgroup SYNT3_Register
vpcola 0:a1734fe1ec4b 423 * @{
vpcola 0:a1734fe1ec4b 424 */
vpcola 0:a1734fe1ec4b 425
vpcola 0:a1734fe1ec4b 426 /**
vpcola 0:a1734fe1ec4b 427 * \brief SYNT3 register
vpcola 0:a1734fe1ec4b 428 * \code
vpcola 0:a1734fe1ec4b 429 * Read Write
vpcola 0:a1734fe1ec4b 430 * Default value: 0x0C
vpcola 0:a1734fe1ec4b 431 *
vpcola 0:a1734fe1ec4b 432 * 7:5 WCP[2:0]: Set the charge pump current according to the VCO frequency in RX mode.
vpcola 0:a1734fe1ec4b 433 *
vpcola 0:a1734fe1ec4b 434 * VCO Frequency | WCP2 | WCP1 | WCP0 | Charge Pump Current (uA)
vpcola 0:a1734fe1ec4b 435 * ------------------------------------------------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 436 * 4644-4678 | 0 | 0 | 0 | 378.4
vpcola 0:a1734fe1ec4b 437 * 4708-4772 | 0 | 0 | 1 | 368.9
vpcola 0:a1734fe1ec4b 438 * 4772-4836 | 0 | 1 | 0 | 359.5
vpcola 0:a1734fe1ec4b 439 * 4836-4902 | 0 | 1 | 1 | 350
vpcola 0:a1734fe1ec4b 440 * 4902-4966 | 1 | 0 | 0 | 340.5
vpcola 0:a1734fe1ec4b 441 * 4966-5030 | 1 | 0 | 1 | 331.1
vpcola 0:a1734fe1ec4b 442 * 5030-5095 | 1 | 1 | 0 | 321.6
vpcola 0:a1734fe1ec4b 443 * 5095-5161 | 1 | 1 | 1 | 312.2
vpcola 0:a1734fe1ec4b 444 * 5161-5232 | 0 | 0 | 0 | 378.4
vpcola 0:a1734fe1ec4b 445 * 5232-5303 | 0 | 0 | 1 | 368.9
vpcola 0:a1734fe1ec4b 446 * 5303-5375 | 0 | 1 | 0 | 359.5
vpcola 0:a1734fe1ec4b 447 * 5375-5448 | 0 | 1 | 1 | 350
vpcola 0:a1734fe1ec4b 448 * 5448-5519 | 1 | 0 | 0 | 340.5
vpcola 0:a1734fe1ec4b 449 * 5519-5592 | 1 | 0 | 1 | 331.1
vpcola 0:a1734fe1ec4b 450 * 5592-5663 | 1 | 1 | 0 | 321.6
vpcola 0:a1734fe1ec4b 451 * 5663-5736 | 1 | 1 | 1 | 312.2
vpcola 0:a1734fe1ec4b 452 *
vpcola 0:a1734fe1ec4b 453 *
vpcola 0:a1734fe1ec4b 454 * 4:0 SYNT[25:21]: highest 5 bits of the PLL programmable divider
vpcola 0:a1734fe1ec4b 455 * The valid range depends on fXO and REFDIV settings; for
vpcola 0:a1734fe1ec4b 456 * fXO=26MHz
vpcola 0:a1734fe1ec4b 457 * REFDIV = 0 - SYNT[25:21] = 11...13
vpcola 0:a1734fe1ec4b 458 * REFDIV = 1 - SYNT[25:21] = 22…27
vpcola 0:a1734fe1ec4b 459 *
vpcola 0:a1734fe1ec4b 460 *
vpcola 0:a1734fe1ec4b 461 * \endcode
vpcola 0:a1734fe1ec4b 462 */
vpcola 0:a1734fe1ec4b 463 #define SYNT3_BASE ((uint8_t)0x08) /*!< [4:0] -> SYNT[25:21], highest 5 bits of the PLL programmable divider */
vpcola 0:a1734fe1ec4b 464
vpcola 0:a1734fe1ec4b 465 #define WCP_CONF_WCP_378UA ((uint8_t)0x00) /*!< Charge pump current nominal value = 378uA [VCO 4644-4708]&[VCO 5161-5232] */
vpcola 0:a1734fe1ec4b 466 #define WCP_CONF_WCP_369UA ((uint8_t)0x01) /*!< Charge pump current nominal value = 369uA [VCO 4708-4772]&[VCO 5232-5303] */
vpcola 0:a1734fe1ec4b 467 #define WCP_CONF_WCP_359UA ((uint8_t)0x02) /*!< Charge pump current nominal value = 359uA [VCO 4772-4836]&[VCO 5303-5375] */
vpcola 0:a1734fe1ec4b 468 #define WCP_CONF_WCP_350UA ((uint8_t)0x03) /*!< Charge pump current nominal value = 350uA [VCO 4836-4902]&[VCO 5375-5448] */
vpcola 0:a1734fe1ec4b 469 #define WCP_CONF_WCP_340UA ((uint8_t)0x04) /*!< Charge pump current nominal value = 340uA [VCO 4902-4966]&[VCO 5448-5519] */
vpcola 0:a1734fe1ec4b 470 #define WCP_CONF_WCP_331UA ((uint8_t)0x05) /*!< Charge pump current nominal value = 331uA [VCO 4966-5030]&[VCO 5519-5592] */
vpcola 0:a1734fe1ec4b 471 #define WCP_CONF_WCP_321UA ((uint8_t)0x06) /*!< Charge pump current nominal value = 321uA [VCO 5030-5095]&[VCO 5592-5563] */
vpcola 0:a1734fe1ec4b 472 #define WCP_CONF_WCP_312UA ((uint8_t)0x07) /*!< Charge pump current nominal value = 312uA [VCO 5095-5160]&[VCO 5563-5736] */
vpcola 0:a1734fe1ec4b 473
vpcola 0:a1734fe1ec4b 474
vpcola 0:a1734fe1ec4b 475 /**
vpcola 0:a1734fe1ec4b 476 * @}
vpcola 0:a1734fe1ec4b 477 */
vpcola 0:a1734fe1ec4b 478
vpcola 0:a1734fe1ec4b 479
vpcola 0:a1734fe1ec4b 480 /** @defgroup SYNT2_Register
vpcola 0:a1734fe1ec4b 481 * @{
vpcola 0:a1734fe1ec4b 482 */
vpcola 0:a1734fe1ec4b 483
vpcola 0:a1734fe1ec4b 484 /**
vpcola 0:a1734fe1ec4b 485 * \brief SYNT2 register
vpcola 0:a1734fe1ec4b 486 * \code
vpcola 0:a1734fe1ec4b 487 * Read Write
vpcola 0:a1734fe1ec4b 488 * Default value: 0x84
vpcola 0:a1734fe1ec4b 489 * 7:0 SYNT[20:13]: intermediate bits of the PLL programmable divider.
vpcola 0:a1734fe1ec4b 490 *
vpcola 0:a1734fe1ec4b 491 * \endcode
vpcola 0:a1734fe1ec4b 492 */
vpcola 0:a1734fe1ec4b 493
vpcola 0:a1734fe1ec4b 494 #define SYNT2_BASE ((uint8_t)0x09) /*!< SYNT[20:13], intermediate bits of the PLL programmable divider */
vpcola 0:a1734fe1ec4b 495
vpcola 0:a1734fe1ec4b 496 /**
vpcola 0:a1734fe1ec4b 497 * @}
vpcola 0:a1734fe1ec4b 498 */
vpcola 0:a1734fe1ec4b 499
vpcola 0:a1734fe1ec4b 500 /** @defgroup SYNT1_Register
vpcola 0:a1734fe1ec4b 501 * @{
vpcola 0:a1734fe1ec4b 502 */
vpcola 0:a1734fe1ec4b 503
vpcola 0:a1734fe1ec4b 504 /**
vpcola 0:a1734fe1ec4b 505 * \brief SYNT1 register
vpcola 0:a1734fe1ec4b 506 * \code
vpcola 0:a1734fe1ec4b 507 * Read Write
vpcola 0:a1734fe1ec4b 508 * Default value: 0xEC
vpcola 0:a1734fe1ec4b 509 * 7:0 SYNT[12:5]: intermediate bits of the PLL programmable divider.
vpcola 0:a1734fe1ec4b 510 *
vpcola 0:a1734fe1ec4b 511 * \endcode
vpcola 0:a1734fe1ec4b 512 */
vpcola 0:a1734fe1ec4b 513
vpcola 0:a1734fe1ec4b 514 #define SYNT1_BASE ((uint8_t)0x0A) /*!< SYNT[12:5], intermediate bits of the PLL programmable divider */
vpcola 0:a1734fe1ec4b 515
vpcola 0:a1734fe1ec4b 516 /**
vpcola 0:a1734fe1ec4b 517 * @}
vpcola 0:a1734fe1ec4b 518 */
vpcola 0:a1734fe1ec4b 519
vpcola 0:a1734fe1ec4b 520 /** @defgroup SYNT0_Register
vpcola 0:a1734fe1ec4b 521 * @{
vpcola 0:a1734fe1ec4b 522 */
vpcola 0:a1734fe1ec4b 523
vpcola 0:a1734fe1ec4b 524 /**
vpcola 0:a1734fe1ec4b 525 * \brief SYNT0 register
vpcola 0:a1734fe1ec4b 526 * \code
vpcola 0:a1734fe1ec4b 527 * Read Write
vpcola 0:a1734fe1ec4b 528 * Default value: 0x51
vpcola 0:a1734fe1ec4b 529 * 7:3 SYNT[4:0]: lowest bits of the PLL programmable divider.
vpcola 0:a1734fe1ec4b 530 * 2:0 BS[2:0]: Synthesizer band select. This parameter selects the out-of-loop divide factor of the synthesizer
vpcola 0:a1734fe1ec4b 531 * according to the formula fxo/(B/2)/D*SYNT/2^18
vpcola 0:a1734fe1ec4b 532 *
vpcola 0:a1734fe1ec4b 533 * BS2 | BS1 | BS0 | value of B
vpcola 0:a1734fe1ec4b 534 * ---------------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 535 * 0 | 0 | 1 | 6
vpcola 0:a1734fe1ec4b 536 * 0 | 1 | 0 | 8
vpcola 0:a1734fe1ec4b 537 * 0 | 1 | 1 | 12
vpcola 0:a1734fe1ec4b 538 * 1 | 0 | 0 | 16
vpcola 0:a1734fe1ec4b 539 * 1 | 0 | 1 | 32
vpcola 0:a1734fe1ec4b 540 *
vpcola 0:a1734fe1ec4b 541 * \endcode
vpcola 0:a1734fe1ec4b 542 */
vpcola 0:a1734fe1ec4b 543 #define SYNT0_BASE ((uint8_t)0x0B) /*!< [7:3] -> SYNT[4:0], lowest bits of the PLL programmable divider */
vpcola 0:a1734fe1ec4b 544
vpcola 0:a1734fe1ec4b 545 #define SYNT0_BS_6 ((uint8_t)0x01) /*!< Synthesizer band select (out-of-loop divide factor of the synthesizer)=6 (779-956MHz) */
vpcola 0:a1734fe1ec4b 546 #define SYNT0_BS_8 ((uint8_t)0x02) /*!< Synthesizer band select (out-of-loop divide factor of the synthesizer)=8 (387-470MHz)*/
vpcola 0:a1734fe1ec4b 547 #define SYNT0_BS_12 ((uint8_t)0x03) /*!< Synthesizer band select (out-of-loop divide factor of the synthesizer)=12 (387-470MHz)*/
vpcola 0:a1734fe1ec4b 548 #define SYNT0_BS_16 ((uint8_t)0x04) /*!< Synthesizer band select (out-of-loop divide factor of the synthesizer)=16 (300-348MHz)*/
vpcola 0:a1734fe1ec4b 549 #define SYNT0_BS_32 ((uint8_t)0x05) /*!< Synthesizer band select (out-of-loop divide factor of the synthesizer)=32 (150-174MHz)*/
vpcola 0:a1734fe1ec4b 550
vpcola 0:a1734fe1ec4b 551 /**
vpcola 0:a1734fe1ec4b 552 * @}
vpcola 0:a1734fe1ec4b 553 */
vpcola 0:a1734fe1ec4b 554
vpcola 0:a1734fe1ec4b 555 /** @defgroup CHSPACE_Register
vpcola 0:a1734fe1ec4b 556 * @{
vpcola 0:a1734fe1ec4b 557 */
vpcola 0:a1734fe1ec4b 558
vpcola 0:a1734fe1ec4b 559 /**
vpcola 0:a1734fe1ec4b 560 * \brief CHSPACE register
vpcola 0:a1734fe1ec4b 561 * \code
vpcola 0:a1734fe1ec4b 562 * Read Write
vpcola 0:a1734fe1ec4b 563 * Default value: 0xFC
vpcola 0:a1734fe1ec4b 564 * 7:0 CH_SPACING[7:0]: Channel spacing. From ~793Hz to ~200KHz in 793Hz steps
vpcola 0:a1734fe1ec4b 565 * (in general, frequency step is fXO/215=26MHz/215~793Hz).
vpcola 0:a1734fe1ec4b 566 *
vpcola 0:a1734fe1ec4b 567 * \endcode
vpcola 0:a1734fe1ec4b 568 */
vpcola 0:a1734fe1ec4b 569
vpcola 0:a1734fe1ec4b 570 #define CHSPACE_BASE ((uint8_t)0x0C) /*!< Channel spacing. From ~0.8KHz to ~200KHz in (fXO/2^15)Hz (793Hz for 26MHz XO) steps */
vpcola 0:a1734fe1ec4b 571
vpcola 0:a1734fe1ec4b 572 /**
vpcola 0:a1734fe1ec4b 573 * @}
vpcola 0:a1734fe1ec4b 574 */
vpcola 0:a1734fe1ec4b 575
vpcola 0:a1734fe1ec4b 576
vpcola 0:a1734fe1ec4b 577
vpcola 0:a1734fe1ec4b 578 /** @defgroup IF_OFFSET_DIG_Register
vpcola 0:a1734fe1ec4b 579 * @{
vpcola 0:a1734fe1ec4b 580 */
vpcola 0:a1734fe1ec4b 581
vpcola 0:a1734fe1ec4b 582 /**
vpcola 0:a1734fe1ec4b 583 * \brief IF_OFFSET_DIG register
vpcola 0:a1734fe1ec4b 584 * \code
vpcola 0:a1734fe1ec4b 585 * Read Write
vpcola 0:a1734fe1ec4b 586 * Default value: 0xA3
vpcola 0:a1734fe1ec4b 587 * 7:0 IF_OFFSET_DIG[7:0]: Intermediate frequency setting for the digital shift-to-baseband circuits. According to the formula: fIF=fXO*(IF_OFFSET_ANA+64)/(12*2^10)=fCLK*(IF_OFFSET_DIG+64)/(12*2^10) Hz.
vpcola 0:a1734fe1ec4b 588 *
vpcola 0:a1734fe1ec4b 589 * \endcode
vpcola 0:a1734fe1ec4b 590 */
vpcola 0:a1734fe1ec4b 591 #define IF_OFFSET_DIG_BASE ((uint8_t)0x0D) /*!< Intermediate frequency fIF=fXO*(IF_OFFSET_ANA+64)/(12*2^10)=fCLK*(IF_OFFSET_DIG+64)/(12*2^10) Hz */
vpcola 0:a1734fe1ec4b 592
vpcola 0:a1734fe1ec4b 593 /**
vpcola 0:a1734fe1ec4b 594 * @}
vpcola 0:a1734fe1ec4b 595 */
vpcola 0:a1734fe1ec4b 596
vpcola 0:a1734fe1ec4b 597 /** @defgroup IF_OFFSET_ANA_Register
vpcola 0:a1734fe1ec4b 598 * @{
vpcola 0:a1734fe1ec4b 599 */
vpcola 0:a1734fe1ec4b 600
vpcola 0:a1734fe1ec4b 601 /**
vpcola 0:a1734fe1ec4b 602 * \brief IF_OFFSET_ANA register
vpcola 0:a1734fe1ec4b 603 * \code
vpcola 0:a1734fe1ec4b 604 * Read Write
vpcola 0:a1734fe1ec4b 605 * Default value: 0xA3
vpcola 0:a1734fe1ec4b 606 * 7:0 IF_OFFSET_ANA[7:0]: Intermediate frequency setting for the digital shift-to-baseband circuits. According to the formula: fIF=fXO*(IF_OFFSET_ANA+64)/(12*2^10)=fCLK*(IF_OFFSET_DIG+64)/(12*2^10) Hz.
vpcola 0:a1734fe1ec4b 607 *
vpcola 0:a1734fe1ec4b 608 * \endcode
vpcola 0:a1734fe1ec4b 609 */
vpcola 0:a1734fe1ec4b 610 #define IF_OFFSET_ANA_BASE ((uint8_t)0x07) /*!< Intermediate frequency fIF=fXO*(IF_OFFSET_ANA+64)/(12*2^10)=fCLK*(IF_OFFSET_DIG+64)/(12*2^10) Hz */
vpcola 0:a1734fe1ec4b 611
vpcola 0:a1734fe1ec4b 612
vpcola 0:a1734fe1ec4b 613 /**
vpcola 0:a1734fe1ec4b 614 * @}
vpcola 0:a1734fe1ec4b 615 */
vpcola 0:a1734fe1ec4b 616
vpcola 0:a1734fe1ec4b 617 /** @defgroup FC_OFFSET1_Register
vpcola 0:a1734fe1ec4b 618 * @{
vpcola 0:a1734fe1ec4b 619 */
vpcola 0:a1734fe1ec4b 620
vpcola 0:a1734fe1ec4b 621 /**
vpcola 0:a1734fe1ec4b 622 * \brief FC_OFFSET1 registers
vpcola 0:a1734fe1ec4b 623 * \code
vpcola 0:a1734fe1ec4b 624 * Read Write
vpcola 0:a1734fe1ec4b 625 * Default value: 0xA3
vpcola 0:a1734fe1ec4b 626 * 7:4 Reserved.
vpcola 0:a1734fe1ec4b 627 * 3:0 FC_OFFSET[11:8]: Carrier offset. This value is the higher part of a 12-bit 2’s complement integer
vpcola 0:a1734fe1ec4b 628 * representing an offset in 99Hz(2) units added/subtracted to the
vpcola 0:a1734fe1ec4b 629 * carrier frequency set by registers SYNT3…SYNT0.
vpcola 0:a1734fe1ec4b 630 * This register can be used to set a fixed correction value
vpcola 0:a1734fe1ec4b 631 * obtained e.g. from crystal measurements.
vpcola 0:a1734fe1ec4b 632 *
vpcola 0:a1734fe1ec4b 633 * \endcode
vpcola 0:a1734fe1ec4b 634 */
vpcola 0:a1734fe1ec4b 635 #define FC_OFFSET1_BASE ((uint8_t)0x0E) /*!< [3:0] -> [11:8] Carrier offset (upper part) */
vpcola 0:a1734fe1ec4b 636
vpcola 0:a1734fe1ec4b 637 /**
vpcola 0:a1734fe1ec4b 638 * @}
vpcola 0:a1734fe1ec4b 639 */
vpcola 0:a1734fe1ec4b 640
vpcola 0:a1734fe1ec4b 641
vpcola 0:a1734fe1ec4b 642 /** @defgroup FC_OFFSET0_Register
vpcola 0:a1734fe1ec4b 643 * @{
vpcola 0:a1734fe1ec4b 644 */
vpcola 0:a1734fe1ec4b 645
vpcola 0:a1734fe1ec4b 646 /**
vpcola 0:a1734fe1ec4b 647 * \brief FC_OFFSET0 registers
vpcola 0:a1734fe1ec4b 648 * \code
vpcola 0:a1734fe1ec4b 649 * Default value: 0x00
vpcola 0:a1734fe1ec4b 650 * Read Write
vpcola 0:a1734fe1ec4b 651 * 7:0 FC_OFFSET[7:0]: Carrier offset. This value is the lower part of a 12-bit 2’s complement integer
vpcola 0:a1734fe1ec4b 652 * representing an offset in 99Hz(2) units added/subtracted to the
vpcola 0:a1734fe1ec4b 653 * carrier frequency set by registers SYNT3…SYNT0.
vpcola 0:a1734fe1ec4b 654 * This register can be used to set a fixed correction value
vpcola 0:a1734fe1ec4b 655 * obtained e.g. from crystal measurements.
vpcola 0:a1734fe1ec4b 656 *
vpcola 0:a1734fe1ec4b 657 * \endcode
vpcola 0:a1734fe1ec4b 658 */
vpcola 0:a1734fe1ec4b 659 #define FC_OFFSET0_BASE ((uint8_t)0x0F) /*!< [7:0] -> [7:0] Carrier offset (lower part). This value is a 12-bit 2’s complement integer
vpcola 0:a1734fe1ec4b 660 representing an offset in fXO/2^18 (99Hz for 26 MHz XO) units added/subtracted to the carrier frequency
vpcola 0:a1734fe1ec4b 661 set by registers SYNT3…SYNT0. Range is +/-200kHz with 26 MHz XO */
vpcola 0:a1734fe1ec4b 662 /**
vpcola 0:a1734fe1ec4b 663 * @}
vpcola 0:a1734fe1ec4b 664 */
vpcola 0:a1734fe1ec4b 665
vpcola 0:a1734fe1ec4b 666
vpcola 0:a1734fe1ec4b 667 /** @defgroup PA_LEVEL_x_Registers
vpcola 0:a1734fe1ec4b 668 * @{
vpcola 0:a1734fe1ec4b 669 */
vpcola 0:a1734fe1ec4b 670
vpcola 0:a1734fe1ec4b 671 /**
vpcola 0:a1734fe1ec4b 672 * \brief PA_POWER_x[8:1] registers
vpcola 0:a1734fe1ec4b 673 * \code
vpcola 0:a1734fe1ec4b 674 * Default values from 8 to 1: [0x03, 0x0E, 0x1A, 0x25, 0x35, 0x40, 0x4E, 0x00]
vpcola 0:a1734fe1ec4b 675 * Read Write
vpcola 0:a1734fe1ec4b 676 *
vpcola 0:a1734fe1ec4b 677 * 7 Reserved.
vpcola 0:a1734fe1ec4b 678 * 6:0 PA_LEVEL_(x-1)[6:0]: Output power level for x-th slot.
vpcola 0:a1734fe1ec4b 679 * \endcode
vpcola 0:a1734fe1ec4b 680 */
vpcola 0:a1734fe1ec4b 681
vpcola 0:a1734fe1ec4b 682 #define PA_POWER8_BASE ((uint8_t)0x10) /*!< PA Power level for 8th slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 683 #define PA_POWER7_BASE ((uint8_t)0x11) /*!< PA Power level for 7th slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 684 #define PA_POWER6_BASE ((uint8_t)0x12) /*!< PA Power level for 6th slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 685 #define PA_POWER5_BASE ((uint8_t)0x13) /*!< PA Power level for 5th slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 686 #define PA_POWER4_BASE ((uint8_t)0x14) /*!< PA Power level for 4th slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 687 #define PA_POWER3_BASE ((uint8_t)0x15) /*!< PA Power level for 3rd slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 688 #define PA_POWER2_BASE ((uint8_t)0x16) /*!< PA Power level for 2nd slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 689 #define PA_POWER1_BASE ((uint8_t)0x17) /*!< PA Power level for 1st slot of PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 690
vpcola 0:a1734fe1ec4b 691 /**
vpcola 0:a1734fe1ec4b 692 * @}
vpcola 0:a1734fe1ec4b 693 */
vpcola 0:a1734fe1ec4b 694
vpcola 0:a1734fe1ec4b 695 /** @defgroup PA_POWER_CONF_Registers
vpcola 0:a1734fe1ec4b 696 * @{
vpcola 0:a1734fe1ec4b 697 */
vpcola 0:a1734fe1ec4b 698
vpcola 0:a1734fe1ec4b 699 /**
vpcola 0:a1734fe1ec4b 700 * \brief PA_POWER_CONF_Registers
vpcola 0:a1734fe1ec4b 701 * \code
vpcola 0:a1734fe1ec4b 702 * Default value:0x07
vpcola 0:a1734fe1ec4b 703 * Read Write
vpcola 0:a1734fe1ec4b 704 *
vpcola 0:a1734fe1ec4b 705 * 7:6 CWC[1:0]: Output stage additional load capacitors bank (to be used to
vpcola 0:a1734fe1ec4b 706 * optimize the PA for different sub-bands).
vpcola 0:a1734fe1ec4b 707 *
vpcola 0:a1734fe1ec4b 708 * CWC1 | CWC0 | Total capacity in pF
vpcola 0:a1734fe1ec4b 709 * ---------------------------------------------------------
vpcola 0:a1734fe1ec4b 710 * 0 | 0 | 0
vpcola 0:a1734fe1ec4b 711 * 0 | 1 | 1.2
vpcola 0:a1734fe1ec4b 712 * 1 | 0 | 2.4
vpcola 0:a1734fe1ec4b 713 * 1 | 1 | 3.6
vpcola 0:a1734fe1ec4b 714 *
vpcola 0:a1734fe1ec4b 715 * 5 PA_RAMP_ENABLE:
vpcola 0:a1734fe1ec4b 716 * 1 - Enable the power ramping
vpcola 0:a1734fe1ec4b 717 * 0 - Disable the power ramping
vpcola 0:a1734fe1ec4b 718 * 4:3 PA_RAMP_STEP_WIDTH[1:0]: Step width in bit period
vpcola 0:a1734fe1ec4b 719 *
vpcola 0:a1734fe1ec4b 720 * PA_RAMP_STEP_WIDTH1 | PA_RAMP_STEP_WIDTH0 | PA ramping time step
vpcola 0:a1734fe1ec4b 721 * -------------------------------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 722 * 0 | 0 | 1/8 Bit period
vpcola 0:a1734fe1ec4b 723 * 0 | 1 | 2/8 Bit period
vpcola 0:a1734fe1ec4b 724 * 1 | 0 | 3/8 Bit period
vpcola 0:a1734fe1ec4b 725 * 1 | 1 | 4/8 Bit period
vpcola 0:a1734fe1ec4b 726 *
vpcola 0:a1734fe1ec4b 727 * 2:0 PA_LEVEL_MAX_INDEX[2:0]: Fixes the MAX PA LEVEL in PA ramping or ASK modulation
vpcola 0:a1734fe1ec4b 728 *
vpcola 0:a1734fe1ec4b 729 * \endcode
vpcola 0:a1734fe1ec4b 730 */
vpcola 0:a1734fe1ec4b 731 #define PA_POWER0_BASE ((uint8_t)0x18) /*!< PA ramping settings and additional load capacitor banks used
vpcola 0:a1734fe1ec4b 732 for PA optimization in different sub bands*/
vpcola 0:a1734fe1ec4b 733 #define PA_POWER0_CWC_MASK ((uint8_t)0x20) /*!< Output stage additional load capacitors bank */
vpcola 0:a1734fe1ec4b 734 #define PA_POWER0_CWC_0 ((uint8_t)0x00) /*!< No additional PA load capacitor */
vpcola 0:a1734fe1ec4b 735 #define PA_POWER0_CWC_1_2P ((uint8_t)0x40) /*!< 1.2pF additional PA load capacitor */
vpcola 0:a1734fe1ec4b 736 #define PA_POWER0_CWC_2_4P ((uint8_t)0x80) /*!< 2.4pF additional PA load capacitor */
vpcola 0:a1734fe1ec4b 737 #define PA_POWER0_CWC_3_6P ((uint8_t)0xC0) /*!< 3.6pF additional PA load capacitor */
vpcola 0:a1734fe1ec4b 738 #define PA_POWER0_PA_RAMP_MASK ((uint8_t)0x20) /*!< The PA power ramping */
vpcola 0:a1734fe1ec4b 739 #define PA_POWER0_PA_RAMP_STEP_WIDTH_MASK ((uint8_t)0x20) /*!< The step width */
vpcola 0:a1734fe1ec4b 740 #define PA_POWER0_PA_RAMP_STEP_WIDTH_TB_8 ((uint8_t)0x00) /*!< PA ramping time step = 1/8 Bit period*/
vpcola 0:a1734fe1ec4b 741 #define PA_POWER0_PA_RAMP_STEP_WIDTH_TB_4 ((uint8_t)0x08) /*!< PA ramping time step = 2/8 Bit period*/
vpcola 0:a1734fe1ec4b 742 #define PA_POWER0_PA_RAMP_STEP_WIDTH_3TB_8 ((uint8_t)0x10) /*!< PA ramping time step = 3/8 Bit period*/
vpcola 0:a1734fe1ec4b 743 #define PA_POWER0_PA_RAMP_STEP_WIDTH_TB_2 ((uint8_t)0x18) /*!< PA ramping time step = 4/8 Bit period*/
vpcola 0:a1734fe1ec4b 744 #define PA_POWER0_PA_LEVEL_MAX_INDEX ((uint8_t)0x20) /*!< Final level for power ramping */
vpcola 0:a1734fe1ec4b 745 #define PA_POWER0_PA_LEVEL_MAX_INDEX_0 ((uint8_t)0x00) /*!< */
vpcola 0:a1734fe1ec4b 746 #define PA_POWER0_PA_LEVEL_MAX_INDEX_1 ((uint8_t)0x01) /*!< Fixes the MAX PA LEVEL in PA ramping or ASK modulation */
vpcola 0:a1734fe1ec4b 747 #define PA_POWER0_PA_LEVEL_MAX_INDEX_2 ((uint8_t)0x02) /*!< */
vpcola 0:a1734fe1ec4b 748 #define PA_POWER0_PA_LEVEL_MAX_INDEX_3 ((uint8_t)0x03) /*!< _________ */
vpcola 0:a1734fe1ec4b 749 #define PA_POWER0_PA_LEVEL_MAX_INDEX_4 ((uint8_t)0x04) /*!< PA_LVL2 _| <--| */
vpcola 0:a1734fe1ec4b 750 #define PA_POWER0_PA_LEVEL_MAX_INDEX_5 ((uint8_t)0x05) /*!< _| | */
vpcola 0:a1734fe1ec4b 751 #define PA_POWER0_PA_LEVEL_MAX_INDEX_6 ((uint8_t)0x06) /*!< PA_LVL1 _| | */
vpcola 0:a1734fe1ec4b 752 #define PA_POWER0_PA_LEVEL_MAX_INDEX_7 ((uint8_t)0x07) /*!< PA_LVL0 _| MAX_INDEX- */
vpcola 0:a1734fe1ec4b 753
vpcola 0:a1734fe1ec4b 754
vpcola 0:a1734fe1ec4b 755
vpcola 0:a1734fe1ec4b 756 /**
vpcola 0:a1734fe1ec4b 757 * @}
vpcola 0:a1734fe1ec4b 758 */
vpcola 0:a1734fe1ec4b 759
vpcola 0:a1734fe1ec4b 760
vpcola 0:a1734fe1ec4b 761 /** @defgroup MOD1_Register
vpcola 0:a1734fe1ec4b 762 * @{
vpcola 0:a1734fe1ec4b 763 */
vpcola 0:a1734fe1ec4b 764
vpcola 0:a1734fe1ec4b 765 /**
vpcola 0:a1734fe1ec4b 766 * \brief MOD1 register
vpcola 0:a1734fe1ec4b 767 * \code
vpcola 0:a1734fe1ec4b 768 * Read Write
vpcola 0:a1734fe1ec4b 769 * Default value: 0x83
vpcola 0:a1734fe1ec4b 770 * 7:0 DATARATE_M[7:0]: The Mantissa of the specified data rate
vpcola 0:a1734fe1ec4b 771 *
vpcola 0:a1734fe1ec4b 772 * \endcode
vpcola 0:a1734fe1ec4b 773 */
vpcola 0:a1734fe1ec4b 774 #define MOD1_BASE ((uint8_t)0x1A) /*!< The Mantissa of the specified data rate */
vpcola 0:a1734fe1ec4b 775
vpcola 0:a1734fe1ec4b 776 /**
vpcola 0:a1734fe1ec4b 777 * @}
vpcola 0:a1734fe1ec4b 778 */
vpcola 0:a1734fe1ec4b 779
vpcola 0:a1734fe1ec4b 780 /** @defgroup MOD0_Register
vpcola 0:a1734fe1ec4b 781 * @{
vpcola 0:a1734fe1ec4b 782 */
vpcola 0:a1734fe1ec4b 783
vpcola 0:a1734fe1ec4b 784 /**
vpcola 0:a1734fe1ec4b 785 * \brief MOD0 register
vpcola 0:a1734fe1ec4b 786 * \code
vpcola 0:a1734fe1ec4b 787 * Read Write
vpcola 0:a1734fe1ec4b 788 * Default value: 0x1A
vpcola 0:a1734fe1ec4b 789 * 7 CW: 1 - CW Mode enabled - enables the generation of a continous wave carrier without any modulation
vpcola 0:a1734fe1ec4b 790 * 0 - CW Mode disabled
vpcola 0:a1734fe1ec4b 791 *
vpcola 0:a1734fe1ec4b 792 * 6 BT_SEL: Select BT value for GFSK
vpcola 0:a1734fe1ec4b 793 * 1 - BT=0.5
vpcola 0:a1734fe1ec4b 794 * 0 - BT=1
vpcola 0:a1734fe1ec4b 795 *
vpcola 0:a1734fe1ec4b 796 * 5:4 MOD_TYPE[1:0]: Modulation type
vpcola 0:a1734fe1ec4b 797 *
vpcola 0:a1734fe1ec4b 798 *
vpcola 0:a1734fe1ec4b 799 * MOD_TYPE1 | MOD_TYPE0 | Modulation
vpcola 0:a1734fe1ec4b 800 * ---------------------------------------------------------
vpcola 0:a1734fe1ec4b 801 * 0 | 0 | 2-FSK,MSK
vpcola 0:a1734fe1ec4b 802 * 0 | 1 | GFSK,GMSK
vpcola 0:a1734fe1ec4b 803 * 1 | 0 | ASK/OOK
vpcola 0:a1734fe1ec4b 804 *
vpcola 0:a1734fe1ec4b 805 * 3:0 DATARATE_E[3:0]: The Exponent of the specified data rate
vpcola 0:a1734fe1ec4b 806 *
vpcola 0:a1734fe1ec4b 807 * \endcode
vpcola 0:a1734fe1ec4b 808 */
vpcola 0:a1734fe1ec4b 809 #define MOD0_BASE ((uint8_t)0x1B) /*!< Modulation Settings, Exponent of the specified data rate, CW mode*/
vpcola 0:a1734fe1ec4b 810
vpcola 0:a1734fe1ec4b 811 #define MOD0_MOD_TYPE_2_FSK ((uint8_t)0x00) /*!< Modulation type 2-FSK (MSK if the frequency deviation is identical to a quarter of the data rate) */
vpcola 0:a1734fe1ec4b 812 #define MOD0_MOD_TYPE_GFSK ((uint8_t)0x10) /*!< Modulation type GFSK (GMSK if the frequency deviation is identical to a quarter of the data rate) */
vpcola 0:a1734fe1ec4b 813 #define MOD0_MOD_TYPE_ASK ((uint8_t)0x20) /*!< Modulation type ASK (OOK the PA is switched off for symbol "0") */
vpcola 0:a1734fe1ec4b 814 #define MOD0_MOD_TYPE_MSK ((uint8_t)0x00) /*!< Modulation type MSK (the frequency deviation must be identical to a quarter of the data rate) */
vpcola 0:a1734fe1ec4b 815 #define MOD0_MOD_TYPE_GMSK ((uint8_t)0x10) /*!< Modulation type GMSK (the frequency deviation must be identical to a quarter of the data rate) */
vpcola 0:a1734fe1ec4b 816 #define MOD0_BT_SEL_BT_MASK ((uint8_t)0x00) /*!< Select the BT = 1 or BT = 0.5 valid only for GFSK or GMSK modulation*/
vpcola 0:a1734fe1ec4b 817 #define MOD0_CW ((uint8_t)0x80) /*!< Set the Continous Wave (no modulation) transmit mode */
vpcola 0:a1734fe1ec4b 818
vpcola 0:a1734fe1ec4b 819 /**
vpcola 0:a1734fe1ec4b 820 * @}
vpcola 0:a1734fe1ec4b 821 */
vpcola 0:a1734fe1ec4b 822
vpcola 0:a1734fe1ec4b 823
vpcola 0:a1734fe1ec4b 824 /** @defgroup FDEV0_Register
vpcola 0:a1734fe1ec4b 825 * @{
vpcola 0:a1734fe1ec4b 826 */
vpcola 0:a1734fe1ec4b 827
vpcola 0:a1734fe1ec4b 828 /**
vpcola 0:a1734fe1ec4b 829 * \brief FDEV0 register
vpcola 0:a1734fe1ec4b 830 * \code
vpcola 0:a1734fe1ec4b 831 * Read Write
vpcola 0:a1734fe1ec4b 832 * Default value: 0x45
vpcola 0:a1734fe1ec4b 833 * 7:4 FDEV_E[3:0]: Exponent of the frequency deviation (allowed values from 0 to 9)
vpcola 0:a1734fe1ec4b 834 *
vpcola 0:a1734fe1ec4b 835 * 3 CLOCK_REC_ALGO_SEL: Select PLL or DLL mode for clock recovery
vpcola 0:a1734fe1ec4b 836 * 1 - DLL mode
vpcola 0:a1734fe1ec4b 837 * 0 - PLL mode
vpcola 0:a1734fe1ec4b 838 *
vpcola 0:a1734fe1ec4b 839 * 2:0 FDEV_M[1:0]: Mantissa of the frequency deviation (allowed values from 0 to 7)
vpcola 0:a1734fe1ec4b 840 *
vpcola 0:a1734fe1ec4b 841 *
vpcola 0:a1734fe1ec4b 842 * \endcode
vpcola 0:a1734fe1ec4b 843 */
vpcola 0:a1734fe1ec4b 844 #define FDEV0_BASE ((uint8_t)0x1C) /*!< Sets the Mantissa and exponent of frequency deviation (frequency separation/2)
vpcola 0:a1734fe1ec4b 845 and PLL or DLL alogrithm from clock recovery in RX digital demod*/
vpcola 0:a1734fe1ec4b 846 #define FDEV0_CLOCK_REG_ALGO_SEL_MASK ((uint8_t)0x08) /*!< Can be DLL or PLL algorithm for clock recovery in RX digital demod (see CLOCKREC reg) */
vpcola 0:a1734fe1ec4b 847 #define FDEV0_CLOCK_REG_ALGO_SEL_PLL ((uint8_t)0x00) /*!< Sets PLL alogrithm for clock recovery in RX digital demod (see CLOCKREC reg) */
vpcola 0:a1734fe1ec4b 848 #define FDEV0_CLOCK_REG_ALGO_SEL_DLL ((uint8_t)0x08) /*!< Sets DLL alogrithm for clock recovery in RX digital demod (see CLOCKREC reg) */
vpcola 0:a1734fe1ec4b 849
vpcola 0:a1734fe1ec4b 850 /**
vpcola 0:a1734fe1ec4b 851 * @}
vpcola 0:a1734fe1ec4b 852 */
vpcola 0:a1734fe1ec4b 853
vpcola 0:a1734fe1ec4b 854 /** @defgroup CHFLT_Register
vpcola 0:a1734fe1ec4b 855 * @{
vpcola 0:a1734fe1ec4b 856 */
vpcola 0:a1734fe1ec4b 857
vpcola 0:a1734fe1ec4b 858 /**
vpcola 0:a1734fe1ec4b 859 * \brief CHFLT register
vpcola 0:a1734fe1ec4b 860 * \code
vpcola 0:a1734fe1ec4b 861 * Read Write
vpcola 0:a1734fe1ec4b 862 * Default value: 0x23
vpcola 0:a1734fe1ec4b 863 * 7:4 CHFLT_M[3:0]: Mantissa of the channel filter BW (allowed values from 0 to 8)
vpcola 0:a1734fe1ec4b 864 *
vpcola 0:a1734fe1ec4b 865 * 3:0 CHFLT_E[3:0]: Exponent of the channel filter BW (allowed values from 0 to 9)
vpcola 0:a1734fe1ec4b 866 *
vpcola 0:a1734fe1ec4b 867 * M\E | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
vpcola 0:a1734fe1ec4b 868 * -----+-------+-------+-------+-------+------+------+------+-----+-----+-----+
vpcola 0:a1734fe1ec4b 869 * 0 | 800.1 | 450.9 | 224.7 | 112.3 | 56.1 | 28.0 | 14.0 | 7.0 | 3.5 | 1.8 |
vpcola 0:a1734fe1ec4b 870 * 1 | 795.1 | 425.9 | 212.4 | 106.2 | 53.0 | 26.5 | 13.3 | 6.6 | 3.3 | 1.7 |
vpcola 0:a1734fe1ec4b 871 * 2 | 768.4 | 403.2 | 201.1 | 100.5 | 50.2 | 25.1 | 12.6 | 6.3 | 3.1 | 1.6 |
vpcola 0:a1734fe1ec4b 872 * 3 | 736.8 | 380.8 | 190.0 | 95.0 | 47.4 | 23.7 | 11.9 | 5.9 | 3.0 | 1.5 |
vpcola 0:a1734fe1ec4b 873 * 4 | 705.1 | 362.1 | 180.7 | 90.3 | 45.1 | 22.6 | 11.3 | 5.6 | 2.8 | 1.4 |
vpcola 0:a1734fe1ec4b 874 * 5 | 670.9 | 341.7 | 170.6 | 85.3 | 42.6 | 21.3 | 10.6 | 5.3 | 2.7 | 1.3 |
vpcola 0:a1734fe1ec4b 875 * 6 | 642.3 | 325.4 | 162.4 | 81.2 | 40.6 | 20.3 | 10.1 | 5.1 | 2.5 | 1.3 |
vpcola 0:a1734fe1ec4b 876 * 7 | 586.7 | 294.5 | 147.1 | 73.5 | 36.7 | 18.4 | 9.2 | 4.6 | 2.3 | 1.2 |
vpcola 0:a1734fe1ec4b 877 * 8 | 541.4 | 270.3 | 135.0 | 67.5 | 33.7 | 16.9 | 8.4 | 4.2 | 2.1 | 1.1 |
vpcola 0:a1734fe1ec4b 878 *
vpcola 0:a1734fe1ec4b 879 * \endcode
vpcola 0:a1734fe1ec4b 880 */
vpcola 0:a1734fe1ec4b 881 #define CHFLT_BASE ((uint8_t)0x1D) /*!< RX Channel Filter Bandwidth */
vpcola 0:a1734fe1ec4b 882
vpcola 0:a1734fe1ec4b 883 #define CHFLT_800_1 ((uint8_t)0x00) /*!< RX Channel Filter Bandwidth = 800.1 kHz */
vpcola 0:a1734fe1ec4b 884 #define CHFLT_795_1 ((uint8_t)0x10) /*!< RX Channel Filter Bandwidth = 795.1 kHz */
vpcola 0:a1734fe1ec4b 885 #define CHFLT_768_4 ((uint8_t)0x20) /*!< RX Channel Filter Bandwidth = 768.4 kHz */
vpcola 0:a1734fe1ec4b 886 #define CHFLT_736_8 ((uint8_t)0x30) /*!< RX Channel Filter Bandwidth = 736.8 kHz */
vpcola 0:a1734fe1ec4b 887 #define CHFLT_705_1 ((uint8_t)0x40) /*!< RX Channel Filter Bandwidth = 705.1 kHz */
vpcola 0:a1734fe1ec4b 888 #define CHFLT_670_9 ((uint8_t)0x50) /*!< RX Channel Filter Bandwidth = 670.9 kHz */
vpcola 0:a1734fe1ec4b 889 #define CHFLT_642_3 ((uint8_t)0x60) /*!< RX Channel Filter Bandwidth = 642.3 kHz */
vpcola 0:a1734fe1ec4b 890 #define CHFLT_586_7 ((uint8_t)0x70) /*!< RX Channel Filter Bandwidth = 586.7 kHz */
vpcola 0:a1734fe1ec4b 891 #define CHFLT_541_4 ((uint8_t)0x80) /*!< RX Channel Filter Bandwidth = 541.4 kHz */
vpcola 0:a1734fe1ec4b 892 #define CHFLT_450_9 ((uint8_t)0x01) /*!< RX Channel Filter Bandwidth = 450.9 kHz */
vpcola 0:a1734fe1ec4b 893 #define CHFLT_425_9 ((uint8_t)0x11) /*!< RX Channel Filter Bandwidth = 425.9 kHz */
vpcola 0:a1734fe1ec4b 894 #define CHFLT_403_2 ((uint8_t)0x21) /*!< RX Channel Filter Bandwidth = 403.2 kHz */
vpcola 0:a1734fe1ec4b 895 #define CHFLT_380_8 ((uint8_t)0x31) /*!< RX Channel Filter Bandwidth = 380.8 kHz */
vpcola 0:a1734fe1ec4b 896 #define CHFLT_362_1 ((uint8_t)0x41) /*!< RX Channel Filter Bandwidth = 362.1 kHz */
vpcola 0:a1734fe1ec4b 897 #define CHFLT_341_7 ((uint8_t)0x51) /*!< RX Channel Filter Bandwidth = 341.7 kHz */
vpcola 0:a1734fe1ec4b 898 #define CHFLT_325_4 ((uint8_t)0x61) /*!< RX Channel Filter Bandwidth = 325.4 kHz */
vpcola 0:a1734fe1ec4b 899 #define CHFLT_294_5 ((uint8_t)0x71) /*!< RX Channel Filter Bandwidth = 294.5 kHz */
vpcola 0:a1734fe1ec4b 900 #define CHFLT_270_3 ((uint8_t)0x81) /*!< RX Channel Filter Bandwidth = 270.3 kHz */
vpcola 0:a1734fe1ec4b 901 #define CHFLT_224_7 ((uint8_t)0x02) /*!< RX Channel Filter Bandwidth = 224.7 kHz */
vpcola 0:a1734fe1ec4b 902 #define CHFLT_212_4 ((uint8_t)0x12) /*!< RX Channel Filter Bandwidth = 212.4 kHz */
vpcola 0:a1734fe1ec4b 903 #define CHFLT_201_1 ((uint8_t)0x22) /*!< RX Channel Filter Bandwidth = 201.1 kHz */
vpcola 0:a1734fe1ec4b 904 #define CHFLT_190 ((uint8_t)0x32) /*!< RX Channel Filter Bandwidth = 190.0 kHz */
vpcola 0:a1734fe1ec4b 905 #define CHFLT_180_7 ((uint8_t)0x42) /*!< RX Channel Filter Bandwidth = 180.7 kHz */
vpcola 0:a1734fe1ec4b 906 #define CHFLT_170_6 ((uint8_t)0x52) /*!< RX Channel Filter Bandwidth = 170.6 kHz */
vpcola 0:a1734fe1ec4b 907 #define CHFLT_162_4 ((uint8_t)0x62) /*!< RX Channel Filter Bandwidth = 162.4 kHz */
vpcola 0:a1734fe1ec4b 908 #define CHFLT_147_1 ((uint8_t)0x72) /*!< RX Channel Filter Bandwidth = 147.1 kHz */
vpcola 0:a1734fe1ec4b 909 #define CHFLT_135 ((uint8_t)0x82) /*!< RX Channel Filter Bandwidth = 135.0 kHz */
vpcola 0:a1734fe1ec4b 910 #define CHFLT_112_3 ((uint8_t)0x03) /*!< RX Channel Filter Bandwidth = 112.3 kHz */
vpcola 0:a1734fe1ec4b 911 #define CHFLT_106_2 ((uint8_t)0x13) /*!< RX Channel Filter Bandwidth = 106.2 kHz */
vpcola 0:a1734fe1ec4b 912 #define CHFLT_100_5 ((uint8_t)0x23) /*!< RX Channel Filter Bandwidth = 100.5 kHz */
vpcola 0:a1734fe1ec4b 913 #define CHFLT_95 ((uint8_t)0x33) /*!< RX Channel Filter Bandwidth = 95.0 kHz */
vpcola 0:a1734fe1ec4b 914 #define CHFLT_90_3 ((uint8_t)0x43) /*!< RX Channel Filter Bandwidth = 90.3 kHz */
vpcola 0:a1734fe1ec4b 915 #define CHFLT_85_3 ((uint8_t)0x53) /*!< RX Channel Filter Bandwidth = 85.3 kHz */
vpcola 0:a1734fe1ec4b 916 #define CHFLT_81_2 ((uint8_t)0x63) /*!< RX Channel Filter Bandwidth = 81.2 kHz */
vpcola 0:a1734fe1ec4b 917 #define CHFLT_73_5 ((uint8_t)0x73) /*!< RX Channel Filter Bandwidth = 73.5 kHz */
vpcola 0:a1734fe1ec4b 918 #define CHFLT_67_5 ((uint8_t)0x83) /*!< RX Channel Filter Bandwidth = 67.5 kHz */
vpcola 0:a1734fe1ec4b 919 #define CHFLT_56_1 ((uint8_t)0x04) /*!< RX Channel Filter Bandwidth = 56.1 kHz */
vpcola 0:a1734fe1ec4b 920 #define CHFLT_53 ((uint8_t)0x14) /*!< RX Channel Filter Bandwidth = 53.0 kHz */
vpcola 0:a1734fe1ec4b 921 #define CHFLT_50_2 ((uint8_t)0x24) /*!< RX Channel Filter Bandwidth = 50.2 kHz */
vpcola 0:a1734fe1ec4b 922 #define CHFLT_47_4 ((uint8_t)0x34) /*!< RX Channel Filter Bandwidth = 47.4 kHz */
vpcola 0:a1734fe1ec4b 923 #define CHFLT_45_1 ((uint8_t)0x44) /*!< RX Channel Filter Bandwidth = 45.1 kHz */
vpcola 0:a1734fe1ec4b 924 #define CHFLT_42_6 ((uint8_t)0x54) /*!< RX Channel Filter Bandwidth = 42.6 kHz */
vpcola 0:a1734fe1ec4b 925 #define CHFLT_40_6 ((uint8_t)0x64) /*!< RX Channel Filter Bandwidth = 40.6 kHz */
vpcola 0:a1734fe1ec4b 926 #define CHFLT_36_7 ((uint8_t)0x74) /*!< RX Channel Filter Bandwidth = 36.7 kHz */
vpcola 0:a1734fe1ec4b 927 #define CHFLT_33_7 ((uint8_t)0x84) /*!< RX Channel Filter Bandwidth = 33.7 kHz */
vpcola 0:a1734fe1ec4b 928 #define CHFLT_28 ((uint8_t)0x05) /*!< RX Channel Filter Bandwidth = 28.0 kHz */
vpcola 0:a1734fe1ec4b 929 #define CHFLT_26_5 ((uint8_t)0x15) /*!< RX Channel Filter Bandwidth = 26.5 kHz */
vpcola 0:a1734fe1ec4b 930 #define CHFLT_25_1 ((uint8_t)0x25) /*!< RX Channel Filter Bandwidth = 25.1 kHz */
vpcola 0:a1734fe1ec4b 931 #define CHFLT_23_7 ((uint8_t)0x35) /*!< RX Channel Filter Bandwidth = 23.7 kHz */
vpcola 0:a1734fe1ec4b 932 #define CHFLT_22_6 ((uint8_t)0x45) /*!< RX Channel Filter Bandwidth = 22.6 kHz */
vpcola 0:a1734fe1ec4b 933 #define CHFLT_21_3 ((uint8_t)0x55) /*!< RX Channel Filter Bandwidth = 21.3 kHz */
vpcola 0:a1734fe1ec4b 934 #define CHFLT_20_3 ((uint8_t)0x65) /*!< RX Channel Filter Bandwidth = 20.3 kHz */
vpcola 0:a1734fe1ec4b 935 #define CHFLT_18_4 ((uint8_t)0x75) /*!< RX Channel Filter Bandwidth = 18.4 kHz */
vpcola 0:a1734fe1ec4b 936 #define CHFLT_16_9 ((uint8_t)0x85) /*!< RX Channel Filter Bandwidth = 16.9 kHz */
vpcola 0:a1734fe1ec4b 937 #define CHFLT_14 ((uint8_t)0x06) /*!< RX Channel Filter Bandwidth = 14.0 kHz */
vpcola 0:a1734fe1ec4b 938 #define CHFLT_13_3 ((uint8_t)0x16) /*!< RX Channel Filter Bandwidth = 13.3 kHz */
vpcola 0:a1734fe1ec4b 939 #define CHFLT_12_6 ((uint8_t)0x26) /*!< RX Channel Filter Bandwidth = 12.6 kHz */
vpcola 0:a1734fe1ec4b 940 #define CHFLT_11_9 ((uint8_t)0x36) /*!< RX Channel Filter Bandwidth = 11.9 kHz */
vpcola 0:a1734fe1ec4b 941 #define CHFLT_11_3 ((uint8_t)0x46) /*!< RX Channel Filter Bandwidth = 11.3 kHz */
vpcola 0:a1734fe1ec4b 942 #define CHFLT_10_6 ((uint8_t)0x56) /*!< RX Channel Filter Bandwidth = 10.6 kHz */
vpcola 0:a1734fe1ec4b 943 #define CHFLT_10_1 ((uint8_t)0x66) /*!< RX Channel Filter Bandwidth = 10.1 kHz */
vpcola 0:a1734fe1ec4b 944 #define CHFLT_9_2 ((uint8_t)0x76) /*!< RX Channel Filter Bandwidth = 9.2 kHz */
vpcola 0:a1734fe1ec4b 945 #define CHFLT_8_4 ((uint8_t)0x86) /*!< RX Channel Filter Bandwidth = 8.4 kHz */
vpcola 0:a1734fe1ec4b 946 #define CHFLT_7 ((uint8_t)0x07) /*!< RX Channel Filter Bandwidth = 7.0 kHz */
vpcola 0:a1734fe1ec4b 947 #define CHFLT_6_6 ((uint8_t)0x17) /*!< RX Channel Filter Bandwidth = 6.6 kHz */
vpcola 0:a1734fe1ec4b 948 #define CHFLT_6_3 ((uint8_t)0x27) /*!< RX Channel Filter Bandwidth = 6.3 kHz */
vpcola 0:a1734fe1ec4b 949 #define CHFLT_5_9 ((uint8_t)0x37) /*!< RX Channel Filter Bandwidth = 5.9 kHz */
vpcola 0:a1734fe1ec4b 950 #define CHFLT_5_6 ((uint8_t)0x47) /*!< RX Channel Filter Bandwidth = 5.6 kHz */
vpcola 0:a1734fe1ec4b 951 #define CHFLT_5_3 ((uint8_t)0x57) /*!< RX Channel Filter Bandwidth = 5.3 kHz */
vpcola 0:a1734fe1ec4b 952 #define CHFLT_5_1 ((uint8_t)0x67) /*!< RX Channel Filter Bandwidth = 5.1 kHz */
vpcola 0:a1734fe1ec4b 953 #define CHFLT_4_6 ((uint8_t)0x77) /*!< RX Channel Filter Bandwidth = 4.6 kHz */
vpcola 0:a1734fe1ec4b 954 #define CHFLT_4_2 ((uint8_t)0x87) /*!< RX Channel Filter Bandwidth = 4.2 kHz */
vpcola 0:a1734fe1ec4b 955 #define CHFLT_3_5 ((uint8_t)0x08) /*!< RX Channel Filter Bandwidth = 3.5 kHz */
vpcola 0:a1734fe1ec4b 956 #define CHFLT_3_3 ((uint8_t)0x18) /*!< RX Channel Filter Bandwidth = 3.3 kHz */
vpcola 0:a1734fe1ec4b 957 #define CHFLT_3_1 ((uint8_t)0x28) /*!< RX Channel Filter Bandwidth = 3.1 kHz */
vpcola 0:a1734fe1ec4b 958 #define CHFLT_3 ((uint8_t)0x38) /*!< RX Channel Filter Bandwidth = 3.0 kHz */
vpcola 0:a1734fe1ec4b 959 #define CHFLT_2_8 ((uint8_t)0x48) /*!< RX Channel Filter Bandwidth = 2.8 kHz */
vpcola 0:a1734fe1ec4b 960 #define CHFLT_2_7 ((uint8_t)0x58) /*!< RX Channel Filter Bandwidth = 2.7 kHz */
vpcola 0:a1734fe1ec4b 961 #define CHFLT_2_5 ((uint8_t)0x68) /*!< RX Channel Filter Bandwidth = 2.5 kHz */
vpcola 0:a1734fe1ec4b 962 #define CHFLT_2_3 ((uint8_t)0x78) /*!< RX Channel Filter Bandwidth = 2.3 kHz */
vpcola 0:a1734fe1ec4b 963 #define CHFLT_2_1 ((uint8_t)0x88) /*!< RX Channel Filter Bandwidth = 2.1 kHz */
vpcola 0:a1734fe1ec4b 964 #define CHFLT_1_8 ((uint8_t)0x09) /*!< RX Channel Filter Bandwidth = 1.8 kHz */
vpcola 0:a1734fe1ec4b 965 #define CHFLT_1_7 ((uint8_t)0x19) /*!< RX Channel Filter Bandwidth = 1.7 kHz */
vpcola 0:a1734fe1ec4b 966 #define CHFLT_1_6 ((uint8_t)0x29) /*!< RX Channel Filter Bandwidth = 1.6 kHz */
vpcola 0:a1734fe1ec4b 967 #define CHFLT_1_5 ((uint8_t)0x39) /*!< RX Channel Filter Bandwidth = 1.5 kHz */
vpcola 0:a1734fe1ec4b 968 #define CHFLT_1_4 ((uint8_t)0x49) /*!< RX Channel Filter Bandwidth = 1.4 kHz */
vpcola 0:a1734fe1ec4b 969 #define CHFLT_1_3a ((uint8_t)0x59) /*!< RX Channel Filter Bandwidth = 1.3 kHz */
vpcola 0:a1734fe1ec4b 970 #define CHFLT_1_3 ((uint8_t)0x69) /*!< RX Channel Filter Bandwidth = 1.3 kHz */
vpcola 0:a1734fe1ec4b 971 #define CHFLT_1_2 ((uint8_t)0x79) /*!< RX Channel Filter Bandwidth = 1.2 kHz */
vpcola 0:a1734fe1ec4b 972 #define CHFLT_1_1 ((uint8_t)0x89) /*!< RX Channel Filter Bandwidth = 1.1 kHz */
vpcola 0:a1734fe1ec4b 973
vpcola 0:a1734fe1ec4b 974 /**
vpcola 0:a1734fe1ec4b 975 * @}
vpcola 0:a1734fe1ec4b 976 */
vpcola 0:a1734fe1ec4b 977
vpcola 0:a1734fe1ec4b 978 /** @defgroup AFC2_Register
vpcola 0:a1734fe1ec4b 979 * @{
vpcola 0:a1734fe1ec4b 980 */
vpcola 0:a1734fe1ec4b 981
vpcola 0:a1734fe1ec4b 982 /**
vpcola 0:a1734fe1ec4b 983 * \brief AFC2 register
vpcola 0:a1734fe1ec4b 984 * \code
vpcola 0:a1734fe1ec4b 985 * Read Write
vpcola 0:a1734fe1ec4b 986 * Default value: 0x48
vpcola 0:a1734fe1ec4b 987 * 7 AFC Freeze on Sync: Freeze AFC correction upon sync word detection.
vpcola 0:a1734fe1ec4b 988 * 1 - AFC Freeze enabled
vpcola 0:a1734fe1ec4b 989 * 0 - AFC Freeze disabled
vpcola 0:a1734fe1ec4b 990 *
vpcola 0:a1734fe1ec4b 991 * 6 AFC Enabled: Enable AFC
vpcola 0:a1734fe1ec4b 992 * 1 - AFC enabled
vpcola 0:a1734fe1ec4b 993 * 0 - AFC disabled
vpcola 0:a1734fe1ec4b 994 *
vpcola 0:a1734fe1ec4b 995 * 5 AFC Mode: Select AFC mode
vpcola 0:a1734fe1ec4b 996 * 1 - AFC Loop closed on 2nd conversion stage.
vpcola 0:a1734fe1ec4b 997 * 0 - AFC Loop closed on slicer
vpcola 0:a1734fe1ec4b 998 *
vpcola 0:a1734fe1ec4b 999 * 4:0 AFC PD leakage[4:0]: Peak detector leakage. This parameter sets the decay speed of the min/max frequency peak detector (AFC2 register),
vpcola 0:a1734fe1ec4b 1000 * the range allowed is 0..31 (0 - no leakage, 31 - high leakage). The recommended value for this parameter is 4.
vpcola 0:a1734fe1ec4b 1001 *
vpcola 0:a1734fe1ec4b 1002 * \endcode
vpcola 0:a1734fe1ec4b 1003 */
vpcola 0:a1734fe1ec4b 1004 #define AFC2_BASE ((uint8_t)0x1E) /*!< Automatic frequency compensation algorithm parameters (FSK/GFSK/MSK)*/
vpcola 0:a1734fe1ec4b 1005
vpcola 0:a1734fe1ec4b 1006 #define AFC2_AFC_FREEZE_ON_SYNC_MASK ((uint8_t)0x80) /*!< The frequency correction value is frozen when SYNC word is detected */
vpcola 0:a1734fe1ec4b 1007 #define AFC2_AFC_MASK ((uint8_t)0x40) /*!< Mask of Automatic Frequency Correction */
vpcola 0:a1734fe1ec4b 1008 #define AFC2_AFC_MODE_MASK ((uint8_t)0x20) /*!< Automatic Frequency Correction can be in Main MODE or Auxiliary MODE*/
vpcola 0:a1734fe1ec4b 1009 #define AFC2_AFC_MODE_SLICER ((uint8_t)0x00) /*!< Automatic Frequency Correction Main MODE */
vpcola 0:a1734fe1ec4b 1010 #define AFC2_AFC_MODE_MIXER ((uint8_t)0x20) /*!< Automatic Frequency Correction Auxiliary MODE */
vpcola 0:a1734fe1ec4b 1011
vpcola 0:a1734fe1ec4b 1012 /**
vpcola 0:a1734fe1ec4b 1013 * @}
vpcola 0:a1734fe1ec4b 1014 */
vpcola 0:a1734fe1ec4b 1015
vpcola 0:a1734fe1ec4b 1016 /** @defgroup AFC1_Register
vpcola 0:a1734fe1ec4b 1017 * @{
vpcola 0:a1734fe1ec4b 1018 */
vpcola 0:a1734fe1ec4b 1019
vpcola 0:a1734fe1ec4b 1020 /**
vpcola 0:a1734fe1ec4b 1021 * \brief AFC1 register
vpcola 0:a1734fe1ec4b 1022 * \code
vpcola 0:a1734fe1ec4b 1023 * Read Write
vpcola 0:a1734fe1ec4b 1024 * Default value: 0x18
vpcola 0:a1734fe1ec4b 1025 * 7:0 AFC_FAST_PERIOD: Length of the AFC fast period. this parameter sets the length of the fast period in number of samples (AFC1 register), the range allowed
vpcola 0:a1734fe1ec4b 1026 * is 0..255. The recommended setting for this parameter is such that the fast period equals the preamble length. Since the
vpcola 0:a1734fe1ec4b 1027 * algorithm operates typically on 2 samples per symbol, the programmed value should be twice the number of preamble
vpcola 0:a1734fe1ec4b 1028 * symbols.
vpcola 0:a1734fe1ec4b 1029 *
vpcola 0:a1734fe1ec4b 1030 * \endcode
vpcola 0:a1734fe1ec4b 1031 */
vpcola 0:a1734fe1ec4b 1032 #define AFC1_BASE ((uint8_t)0x1F) /*!< Length of the AFC fast period */
vpcola 0:a1734fe1ec4b 1033
vpcola 0:a1734fe1ec4b 1034 /**
vpcola 0:a1734fe1ec4b 1035 * @}
vpcola 0:a1734fe1ec4b 1036 */
vpcola 0:a1734fe1ec4b 1037
vpcola 0:a1734fe1ec4b 1038 /** @defgroup AFC0_Register
vpcola 0:a1734fe1ec4b 1039 * @{
vpcola 0:a1734fe1ec4b 1040 */
vpcola 0:a1734fe1ec4b 1041
vpcola 0:a1734fe1ec4b 1042 /**
vpcola 0:a1734fe1ec4b 1043 * \brief AFC0 register
vpcola 0:a1734fe1ec4b 1044 * \code
vpcola 0:a1734fe1ec4b 1045 * Read Write
vpcola 0:a1734fe1ec4b 1046 * Default value: 0x25
vpcola 0:a1734fe1ec4b 1047 * 7:4 AFC_FAST_GAIN_LOG2[3:0]: AFC loop gain in fast mode (2's log)
vpcola 0:a1734fe1ec4b 1048 *
vpcola 0:a1734fe1ec4b 1049 * 3:0 AFC_SLOW_GAIN_LOG2[3:0]: AFC loop gain in slow mode (2's log)
vpcola 0:a1734fe1ec4b 1050 *
vpcola 0:a1734fe1ec4b 1051 * \endcode
vpcola 0:a1734fe1ec4b 1052 */
vpcola 0:a1734fe1ec4b 1053 #define AFC0_BASE ((uint8_t)0x20) /*!< AFC loop gain in fast and slow modes (2's log) */
vpcola 0:a1734fe1ec4b 1054
vpcola 0:a1734fe1ec4b 1055 /**
vpcola 0:a1734fe1ec4b 1056 * @}
vpcola 0:a1734fe1ec4b 1057 */
vpcola 0:a1734fe1ec4b 1058
vpcola 0:a1734fe1ec4b 1059 /** @defgroup CLOCKREC_Register
vpcola 0:a1734fe1ec4b 1060 * @{
vpcola 0:a1734fe1ec4b 1061 */
vpcola 0:a1734fe1ec4b 1062
vpcola 0:a1734fe1ec4b 1063 /**
vpcola 0:a1734fe1ec4b 1064 * \brief CLOCKREC register
vpcola 0:a1734fe1ec4b 1065 * \code
vpcola 0:a1734fe1ec4b 1066 * Read Write
vpcola 0:a1734fe1ec4b 1067 * Default value: 0x58
vpcola 0:a1734fe1ec4b 1068 *
vpcola 0:a1734fe1ec4b 1069 * 7:5 CLK_REC_P_GAIN [2:0]: Clock recovery loop gain (log2)
vpcola 0:a1734fe1ec4b 1070 *
vpcola 0:a1734fe1ec4b 1071 * 4 PSTFLT_LEN: Set Postfilter length
vpcola 0:a1734fe1ec4b 1072 * 1 - 16 symbols
vpcola 0:a1734fe1ec4b 1073 * 0 - 8 symbols
vpcola 0:a1734fe1ec4b 1074 *
vpcola 0:a1734fe1ec4b 1075 * 3:0 CLK_REC_I_GAIN[3:0]: Integral gain for the clock recovery loop
vpcola 0:a1734fe1ec4b 1076 * \endcode
vpcola 0:a1734fe1ec4b 1077 */
vpcola 0:a1734fe1ec4b 1078
vpcola 0:a1734fe1ec4b 1079 #define CLOCKREC_BASE ((uint8_t)0x23) /*!< Gain of clock recovery loop - Postfilter length 0-8 symbols, 1-16 symbols */
vpcola 0:a1734fe1ec4b 1080
vpcola 0:a1734fe1ec4b 1081 /**
vpcola 0:a1734fe1ec4b 1082 * @}
vpcola 0:a1734fe1ec4b 1083 */
vpcola 0:a1734fe1ec4b 1084
vpcola 0:a1734fe1ec4b 1085 /** @defgroup AGCCTRL2_Register
vpcola 0:a1734fe1ec4b 1086 * @{
vpcola 0:a1734fe1ec4b 1087 */
vpcola 0:a1734fe1ec4b 1088
vpcola 0:a1734fe1ec4b 1089 /**
vpcola 0:a1734fe1ec4b 1090 * \brief AGCCTRL2 register
vpcola 0:a1734fe1ec4b 1091 * \code
vpcola 0:a1734fe1ec4b 1092 * Read Write
vpcola 0:a1734fe1ec4b 1093 * Default value: 0x22
vpcola 0:a1734fe1ec4b 1094 *
vpcola 0:a1734fe1ec4b 1095 * 7 Reserved
vpcola 0:a1734fe1ec4b 1096 *
vpcola 0:a1734fe1ec4b 1097 * 6 FREEZE_ON_STEADY: Enable freezing on steady state
vpcola 0:a1734fe1ec4b 1098 * 1 - Enable
vpcola 0:a1734fe1ec4b 1099 * 0 - Disable
vpcola 0:a1734fe1ec4b 1100 *
vpcola 0:a1734fe1ec4b 1101 * 5 FREEZE_ON_SYNC: Enable freezing on sync detection
vpcola 0:a1734fe1ec4b 1102 * 1 - Enable
vpcola 0:a1734fe1ec4b 1103 * 0 - Disable
vpcola 0:a1734fe1ec4b 1104 *
vpcola 0:a1734fe1ec4b 1105 * 4 START_MAX_ATTENUATION: Start with max attenuation
vpcola 0:a1734fe1ec4b 1106 * 1 - Enable
vpcola 0:a1734fe1ec4b 1107 * 0 - Disable
vpcola 0:a1734fe1ec4b 1108 *
vpcola 0:a1734fe1ec4b 1109 * 3:0 MEAS_TIME[3:0]: Measure time during which the signal peak is detected (according to the formula 12/fxo*2^MEAS_TIME)
vpcola 0:a1734fe1ec4b 1110 * \endcode
vpcola 0:a1734fe1ec4b 1111 */
vpcola 0:a1734fe1ec4b 1112 #define AGCCTRL2_BASE ((uint8_t)0x24) /*!< AGC freeze strategy, AGC attenuation strategy, AGC measure time */
vpcola 0:a1734fe1ec4b 1113
vpcola 0:a1734fe1ec4b 1114 #define AGCCTRL2_FREEZE_ON_STEADY_MASK ((uint8_t)0x40) /*!< The attenuation settings will be frozen as soon as signal level
vpcola 0:a1734fe1ec4b 1115 is betweeen min and max treshold (see AGCCTRL1) */
vpcola 0:a1734fe1ec4b 1116 #define AGCCTRL2_FREEZE_ON_SYNC_MASK ((uint8_t)0x20) /*!< The attenuation settings will be frozen as soon sync word is detected */
vpcola 0:a1734fe1ec4b 1117 #define AGCCTRL2_START_MAX_ATTENUATION_MASK ((uint8_t)0x10) /*!< The AGC algorithm can start with MAX attenuation or MIN attenuation */
vpcola 0:a1734fe1ec4b 1118
vpcola 0:a1734fe1ec4b 1119 /**
vpcola 0:a1734fe1ec4b 1120 * @}
vpcola 0:a1734fe1ec4b 1121 */
vpcola 0:a1734fe1ec4b 1122
vpcola 0:a1734fe1ec4b 1123 /** @defgroup AGCCTRL1_Register
vpcola 0:a1734fe1ec4b 1124 * @{
vpcola 0:a1734fe1ec4b 1125 */
vpcola 0:a1734fe1ec4b 1126
vpcola 0:a1734fe1ec4b 1127 /**
vpcola 0:a1734fe1ec4b 1128 * \brief AGCCTRL1 register
vpcola 0:a1734fe1ec4b 1129 * \code
vpcola 0:a1734fe1ec4b 1130 * Read Write
vpcola 0:a1734fe1ec4b 1131 * Default value: 0x65
vpcola 0:a1734fe1ec4b 1132 *
vpcola 0:a1734fe1ec4b 1133 * 7:4 THRESHOLD_HIGH[3:0]: High threshold for the AGC
vpcola 0:a1734fe1ec4b 1134 *
vpcola 0:a1734fe1ec4b 1135 * 3:0 THRESHOLD_LOW[3:0]: Low threshold for the AGC
vpcola 0:a1734fe1ec4b 1136 * \endcode
vpcola 0:a1734fe1ec4b 1137 */
vpcola 0:a1734fe1ec4b 1138 #define AGCCTRL1_BASE ((uint8_t)0x25) /*!< Sets low and high threshold for AGC */
vpcola 0:a1734fe1ec4b 1139
vpcola 0:a1734fe1ec4b 1140 /**
vpcola 0:a1734fe1ec4b 1141 * @}
vpcola 0:a1734fe1ec4b 1142 */
vpcola 0:a1734fe1ec4b 1143
vpcola 0:a1734fe1ec4b 1144 /** @defgroup AGCCTRL0_Register
vpcola 0:a1734fe1ec4b 1145 * @{
vpcola 0:a1734fe1ec4b 1146 */
vpcola 0:a1734fe1ec4b 1147
vpcola 0:a1734fe1ec4b 1148 /**
vpcola 0:a1734fe1ec4b 1149 * \brief AGCCTRL0 register
vpcola 0:a1734fe1ec4b 1150 * \code
vpcola 0:a1734fe1ec4b 1151 * Read Write
vpcola 0:a1734fe1ec4b 1152 * Default value: 0x8A
vpcola 0:a1734fe1ec4b 1153 *
vpcola 0:a1734fe1ec4b 1154 * 7 AGC S_ENABLE: Enable AGC
vpcola 0:a1734fe1ec4b 1155 * 1 - Enable
vpcola 0:a1734fe1ec4b 1156 * 0 - Disable
vpcola 0:a1734fe1ec4b 1157 *
vpcola 0:a1734fe1ec4b 1158 * 6 AGC_MODE: Set linear-Binary AGC mode
vpcola 0:a1734fe1ec4b 1159 * 1 - Enable
vpcola 0:a1734fe1ec4b 1160 * 0 - Disable
vpcola 0:a1734fe1ec4b 1161 *
vpcola 0:a1734fe1ec4b 1162 * 5:0 HOLD_TIME[5:0]: Hold time after gain adjustment according to formula 12/fxo*HOLD_TIME
vpcola 0:a1734fe1ec4b 1163 * \endcode
vpcola 0:a1734fe1ec4b 1164 */
vpcola 0:a1734fe1ec4b 1165 #define AGCCTRL0_BASE ((uint8_t)0x26) /*!< Enables AGC, set AGC algo between linear/binary mode, set hold time
vpcola 0:a1734fe1ec4b 1166 to account signal propagation through RX chain */
vpcola 0:a1734fe1ec4b 1167 #define AGCCTRL0_AGC_MASK ((uint8_t)0x80) /*!< AGC on/off */
vpcola 0:a1734fe1ec4b 1168 #define AGCCTRL0_AGC_MODE_MASK ((uint8_t)0x40) /*!< AGC search correct attenuation in binary mode or sequential mode */
vpcola 0:a1734fe1ec4b 1169 #define AGCCTRL0_AGC_MODE_LINEAR ((uint8_t)0x00) /*!< AGC search correct attenuation in sequential mode (recommended) */
vpcola 0:a1734fe1ec4b 1170 #define AGCCTRL0_AGC_MODE_BINARY ((uint8_t)0x40) /*!< AGC search correct attenuation in binary mode */
vpcola 0:a1734fe1ec4b 1171
vpcola 0:a1734fe1ec4b 1172 /**
vpcola 0:a1734fe1ec4b 1173 * @}
vpcola 0:a1734fe1ec4b 1174 */
vpcola 0:a1734fe1ec4b 1175
vpcola 0:a1734fe1ec4b 1176 /** @defgroup CHNUM_Register
vpcola 0:a1734fe1ec4b 1177 * @{
vpcola 0:a1734fe1ec4b 1178 */
vpcola 0:a1734fe1ec4b 1179
vpcola 0:a1734fe1ec4b 1180 /**
vpcola 0:a1734fe1ec4b 1181 * \brief CHNUM registers
vpcola 0:a1734fe1ec4b 1182 * \code
vpcola 0:a1734fe1ec4b 1183 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1184 * Read Write
vpcola 0:a1734fe1ec4b 1185 * 7:0 CH_NUM[7:0]: Channel number. This value is multiplied by the channel spacing and added to the
vpcola 0:a1734fe1ec4b 1186 * synthesizer base frequency to generate the actual RF carrier frequency.
vpcola 0:a1734fe1ec4b 1187 * \endcode
vpcola 0:a1734fe1ec4b 1188 */
vpcola 0:a1734fe1ec4b 1189 #define CHNUM_BASE ((uint8_t)0x6C) /*!< Channel number. This value is multiplied by the channel
vpcola 0:a1734fe1ec4b 1190 spacing and added to the synthesizer base frequency to generate the actual RF carrier frequency */
vpcola 0:a1734fe1ec4b 1191 /**
vpcola 0:a1734fe1ec4b 1192 * @}
vpcola 0:a1734fe1ec4b 1193 */
vpcola 0:a1734fe1ec4b 1194
vpcola 0:a1734fe1ec4b 1195 /** @defgroup AFC_CORR_Register
vpcola 0:a1734fe1ec4b 1196 * @{
vpcola 0:a1734fe1ec4b 1197 */
vpcola 0:a1734fe1ec4b 1198
vpcola 0:a1734fe1ec4b 1199 /**
vpcola 0:a1734fe1ec4b 1200 * \brief AFC_CORR registers
vpcola 0:a1734fe1ec4b 1201 * \code
vpcola 0:a1734fe1ec4b 1202 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1203 * Read
vpcola 0:a1734fe1ec4b 1204 *
vpcola 0:a1734fe1ec4b 1205 * 7:0 AFC_CORR[7:0]: AFC word of the received packet
vpcola 0:a1734fe1ec4b 1206 * \endcode
vpcola 0:a1734fe1ec4b 1207 */
vpcola 0:a1734fe1ec4b 1208 #define AFC_CORR_BASE ((uint8_t)(0xC4)) /*!< AFC word of the received packet */
vpcola 0:a1734fe1ec4b 1209
vpcola 0:a1734fe1ec4b 1210 /**
vpcola 0:a1734fe1ec4b 1211 * @}
vpcola 0:a1734fe1ec4b 1212 */
vpcola 0:a1734fe1ec4b 1213
vpcola 0:a1734fe1ec4b 1214 /**
vpcola 0:a1734fe1ec4b 1215 * @}
vpcola 0:a1734fe1ec4b 1216 */
vpcola 0:a1734fe1ec4b 1217
vpcola 0:a1734fe1ec4b 1218
vpcola 0:a1734fe1ec4b 1219 /** @defgroup Packet_Configuration_Registers
vpcola 0:a1734fe1ec4b 1220 * @{
vpcola 0:a1734fe1ec4b 1221 */
vpcola 0:a1734fe1ec4b 1222
vpcola 0:a1734fe1ec4b 1223 /** @defgroup PCKTCTRL4_Register
vpcola 0:a1734fe1ec4b 1224 * @{
vpcola 0:a1734fe1ec4b 1225 */
vpcola 0:a1734fe1ec4b 1226
vpcola 0:a1734fe1ec4b 1227 /**
vpcola 0:a1734fe1ec4b 1228 * \brief PCKTCTRL4 register
vpcola 0:a1734fe1ec4b 1229 * \code
vpcola 0:a1734fe1ec4b 1230 * Read Write
vpcola 0:a1734fe1ec4b 1231 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1232 *
vpcola 0:a1734fe1ec4b 1233 * 7:5 NOT_USED.
vpcola 0:a1734fe1ec4b 1234 *
vpcola 0:a1734fe1ec4b 1235 * 4:3 ADDRESS_LEN[1:0]: length of address field in bytes
vpcola 0:a1734fe1ec4b 1236 *
vpcola 0:a1734fe1ec4b 1237 * 2:0 control_len[2:0]: length of control field in bytes
vpcola 0:a1734fe1ec4b 1238 * \endcode
vpcola 0:a1734fe1ec4b 1239 */
vpcola 0:a1734fe1ec4b 1240 #define PCKTCTRL4_BASE ((uint8_t)0x30) /*!< lenghts of address and control field */
vpcola 0:a1734fe1ec4b 1241
vpcola 0:a1734fe1ec4b 1242 #define PCKTCTRL4_ADDRESS_LEN_MASK ((uint8_t)0x18)
vpcola 0:a1734fe1ec4b 1243 #define PCKTCTRL4_CONTROL_LEN_MASK ((uint8_t)0x07)
vpcola 0:a1734fe1ec4b 1244
vpcola 0:a1734fe1ec4b 1245 /**
vpcola 0:a1734fe1ec4b 1246 * @}
vpcola 0:a1734fe1ec4b 1247 */
vpcola 0:a1734fe1ec4b 1248
vpcola 0:a1734fe1ec4b 1249 /** @defgroup PCKTCTRL3_Register
vpcola 0:a1734fe1ec4b 1250 * @{
vpcola 0:a1734fe1ec4b 1251 */
vpcola 0:a1734fe1ec4b 1252
vpcola 0:a1734fe1ec4b 1253 /**
vpcola 0:a1734fe1ec4b 1254 * \brief PCKTCTRL3 register
vpcola 0:a1734fe1ec4b 1255 * \code
vpcola 0:a1734fe1ec4b 1256 * Read Write
vpcola 0:a1734fe1ec4b 1257 * Default value: 0x07
vpcola 0:a1734fe1ec4b 1258 *
vpcola 0:a1734fe1ec4b 1259 * 7:6 PCKT_FRMT[1:0]: format of packet
vpcola 0:a1734fe1ec4b 1260 *
vpcola 0:a1734fe1ec4b 1261 * PCKT_FRMT1 | PCKT_FRMT0 | Format
vpcola 0:a1734fe1ec4b 1262 * ----------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 1263 * 0 | 0 | BASIC
vpcola 0:a1734fe1ec4b 1264 * 1 | 0 | MBUS
vpcola 0:a1734fe1ec4b 1265 * 1 | 1 | STACK
vpcola 0:a1734fe1ec4b 1266 *
vpcola 0:a1734fe1ec4b 1267 * 5:4 RX_MODE[1:0]: length of address 0x30 field in bytes
vpcola 0:a1734fe1ec4b 1268 *
vpcola 0:a1734fe1ec4b 1269 * RX_MODE1 | RX_MODE0 | Rx Mode
vpcola 0:a1734fe1ec4b 1270 * --------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 1271 * 0 | 0 | normal
vpcola 0:a1734fe1ec4b 1272 * 0 | 1 | direct through FIFO
vpcola 0:a1734fe1ec4b 1273 * 1 | 0 | direct through GPIO
vpcola 0:a1734fe1ec4b 1274 *
vpcola 0:a1734fe1ec4b 1275 * 3:0 LEN_WID[3:0]: length of length field in bits
vpcola 0:a1734fe1ec4b 1276 * \endcode
vpcola 0:a1734fe1ec4b 1277 */
vpcola 0:a1734fe1ec4b 1278 #define PCKTCTRL3_BASE ((uint8_t)0x31) /*!< packet format, RX mode, lenght of length field */
vpcola 0:a1734fe1ec4b 1279
vpcola 0:a1734fe1ec4b 1280 #define PCKTCTRL3_PCKT_FRMT_BASIC ((uint8_t)0x00) /*!< Basic Packet Format */
vpcola 0:a1734fe1ec4b 1281 #define PCKTCTRL3_PCKT_FRMT_MBUS ((uint8_t)0x80) /*!< Wireless M-BUS Packet Format */
vpcola 0:a1734fe1ec4b 1282 #define PCKTCTRL3_PCKT_FRMT_STACK ((uint8_t)0xC0) /*!< STack Packet Format */
vpcola 0:a1734fe1ec4b 1283
vpcola 0:a1734fe1ec4b 1284 #define PCKTCTRL3_RX_MODE_NORMAL ((uint8_t)0x00) /*!< Normal RX Mode */
vpcola 0:a1734fe1ec4b 1285 #define PCKTCTRL3_RX_MODE_DIRECT_FIFO ((uint8_t)0x10) /*!< RX Direct Mode; data available through FIFO */
vpcola 0:a1734fe1ec4b 1286 #define PCKTCTRL3_RX_MODE_DIRECT_GPIO ((uint8_t)0x20) /*!< RX Direct Mode; data available through selected GPIO */
vpcola 0:a1734fe1ec4b 1287
vpcola 0:a1734fe1ec4b 1288 #define PCKTCTRL3_PKT_FRMT_MASK ((uint8_t)0xC0)
vpcola 0:a1734fe1ec4b 1289 #define PCKTCTRL3_RX_MODE_MASK ((uint8_t)0x30)
vpcola 0:a1734fe1ec4b 1290 #define PCKTCTRL3_LEN_WID_MASK ((uint8_t)0x0F)
vpcola 0:a1734fe1ec4b 1291
vpcola 0:a1734fe1ec4b 1292 /**
vpcola 0:a1734fe1ec4b 1293 * @}
vpcola 0:a1734fe1ec4b 1294 */
vpcola 0:a1734fe1ec4b 1295
vpcola 0:a1734fe1ec4b 1296 /** @defgroup PCKTCTRL2_Register
vpcola 0:a1734fe1ec4b 1297 * @{
vpcola 0:a1734fe1ec4b 1298 */
vpcola 0:a1734fe1ec4b 1299
vpcola 0:a1734fe1ec4b 1300 /**
vpcola 0:a1734fe1ec4b 1301 * \brief PCKTCTRL2 register
vpcola 0:a1734fe1ec4b 1302 * \code
vpcola 0:a1734fe1ec4b 1303 * Read Write
vpcola 0:a1734fe1ec4b 1304 * Default value: 0x1E
vpcola 0:a1734fe1ec4b 1305 *
vpcola 0:a1734fe1ec4b 1306 * 7:3 PREAMBLE_LENGTH[4:0]: length of preamble field in bytes (0..31)
vpcola 0:a1734fe1ec4b 1307 *
vpcola 0:a1734fe1ec4b 1308 *
vpcola 0:a1734fe1ec4b 1309 * 2:1 SYNC_LENGTH[1:0]: length of sync field in bytes
vpcola 0:a1734fe1ec4b 1310 *
vpcola 0:a1734fe1ec4b 1311 *
vpcola 0:a1734fe1ec4b 1312 * 0 FIX_VAR_LEN: fixed/variable packet length
vpcola 0:a1734fe1ec4b 1313 * 1 - Variable
vpcola 0:a1734fe1ec4b 1314 * 0 - Fixed
vpcola 0:a1734fe1ec4b 1315 * \endcode
vpcola 0:a1734fe1ec4b 1316 */
vpcola 0:a1734fe1ec4b 1317 #define PCKTCTRL2_BASE ((uint8_t)0x32) /*!< length of preamble and sync fields (in bytes), fix or variable packet length */
vpcola 0:a1734fe1ec4b 1318
vpcola 0:a1734fe1ec4b 1319 #define PCKTCTRL2_FIX_VAR_LEN_MASK ((uint8_t)0x01) /*!< Enable/disable the length mode */
vpcola 0:a1734fe1ec4b 1320 #define PCKTCTRL2_PREAMBLE_LENGTH_MASK ((uint8_t)0xF8)
vpcola 0:a1734fe1ec4b 1321 #define PCKTCTRL2_SYNC_LENGTH_MASK ((uint8_t)0x06)
vpcola 0:a1734fe1ec4b 1322
vpcola 0:a1734fe1ec4b 1323 /**
vpcola 0:a1734fe1ec4b 1324 * @}
vpcola 0:a1734fe1ec4b 1325 */
vpcola 0:a1734fe1ec4b 1326
vpcola 0:a1734fe1ec4b 1327 /** @defgroup PCKTCTRL1_Register
vpcola 0:a1734fe1ec4b 1328 * @{
vpcola 0:a1734fe1ec4b 1329 */
vpcola 0:a1734fe1ec4b 1330
vpcola 0:a1734fe1ec4b 1331 /**
vpcola 0:a1734fe1ec4b 1332 * \brief PCKTCTRL1 register
vpcola 0:a1734fe1ec4b 1333 * \code
vpcola 0:a1734fe1ec4b 1334 * Read Write
vpcola 0:a1734fe1ec4b 1335 * Default value: 0x20
vpcola 0:a1734fe1ec4b 1336 *
vpcola 0:a1734fe1ec4b 1337 * 7:5 CRC_MODE[2:0]: CRC type (0, 8, 16, 24 bits)
vpcola 0:a1734fe1ec4b 1338 *
vpcola 0:a1734fe1ec4b 1339 * CRC_MODE2 | CRC_MODE1 | CRC_MODE0 | CRC Mode (n. bits - poly)
vpcola 0:a1734fe1ec4b 1340 * -------------------------------------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 1341 * 0 | 0 | 1 | 8 - 0x07
vpcola 0:a1734fe1ec4b 1342 * 0 | 1 | 0 | 16 - 0x8005
vpcola 0:a1734fe1ec4b 1343 * 0 | 1 | 1 | 16 - 0x1021
vpcola 0:a1734fe1ec4b 1344 * 1 | 0 | 0 | 24 - 0x864CBF
vpcola 0:a1734fe1ec4b 1345 *
vpcola 0:a1734fe1ec4b 1346 * 4 WHIT_EN[0]: Enable Whitening
vpcola 0:a1734fe1ec4b 1347 * 1 - Enable
vpcola 0:a1734fe1ec4b 1348 * 0 - Disable
vpcola 0:a1734fe1ec4b 1349 *
vpcola 0:a1734fe1ec4b 1350 * 3:2 TX_SOURCE[1:0]: length of sync field in bytes
vpcola 0:a1734fe1ec4b 1351 *
vpcola 0:a1734fe1ec4b 1352 * TX_SOURCE1 | TX_SOURCE0 | Tx Mode
vpcola 0:a1734fe1ec4b 1353 * --------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 1354 * 0 | 0 | normal
vpcola 0:a1734fe1ec4b 1355 * 0 | 1 | direct through FIFO
vpcola 0:a1734fe1ec4b 1356 * 1 | 0 | direct through GPIO
vpcola 0:a1734fe1ec4b 1357 * 1 | 1 | pn9
vpcola 0:a1734fe1ec4b 1358 *
vpcola 0:a1734fe1ec4b 1359 * 1 NOT_USED
vpcola 0:a1734fe1ec4b 1360 *
vpcola 0:a1734fe1ec4b 1361 * 0 FEC_EN: enable FEC
vpcola 0:a1734fe1ec4b 1362 * 1 - FEC in TX , Viterbi decoding in RX
vpcola 0:a1734fe1ec4b 1363 * 0 - Disabled
vpcola 0:a1734fe1ec4b 1364 * \endcode
vpcola 0:a1734fe1ec4b 1365 */
vpcola 0:a1734fe1ec4b 1366 #define PCKTCTRL1_BASE ((uint8_t)0x33) /*!< CRC type, whitening enable, TX mode */
vpcola 0:a1734fe1ec4b 1367
vpcola 0:a1734fe1ec4b 1368 #define PCKTCTRL1_FEC_MASK ((uint8_t)0x01) /*!< Enable/disable the Forward Error Correction */
vpcola 0:a1734fe1ec4b 1369 #define PCKTCTRL1_TX_SOURCE_MASK ((uint8_t)0x0C) /*!< TX source mode */
vpcola 0:a1734fe1ec4b 1370 #define PCKTCTRL1_CRC_MODE_MASK ((uint8_t)0xE0) /*!< CRC type */
vpcola 0:a1734fe1ec4b 1371 #define PCKTCTRL1_WHIT_MASK ((uint8_t)0x10) /*!< Enable/disable the Whitening */
vpcola 0:a1734fe1ec4b 1372
vpcola 0:a1734fe1ec4b 1373 /**
vpcola 0:a1734fe1ec4b 1374 * @}
vpcola 0:a1734fe1ec4b 1375 */
vpcola 0:a1734fe1ec4b 1376
vpcola 0:a1734fe1ec4b 1377
vpcola 0:a1734fe1ec4b 1378
vpcola 0:a1734fe1ec4b 1379 /** @defgroup PCKTLEN1_Register
vpcola 0:a1734fe1ec4b 1380 * @{
vpcola 0:a1734fe1ec4b 1381 */
vpcola 0:a1734fe1ec4b 1382
vpcola 0:a1734fe1ec4b 1383 /**
vpcola 0:a1734fe1ec4b 1384 * \brief PCKTLEN1 register
vpcola 0:a1734fe1ec4b 1385 * \code
vpcola 0:a1734fe1ec4b 1386 * Read Write
vpcola 0:a1734fe1ec4b 1387 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1388 *
vpcola 0:a1734fe1ec4b 1389 * 7:0 pktlen1[7:0]: lenght of packet in bytes (upper field) LENGHT/256
vpcola 0:a1734fe1ec4b 1390 * \endcode
vpcola 0:a1734fe1ec4b 1391 */
vpcola 0:a1734fe1ec4b 1392 #define PCKTLEN1_BASE ((uint8_t)0x34) /*!< lenght of packet in bytes (upper field) */
vpcola 0:a1734fe1ec4b 1393
vpcola 0:a1734fe1ec4b 1394 /**
vpcola 0:a1734fe1ec4b 1395 * @}
vpcola 0:a1734fe1ec4b 1396 */
vpcola 0:a1734fe1ec4b 1397
vpcola 0:a1734fe1ec4b 1398 /** @defgroup PCKTLEN0_Register
vpcola 0:a1734fe1ec4b 1399 * @{
vpcola 0:a1734fe1ec4b 1400 */
vpcola 0:a1734fe1ec4b 1401
vpcola 0:a1734fe1ec4b 1402 /**
vpcola 0:a1734fe1ec4b 1403 * \brief PCKTLEN0 register
vpcola 0:a1734fe1ec4b 1404 * \code
vpcola 0:a1734fe1ec4b 1405 * Read Write
vpcola 0:a1734fe1ec4b 1406 * Default value: 0x14
vpcola 0:a1734fe1ec4b 1407 *
vpcola 0:a1734fe1ec4b 1408 * 7:0 pktlen0[7:0]: lenght of packet in bytes (lower field) LENGHT%256
vpcola 0:a1734fe1ec4b 1409 * \endcode
vpcola 0:a1734fe1ec4b 1410 */
vpcola 0:a1734fe1ec4b 1411 #define PCKTLEN0_BASE ((uint8_t)0x35) /*!< lenght of packet in bytes (lower field) [PCKTLEN=PCKTLEN1x256+PCKTLEN0]*/
vpcola 0:a1734fe1ec4b 1412
vpcola 0:a1734fe1ec4b 1413 /**
vpcola 0:a1734fe1ec4b 1414 * @}
vpcola 0:a1734fe1ec4b 1415 */
vpcola 0:a1734fe1ec4b 1416
vpcola 0:a1734fe1ec4b 1417 /** @defgroup SYNCx_Registers
vpcola 0:a1734fe1ec4b 1418 * @{
vpcola 0:a1734fe1ec4b 1419 */
vpcola 0:a1734fe1ec4b 1420 /**
vpcola 0:a1734fe1ec4b 1421 * \brief SYNCx[4:1] Registers
vpcola 0:a1734fe1ec4b 1422 * \code
vpcola 0:a1734fe1ec4b 1423 * Read Write
vpcola 0:a1734fe1ec4b 1424 * Default value: 0x88
vpcola 0:a1734fe1ec4b 1425 *
vpcola 0:a1734fe1ec4b 1426 * 7:0 SYNCx[7:0]: xth sync word
vpcola 0:a1734fe1ec4b 1427 * \endcode
vpcola 0:a1734fe1ec4b 1428 */
vpcola 0:a1734fe1ec4b 1429 #define SYNC4_BASE ((uint8_t)0x36) /*!< Sync word 4 */
vpcola 0:a1734fe1ec4b 1430 #define SYNC3_BASE ((uint8_t)0x37) /*!< Sync word 3 */
vpcola 0:a1734fe1ec4b 1431 #define SYNC2_BASE ((uint8_t)0x38) /*!< Sync word 2 */
vpcola 0:a1734fe1ec4b 1432 #define SYNC1_BASE ((uint8_t)0x39) /*!< Sync word 1 */
vpcola 0:a1734fe1ec4b 1433
vpcola 0:a1734fe1ec4b 1434 /**
vpcola 0:a1734fe1ec4b 1435 * @}
vpcola 0:a1734fe1ec4b 1436 */
vpcola 0:a1734fe1ec4b 1437
vpcola 0:a1734fe1ec4b 1438
vpcola 0:a1734fe1ec4b 1439 /** @defgroup MBUS_PRMBL_Register
vpcola 0:a1734fe1ec4b 1440 * @{
vpcola 0:a1734fe1ec4b 1441 */
vpcola 0:a1734fe1ec4b 1442
vpcola 0:a1734fe1ec4b 1443 /**
vpcola 0:a1734fe1ec4b 1444 * \brief MBUS_PRMBL register
vpcola 0:a1734fe1ec4b 1445 * \code
vpcola 0:a1734fe1ec4b 1446 * Read Write
vpcola 0:a1734fe1ec4b 1447 * Default value: 0x20
vpcola 0:a1734fe1ec4b 1448 *
vpcola 0:a1734fe1ec4b 1449 * 7:0 MBUS_PRMBL[7:0]: MBUS preamble control
vpcola 0:a1734fe1ec4b 1450 * \endcode
vpcola 0:a1734fe1ec4b 1451 */
vpcola 0:a1734fe1ec4b 1452 #define MBUS_PRMBL_BASE ((uint8_t)0x3B) /*!< MBUS preamble lenght (in 01 bit pairs) */
vpcola 0:a1734fe1ec4b 1453
vpcola 0:a1734fe1ec4b 1454 /**
vpcola 0:a1734fe1ec4b 1455 * @}
vpcola 0:a1734fe1ec4b 1456 */
vpcola 0:a1734fe1ec4b 1457
vpcola 0:a1734fe1ec4b 1458
vpcola 0:a1734fe1ec4b 1459 /** @defgroup MBUS_PSTMBL_Register
vpcola 0:a1734fe1ec4b 1460 * @{
vpcola 0:a1734fe1ec4b 1461 */
vpcola 0:a1734fe1ec4b 1462
vpcola 0:a1734fe1ec4b 1463 /**
vpcola 0:a1734fe1ec4b 1464 * \brief MBUS_PSTMBL register
vpcola 0:a1734fe1ec4b 1465 * \code
vpcola 0:a1734fe1ec4b 1466 * Read Write
vpcola 0:a1734fe1ec4b 1467 * Default value: 0x20
vpcola 0:a1734fe1ec4b 1468 *
vpcola 0:a1734fe1ec4b 1469 * 7:0 MBUS_PSTMBL[7:0]: MBUS postamble control
vpcola 0:a1734fe1ec4b 1470 * \endcode
vpcola 0:a1734fe1ec4b 1471 */
vpcola 0:a1734fe1ec4b 1472 #define MBUS_PSTMBL_BASE ((uint8_t)0x3C) /*!< MBUS postamble length (in 01 bit pairs) */
vpcola 0:a1734fe1ec4b 1473
vpcola 0:a1734fe1ec4b 1474 /**
vpcola 0:a1734fe1ec4b 1475 * @}
vpcola 0:a1734fe1ec4b 1476 */
vpcola 0:a1734fe1ec4b 1477
vpcola 0:a1734fe1ec4b 1478 /** @defgroup MBUS_CTRL_Register
vpcola 0:a1734fe1ec4b 1479 * @{
vpcola 0:a1734fe1ec4b 1480 */
vpcola 0:a1734fe1ec4b 1481
vpcola 0:a1734fe1ec4b 1482 /**
vpcola 0:a1734fe1ec4b 1483 * \brief MBUS_CTRL register
vpcola 0:a1734fe1ec4b 1484 * \code
vpcola 0:a1734fe1ec4b 1485 * Read Write
vpcola 0:a1734fe1ec4b 1486 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1487 *
vpcola 0:a1734fe1ec4b 1488 * 7:4 NOT_USED
vpcola 0:a1734fe1ec4b 1489 *
vpcola 0:a1734fe1ec4b 1490 * 3:1 MBUS_SUBMODE[2:0]: MBUS submode (allowed values are 0,1,3,5)
vpcola 0:a1734fe1ec4b 1491 *
vpcola 0:a1734fe1ec4b 1492 * 0 NOT_USED
vpcola 0:a1734fe1ec4b 1493 * \endcode
vpcola 0:a1734fe1ec4b 1494 */
vpcola 0:a1734fe1ec4b 1495 #define MBUS_CTRL_BASE ((uint8_t)0x3D) /*!< MBUS sub-modes (S1, S2 short/long header, T1, T2, R2) */
vpcola 0:a1734fe1ec4b 1496
vpcola 0:a1734fe1ec4b 1497 #define MBUS_CTRL_MBUS_SUBMODE_S1_S2L ((uint8_t)0x00) /*!< MBUS sub-modes S1 & S2L, header lenght min 279, sync 0x7696, Manchester */
vpcola 0:a1734fe1ec4b 1498 #define MBUS_CTRL_MBUS_SUBMODE_S2_S1M_T2_OTHER ((uint8_t)0x02) /*!< MBUS sub-modes S2, S1-m, T2 (only other to meter) short header, header lenght min 15, sync 0x7696, Manchester */
vpcola 0:a1734fe1ec4b 1499 #define MBUS_CTRL_MBUS_SUBMODE_T1_T2_METER ((uint8_t)0x06) /*!< MBUS sub-modes T1, T2 (only meter to other), header lenght min 19, sync 0x3D, 3 out of 6 */
vpcola 0:a1734fe1ec4b 1500 #define MBUS_CTRL_MBUS_SUBMODE_R2 ((uint8_t)0x0A) /*!< MBUS sub-mode R2, header lenght min 39, sync 0x7696, Manchester */
vpcola 0:a1734fe1ec4b 1501
vpcola 0:a1734fe1ec4b 1502 /**
vpcola 0:a1734fe1ec4b 1503 * @}
vpcola 0:a1734fe1ec4b 1504 */
vpcola 0:a1734fe1ec4b 1505
vpcola 0:a1734fe1ec4b 1506
vpcola 0:a1734fe1ec4b 1507
vpcola 0:a1734fe1ec4b 1508 /** @defgroup PCKT_FLT_GOALS_CONTROLx_MASK_Registers
vpcola 0:a1734fe1ec4b 1509 * @{
vpcola 0:a1734fe1ec4b 1510 */
vpcola 0:a1734fe1ec4b 1511
vpcola 0:a1734fe1ec4b 1512 /**
vpcola 0:a1734fe1ec4b 1513 * \brief PCKT_FLT_GOALS_CONTROLx_MASK registers
vpcola 0:a1734fe1ec4b 1514 * \code
vpcola 0:a1734fe1ec4b 1515 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1516 * Read Write
vpcola 0:a1734fe1ec4b 1517 * 7:0 CONTROLx_MASK[7:0]: All 0s - no filtering
vpcola 0:a1734fe1ec4b 1518 *
vpcola 0:a1734fe1ec4b 1519 * \endcode
vpcola 0:a1734fe1ec4b 1520 */
vpcola 0:a1734fe1ec4b 1521 #define PCKT_FLT_GOALS_CONTROL0_MASK_BASE ((uint8_t)0x42) /*!< Packet control field #3 mask, all 0s -> no filtering */
vpcola 0:a1734fe1ec4b 1522
vpcola 0:a1734fe1ec4b 1523 #define PCKT_FLT_GOALS_CONTROL1_MASK_BASE ((uint8_t)0x43) /*!< Packet control field #2 mask, all 0s -> no filtering */
vpcola 0:a1734fe1ec4b 1524
vpcola 0:a1734fe1ec4b 1525 #define PCKT_FLT_GOALS_CONTROL2_MASK_BASE ((uint8_t)0x44) /*!< Packet control field #1 mask, all 0s -> no filtering */
vpcola 0:a1734fe1ec4b 1526
vpcola 0:a1734fe1ec4b 1527 #define PCKT_FLT_GOALS_CONTROL3_MASK_BASE ((uint8_t)0x45) /*!< Packet control field #0 mask, all 0s -> no filtering */
vpcola 0:a1734fe1ec4b 1528
vpcola 0:a1734fe1ec4b 1529 /**
vpcola 0:a1734fe1ec4b 1530 * @}
vpcola 0:a1734fe1ec4b 1531 */
vpcola 0:a1734fe1ec4b 1532
vpcola 0:a1734fe1ec4b 1533 /** @defgroup PCKT_FLT_GOALS_CONTROLx_FIELD_Registers
vpcola 0:a1734fe1ec4b 1534 * @{
vpcola 0:a1734fe1ec4b 1535 */
vpcola 0:a1734fe1ec4b 1536
vpcola 0:a1734fe1ec4b 1537 /**
vpcola 0:a1734fe1ec4b 1538 * \brief PCKT_FLT_GOALS_CONTROLx_FIELD registers
vpcola 0:a1734fe1ec4b 1539 * \code
vpcola 0:a1734fe1ec4b 1540 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1541 * Read Write
vpcola 0:a1734fe1ec4b 1542 * 7:0 CONTROLx_FIELD[7:0]: Control field (byte x) to be used as reference
vpcola 0:a1734fe1ec4b 1543 *
vpcola 0:a1734fe1ec4b 1544 * \endcode
vpcola 0:a1734fe1ec4b 1545 */
vpcola 0:a1734fe1ec4b 1546 #define PCKT_FLT_GOALS_CONTROL0_FIELD_BASE ((uint8_t)0x46) /*!< Control field (byte #3) */
vpcola 0:a1734fe1ec4b 1547
vpcola 0:a1734fe1ec4b 1548 #define PCKT_FLT_GOALS_CONTROL1_FIELD_BASE ((uint8_t)0x47) /*!< Control field (byte #2) */
vpcola 0:a1734fe1ec4b 1549
vpcola 0:a1734fe1ec4b 1550 #define PCKT_FLT_GOALS_CONTROL2_FIELD_BASE ((uint8_t)0x48) /*!< Control field (byte #1) */
vpcola 0:a1734fe1ec4b 1551
vpcola 0:a1734fe1ec4b 1552 #define PCKT_FLT_GOALS_CONTROL3_FIELD_BASE ((uint8_t)0x49) /*!< Control field (byte #0) */
vpcola 0:a1734fe1ec4b 1553
vpcola 0:a1734fe1ec4b 1554 /**
vpcola 0:a1734fe1ec4b 1555 * @}
vpcola 0:a1734fe1ec4b 1556 */
vpcola 0:a1734fe1ec4b 1557
vpcola 0:a1734fe1ec4b 1558 /** @defgroup PCKT_FLT_GOALS_SOURCE_MASK_Register
vpcola 0:a1734fe1ec4b 1559 * @{
vpcola 0:a1734fe1ec4b 1560 */
vpcola 0:a1734fe1ec4b 1561
vpcola 0:a1734fe1ec4b 1562 /**
vpcola 0:a1734fe1ec4b 1563 * \brief PCKT_FLT_GOALS_SOURCE_MASK register
vpcola 0:a1734fe1ec4b 1564 * \code
vpcola 0:a1734fe1ec4b 1565 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1566 * Read Write
vpcola 0:a1734fe1ec4b 1567 * 7:0 RX_SOURCE_MASK[7:0]: For received packet only: all 0s - no filtering
vpcola 0:a1734fe1ec4b 1568 *
vpcola 0:a1734fe1ec4b 1569 * \endcode
vpcola 0:a1734fe1ec4b 1570 */
vpcola 0:a1734fe1ec4b 1571 #define PCKT_FLT_GOALS_SOURCE_MASK_BASE ((uint8_t)0x4A) /*!< Source address mask, valid in RX mode */
vpcola 0:a1734fe1ec4b 1572
vpcola 0:a1734fe1ec4b 1573 /**
vpcola 0:a1734fe1ec4b 1574 * @}
vpcola 0:a1734fe1ec4b 1575 */
vpcola 0:a1734fe1ec4b 1576
vpcola 0:a1734fe1ec4b 1577 /** @defgroup PCKT_FLT_GOALS_SOURCE_ADDR_Register
vpcola 0:a1734fe1ec4b 1578 * @{
vpcola 0:a1734fe1ec4b 1579 */
vpcola 0:a1734fe1ec4b 1580 /**
vpcola 0:a1734fe1ec4b 1581 * \brief PCKT_FLT_GOALS_SOURCE_ADDR register
vpcola 0:a1734fe1ec4b 1582 * \code
vpcola 0:a1734fe1ec4b 1583 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1584 * Read Write
vpcola 0:a1734fe1ec4b 1585 * 7:0 RX_SOURCE_ADDR[7:0]: RX packet source / TX packet destination fields
vpcola 0:a1734fe1ec4b 1586 *
vpcola 0:a1734fe1ec4b 1587 * \endcode
vpcola 0:a1734fe1ec4b 1588 */
vpcola 0:a1734fe1ec4b 1589 #define PCKT_FLT_GOALS_SOURCE_ADDR_BASE ((uint8_t)0x4B) /*!< Source address */
vpcola 0:a1734fe1ec4b 1590
vpcola 0:a1734fe1ec4b 1591 /**
vpcola 0:a1734fe1ec4b 1592 * @}
vpcola 0:a1734fe1ec4b 1593 */
vpcola 0:a1734fe1ec4b 1594
vpcola 0:a1734fe1ec4b 1595 /** @defgroup PCKT_FLT_GOALS_BROADCAST_Register
vpcola 0:a1734fe1ec4b 1596 * @{
vpcola 0:a1734fe1ec4b 1597 */
vpcola 0:a1734fe1ec4b 1598
vpcola 0:a1734fe1ec4b 1599 /**
vpcola 0:a1734fe1ec4b 1600 * \brief PCKT_FLT_GOALS_BROADCAST register
vpcola 0:a1734fe1ec4b 1601 * \code
vpcola 0:a1734fe1ec4b 1602 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1603 * Read Write
vpcola 0:a1734fe1ec4b 1604 * 7:0 BROADCAST[7:0]: Address shared for broadcast communication link
vpcola 0:a1734fe1ec4b 1605 *
vpcola 0:a1734fe1ec4b 1606 * \endcode
vpcola 0:a1734fe1ec4b 1607 */
vpcola 0:a1734fe1ec4b 1608 #define PCKT_FLT_GOALS_BROADCAST_BASE ((uint8_t)0x4C) /*!< Address shared for broadcast communication links */
vpcola 0:a1734fe1ec4b 1609
vpcola 0:a1734fe1ec4b 1610 /**
vpcola 0:a1734fe1ec4b 1611 * @}
vpcola 0:a1734fe1ec4b 1612 */
vpcola 0:a1734fe1ec4b 1613
vpcola 0:a1734fe1ec4b 1614 /** @defgroup PCKT_FLT_GOALS_MULTICAST_Register
vpcola 0:a1734fe1ec4b 1615 * @{
vpcola 0:a1734fe1ec4b 1616 */
vpcola 0:a1734fe1ec4b 1617
vpcola 0:a1734fe1ec4b 1618 /**
vpcola 0:a1734fe1ec4b 1619 * \brief PCKT_FLT_GOALS_MULTICAST register
vpcola 0:a1734fe1ec4b 1620 * \code
vpcola 0:a1734fe1ec4b 1621 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1622 * Read Write
vpcola 0:a1734fe1ec4b 1623 * 7:0 MULTICAST[7:0]: Address shared for multicast communication links
vpcola 0:a1734fe1ec4b 1624 *
vpcola 0:a1734fe1ec4b 1625 * \endcode
vpcola 0:a1734fe1ec4b 1626 */
vpcola 0:a1734fe1ec4b 1627 #define PCKT_FLT_GOALS_MULTICAST_BASE ((uint8_t)0x4D) /*!< Address shared for multicast communication links */
vpcola 0:a1734fe1ec4b 1628
vpcola 0:a1734fe1ec4b 1629 /**
vpcola 0:a1734fe1ec4b 1630 * @}
vpcola 0:a1734fe1ec4b 1631 */
vpcola 0:a1734fe1ec4b 1632
vpcola 0:a1734fe1ec4b 1633 /** @defgroup PCKT_FLT_GOALS_TX_SOURCE_ADDR_Register
vpcola 0:a1734fe1ec4b 1634 * @{
vpcola 0:a1734fe1ec4b 1635 */
vpcola 0:a1734fe1ec4b 1636
vpcola 0:a1734fe1ec4b 1637 /**
vpcola 0:a1734fe1ec4b 1638 * \brief PCKT_FLT_GOALS_TX_SOURCE_ADDR register
vpcola 0:a1734fe1ec4b 1639 * \code
vpcola 0:a1734fe1ec4b 1640 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1641 * Read Write
vpcola 0:a1734fe1ec4b 1642 * 7:0 TX_SOURCE_ADDR[7:0]: TX packet source / RX packet destination fields
vpcola 0:a1734fe1ec4b 1643 *
vpcola 0:a1734fe1ec4b 1644 * \endcode
vpcola 0:a1734fe1ec4b 1645 */
vpcola 0:a1734fe1ec4b 1646 #define PCKT_FLT_GOALS_TX_ADDR_BASE ((uint8_t)0x4E) /*!< Address of the destination (also device own address) */
vpcola 0:a1734fe1ec4b 1647
vpcola 0:a1734fe1ec4b 1648 /**
vpcola 0:a1734fe1ec4b 1649 * @}
vpcola 0:a1734fe1ec4b 1650 */
vpcola 0:a1734fe1ec4b 1651
vpcola 0:a1734fe1ec4b 1652 /** @defgroup PCKT_FLT_OPTIONS_Register
vpcola 0:a1734fe1ec4b 1653 * @{
vpcola 0:a1734fe1ec4b 1654 */
vpcola 0:a1734fe1ec4b 1655
vpcola 0:a1734fe1ec4b 1656 /**
vpcola 0:a1734fe1ec4b 1657 * \brief PCKT_FLT_OPTIONS register
vpcola 0:a1734fe1ec4b 1658 * \code
vpcola 0:a1734fe1ec4b 1659 * Default value: 0x70
vpcola 0:a1734fe1ec4b 1660 * Read Write
vpcola 0:a1734fe1ec4b 1661 * 7 Reserved.
vpcola 0:a1734fe1ec4b 1662 *
vpcola 0:a1734fe1ec4b 1663 * 6 RX_TIMEOUT_AND_OR_SELECT[0]: 1 - ‘OR’ logical function applied to CS/SQI/PQI
vpcola 0:a1734fe1ec4b 1664 * values (masked by 7:5 bits in PROTOCOL register)
vpcola 0:a1734fe1ec4b 1665 * 5 CONTROL_FILTERING[0]: 1 - RX packet accepted if its control fields matches
vpcola 0:a1734fe1ec4b 1666 * with masked CONTROLx_FIELD registers.
vpcola 0:a1734fe1ec4b 1667 * 4 SOURCE_FILTERING[0]: 1 - RX packet accepted if its source field
vpcola 0:a1734fe1ec4b 1668 * matches w/ masked RX_SOURCE_ADDR register.
vpcola 0:a1734fe1ec4b 1669 * 3 DEST_VS_ SOURCE _ADDR[0]: 1 - RX packet accepted if its destination
vpcola 0:a1734fe1ec4b 1670 * address matches with TX_SOURCE_ADDR reg.
vpcola 0:a1734fe1ec4b 1671 * 2 DEST_VS_MULTICAST_ADDR[0]: 1 - RX packet accepted if its destination
vpcola 0:a1734fe1ec4b 1672 * address matches with MULTICAST register
vpcola 0:a1734fe1ec4b 1673 * 1 DEST_VS_BROADCAST_ADDR[0]: 1 - RX packet accepted if its destination
vpcola 0:a1734fe1ec4b 1674 * address matches with BROADCAST register.
vpcola 0:a1734fe1ec4b 1675 * 0 CRC_CHECK[0]: 1 - packet discarded if CRC not valid.
vpcola 0:a1734fe1ec4b 1676 *
vpcola 0:a1734fe1ec4b 1677 * \endcode
vpcola 0:a1734fe1ec4b 1678 */
vpcola 0:a1734fe1ec4b 1679 #define PCKT_FLT_OPTIONS_BASE ((uint8_t)0x4F) /*!< Options relative to packet filtering */
vpcola 0:a1734fe1ec4b 1680
vpcola 0:a1734fe1ec4b 1681 #define PCKT_FLT_OPTIONS_CRC_CHECK_MASK ((uint8_t)0x01) /*!< Enable/disable of CRC check: packet is discarded if CRC is not valid [RX] */
vpcola 0:a1734fe1ec4b 1682 #define PCKT_FLT_OPTIONS_DEST_VS_BROADCAST_ADDR_MASK ((uint8_t)0x02) /*!< Packet discarded if destination address differs from BROADCAST register [RX] */
vpcola 0:a1734fe1ec4b 1683 #define PCKT_FLT_OPTIONS_DEST_VS_MULTICAST_ADDR_MASK ((uint8_t)0x04) /*!< Packet discarded if destination address differs from MULTICAST register [RX] */
vpcola 0:a1734fe1ec4b 1684 #define PCKT_FLT_OPTIONS_DEST_VS_TX_ADDR_MASK ((uint8_t)0x08) /*!< Packet discarded if destination address differs from TX_ADDR register [RX] */
vpcola 0:a1734fe1ec4b 1685 #define PCKT_FLT_OPTIONS_SOURCE_FILTERING_MASK ((uint8_t)0x10) /*!< Packet discarded if source address (masked by the SOURCE_MASK register)
vpcola 0:a1734fe1ec4b 1686 differs from SOURCE_ADDR register [RX] */
vpcola 0:a1734fe1ec4b 1687 #define PCKT_FLT_OPTIONS_CONTROL_FILTERING_MASK ((uint8_t)0x20) /*!< Packet discarded if the x-byte (x=1¸4) control field (masked by the CONTROLx_MASK register)
vpcola 0:a1734fe1ec4b 1688 differs from CONTROLx_FIELD register [RX] */
vpcola 0:a1734fe1ec4b 1689 #define PCKT_FLT_OPTIONS_RX_TIMEOUT_AND_OR_SELECT ((uint8_t)0x40) /*!< Logical function applied to CS/SQI/PQI values (masked by [7:5] bits in PROTOCOL[2]
vpcola 0:a1734fe1ec4b 1690 register) */
vpcola 0:a1734fe1ec4b 1691
vpcola 0:a1734fe1ec4b 1692 /**
vpcola 0:a1734fe1ec4b 1693 * @}
vpcola 0:a1734fe1ec4b 1694 */
vpcola 0:a1734fe1ec4b 1695
vpcola 0:a1734fe1ec4b 1696 /** @defgroup TX_CTRL_FIELD_Registers
vpcola 0:a1734fe1ec4b 1697 * @{
vpcola 0:a1734fe1ec4b 1698 */
vpcola 0:a1734fe1ec4b 1699
vpcola 0:a1734fe1ec4b 1700 /**
vpcola 0:a1734fe1ec4b 1701 * \brief TX_CTRL_FIELDx registers
vpcola 0:a1734fe1ec4b 1702 * \code
vpcola 0:a1734fe1ec4b 1703 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1704 * Read Write
vpcola 0:a1734fe1ec4b 1705 * 7:0 TX_CTRLx[7:0]: Control field value to be used in TX packet as byte n.x
vpcola 0:a1734fe1ec4b 1706 * \endcode
vpcola 0:a1734fe1ec4b 1707 */
vpcola 0:a1734fe1ec4b 1708 #define TX_CTRL_FIELD3_BASE ((uint8_t)0x68) /*!< Control field value to be used in TX packet as byte n.3 */
vpcola 0:a1734fe1ec4b 1709
vpcola 0:a1734fe1ec4b 1710 #define TX_CTRL_FIELD2_BASE ((uint8_t)0x69) /*!< Control field value to be used in TX packet as byte n.2 */
vpcola 0:a1734fe1ec4b 1711
vpcola 0:a1734fe1ec4b 1712 #define TX_CTRL_FIELD1_BASE ((uint8_t)0x6A) /*!< Control field value to be used in TX packet as byte n.1 */
vpcola 0:a1734fe1ec4b 1713
vpcola 0:a1734fe1ec4b 1714 #define TX_CTRL_FIELD0_BASE ((uint8_t)0x6B) /*!< Control field value to be used in TX packet as byte n.0 */
vpcola 0:a1734fe1ec4b 1715
vpcola 0:a1734fe1ec4b 1716 /**
vpcola 0:a1734fe1ec4b 1717 * @}
vpcola 0:a1734fe1ec4b 1718 */
vpcola 0:a1734fe1ec4b 1719
vpcola 0:a1734fe1ec4b 1720
vpcola 0:a1734fe1ec4b 1721 /** @defgroup TX_PCKT_INFO_Register
vpcola 0:a1734fe1ec4b 1722 * @{
vpcola 0:a1734fe1ec4b 1723 */
vpcola 0:a1734fe1ec4b 1724
vpcola 0:a1734fe1ec4b 1725 /**
vpcola 0:a1734fe1ec4b 1726 * \brief TX_PCKT_INFO registers
vpcola 0:a1734fe1ec4b 1727 * \code
vpcola 0:a1734fe1ec4b 1728 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1729 * Read
vpcola 0:a1734fe1ec4b 1730 *
vpcola 0:a1734fe1ec4b 1731 * 7:6 Not used.
vpcola 0:a1734fe1ec4b 1732 *
vpcola 0:a1734fe1ec4b 1733 * 5:4 TX_SEQ_NUM: Current TX packet sequence number
vpcola 0:a1734fe1ec4b 1734 *
vpcola 0:a1734fe1ec4b 1735 * 0 N_RETX[3:0]: Number of retransmissions done on the
vpcola 0:a1734fe1ec4b 1736 * last TX packet
vpcola 0:a1734fe1ec4b 1737 * \endcode
vpcola 0:a1734fe1ec4b 1738 */
vpcola 0:a1734fe1ec4b 1739 #define TX_PCKT_INFO_BASE ((uint8_t)(0xC2)) /*!< Current TX packet sequence number [5:4];
vpcola 0:a1734fe1ec4b 1740 Number of retransmissions done on the last TX packet [3:0]*/
vpcola 0:a1734fe1ec4b 1741 /**
vpcola 0:a1734fe1ec4b 1742 * @}
vpcola 0:a1734fe1ec4b 1743 */
vpcola 0:a1734fe1ec4b 1744
vpcola 0:a1734fe1ec4b 1745 /** @defgroup RX_PCKT_INFO_Register
vpcola 0:a1734fe1ec4b 1746 * @{
vpcola 0:a1734fe1ec4b 1747 */
vpcola 0:a1734fe1ec4b 1748
vpcola 0:a1734fe1ec4b 1749 /**
vpcola 0:a1734fe1ec4b 1750 * \brief RX_PCKT_INFO registers
vpcola 0:a1734fe1ec4b 1751 * \code
vpcola 0:a1734fe1ec4b 1752 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1753 * Read
vpcola 0:a1734fe1ec4b 1754 *
vpcola 0:a1734fe1ec4b 1755 * 7:3 Not used.
vpcola 0:a1734fe1ec4b 1756 *
vpcola 0:a1734fe1ec4b 1757 * 2 NACK_RX: NACK field of the received packet
vpcola 0:a1734fe1ec4b 1758 *
vpcola 0:a1734fe1ec4b 1759 * 1:0 RX_SEQ_NUM[1:0]: Sequence number of the received packet
vpcola 0:a1734fe1ec4b 1760 * \endcode
vpcola 0:a1734fe1ec4b 1761 */
vpcola 0:a1734fe1ec4b 1762 #define RX_PCKT_INFO_BASE ((uint8_t)(0xC3)) /*!< NO_ACK field of the received packet [2];
vpcola 0:a1734fe1ec4b 1763 sequence number of the received packet [1:0]*/
vpcola 0:a1734fe1ec4b 1764
vpcola 0:a1734fe1ec4b 1765 #define TX_PCKT_INFO_NACK_RX ((uint8_t)(0x04)) /*!< NACK field of the received packet */
vpcola 0:a1734fe1ec4b 1766
vpcola 0:a1734fe1ec4b 1767 /**
vpcola 0:a1734fe1ec4b 1768 * @}
vpcola 0:a1734fe1ec4b 1769 */
vpcola 0:a1734fe1ec4b 1770
vpcola 0:a1734fe1ec4b 1771 /** @defgroup RX_PCKT_LEN1
vpcola 0:a1734fe1ec4b 1772 * @{
vpcola 0:a1734fe1ec4b 1773 */
vpcola 0:a1734fe1ec4b 1774
vpcola 0:a1734fe1ec4b 1775 /**
vpcola 0:a1734fe1ec4b 1776 * \brief RX_PCKT_LEN1 registers
vpcola 0:a1734fe1ec4b 1777 * \code
vpcola 0:a1734fe1ec4b 1778 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1779 * Read
vpcola 0:a1734fe1ec4b 1780 *
vpcola 0:a1734fe1ec4b 1781 * 7:0 RX_PCKT_LEN1[7:0]: Length (number of bytes) of the received packet: RX_PCKT_LEN=RX_PCKT_LEN1 × 256 + RX_PCKT_LEN0
vpcola 0:a1734fe1ec4b 1782 * This value is packet_length/256
vpcola 0:a1734fe1ec4b 1783 * \endcode
vpcola 0:a1734fe1ec4b 1784 */
vpcola 0:a1734fe1ec4b 1785 #define RX_PCKT_LEN1_BASE ((uint8_t)(0xC9)) /*!< Length (number of bytes) of the received packet: */
vpcola 0:a1734fe1ec4b 1786
vpcola 0:a1734fe1ec4b 1787 /**
vpcola 0:a1734fe1ec4b 1788 * @}
vpcola 0:a1734fe1ec4b 1789 */
vpcola 0:a1734fe1ec4b 1790
vpcola 0:a1734fe1ec4b 1791 /** @defgroup RX_PCKT_LEN0
vpcola 0:a1734fe1ec4b 1792 * @{
vpcola 0:a1734fe1ec4b 1793 */
vpcola 0:a1734fe1ec4b 1794
vpcola 0:a1734fe1ec4b 1795 /**
vpcola 0:a1734fe1ec4b 1796 * \brief RX_PCKT_LEN0 registers
vpcola 0:a1734fe1ec4b 1797 * \code
vpcola 0:a1734fe1ec4b 1798 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1799 * Read
vpcola 0:a1734fe1ec4b 1800 *
vpcola 0:a1734fe1ec4b 1801 * 7:0 RX_PCKT_LEN0[7:0]: Length (number of bytes) of the received packet: RX_PCKT_LEN=RX_PCKT_LEN1 × 256 + RX_PCKT_LEN0
vpcola 0:a1734fe1ec4b 1802 * This value is packet_length%256
vpcola 0:a1734fe1ec4b 1803 * \endcode
vpcola 0:a1734fe1ec4b 1804 */
vpcola 0:a1734fe1ec4b 1805 #define RX_PCKT_LEN0_BASE ((uint8_t)(0xCA)) /*!< RX_PCKT_LEN=RX_PCKT_LEN1 × 256 + RX_PCKT_LEN0 */
vpcola 0:a1734fe1ec4b 1806
vpcola 0:a1734fe1ec4b 1807 /**
vpcola 0:a1734fe1ec4b 1808 * @}
vpcola 0:a1734fe1ec4b 1809 */
vpcola 0:a1734fe1ec4b 1810
vpcola 0:a1734fe1ec4b 1811
vpcola 0:a1734fe1ec4b 1812 /** @defgroup CRC_FIELD_Register
vpcola 0:a1734fe1ec4b 1813 * @{
vpcola 0:a1734fe1ec4b 1814 */
vpcola 0:a1734fe1ec4b 1815
vpcola 0:a1734fe1ec4b 1816 /**
vpcola 0:a1734fe1ec4b 1817 * \brief CRC_FIELD[2:0] registers
vpcola 0:a1734fe1ec4b 1818 * \code
vpcola 0:a1734fe1ec4b 1819 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1820 * Read
vpcola 0:a1734fe1ec4b 1821 *
vpcola 0:a1734fe1ec4b 1822 * 7:0 CRC_FIELDx[7:0]: upper(x=2), middle(x=1) and lower(x=0) part of the crc field of the received packet
vpcola 0:a1734fe1ec4b 1823 * \endcode
vpcola 0:a1734fe1ec4b 1824 */
vpcola 0:a1734fe1ec4b 1825 #define CRC_FIELD2_BASE ((uint8_t)(0xCB)) /*!< CRC2 field of the received packet */
vpcola 0:a1734fe1ec4b 1826
vpcola 0:a1734fe1ec4b 1827 #define CRC_FIELD1_BASE ((uint8_t)(0xCC)) /*!< CRC1 field of the received packet */
vpcola 0:a1734fe1ec4b 1828
vpcola 0:a1734fe1ec4b 1829 #define CRC_FIELD0_BASE ((uint8_t)(0xCD)) /*!< CRC0 field of the received packet */
vpcola 0:a1734fe1ec4b 1830
vpcola 0:a1734fe1ec4b 1831 /**
vpcola 0:a1734fe1ec4b 1832 * @}
vpcola 0:a1734fe1ec4b 1833 */
vpcola 0:a1734fe1ec4b 1834
vpcola 0:a1734fe1ec4b 1835 /** @defgroup RX_CTRL_FIELD_Register
vpcola 0:a1734fe1ec4b 1836 * @{
vpcola 0:a1734fe1ec4b 1837 */
vpcola 0:a1734fe1ec4b 1838
vpcola 0:a1734fe1ec4b 1839 /**
vpcola 0:a1734fe1ec4b 1840 * \brief RX_CTRL_FIELD[3:0] registers
vpcola 0:a1734fe1ec4b 1841 * \code
vpcola 0:a1734fe1ec4b 1842 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1843 * Read
vpcola 0:a1734fe1ec4b 1844 *
vpcola 0:a1734fe1ec4b 1845 * 7:0 RX_CTRL_FIELDx[7:0]: upper(x=3), middle(x=2), middle(x=1) and lower(x=0) part of the control field of the received packet
vpcola 0:a1734fe1ec4b 1846 * \endcode
vpcola 0:a1734fe1ec4b 1847 */
vpcola 0:a1734fe1ec4b 1848 #define RX_CTRL_FIELD0_BASE ((uint8_t)(0xCE)) /*!< CRTL3 Control field of the received packet */
vpcola 0:a1734fe1ec4b 1849
vpcola 0:a1734fe1ec4b 1850 #define RX_CTRL_FIELD1_BASE ((uint8_t)(0xCF)) /*!< CRTL2 Control field of the received packet */
vpcola 0:a1734fe1ec4b 1851
vpcola 0:a1734fe1ec4b 1852 #define RX_CTRL_FIELD2_BASE ((uint8_t)(0xD0)) /*!< CRTL1 Control field of the received packet */
vpcola 0:a1734fe1ec4b 1853
vpcola 0:a1734fe1ec4b 1854 #define RX_CTRL_FIELD3_BASE ((uint8_t)(0xD1)) /*!< CRTL0 Control field of the received packet */
vpcola 0:a1734fe1ec4b 1855
vpcola 0:a1734fe1ec4b 1856 /**
vpcola 0:a1734fe1ec4b 1857 * @}
vpcola 0:a1734fe1ec4b 1858 */
vpcola 0:a1734fe1ec4b 1859
vpcola 0:a1734fe1ec4b 1860 /** @defgroup RX_ADDR_FIELD_Register
vpcola 0:a1734fe1ec4b 1861 * @{
vpcola 0:a1734fe1ec4b 1862 */
vpcola 0:a1734fe1ec4b 1863
vpcola 0:a1734fe1ec4b 1864 /**
vpcola 0:a1734fe1ec4b 1865 * \brief RX_ADDR_FIELD[1:0] registers
vpcola 0:a1734fe1ec4b 1866 * \code
vpcola 0:a1734fe1ec4b 1867 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1868 * Read
vpcola 0:a1734fe1ec4b 1869 *
vpcola 0:a1734fe1ec4b 1870 * 7:0 RX_ADDR_FIELDx[7:0]: source(x=1) and destination(x=0) address field of the received packet
vpcola 0:a1734fe1ec4b 1871 * \endcode
vpcola 0:a1734fe1ec4b 1872 */
vpcola 0:a1734fe1ec4b 1873 #define RX_ADDR_FIELD1_BASE ((uint8_t)(0xD2)) /*!< ADDR1 Address field of the received packet */
vpcola 0:a1734fe1ec4b 1874
vpcola 0:a1734fe1ec4b 1875 #define RX_ADDR_FIELD0_BASE ((uint8_t)(0xD3)) /*!< ADDR0 Address field of the received packet */
vpcola 0:a1734fe1ec4b 1876
vpcola 0:a1734fe1ec4b 1877 /**
vpcola 0:a1734fe1ec4b 1878 * @}
vpcola 0:a1734fe1ec4b 1879 */
vpcola 0:a1734fe1ec4b 1880
vpcola 0:a1734fe1ec4b 1881 /**
vpcola 0:a1734fe1ec4b 1882 * @}
vpcola 0:a1734fe1ec4b 1883 */
vpcola 0:a1734fe1ec4b 1884
vpcola 0:a1734fe1ec4b 1885
vpcola 0:a1734fe1ec4b 1886 /** @defgroup Protocol_Registers
vpcola 0:a1734fe1ec4b 1887 * @{
vpcola 0:a1734fe1ec4b 1888 */
vpcola 0:a1734fe1ec4b 1889
vpcola 0:a1734fe1ec4b 1890 /** @defgroup PROTOCOL2_Register
vpcola 0:a1734fe1ec4b 1891 * @{
vpcola 0:a1734fe1ec4b 1892 */
vpcola 0:a1734fe1ec4b 1893
vpcola 0:a1734fe1ec4b 1894 /**
vpcola 0:a1734fe1ec4b 1895 * \brief PROTOCOL2 register
vpcola 0:a1734fe1ec4b 1896 * \code
vpcola 0:a1734fe1ec4b 1897 * Default value: 0x06
vpcola 0:a1734fe1ec4b 1898 * Read Write
vpcola 0:a1734fe1ec4b 1899 * 7 CS_TIMEOUT_MASK: 1 - CS value contributes to timeout disabling
vpcola 0:a1734fe1ec4b 1900 *
vpcola 0:a1734fe1ec4b 1901 * 6 SQI_TIMEOUT_MASK: 1 - SQI value contributes to timeout disabling
vpcola 0:a1734fe1ec4b 1902 *
vpcola 0:a1734fe1ec4b 1903 * 5 PQI_TIMEOUT_MASK: 1 - PQI value contributes to timeout disabling
vpcola 0:a1734fe1ec4b 1904 *
vpcola 0:a1734fe1ec4b 1905 * 4:3 TX_SEQ_NUM_RELOAD[1:0]: TX sequence number to be used when counting reset is required using the related command.
vpcola 0:a1734fe1ec4b 1906 *
vpcola 0:a1734fe1ec4b 1907 * 2 RCO_CALIBRATION[0]: 1 - Enables the automatic RCO calibration
vpcola 0:a1734fe1ec4b 1908 *
vpcola 0:a1734fe1ec4b 1909 * 1 VCO_CALIBRATION[0]: 1 - Enables the automatic VCO calibration
vpcola 0:a1734fe1ec4b 1910 *
vpcola 0:a1734fe1ec4b 1911 * 0 LDCR_MODE[0]: 1 - LDCR mode enabled
vpcola 0:a1734fe1ec4b 1912 *
vpcola 0:a1734fe1ec4b 1913 * \endcode
vpcola 0:a1734fe1ec4b 1914 */
vpcola 0:a1734fe1ec4b 1915 #define PROTOCOL2_BASE ((uint8_t)0x50) /*!< Protocol2 regisetr address */
vpcola 0:a1734fe1ec4b 1916
vpcola 0:a1734fe1ec4b 1917 #define PROTOCOL2_LDC_MODE_MASK ((uint8_t)0x01) /*!< Enable/disable Low duty Cycle mode */
vpcola 0:a1734fe1ec4b 1918 #define PROTOCOL2_VCO_CALIBRATION_MASK ((uint8_t)0x02) /*!< Enable/disable VCO automatic calibration */
vpcola 0:a1734fe1ec4b 1919 #define PROTOCOL2_RCO_CALIBRATION_MASK ((uint8_t)0x04) /*!< Enable/disable RCO automatic calibration */
vpcola 0:a1734fe1ec4b 1920 #define PROTOCOL2_PQI_TIMEOUT_MASK ((uint8_t)0x20) /*!< PQI value contributes to timeout disabling */
vpcola 0:a1734fe1ec4b 1921 #define PROTOCOL2_SQI_TIMEOUT_MASK ((uint8_t)0x40) /*!< SQI value contributes to timeout disabling */
vpcola 0:a1734fe1ec4b 1922 #define PROTOCOL2_CS_TIMEOUT_MASK ((uint8_t)0x80) /*!< CS value contributes to timeout disabling */
vpcola 0:a1734fe1ec4b 1923
vpcola 0:a1734fe1ec4b 1924 /**
vpcola 0:a1734fe1ec4b 1925 * @}
vpcola 0:a1734fe1ec4b 1926 */
vpcola 0:a1734fe1ec4b 1927
vpcola 0:a1734fe1ec4b 1928 /** @defgroup PROTOCOL1_Register
vpcola 0:a1734fe1ec4b 1929 * @{
vpcola 0:a1734fe1ec4b 1930 */
vpcola 0:a1734fe1ec4b 1931
vpcola 0:a1734fe1ec4b 1932 /**
vpcola 0:a1734fe1ec4b 1933 * \brief PROTOCOL1 register
vpcola 0:a1734fe1ec4b 1934 * \code
vpcola 0:a1734fe1ec4b 1935 * Default value: 0x00
vpcola 0:a1734fe1ec4b 1936 * Read Write
vpcola 0:a1734fe1ec4b 1937 * 7 LDCR_RELOAD_ON_SYNC: 1 - LDCR timer will be reloaded with the value stored in the LDCR_RELOAD registers
vpcola 0:a1734fe1ec4b 1938 *
vpcola 0:a1734fe1ec4b 1939 * 6 PIGGYBACKING: 1 - PIGGYBACKING enabled
vpcola 0:a1734fe1ec4b 1940 *
vpcola 0:a1734fe1ec4b 1941 * 5:4 Reserved.
vpcola 0:a1734fe1ec4b 1942 *
vpcola 0:a1734fe1ec4b 1943 * 3 SEED_RELOAD[0]: 1 - Reload the back-off random generator
vpcola 0:a1734fe1ec4b 1944 * seed using the value written in the
vpcola 0:a1734fe1ec4b 1945 * BU_COUNTER_SEED_MSByte / LSByte registers
vpcola 0:a1734fe1ec4b 1946 *
vpcola 0:a1734fe1ec4b 1947 * 2 CSMA_ON [0]: 1 - CSMA channel access mode enabled
vpcola 0:a1734fe1ec4b 1948 *
vpcola 0:a1734fe1ec4b 1949 * 1 CSMA_PERS_ON[0]: 1 - CSMA persistent (no back-off) enabled
vpcola 0:a1734fe1ec4b 1950 *
vpcola 0:a1734fe1ec4b 1951 * 0 AUTO_PCKT_FLT[0]: 1 - automatic packet filtering mode enabled
vpcola 0:a1734fe1ec4b 1952 *
vpcola 0:a1734fe1ec4b 1953 * \endcode
vpcola 0:a1734fe1ec4b 1954 */
vpcola 0:a1734fe1ec4b 1955 #define PROTOCOL1_BASE ((uint8_t)0x51) /*!< Protocol1 regisetr address */
vpcola 0:a1734fe1ec4b 1956
vpcola 0:a1734fe1ec4b 1957 #define PROTOCOL1_AUTO_PCKT_FLT_MASK ((uint8_t)0x01) /*!< Enable/disable automatic packet filtering mode */
vpcola 0:a1734fe1ec4b 1958 #define PROTOCOL1_CSMA_PERS_ON_MASK ((uint8_t)0x02) /*!< Enable/disable CSMA persistent (no back-off) */
vpcola 0:a1734fe1ec4b 1959 #define PROTOCOL1_CSMA_ON_MASK ((uint8_t)0x04) /*!< Enable/disable CSMA channel access mode */
vpcola 0:a1734fe1ec4b 1960 #define PROTOCOL1_SEED_RELOAD_MASK ((uint8_t)0x08) /*!< Reloads the seed of the PN generator for CSMA procedure */
vpcola 0:a1734fe1ec4b 1961 #define PROTOCOL1_PIGGYBACKING_MASK ((uint8_t)0x40) /*!< Enable/disable Piggybacking */
vpcola 0:a1734fe1ec4b 1962 #define PROTOCOL1_LDC_RELOAD_ON_SYNC_MASK ((uint8_t)0x80) /*!< LDC timer will be reloaded with the value stored in the LDC_RELOAD registers */
vpcola 0:a1734fe1ec4b 1963
vpcola 0:a1734fe1ec4b 1964 /**
vpcola 0:a1734fe1ec4b 1965 * @}
vpcola 0:a1734fe1ec4b 1966 */
vpcola 0:a1734fe1ec4b 1967
vpcola 0:a1734fe1ec4b 1968 /** @defgroup PROTOCOL0_Register
vpcola 0:a1734fe1ec4b 1969 * @{
vpcola 0:a1734fe1ec4b 1970 */
vpcola 0:a1734fe1ec4b 1971
vpcola 0:a1734fe1ec4b 1972 /**
vpcola 0:a1734fe1ec4b 1973 * \brief PROTOCOL0 register
vpcola 0:a1734fe1ec4b 1974 * \code
vpcola 0:a1734fe1ec4b 1975 * Default value: 0x08
vpcola 0:a1734fe1ec4b 1976 * Read Write
vpcola 0:a1734fe1ec4b 1977 * 7:4 NMAX_RETX[3:0]: Max number of re-TX. 0 - re-transmission is not performed
vpcola 0:a1734fe1ec4b 1978 *
vpcola 0:a1734fe1ec4b 1979 * 3 NACK_TX[0]: 1 - field NO_ACK=1 on transmitted packet
vpcola 0:a1734fe1ec4b 1980 *
vpcola 0:a1734fe1ec4b 1981 * 2 AUTO_ACK[0]: 1 - automatic ack after RX
vpcola 0:a1734fe1ec4b 1982 *
vpcola 0:a1734fe1ec4b 1983 * 1 PERS_RX[0]: 1 - persistent reception enabled
vpcola 0:a1734fe1ec4b 1984 *
vpcola 0:a1734fe1ec4b 1985 * 0 PERS_TX[0]: 1 - persistent transmission enabled
vpcola 0:a1734fe1ec4b 1986 *
vpcola 0:a1734fe1ec4b 1987 * \endcode
vpcola 0:a1734fe1ec4b 1988 */
vpcola 0:a1734fe1ec4b 1989 #define PROTOCOL0_BASE ((uint8_t)0x52) /*!< Persistent RX/TX, autoack, Max number of retransmissions */
vpcola 0:a1734fe1ec4b 1990
vpcola 0:a1734fe1ec4b 1991 #define PROTOCOL0_PERS_TX_MASK ((uint8_t)0x01) /*!< Enables persistent transmission */
vpcola 0:a1734fe1ec4b 1992 #define PROTOCOL0_PERS_RX_MASK ((uint8_t)0x02) /*!< Enables persistent reception */
vpcola 0:a1734fe1ec4b 1993 #define PROTOCOL0_AUTO_ACK_MASK ((uint8_t)0x04) /*!< Enables auto acknowlegment */
vpcola 0:a1734fe1ec4b 1994 #define PROTOCOL0_NACK_TX_MASK ((uint8_t)0x08) /*!< Writes field NO_ACK=1 on transmitted packet */
vpcola 0:a1734fe1ec4b 1995 #define PROTOCOL0_NMAX_RETX_MASK ((uint8_t)0xF0) /*!< Retransmission mask */
vpcola 0:a1734fe1ec4b 1996
vpcola 0:a1734fe1ec4b 1997 /**
vpcola 0:a1734fe1ec4b 1998 * @}
vpcola 0:a1734fe1ec4b 1999 */
vpcola 0:a1734fe1ec4b 2000
vpcola 0:a1734fe1ec4b 2001 /** @defgroup TIMERS5_Register
vpcola 0:a1734fe1ec4b 2002 * @{
vpcola 0:a1734fe1ec4b 2003 */
vpcola 0:a1734fe1ec4b 2004
vpcola 0:a1734fe1ec4b 2005 /**
vpcola 0:a1734fe1ec4b 2006 * \brief TIMERS5 register
vpcola 0:a1734fe1ec4b 2007 * \code
vpcola 0:a1734fe1ec4b 2008 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2009 * Read Write
vpcola 0:a1734fe1ec4b 2010 * 7:0 RX_TIMEOUT_PRESCALER[7:0] : RX operation timeout: prescaler value
vpcola 0:a1734fe1ec4b 2011 * \endcode
vpcola 0:a1734fe1ec4b 2012 */
vpcola 0:a1734fe1ec4b 2013 #define TIMERS5_RX_TIMEOUT_PRESCALER_BASE ((uint8_t)0x53) /*!< RX operation timeout: prescaler value */
vpcola 0:a1734fe1ec4b 2014
vpcola 0:a1734fe1ec4b 2015 /**
vpcola 0:a1734fe1ec4b 2016 * @}
vpcola 0:a1734fe1ec4b 2017 */
vpcola 0:a1734fe1ec4b 2018
vpcola 0:a1734fe1ec4b 2019 /** @defgroup TIMERS4_Register
vpcola 0:a1734fe1ec4b 2020 * @{
vpcola 0:a1734fe1ec4b 2021 */
vpcola 0:a1734fe1ec4b 2022
vpcola 0:a1734fe1ec4b 2023 /**
vpcola 0:a1734fe1ec4b 2024 * \brief TIMERS4 register
vpcola 0:a1734fe1ec4b 2025 * \code
vpcola 0:a1734fe1ec4b 2026 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2027 * Read Write
vpcola 0:a1734fe1ec4b 2028 * 7:0 RX_TIMEOUT_COUNTER[7:0] : RX operation timeout: counter value
vpcola 0:a1734fe1ec4b 2029 * \endcode
vpcola 0:a1734fe1ec4b 2030 */
vpcola 0:a1734fe1ec4b 2031 #define TIMERS4_RX_TIMEOUT_COUNTER_BASE ((uint8_t)0x54) /*!< RX operation timeout: counter value */
vpcola 0:a1734fe1ec4b 2032
vpcola 0:a1734fe1ec4b 2033 /**
vpcola 0:a1734fe1ec4b 2034 * @}
vpcola 0:a1734fe1ec4b 2035 */
vpcola 0:a1734fe1ec4b 2036
vpcola 0:a1734fe1ec4b 2037 /** @defgroup TIMERS3_Register
vpcola 0:a1734fe1ec4b 2038 * @{
vpcola 0:a1734fe1ec4b 2039 */
vpcola 0:a1734fe1ec4b 2040
vpcola 0:a1734fe1ec4b 2041 /**
vpcola 0:a1734fe1ec4b 2042 * \brief TIMERS3 register
vpcola 0:a1734fe1ec4b 2043 * \code
vpcola 0:a1734fe1ec4b 2044 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2045 * Read Write
vpcola 0:a1734fe1ec4b 2046 * 7:0 LDCR_PRESCALER[7:0] : LDC Mode: Prescaler part of the wake-up value
vpcola 0:a1734fe1ec4b 2047 * \endcode
vpcola 0:a1734fe1ec4b 2048 */
vpcola 0:a1734fe1ec4b 2049 #define TIMERS3_LDC_PRESCALER_BASE ((uint8_t)0x55) /*!< LDC Mode: Prescaler of the wake-up timer */
vpcola 0:a1734fe1ec4b 2050
vpcola 0:a1734fe1ec4b 2051 /**
vpcola 0:a1734fe1ec4b 2052 * @}
vpcola 0:a1734fe1ec4b 2053 */
vpcola 0:a1734fe1ec4b 2054
vpcola 0:a1734fe1ec4b 2055 /** @defgroup TIMERS2_Register
vpcola 0:a1734fe1ec4b 2056 * @{
vpcola 0:a1734fe1ec4b 2057 */
vpcola 0:a1734fe1ec4b 2058
vpcola 0:a1734fe1ec4b 2059 /**
vpcola 0:a1734fe1ec4b 2060 * \brief TIMERS2 register
vpcola 0:a1734fe1ec4b 2061 * \code
vpcola 0:a1734fe1ec4b 2062 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2063 * Read Write
vpcola 0:a1734fe1ec4b 2064 * 7:0 LDCR_COUNTER[7:0] : LDC Mode: counter part of the wake-up value
vpcola 0:a1734fe1ec4b 2065 * \endcode
vpcola 0:a1734fe1ec4b 2066 */
vpcola 0:a1734fe1ec4b 2067 #define TIMERS2_LDC_COUNTER_BASE ((uint8_t)0x56) /*!< LDC Mode: counter of the wake-up timer */
vpcola 0:a1734fe1ec4b 2068
vpcola 0:a1734fe1ec4b 2069 /**
vpcola 0:a1734fe1ec4b 2070 * @}
vpcola 0:a1734fe1ec4b 2071 */
vpcola 0:a1734fe1ec4b 2072
vpcola 0:a1734fe1ec4b 2073 /** @defgroup TIMERS1_Register
vpcola 0:a1734fe1ec4b 2074 * @{
vpcola 0:a1734fe1ec4b 2075 */
vpcola 0:a1734fe1ec4b 2076
vpcola 0:a1734fe1ec4b 2077 /**
vpcola 0:a1734fe1ec4b 2078 * \brief TIMERS1 register
vpcola 0:a1734fe1ec4b 2079 * \code
vpcola 0:a1734fe1ec4b 2080 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2081 * Read Write
vpcola 0:a1734fe1ec4b 2082 * 7:0 LDCR_RELOAD_PRESCALER[7:0] : LDC Mode: Prescaler part of the reload value
vpcola 0:a1734fe1ec4b 2083 * \endcode
vpcola 0:a1734fe1ec4b 2084 */
vpcola 0:a1734fe1ec4b 2085 #define TIMERS1_LDC_RELOAD_PRESCALER_BASE ((uint8_t)0x57) /*!< LDC Mode: Prescaler part of the reload value */
vpcola 0:a1734fe1ec4b 2086
vpcola 0:a1734fe1ec4b 2087 /**
vpcola 0:a1734fe1ec4b 2088 * @}
vpcola 0:a1734fe1ec4b 2089 */
vpcola 0:a1734fe1ec4b 2090
vpcola 0:a1734fe1ec4b 2091 /** @defgroup TIMERS0_Register
vpcola 0:a1734fe1ec4b 2092 * @{
vpcola 0:a1734fe1ec4b 2093 */
vpcola 0:a1734fe1ec4b 2094
vpcola 0:a1734fe1ec4b 2095 /**
vpcola 0:a1734fe1ec4b 2096 * \brief TIMERS0 register
vpcola 0:a1734fe1ec4b 2097 * \code
vpcola 0:a1734fe1ec4b 2098 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2099 * Read Write
vpcola 0:a1734fe1ec4b 2100 * 7:0 LDCR_RELOAD_COUNTER[7:0] : LDC Mode: Counter part of the reload value
vpcola 0:a1734fe1ec4b 2101 * \endcode
vpcola 0:a1734fe1ec4b 2102 */
vpcola 0:a1734fe1ec4b 2103 #define TIMERS0_LDC_RELOAD_COUNTER_BASE ((uint8_t)0x58) /*!< LDC Mode: Counter part of the reload value */
vpcola 0:a1734fe1ec4b 2104
vpcola 0:a1734fe1ec4b 2105 /**
vpcola 0:a1734fe1ec4b 2106 * @}
vpcola 0:a1734fe1ec4b 2107 */
vpcola 0:a1734fe1ec4b 2108
vpcola 0:a1734fe1ec4b 2109
vpcola 0:a1734fe1ec4b 2110 /** @defgroup CSMA_CONFIG3_Register
vpcola 0:a1734fe1ec4b 2111 * @{
vpcola 0:a1734fe1ec4b 2112 */
vpcola 0:a1734fe1ec4b 2113
vpcola 0:a1734fe1ec4b 2114 /**
vpcola 0:a1734fe1ec4b 2115 * \brief CSMA_CONFIG3 registers
vpcola 0:a1734fe1ec4b 2116 * \code
vpcola 0:a1734fe1ec4b 2117 * Default value: 0xFF
vpcola 0:a1734fe1ec4b 2118 * Read Write
vpcola 0:a1734fe1ec4b 2119 * 7:0 BU_COUNTER_SEED_MSByte: Seed of the random number generator used to apply the BEB (Binary Exponential Backoff) algorithm (MSB)
vpcola 0:a1734fe1ec4b 2120 * \endcode
vpcola 0:a1734fe1ec4b 2121 */
vpcola 0:a1734fe1ec4b 2122 #define CSMA_CONFIG3_BASE ((uint8_t)0x64) /*!< CSMA/CA: Seed of the random number generator used to apply the BEB (Binary Exponential Backoff) algorithm (MSB) */
vpcola 0:a1734fe1ec4b 2123
vpcola 0:a1734fe1ec4b 2124 /**
vpcola 0:a1734fe1ec4b 2125 * @}
vpcola 0:a1734fe1ec4b 2126 */
vpcola 0:a1734fe1ec4b 2127
vpcola 0:a1734fe1ec4b 2128 /** @defgroup CSMA_CONFIG2_Register
vpcola 0:a1734fe1ec4b 2129 * @{
vpcola 0:a1734fe1ec4b 2130 */
vpcola 0:a1734fe1ec4b 2131
vpcola 0:a1734fe1ec4b 2132 /**
vpcola 0:a1734fe1ec4b 2133 * \brief CSMA_CONFIG2 registers
vpcola 0:a1734fe1ec4b 2134 * \code
vpcola 0:a1734fe1ec4b 2135 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2136 * Read Write
vpcola 0:a1734fe1ec4b 2137 * 7:0 BU_COUNTER_SEED_LSByte: Seed of the random number generator used to apply the BEB (Binary Exponential Backoff) algorithm (LSB)
vpcola 0:a1734fe1ec4b 2138 * \endcode
vpcola 0:a1734fe1ec4b 2139 */
vpcola 0:a1734fe1ec4b 2140 #define CSMA_CONFIG2_BASE ((uint8_t)0x65) /*!< CSMA/CA: Seed of the random number generator used to apply the BEB (Binary Exponential Backoff) algorithm (LSB) */
vpcola 0:a1734fe1ec4b 2141
vpcola 0:a1734fe1ec4b 2142 /**
vpcola 0:a1734fe1ec4b 2143 * @}
vpcola 0:a1734fe1ec4b 2144 */
vpcola 0:a1734fe1ec4b 2145
vpcola 0:a1734fe1ec4b 2146 /** @defgroup CSMA_CONFIG1_Register
vpcola 0:a1734fe1ec4b 2147 * @{
vpcola 0:a1734fe1ec4b 2148 */
vpcola 0:a1734fe1ec4b 2149
vpcola 0:a1734fe1ec4b 2150 /**
vpcola 0:a1734fe1ec4b 2151 * \brief CSMA_CONFIG1 registers
vpcola 0:a1734fe1ec4b 2152 * \code
vpcola 0:a1734fe1ec4b 2153 * Default value: 0x04
vpcola 0:a1734fe1ec4b 2154 * Read Write
vpcola 0:a1734fe1ec4b 2155 * 7:2 BU_PRESCALER[5:0]: Used to program the back-off unit BU
vpcola 0:a1734fe1ec4b 2156 *
vpcola 0:a1734fe1ec4b 2157 * 1:0 CCA_PERIOD[1:0]: Used to program the Tcca time (64 / 128 /256 / 512 × Tbit.
vpcola 0:a1734fe1ec4b 2158 * \endcode
vpcola 0:a1734fe1ec4b 2159 */
vpcola 0:a1734fe1ec4b 2160 #define CSMA_CONFIG1_BASE ((uint8_t)0x66) /*!< CSMA/CA: Prescaler of the back-off time unit (BU); CCA period */
vpcola 0:a1734fe1ec4b 2161
vpcola 0:a1734fe1ec4b 2162 #define CSMA_CCA_PERIOD_64TBIT ((uint8_t)0x00) /*!< CSMA/CA: Sets CCA period to 64*TBIT */
vpcola 0:a1734fe1ec4b 2163 #define CSMA_CCA_PERIOD_128TBIT ((uint8_t)0x01) /*!< CSMA/CA: Sets CCA period to 128*TBIT */
vpcola 0:a1734fe1ec4b 2164 #define CSMA_CCA_PERIOD_256TBIT ((uint8_t)0x02) /*!< CSMA/CA: Sets CCA period to 256*TBIT */
vpcola 0:a1734fe1ec4b 2165 #define CSMA_CCA_PERIOD_512TBIT ((uint8_t)0x03) /*!< CSMA/CA: Sets CCA period to 512*TBIT */
vpcola 0:a1734fe1ec4b 2166
vpcola 0:a1734fe1ec4b 2167 /**
vpcola 0:a1734fe1ec4b 2168 * @}
vpcola 0:a1734fe1ec4b 2169 */
vpcola 0:a1734fe1ec4b 2170
vpcola 0:a1734fe1ec4b 2171 /** @defgroup CSMA_CONFIG0_Register
vpcola 0:a1734fe1ec4b 2172 * @{
vpcola 0:a1734fe1ec4b 2173 */
vpcola 0:a1734fe1ec4b 2174
vpcola 0:a1734fe1ec4b 2175 /**
vpcola 0:a1734fe1ec4b 2176 * \brief CSMA_CONFIG0 registers
vpcola 0:a1734fe1ec4b 2177 * \code
vpcola 0:a1734fe1ec4b 2178 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2179 * Read Write
vpcola 0:a1734fe1ec4b 2180 * 7:4 CCA_LENGTH[3:0]: Used to program the Tlisten time
vpcola 0:a1734fe1ec4b 2181 *
vpcola 0:a1734fe1ec4b 2182 * 3 Reserved.
vpcola 0:a1734fe1ec4b 2183 *
vpcola 0:a1734fe1ec4b 2184 * 2:0 NBACKOFF_MAX[2:0]: Max number of back-off cycles.
vpcola 0:a1734fe1ec4b 2185 * \endcode
vpcola 0:a1734fe1ec4b 2186 */
vpcola 0:a1734fe1ec4b 2187 #define CSMA_CONFIG0_BASE ((uint8_t)0x67) /*!< CSMA/CA: CCA lenght; Max number of backoff cycles */
vpcola 0:a1734fe1ec4b 2188
vpcola 0:a1734fe1ec4b 2189 /**
vpcola 0:a1734fe1ec4b 2190 * @}
vpcola 0:a1734fe1ec4b 2191 */
vpcola 0:a1734fe1ec4b 2192
vpcola 0:a1734fe1ec4b 2193 /**
vpcola 0:a1734fe1ec4b 2194 * @}
vpcola 0:a1734fe1ec4b 2195 */
vpcola 0:a1734fe1ec4b 2196
vpcola 0:a1734fe1ec4b 2197
vpcola 0:a1734fe1ec4b 2198 /** @defgroup Link_Quality_Registers
vpcola 0:a1734fe1ec4b 2199 * @{
vpcola 0:a1734fe1ec4b 2200 */
vpcola 0:a1734fe1ec4b 2201
vpcola 0:a1734fe1ec4b 2202 /** @defgroup QI_Register
vpcola 0:a1734fe1ec4b 2203 * @{
vpcola 0:a1734fe1ec4b 2204 */
vpcola 0:a1734fe1ec4b 2205
vpcola 0:a1734fe1ec4b 2206 /**
vpcola 0:a1734fe1ec4b 2207 * \brief QI register
vpcola 0:a1734fe1ec4b 2208 * \code
vpcola 0:a1734fe1ec4b 2209 * Read Write
vpcola 0:a1734fe1ec4b 2210 * Default value: 0x02
vpcola 0:a1734fe1ec4b 2211 *
vpcola 0:a1734fe1ec4b 2212 * 7:6 SQI_TH[1:0]: SQI threshold according to the formula: 8*SYNC_LEN - 2*SQI_TH
vpcola 0:a1734fe1ec4b 2213 *
vpcola 0:a1734fe1ec4b 2214 * 5:2 PQI_TH[3:0]: PQI threshold according to the formula: 4*PQI_THR
vpcola 0:a1734fe1ec4b 2215 *
vpcola 0:a1734fe1ec4b 2216 *
vpcola 0:a1734fe1ec4b 2217 * 1 SQI_EN[0]: SQI enable
vpcola 0:a1734fe1ec4b 2218 * 1 - Enable
vpcola 0:a1734fe1ec4b 2219 * 0 - Disable
vpcola 0:a1734fe1ec4b 2220 *
vpcola 0:a1734fe1ec4b 2221 * 0 PQI_EN[0]: PQI enable
vpcola 0:a1734fe1ec4b 2222 * 1 - Enable
vpcola 0:a1734fe1ec4b 2223 * 0 - Disable
vpcola 0:a1734fe1ec4b 2224 * \endcode
vpcola 0:a1734fe1ec4b 2225 */
vpcola 0:a1734fe1ec4b 2226 #define QI_BASE ((uint8_t)0x3A) /*!< QI register */
vpcola 0:a1734fe1ec4b 2227
vpcola 0:a1734fe1ec4b 2228 #define QI_PQI_MASK ((uint8_t)0x01) /*!< PQI enable/disable */
vpcola 0:a1734fe1ec4b 2229 #define QI_SQI_MASK ((uint8_t)0x02) /*!< SQI enable/disable */
vpcola 0:a1734fe1ec4b 2230
vpcola 0:a1734fe1ec4b 2231 /**
vpcola 0:a1734fe1ec4b 2232 * @}
vpcola 0:a1734fe1ec4b 2233 */
vpcola 0:a1734fe1ec4b 2234
vpcola 0:a1734fe1ec4b 2235 /** @defgroup LINK_QUALIF2
vpcola 0:a1734fe1ec4b 2236 * @{
vpcola 0:a1734fe1ec4b 2237 */
vpcola 0:a1734fe1ec4b 2238
vpcola 0:a1734fe1ec4b 2239 /**
vpcola 0:a1734fe1ec4b 2240 * \brief LINK_QUALIF2 registers
vpcola 0:a1734fe1ec4b 2241 * \code
vpcola 0:a1734fe1ec4b 2242 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2243 * Read
vpcola 0:a1734fe1ec4b 2244 *
vpcola 0:a1734fe1ec4b 2245 * 7:0 PQI[7:0]: PQI value of the received packet
vpcola 0:a1734fe1ec4b 2246 * \endcode
vpcola 0:a1734fe1ec4b 2247 */
vpcola 0:a1734fe1ec4b 2248 #define LINK_QUALIF2_BASE ((uint8_t)(0xC5)) /*!< PQI value of the received packet */
vpcola 0:a1734fe1ec4b 2249
vpcola 0:a1734fe1ec4b 2250 /**
vpcola 0:a1734fe1ec4b 2251 * @}
vpcola 0:a1734fe1ec4b 2252 */
vpcola 0:a1734fe1ec4b 2253
vpcola 0:a1734fe1ec4b 2254 /** @defgroup LINK_QUALIF1
vpcola 0:a1734fe1ec4b 2255 * @{
vpcola 0:a1734fe1ec4b 2256 */
vpcola 0:a1734fe1ec4b 2257
vpcola 0:a1734fe1ec4b 2258 /**
vpcola 0:a1734fe1ec4b 2259 * \brief LINK_QUALIF1 registers
vpcola 0:a1734fe1ec4b 2260 * \code
vpcola 0:a1734fe1ec4b 2261 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2262 * Read
vpcola 0:a1734fe1ec4b 2263 *
vpcola 0:a1734fe1ec4b 2264 * 7 CS: Carrier Sense indication
vpcola 0:a1734fe1ec4b 2265 *
vpcola 0:a1734fe1ec4b 2266 * 6:0 SQI[6:0]: SQI value of the received packet
vpcola 0:a1734fe1ec4b 2267 * \endcode
vpcola 0:a1734fe1ec4b 2268 */
vpcola 0:a1734fe1ec4b 2269 #define LINK_QUALIF1_BASE ((uint8_t)(0xC6)) /*!< Carrier sense indication [7]; SQI value of the received packet */
vpcola 0:a1734fe1ec4b 2270
vpcola 0:a1734fe1ec4b 2271 #define LINK_QUALIF1_CS ((uint8_t)(0x80)) /*!< Carrier sense indication [7] */
vpcola 0:a1734fe1ec4b 2272
vpcola 0:a1734fe1ec4b 2273 /**
vpcola 0:a1734fe1ec4b 2274 * @}
vpcola 0:a1734fe1ec4b 2275 */
vpcola 0:a1734fe1ec4b 2276
vpcola 0:a1734fe1ec4b 2277 /** @defgroup LINK_QUALIF0
vpcola 0:a1734fe1ec4b 2278 * @{
vpcola 0:a1734fe1ec4b 2279 */
vpcola 0:a1734fe1ec4b 2280
vpcola 0:a1734fe1ec4b 2281 /**
vpcola 0:a1734fe1ec4b 2282 * \brief LINK_QUALIF0 registers
vpcola 0:a1734fe1ec4b 2283 * \code
vpcola 0:a1734fe1ec4b 2284 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2285 * Read
vpcola 0:a1734fe1ec4b 2286 *
vpcola 0:a1734fe1ec4b 2287 * 7:4 LQI [3:0]: LQI value of the received packet
vpcola 0:a1734fe1ec4b 2288 *
vpcola 0:a1734fe1ec4b 2289 * 3:0 AGC_WORD[3:0]: AGC word of the received packet
vpcola 0:a1734fe1ec4b 2290 * \endcode
vpcola 0:a1734fe1ec4b 2291 */
vpcola 0:a1734fe1ec4b 2292 #define LINK_QUALIF0_BASE ((uint8_t)(0xC7)) /*!< LQI value of the received packet [7:4]; AGC word of the received packet [3:0] */
vpcola 0:a1734fe1ec4b 2293
vpcola 0:a1734fe1ec4b 2294 /**
vpcola 0:a1734fe1ec4b 2295 * @}
vpcola 0:a1734fe1ec4b 2296 */
vpcola 0:a1734fe1ec4b 2297
vpcola 0:a1734fe1ec4b 2298 /** @defgroup RSSI_LEVEL
vpcola 0:a1734fe1ec4b 2299 * @{
vpcola 0:a1734fe1ec4b 2300 */
vpcola 0:a1734fe1ec4b 2301
vpcola 0:a1734fe1ec4b 2302 /**
vpcola 0:a1734fe1ec4b 2303 * \brief RSSI_LEVEL registers
vpcola 0:a1734fe1ec4b 2304 * \code
vpcola 0:a1734fe1ec4b 2305 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2306 * Read
vpcola 0:a1734fe1ec4b 2307 *
vpcola 0:a1734fe1ec4b 2308 * 7:0 RSSI_LEVEL[7:0]: RSSI level of the received packet
vpcola 0:a1734fe1ec4b 2309 * \endcode
vpcola 0:a1734fe1ec4b 2310 */
vpcola 0:a1734fe1ec4b 2311 #define RSSI_LEVEL_BASE ((uint8_t)(0xC8)) /*!< RSSI level of the received packet */
vpcola 0:a1734fe1ec4b 2312
vpcola 0:a1734fe1ec4b 2313 /**
vpcola 0:a1734fe1ec4b 2314 * @}
vpcola 0:a1734fe1ec4b 2315 */
vpcola 0:a1734fe1ec4b 2316
vpcola 0:a1734fe1ec4b 2317 /** @defgroup RSSI_FLT_Register
vpcola 0:a1734fe1ec4b 2318 * @{
vpcola 0:a1734fe1ec4b 2319 */
vpcola 0:a1734fe1ec4b 2320
vpcola 0:a1734fe1ec4b 2321 /**
vpcola 0:a1734fe1ec4b 2322 * \brief RSSI register
vpcola 0:a1734fe1ec4b 2323 * \code
vpcola 0:a1734fe1ec4b 2324 * Read Write
vpcola 0:a1734fe1ec4b 2325 * Default value: 0xF3
vpcola 0:a1734fe1ec4b 2326 * 7:4 RSSI_FLT[3:0]: Gain of the RSSI filter
vpcola 0:a1734fe1ec4b 2327 *
vpcola 0:a1734fe1ec4b 2328 * 3:2 CS_MODE[1:0]: AFC loop gain in slow mode (2's log)
vpcola 0:a1734fe1ec4b 2329 *
vpcola 0:a1734fe1ec4b 2330 * CS_MODE1 | CS_MODE0 | CS Mode
vpcola 0:a1734fe1ec4b 2331 * -----------------------------------------------------------------------------------------
vpcola 0:a1734fe1ec4b 2332 * 0 | 0 | Static CS
vpcola 0:a1734fe1ec4b 2333 * 0 | 1 | Dynamic CS with 6dB dynamic threshold
vpcola 0:a1734fe1ec4b 2334 * 1 | 0 | Dynamic CS with 12dB dynamic threshold
vpcola 0:a1734fe1ec4b 2335 * 1 | 1 | Dynamic CS with 18dB dynamic threshold
vpcola 0:a1734fe1ec4b 2336 *
vpcola 0:a1734fe1ec4b 2337 * 1:0 OOK_PEAK_DECAY[1:0]: Peak decay control for OOK: 3 slow decay; 0 fast decay
vpcola 0:a1734fe1ec4b 2338 *
vpcola 0:a1734fe1ec4b 2339 * \endcode
vpcola 0:a1734fe1ec4b 2340 */
vpcola 0:a1734fe1ec4b 2341 #define RSSI_FLT_BASE ((uint8_t)0x21) /*!< Gain of the RSSI filter; lower value is fast but inaccurate,
vpcola 0:a1734fe1ec4b 2342 higher value is slow and more accurate */
vpcola 0:a1734fe1ec4b 2343 #define RSSI_FLT_CS_MODE_MASK ((uint8_t)0x0C) /*!< Carrier sense mode mask */
vpcola 0:a1734fe1ec4b 2344 #define RSSI_FLT_CS_MODE_STATIC ((uint8_t)0x00) /*!< Carrier sense mode; static carrier sensing */
vpcola 0:a1734fe1ec4b 2345 #define RSSI_FLT_CS_MODE_DYNAMIC_6 ((uint8_t)0x04) /*!< Carrier sense mode; dynamic carrier sensing with 6dB threshold */
vpcola 0:a1734fe1ec4b 2346 #define RSSI_FLT_CS_MODE_DYNAMIC_12 ((uint8_t)0x08) /*!< Carrier sense mode; dynamic carrier sensing with 12dB threshold */
vpcola 0:a1734fe1ec4b 2347 #define RSSI_FLT_CS_MODE_DYNAMIC_18 ((uint8_t)0x0C) /*!< Carrier sense mode; dynamic carrier sensing with 18dB threshold */
vpcola 0:a1734fe1ec4b 2348 #define RSSI_FLT_OOK_PEAK_DECAY_MASK ((uint8_t)0x03) /*!< Peak decay control for OOK mask */
vpcola 0:a1734fe1ec4b 2349 #define RSSI_FLT_OOK_PEAK_DECAY_FAST ((uint8_t)0x00) /*!< Peak decay control for OOK: fast decay */
vpcola 0:a1734fe1ec4b 2350 #define RSSI_FLT_OOK_PEAK_DECAY_MEDIUM_FAST ((uint8_t)0x01) /*!< Peak decay control for OOK: medium_fast decay */
vpcola 0:a1734fe1ec4b 2351 #define RSSI_FLT_OOK_PEAK_DECAY_MEDIUM_SLOW ((uint8_t)0x02) /*!< Peak decay control for OOK: medium_fast decay */
vpcola 0:a1734fe1ec4b 2352 #define RSSI_FLT_OOK_PEAK_DECAY_SLOW ((uint8_t)0x03) /*!< Peak decay control for OOK: slow decay */
vpcola 0:a1734fe1ec4b 2353
vpcola 0:a1734fe1ec4b 2354 /**
vpcola 0:a1734fe1ec4b 2355 * @}
vpcola 0:a1734fe1ec4b 2356 */
vpcola 0:a1734fe1ec4b 2357
vpcola 0:a1734fe1ec4b 2358 /** @defgroup RSSI_TH_Register
vpcola 0:a1734fe1ec4b 2359 * @{
vpcola 0:a1734fe1ec4b 2360 */
vpcola 0:a1734fe1ec4b 2361
vpcola 0:a1734fe1ec4b 2362 /**
vpcola 0:a1734fe1ec4b 2363 * \brief RSSI_TH register
vpcola 0:a1734fe1ec4b 2364 * \code
vpcola 0:a1734fe1ec4b 2365 * Read Write
vpcola 0:a1734fe1ec4b 2366 * Default value: 0x24
vpcola 0:a1734fe1ec4b 2367 *
vpcola 0:a1734fe1ec4b 2368 * 7:0 RSSI_THRESHOLD [7:0]: Signal detect threshold in 0.5dB. -120dBm corresponds to 20
vpcola 0:a1734fe1ec4b 2369 * \endcode
vpcola 0:a1734fe1ec4b 2370 */
vpcola 0:a1734fe1ec4b 2371 #define RSSI_TH_BASE ((uint8_t)0x22) /*!< Signal detect threshold in 0.5dB stp. 20 correspond to -120 dBm */
vpcola 0:a1734fe1ec4b 2372
vpcola 0:a1734fe1ec4b 2373 /**
vpcola 0:a1734fe1ec4b 2374 * @}
vpcola 0:a1734fe1ec4b 2375 */
vpcola 0:a1734fe1ec4b 2376
vpcola 0:a1734fe1ec4b 2377 /**
vpcola 0:a1734fe1ec4b 2378 * @}
vpcola 0:a1734fe1ec4b 2379 */
vpcola 0:a1734fe1ec4b 2380
vpcola 0:a1734fe1ec4b 2381
vpcola 0:a1734fe1ec4b 2382 /** @defgroup FIFO_Registers
vpcola 0:a1734fe1ec4b 2383 * @{
vpcola 0:a1734fe1ec4b 2384 */
vpcola 0:a1734fe1ec4b 2385
vpcola 0:a1734fe1ec4b 2386 /** @defgroup FIFO_CONFIG3_Register
vpcola 0:a1734fe1ec4b 2387 * @{
vpcola 0:a1734fe1ec4b 2388 */
vpcola 0:a1734fe1ec4b 2389
vpcola 0:a1734fe1ec4b 2390 /**
vpcola 0:a1734fe1ec4b 2391 * \brief FIFO_CONFIG3 registers
vpcola 0:a1734fe1ec4b 2392 * \code
vpcola 0:a1734fe1ec4b 2393 * Default value: 0x30
vpcola 0:a1734fe1ec4b 2394 * Read Write
vpcola 0:a1734fe1ec4b 2395 * 7 Reserved.
vpcola 0:a1734fe1ec4b 2396 *
vpcola 0:a1734fe1ec4b 2397 * 6:0 rxafthr [6:0]: FIFO Almost Full threshold for rx fifo.
vpcola 0:a1734fe1ec4b 2398 *
vpcola 0:a1734fe1ec4b 2399 * \endcode
vpcola 0:a1734fe1ec4b 2400 */
vpcola 0:a1734fe1ec4b 2401 #define FIFO_CONFIG3_RXAFTHR_BASE ((uint8_t)0x3E) /*!< FIFO Almost Full threshold for rx fifo [6:0] */
vpcola 0:a1734fe1ec4b 2402
vpcola 0:a1734fe1ec4b 2403 /**
vpcola 0:a1734fe1ec4b 2404 * @}
vpcola 0:a1734fe1ec4b 2405 */
vpcola 0:a1734fe1ec4b 2406
vpcola 0:a1734fe1ec4b 2407 /** @defgroup FIFO_CONFIG2_Register
vpcola 0:a1734fe1ec4b 2408 * @{
vpcola 0:a1734fe1ec4b 2409 */
vpcola 0:a1734fe1ec4b 2410
vpcola 0:a1734fe1ec4b 2411 /**
vpcola 0:a1734fe1ec4b 2412 * \brief FIFO_CONFIG2 registers
vpcola 0:a1734fe1ec4b 2413 * \code
vpcola 0:a1734fe1ec4b 2414 * Default value: 0x30
vpcola 0:a1734fe1ec4b 2415 * Read Write
vpcola 0:a1734fe1ec4b 2416 * 7 Reserved.
vpcola 0:a1734fe1ec4b 2417 *
vpcola 0:a1734fe1ec4b 2418 * 6:0 rxaethr [6:0]: FIFO Almost Empty threshold for rx fifo.
vpcola 0:a1734fe1ec4b 2419 *
vpcola 0:a1734fe1ec4b 2420 * \endcode
vpcola 0:a1734fe1ec4b 2421 */
vpcola 0:a1734fe1ec4b 2422 #define FIFO_CONFIG2_RXAETHR_BASE ((uint8_t)0x3F) /*!< FIFO Almost Empty threshold for rx fifo [6:0] */
vpcola 0:a1734fe1ec4b 2423
vpcola 0:a1734fe1ec4b 2424 /**
vpcola 0:a1734fe1ec4b 2425 * @}
vpcola 0:a1734fe1ec4b 2426 */
vpcola 0:a1734fe1ec4b 2427
vpcola 0:a1734fe1ec4b 2428 /** @defgroup FIFO_CONFIG1_Register
vpcola 0:a1734fe1ec4b 2429 * @{
vpcola 0:a1734fe1ec4b 2430 */
vpcola 0:a1734fe1ec4b 2431
vpcola 0:a1734fe1ec4b 2432 /**
vpcola 0:a1734fe1ec4b 2433 * \brief FIFO_CONFIG1 registers
vpcola 0:a1734fe1ec4b 2434 * \code
vpcola 0:a1734fe1ec4b 2435 * Default value: 0x30
vpcola 0:a1734fe1ec4b 2436 * Read Write
vpcola 0:a1734fe1ec4b 2437 * 7 Reserved.
vpcola 0:a1734fe1ec4b 2438 *
vpcola 0:a1734fe1ec4b 2439 * 6:0 txafthr [6:0]: FIFO Almost Full threshold for tx fifo.
vpcola 0:a1734fe1ec4b 2440 *
vpcola 0:a1734fe1ec4b 2441 * \endcode
vpcola 0:a1734fe1ec4b 2442 */
vpcola 0:a1734fe1ec4b 2443 #define FIFO_CONFIG1_TXAFTHR_BASE ((uint8_t)0x40) /*!< FIFO Almost Full threshold for tx fifo [6:0] */
vpcola 0:a1734fe1ec4b 2444
vpcola 0:a1734fe1ec4b 2445 /**
vpcola 0:a1734fe1ec4b 2446 * @}
vpcola 0:a1734fe1ec4b 2447 */
vpcola 0:a1734fe1ec4b 2448
vpcola 0:a1734fe1ec4b 2449 /** @defgroup FIFO_CONFIG0_Register
vpcola 0:a1734fe1ec4b 2450 * @{
vpcola 0:a1734fe1ec4b 2451 */
vpcola 0:a1734fe1ec4b 2452
vpcola 0:a1734fe1ec4b 2453 /**
vpcola 0:a1734fe1ec4b 2454 * \brief FIFO_CONFIG0 registers
vpcola 0:a1734fe1ec4b 2455 * \code
vpcola 0:a1734fe1ec4b 2456 * Default value: 0x30
vpcola 0:a1734fe1ec4b 2457 * Read Write
vpcola 0:a1734fe1ec4b 2458 * 7 Reserved.
vpcola 0:a1734fe1ec4b 2459 *
vpcola 0:a1734fe1ec4b 2460 * 6:0 txaethr [6:0]: FIFO Almost Empty threshold for tx fifo.
vpcola 0:a1734fe1ec4b 2461 *
vpcola 0:a1734fe1ec4b 2462 * \endcode
vpcola 0:a1734fe1ec4b 2463 */
vpcola 0:a1734fe1ec4b 2464 #define FIFO_CONFIG0_TXAETHR_BASE ((uint8_t)0x41) /*!< FIFO Almost Empty threshold for tx fifo [6:0] */
vpcola 0:a1734fe1ec4b 2465
vpcola 0:a1734fe1ec4b 2466 /**
vpcola 0:a1734fe1ec4b 2467 * @}
vpcola 0:a1734fe1ec4b 2468 */
vpcola 0:a1734fe1ec4b 2469
vpcola 0:a1734fe1ec4b 2470 /** @defgroup LINEAR_FIFO_STATUS1_Register
vpcola 0:a1734fe1ec4b 2471 * @{
vpcola 0:a1734fe1ec4b 2472 */
vpcola 0:a1734fe1ec4b 2473
vpcola 0:a1734fe1ec4b 2474 /**
vpcola 0:a1734fe1ec4b 2475 * \brief LINEAR_FIFO_STATUS1 registers
vpcola 0:a1734fe1ec4b 2476 * \code
vpcola 0:a1734fe1ec4b 2477 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2478 * Read
vpcola 0:a1734fe1ec4b 2479 *
vpcola 0:a1734fe1ec4b 2480 * 7 Reserved.
vpcola 0:a1734fe1ec4b 2481 *
vpcola 0:a1734fe1ec4b 2482 * 6:0 elem_txfifo[6:0]: Number of elements in the linear TXFIFO (<=96)
vpcola 0:a1734fe1ec4b 2483 * \endcode
vpcola 0:a1734fe1ec4b 2484 */
vpcola 0:a1734fe1ec4b 2485 #define LINEAR_FIFO_STATUS1_BASE ((uint8_t)(0xE6)) /*!< Number of elements in the linear TX FIFO [6:0] (<=96) */
vpcola 0:a1734fe1ec4b 2486
vpcola 0:a1734fe1ec4b 2487 /**
vpcola 0:a1734fe1ec4b 2488 * @}
vpcola 0:a1734fe1ec4b 2489 */
vpcola 0:a1734fe1ec4b 2490
vpcola 0:a1734fe1ec4b 2491 /** @defgroup LINEAR_FIFO_STATUS0_Register
vpcola 0:a1734fe1ec4b 2492 * @{
vpcola 0:a1734fe1ec4b 2493 */
vpcola 0:a1734fe1ec4b 2494
vpcola 0:a1734fe1ec4b 2495 /**
vpcola 0:a1734fe1ec4b 2496 * \brief LINEAR_FIFO_STATUS0 registers
vpcola 0:a1734fe1ec4b 2497 * \code
vpcola 0:a1734fe1ec4b 2498 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2499 * Read
vpcola 0:a1734fe1ec4b 2500 *
vpcola 0:a1734fe1ec4b 2501 * 7 Reserved.
vpcola 0:a1734fe1ec4b 2502 *
vpcola 0:a1734fe1ec4b 2503 * 6:0 elem_rxfifo[6:0]: Number of elements in the linear RXFIFO (<=96)
vpcola 0:a1734fe1ec4b 2504 * \endcode
vpcola 0:a1734fe1ec4b 2505 */
vpcola 0:a1734fe1ec4b 2506 #define LINEAR_FIFO_STATUS0_BASE ((uint8_t)(0xE7)) /*!< Number of elements in the linear RX FIFO [6:0] (<=96) */
vpcola 0:a1734fe1ec4b 2507
vpcola 0:a1734fe1ec4b 2508 /**
vpcola 0:a1734fe1ec4b 2509 * @}
vpcola 0:a1734fe1ec4b 2510 */
vpcola 0:a1734fe1ec4b 2511
vpcola 0:a1734fe1ec4b 2512
vpcola 0:a1734fe1ec4b 2513 /**
vpcola 0:a1734fe1ec4b 2514 * @}
vpcola 0:a1734fe1ec4b 2515 */
vpcola 0:a1734fe1ec4b 2516
vpcola 0:a1734fe1ec4b 2517
vpcola 0:a1734fe1ec4b 2518 /** @defgroup Calibration_Registers
vpcola 0:a1734fe1ec4b 2519 * @{
vpcola 0:a1734fe1ec4b 2520 */
vpcola 0:a1734fe1ec4b 2521
vpcola 0:a1734fe1ec4b 2522 /** @defgroup RCO_VCO_CALIBR_IN2_Register
vpcola 0:a1734fe1ec4b 2523 * @{
vpcola 0:a1734fe1ec4b 2524 */
vpcola 0:a1734fe1ec4b 2525
vpcola 0:a1734fe1ec4b 2526 /**
vpcola 0:a1734fe1ec4b 2527 * \brief RCO_VCO_CALIBR_IN2 registers
vpcola 0:a1734fe1ec4b 2528 * \code
vpcola 0:a1734fe1ec4b 2529 * Default value: 0x70
vpcola 0:a1734fe1ec4b 2530 * Read Write
vpcola 0:a1734fe1ec4b 2531 * 7:4 RWT_IN[3:0]: RaWThermometric word value for the RCO [7:4]
vpcola 0:a1734fe1ec4b 2532 *
vpcola 0:a1734fe1ec4b 2533 * 3:0 RFB_IN[4:1]: ResistorFineBit word value for the RCO (first 4 bits)
vpcola 0:a1734fe1ec4b 2534 * \endcode
vpcola 0:a1734fe1ec4b 2535 */
vpcola 0:a1734fe1ec4b 2536 #define RCO_VCO_CALIBR_IN2_BASE ((uint8_t)0x6D) /*!< RaWThermometric word value for the RCO [7:4]; ResistorFineBit word value for the RCO [3:0] */
vpcola 0:a1734fe1ec4b 2537
vpcola 0:a1734fe1ec4b 2538 /**
vpcola 0:a1734fe1ec4b 2539 * @}
vpcola 0:a1734fe1ec4b 2540 */
vpcola 0:a1734fe1ec4b 2541
vpcola 0:a1734fe1ec4b 2542 /** @defgroup RCO_VCO_CALIBR_IN1_Register
vpcola 0:a1734fe1ec4b 2543 * @{
vpcola 0:a1734fe1ec4b 2544 */
vpcola 0:a1734fe1ec4b 2545
vpcola 0:a1734fe1ec4b 2546 /**
vpcola 0:a1734fe1ec4b 2547 * \brief RCO_VCO_CALIBR_IN1 registers
vpcola 0:a1734fe1ec4b 2548 * \code
vpcola 0:a1734fe1ec4b 2549 * Default value: 0x48
vpcola 0:a1734fe1ec4b 2550 * Read Write
vpcola 0:a1734fe1ec4b 2551 *
vpcola 0:a1734fe1ec4b 2552 * 7 RFB_IN[0]: ResistorFineBit word value for the RCO (LSb)
vpcola 0:a1734fe1ec4b 2553 *
vpcola 0:a1734fe1ec4b 2554 * 6:0 VCO_CALIBR_TX[6:0]: Word value for the VCO to be used in TX mode
vpcola 0:a1734fe1ec4b 2555 * \endcode
vpcola 0:a1734fe1ec4b 2556 */
vpcola 0:a1734fe1ec4b 2557 #define RCO_VCO_CALIBR_IN1_BASE ((uint8_t)0x6E) /*!< ResistorFineBit word value for the RCO [7]; Word value for the VCO to be used in TX mode [6:0]*/
vpcola 0:a1734fe1ec4b 2558
vpcola 0:a1734fe1ec4b 2559 /**
vpcola 0:a1734fe1ec4b 2560 * @}
vpcola 0:a1734fe1ec4b 2561 */
vpcola 0:a1734fe1ec4b 2562
vpcola 0:a1734fe1ec4b 2563 /** @defgroup RCO_VCO_CALIBR_IN0_Register
vpcola 0:a1734fe1ec4b 2564 * @{
vpcola 0:a1734fe1ec4b 2565 */
vpcola 0:a1734fe1ec4b 2566
vpcola 0:a1734fe1ec4b 2567 /**
vpcola 0:a1734fe1ec4b 2568 * \brief RCO_VCO_CALIBR_IN0 registers
vpcola 0:a1734fe1ec4b 2569 * \code
vpcola 0:a1734fe1ec4b 2570 * Default value: 0x48
vpcola 0:a1734fe1ec4b 2571 * Read Write
vpcola 0:a1734fe1ec4b 2572 *
vpcola 0:a1734fe1ec4b 2573 * 7 Reserved.
vpcola 0:a1734fe1ec4b 2574 *
vpcola 0:a1734fe1ec4b 2575 * 6:0 VCO_CALIBR_RX[6:0]: Word value for the VCO to be used in RX mode
vpcola 0:a1734fe1ec4b 2576 * \endcode
vpcola 0:a1734fe1ec4b 2577 */
vpcola 0:a1734fe1ec4b 2578 #define RCO_VCO_CALIBR_IN0_BASE ((uint8_t)0x6F) /*!< Word value for the VCO to be used in RX mode [6:0] */
vpcola 0:a1734fe1ec4b 2579
vpcola 0:a1734fe1ec4b 2580 /**
vpcola 0:a1734fe1ec4b 2581 * @}
vpcola 0:a1734fe1ec4b 2582 */
vpcola 0:a1734fe1ec4b 2583
vpcola 0:a1734fe1ec4b 2584 /** @defgroup RCO_VCO_CALIBR_OUT1_Register
vpcola 0:a1734fe1ec4b 2585 * @{
vpcola 0:a1734fe1ec4b 2586 */
vpcola 0:a1734fe1ec4b 2587
vpcola 0:a1734fe1ec4b 2588 /**
vpcola 0:a1734fe1ec4b 2589 * \brief RCO_VCO_CALIBR_OUT1 registers
vpcola 0:a1734fe1ec4b 2590 * \code
vpcola 0:a1734fe1ec4b 2591 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2592 * Read
vpcola 0:a1734fe1ec4b 2593 *
vpcola 0:a1734fe1ec4b 2594 * 7:4 RWT_OUT[3:0]: RWT word from internal RCO calibrator
vpcola 0:a1734fe1ec4b 2595 *
vpcola 0:a1734fe1ec4b 2596 * 3:0 RFB_OUT[4:1]: RFB word from internal RCO calibrator (upper part)
vpcola 0:a1734fe1ec4b 2597 * \endcode
vpcola 0:a1734fe1ec4b 2598 */
vpcola 0:a1734fe1ec4b 2599 #define RCO_VCO_CALIBR_OUT1_BASE ((uint8_t)(0xE4)) /*!< RaWThermometric RWT word from internal RCO calibrator [7];
vpcola 0:a1734fe1ec4b 2600 ResistorFineBit RFB word from internal RCO oscillator [6:0] */
vpcola 0:a1734fe1ec4b 2601 /**
vpcola 0:a1734fe1ec4b 2602 * @}
vpcola 0:a1734fe1ec4b 2603 */
vpcola 0:a1734fe1ec4b 2604
vpcola 0:a1734fe1ec4b 2605 /** @defgroup RCO_VCO_CALIBR_OUT0_Register
vpcola 0:a1734fe1ec4b 2606 * @{
vpcola 0:a1734fe1ec4b 2607 */
vpcola 0:a1734fe1ec4b 2608
vpcola 0:a1734fe1ec4b 2609 /**
vpcola 0:a1734fe1ec4b 2610 * \brief RCO_VCO_CALIBR_OUT0 registers
vpcola 0:a1734fe1ec4b 2611 * \code
vpcola 0:a1734fe1ec4b 2612 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2613 * Read
vpcola 0:a1734fe1ec4b 2614 *
vpcola 0:a1734fe1ec4b 2615 * 7 RFB_OUT[0]: RFB word from internal RCO calibrator (last bit LSB)
vpcola 0:a1734fe1ec4b 2616 *
vpcola 0:a1734fe1ec4b 2617 * 6:0 VCO_CALIBR_DATA[6:0]: Output word from internal VCO calibrator
vpcola 0:a1734fe1ec4b 2618 * \endcode
vpcola 0:a1734fe1ec4b 2619 */
vpcola 0:a1734fe1ec4b 2620 #define RCO_VCO_CALIBR_OUT0_BASE ((uint8_t)(0xE5)) /*!< ResistorFineBit RFB word from internal RCO oscillator [0];
vpcola 0:a1734fe1ec4b 2621 Output word from internal calibrator [6:0]; */
vpcola 0:a1734fe1ec4b 2622 /**
vpcola 0:a1734fe1ec4b 2623 * @}
vpcola 0:a1734fe1ec4b 2624 */
vpcola 0:a1734fe1ec4b 2625
vpcola 0:a1734fe1ec4b 2626 /**
vpcola 0:a1734fe1ec4b 2627 * @}
vpcola 0:a1734fe1ec4b 2628 */
vpcola 0:a1734fe1ec4b 2629
vpcola 0:a1734fe1ec4b 2630
vpcola 0:a1734fe1ec4b 2631 /** @defgroup AES_Registers
vpcola 0:a1734fe1ec4b 2632 * @{
vpcola 0:a1734fe1ec4b 2633 */
vpcola 0:a1734fe1ec4b 2634
vpcola 0:a1734fe1ec4b 2635 /** @defgroup AES_KEY_IN_Register
vpcola 0:a1734fe1ec4b 2636 * @{
vpcola 0:a1734fe1ec4b 2637 */
vpcola 0:a1734fe1ec4b 2638
vpcola 0:a1734fe1ec4b 2639 /**
vpcola 0:a1734fe1ec4b 2640 * \brief AES_KEY_INx registers
vpcola 0:a1734fe1ec4b 2641 * \code
vpcola 0:a1734fe1ec4b 2642 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2643 * Read Write
vpcola 0:a1734fe1ec4b 2644 *
vpcola 0:a1734fe1ec4b 2645 * 7:0 AES_KEY_INx[7:0]: AES engine key input (total - 128 bits)
vpcola 0:a1734fe1ec4b 2646 * \endcode
vpcola 0:a1734fe1ec4b 2647 */
vpcola 0:a1734fe1ec4b 2648 #define AES_KEY_IN_15_BASE ((uint8_t)0x70) /*!< AES engine key input 15 */
vpcola 0:a1734fe1ec4b 2649
vpcola 0:a1734fe1ec4b 2650 #define AES_KEY_IN_14_BASE ((uint8_t)0x71) /*!< AES engine key input 14 */
vpcola 0:a1734fe1ec4b 2651
vpcola 0:a1734fe1ec4b 2652 #define AES_KEY_IN_13_BASE ((uint8_t)0x72) /*!< AES engine key input 13 */
vpcola 0:a1734fe1ec4b 2653
vpcola 0:a1734fe1ec4b 2654 #define AES_KEY_IN_12_BASE ((uint8_t)0x73) /*!< AES engine key input 12 */
vpcola 0:a1734fe1ec4b 2655
vpcola 0:a1734fe1ec4b 2656 #define AES_KEY_IN_11_BASE ((uint8_t)0x74) /*!< AES engine key input 11 */
vpcola 0:a1734fe1ec4b 2657
vpcola 0:a1734fe1ec4b 2658 #define AES_KEY_IN_10_BASE ((uint8_t)0x75) /*!< AES engine key input 10 */
vpcola 0:a1734fe1ec4b 2659
vpcola 0:a1734fe1ec4b 2660 #define AES_KEY_IN_9_BASE ((uint8_t)0x76) /*!< AES engine key input 9 */
vpcola 0:a1734fe1ec4b 2661
vpcola 0:a1734fe1ec4b 2662 #define AES_KEY_IN_8_BASE ((uint8_t)0x77) /*!< AES engine key input 8 */
vpcola 0:a1734fe1ec4b 2663
vpcola 0:a1734fe1ec4b 2664 #define AES_KEY_IN_7_BASE ((uint8_t)0x78) /*!< AES engine key input 7 */
vpcola 0:a1734fe1ec4b 2665
vpcola 0:a1734fe1ec4b 2666 #define AES_KEY_IN_6_BASE ((uint8_t)0x79) /*!< AES engine key input 6 */
vpcola 0:a1734fe1ec4b 2667
vpcola 0:a1734fe1ec4b 2668 #define AES_KEY_IN_5_BASE ((uint8_t)0x7A) /*!< AES engine key input 5 */
vpcola 0:a1734fe1ec4b 2669
vpcola 0:a1734fe1ec4b 2670 #define AES_KEY_IN_4_BASE ((uint8_t)0x7B) /*!< AES engine key input 4 */
vpcola 0:a1734fe1ec4b 2671
vpcola 0:a1734fe1ec4b 2672 #define AES_KEY_IN_3_BASE ((uint8_t)0x7C) /*!< AES engine key input 3 */
vpcola 0:a1734fe1ec4b 2673
vpcola 0:a1734fe1ec4b 2674 #define AES_KEY_IN_2_BASE ((uint8_t)0x7D) /*!< AES engine key input 2 */
vpcola 0:a1734fe1ec4b 2675
vpcola 0:a1734fe1ec4b 2676 #define AES_KEY_IN_1_BASE ((uint8_t)0x7E) /*!< AES engine key input 1 */
vpcola 0:a1734fe1ec4b 2677
vpcola 0:a1734fe1ec4b 2678 #define AES_KEY_IN_0_BASE ((uint8_t)0x7F) /*!< AES engine key input 0 */
vpcola 0:a1734fe1ec4b 2679
vpcola 0:a1734fe1ec4b 2680 /**
vpcola 0:a1734fe1ec4b 2681 * @}
vpcola 0:a1734fe1ec4b 2682 */
vpcola 0:a1734fe1ec4b 2683
vpcola 0:a1734fe1ec4b 2684 /** @defgroup AES_DATA_IN_Register
vpcola 0:a1734fe1ec4b 2685 * @{
vpcola 0:a1734fe1ec4b 2686 */
vpcola 0:a1734fe1ec4b 2687
vpcola 0:a1734fe1ec4b 2688 /**
vpcola 0:a1734fe1ec4b 2689 * \brief AES_DATA_INx registers
vpcola 0:a1734fe1ec4b 2690 * \code
vpcola 0:a1734fe1ec4b 2691 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2692 * Read Write
vpcola 0:a1734fe1ec4b 2693 *
vpcola 0:a1734fe1ec4b 2694 * 7:0 AES_DATA_INx[7:0]: AES engine data input (total - 128 bits)
vpcola 0:a1734fe1ec4b 2695 * \endcode
vpcola 0:a1734fe1ec4b 2696 */
vpcola 0:a1734fe1ec4b 2697 #define AES_DATA_IN_15_BASE ((uint8_t)0x80) /*!< AES engine data input 15
vpcola 0:a1734fe1ec4b 2698 Take care: Address is in reverse order respect data numbering; eg.: 0x81 -> AES_data14[7:0] */
vpcola 0:a1734fe1ec4b 2699 #define AES_DATA_IN_14_BASE ((uint8_t)0x81) /*!< AES engine data input 14 */
vpcola 0:a1734fe1ec4b 2700
vpcola 0:a1734fe1ec4b 2701 #define AES_DATA_IN_13_BASE ((uint8_t)0x82) /*!< AES engine data input 13 */
vpcola 0:a1734fe1ec4b 2702
vpcola 0:a1734fe1ec4b 2703 #define AES_DATA_IN_12_BASE ((uint8_t)0x83) /*!< AES engine data input 12 */
vpcola 0:a1734fe1ec4b 2704
vpcola 0:a1734fe1ec4b 2705 #define AES_DATA_IN_11_BASE ((uint8_t)0x84) /*!< AES engine data input 11 */
vpcola 0:a1734fe1ec4b 2706
vpcola 0:a1734fe1ec4b 2707 #define AES_DATA_IN_10_BASE ((uint8_t)0x85) /*!< AES engine data input 10 */
vpcola 0:a1734fe1ec4b 2708
vpcola 0:a1734fe1ec4b 2709 #define AES_DATA_IN_9_BASE ((uint8_t)0x86) /*!< AES engine data input 9 */
vpcola 0:a1734fe1ec4b 2710
vpcola 0:a1734fe1ec4b 2711 #define AES_DATA_IN_8_BASE ((uint8_t)0x87) /*!< AES engine data input 8 */
vpcola 0:a1734fe1ec4b 2712
vpcola 0:a1734fe1ec4b 2713 #define AES_DATA_IN_7_BASE ((uint8_t)0x88) /*!< AES engine data input 7 */
vpcola 0:a1734fe1ec4b 2714
vpcola 0:a1734fe1ec4b 2715 #define AES_DATA_IN_6_BASE ((uint8_t)0x89) /*!< AES engine data input 6 */
vpcola 0:a1734fe1ec4b 2716
vpcola 0:a1734fe1ec4b 2717 #define AES_DATA_IN_5_BASE ((uint8_t)0x8A) /*!< AES engine data input 5 */
vpcola 0:a1734fe1ec4b 2718
vpcola 0:a1734fe1ec4b 2719 #define AES_DATA_IN_4_BASE ((uint8_t)0x8B) /*!< AES engine data input 4 */
vpcola 0:a1734fe1ec4b 2720
vpcola 0:a1734fe1ec4b 2721 #define AES_DATA_IN_3_BASE ((uint8_t)0x8C) /*!< AES engine data input 3 */
vpcola 0:a1734fe1ec4b 2722
vpcola 0:a1734fe1ec4b 2723 #define AES_DATA_IN_2_BASE ((uint8_t)0x8D) /*!< AES engine data input 2 */
vpcola 0:a1734fe1ec4b 2724
vpcola 0:a1734fe1ec4b 2725 #define AES_DATA_IN_1_BASE ((uint8_t)0x8E) /*!< AES engine data input 1 */
vpcola 0:a1734fe1ec4b 2726
vpcola 0:a1734fe1ec4b 2727 #define AES_DATA_IN_0_BASE ((uint8_t)0x8F) /*!< AES engine data input 0 */
vpcola 0:a1734fe1ec4b 2728
vpcola 0:a1734fe1ec4b 2729 /**
vpcola 0:a1734fe1ec4b 2730 * @}
vpcola 0:a1734fe1ec4b 2731 */
vpcola 0:a1734fe1ec4b 2732
vpcola 0:a1734fe1ec4b 2733 /** @defgroup AES_DATA_OUT_Register
vpcola 0:a1734fe1ec4b 2734 * @{
vpcola 0:a1734fe1ec4b 2735 */
vpcola 0:a1734fe1ec4b 2736
vpcola 0:a1734fe1ec4b 2737 /**
vpcola 0:a1734fe1ec4b 2738 * \brief AES_DATA_OUT[15:0] registers
vpcola 0:a1734fe1ec4b 2739 * \code
vpcola 0:a1734fe1ec4b 2740 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2741 * Read
vpcola 0:a1734fe1ec4b 2742 *
vpcola 0:a1734fe1ec4b 2743 * 7:0 AES_DATA_OUTx[7:0]: AES engine data output (128 bits)
vpcola 0:a1734fe1ec4b 2744 * \endcode
vpcola 0:a1734fe1ec4b 2745 */
vpcola 0:a1734fe1ec4b 2746 #define AES_DATA_OUT_15_BASE ((uint8_t)(0xD4)) /*!< AES engine data output 15 */
vpcola 0:a1734fe1ec4b 2747
vpcola 0:a1734fe1ec4b 2748 #define AES_DATA_OUT_14_BASE ((uint8_t)(0xD5)) /*!< AES engine data output 14 */
vpcola 0:a1734fe1ec4b 2749
vpcola 0:a1734fe1ec4b 2750 #define AES_DATA_OUT_13_BASE ((uint8_t)(0xD6)) /*!< AES engine data output 13 */
vpcola 0:a1734fe1ec4b 2751
vpcola 0:a1734fe1ec4b 2752 #define AES_DATA_OUT_12_BASE ((uint8_t)(0xD7)) /*!< AES engine data output 12 */
vpcola 0:a1734fe1ec4b 2753
vpcola 0:a1734fe1ec4b 2754 #define AES_DATA_OUT_11_BASE ((uint8_t)(0xD8)) /*!< AES engine data output 11 */
vpcola 0:a1734fe1ec4b 2755
vpcola 0:a1734fe1ec4b 2756 #define AES_DATA_OUT_10_BASE ((uint8_t)(0xD9)) /*!< AES engine data output 10 */
vpcola 0:a1734fe1ec4b 2757
vpcola 0:a1734fe1ec4b 2758 #define AES_DATA_OUT_9_BASE ((uint8_t)(0xDA)) /*!< AES engine data output 9 */
vpcola 0:a1734fe1ec4b 2759
vpcola 0:a1734fe1ec4b 2760 #define AES_DATA_OUT_8_BASE ((uint8_t)(0xDB)) /*!< AES engine data output 8 */
vpcola 0:a1734fe1ec4b 2761
vpcola 0:a1734fe1ec4b 2762 #define AES_DATA_OUT_7_BASE ((uint8_t)(0xDC)) /*!< AES engine data output 7 */
vpcola 0:a1734fe1ec4b 2763
vpcola 0:a1734fe1ec4b 2764 #define AES_DATA_OUT_6_BASE ((uint8_t)(0xDD)) /*!< AES engine data output 6 */
vpcola 0:a1734fe1ec4b 2765
vpcola 0:a1734fe1ec4b 2766 #define AES_DATA_OUT_5_BASE ((uint8_t)(0xDE)) /*!< AES engine data output 5 */
vpcola 0:a1734fe1ec4b 2767
vpcola 0:a1734fe1ec4b 2768 #define AES_DATA_OUT_4_BASE ((uint8_t)(0xDF)) /*!< AES engine data output 4 */
vpcola 0:a1734fe1ec4b 2769
vpcola 0:a1734fe1ec4b 2770 #define AES_DATA_OUT_3_BASE ((uint8_t)(0xE0)) /*!< AES engine data output 3 */
vpcola 0:a1734fe1ec4b 2771
vpcola 0:a1734fe1ec4b 2772 #define AES_DATA_OUT_2_BASE ((uint8_t)(0xE1)) /*!< AES engine data output 2 */
vpcola 0:a1734fe1ec4b 2773
vpcola 0:a1734fe1ec4b 2774 #define AES_DATA_OUT_1_BASE ((uint8_t)(0xE2)) /*!< AES engine data output 1 */
vpcola 0:a1734fe1ec4b 2775
vpcola 0:a1734fe1ec4b 2776 #define AES_DATA_OUT_0_BASE ((uint8_t)(0xE3)) /*!< AES engine data output 0 */
vpcola 0:a1734fe1ec4b 2777
vpcola 0:a1734fe1ec4b 2778 /**
vpcola 0:a1734fe1ec4b 2779 * @}
vpcola 0:a1734fe1ec4b 2780 */
vpcola 0:a1734fe1ec4b 2781
vpcola 0:a1734fe1ec4b 2782 /**
vpcola 0:a1734fe1ec4b 2783 * @}
vpcola 0:a1734fe1ec4b 2784 */
vpcola 0:a1734fe1ec4b 2785
vpcola 0:a1734fe1ec4b 2786 /** @defgroup IRQ_Registers
vpcola 0:a1734fe1ec4b 2787 * @{
vpcola 0:a1734fe1ec4b 2788 */
vpcola 0:a1734fe1ec4b 2789
vpcola 0:a1734fe1ec4b 2790 /** @defgroup IRQ_MASK0_Register
vpcola 0:a1734fe1ec4b 2791 * @{
vpcola 0:a1734fe1ec4b 2792 */
vpcola 0:a1734fe1ec4b 2793
vpcola 0:a1734fe1ec4b 2794 /**
vpcola 0:a1734fe1ec4b 2795 * \brief IRQ_MASK0 registers
vpcola 0:a1734fe1ec4b 2796 * \code
vpcola 0:a1734fe1ec4b 2797 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2798 * Read Write
vpcola 0:a1734fe1ec4b 2799 *
vpcola 0:a1734fe1ec4b 2800 * 7:0 INT_MASK0: IRQ mask, if the correspondent bit is set and IRQ can be generated (according to the next table)
vpcola 0:a1734fe1ec4b 2801 *
vpcola 0:a1734fe1ec4b 2802 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 2803 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 2804 * 0 | RX data ready
vpcola 0:a1734fe1ec4b 2805 * 1 | RX data discarded (upon filtering)
vpcola 0:a1734fe1ec4b 2806 * 2 | TX data sent
vpcola 0:a1734fe1ec4b 2807 * 3 | Max re-TX reached
vpcola 0:a1734fe1ec4b 2808 * 4 | CRC error
vpcola 0:a1734fe1ec4b 2809 * 5 | TX FIFO underflow/overflow error
vpcola 0:a1734fe1ec4b 2810 * 6 | RX FIFO underflow/overflow error
vpcola 0:a1734fe1ec4b 2811 * 7 | TX FIFO almost full
vpcola 0:a1734fe1ec4b 2812 * \endcode
vpcola 0:a1734fe1ec4b 2813 */
vpcola 0:a1734fe1ec4b 2814
vpcola 0:a1734fe1ec4b 2815
vpcola 0:a1734fe1ec4b 2816 #define IRQ_MASK0_BASE ((uint8_t)0x93) /*!< IRQ_MASK is split into 4 registers*/
vpcola 0:a1734fe1ec4b 2817
vpcola 0:a1734fe1ec4b 2818 #define IRQ_MASK0_RX_DATA_READY ((uint8_t)0x01) /*!< IRQ: RX data ready */
vpcola 0:a1734fe1ec4b 2819 #define IRQ_MASK0_RX_DATA_DISC ((uint8_t)0x02) /*!< IRQ: RX data discarded (upon filtering) */
vpcola 0:a1734fe1ec4b 2820 #define IRQ_MASK0_TX_DATA_SENT ((uint8_t)0x04) /*!< IRQ: TX data sent */
vpcola 0:a1734fe1ec4b 2821 #define IRQ_MASK0_MAX_RE_TX_REACH ((uint8_t)0x08) /*!< IRQ: Max re-TX reached */
vpcola 0:a1734fe1ec4b 2822 #define IRQ_MASK0_CRC_ERROR ((uint8_t)0x10) /*!< IRQ: CRC error */
vpcola 0:a1734fe1ec4b 2823 #define IRQ_MASK0_TX_FIFO_ERROR ((uint8_t)0x20) /*!< IRQ: TX FIFO underflow/overflow error */
vpcola 0:a1734fe1ec4b 2824 #define IRQ_MASK0_RX_FIFO_ERROR ((uint8_t)0x40) /*!< IRQ: RX FIFO underflow/overflow error */
vpcola 0:a1734fe1ec4b 2825 #define IRQ_MASK0_TX_FIFO_ALMOST_FULL ((uint8_t)0x80) /*!< IRQ: TX FIFO almost full */
vpcola 0:a1734fe1ec4b 2826
vpcola 0:a1734fe1ec4b 2827 /**
vpcola 0:a1734fe1ec4b 2828 * @}
vpcola 0:a1734fe1ec4b 2829 */
vpcola 0:a1734fe1ec4b 2830
vpcola 0:a1734fe1ec4b 2831 /** @defgroup IRQ_MASK1_Register
vpcola 0:a1734fe1ec4b 2832 * @{
vpcola 0:a1734fe1ec4b 2833 */
vpcola 0:a1734fe1ec4b 2834
vpcola 0:a1734fe1ec4b 2835 /**
vpcola 0:a1734fe1ec4b 2836 * \brief IRQ_MASK1 registers
vpcola 0:a1734fe1ec4b 2837 * \code
vpcola 0:a1734fe1ec4b 2838 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2839 * Read Write
vpcola 0:a1734fe1ec4b 2840 *
vpcola 0:a1734fe1ec4b 2841 * 7:0 INT_MASK1: IRQ mask, if the correspondent bit is set and IRQ can be generated (according to the next table)
vpcola 0:a1734fe1ec4b 2842 *
vpcola 0:a1734fe1ec4b 2843 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 2844 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 2845 * 8 | TX FIFO almost empty
vpcola 0:a1734fe1ec4b 2846 * 9 | RX FIFO almost full
vpcola 0:a1734fe1ec4b 2847 * 10 | RX FIFO almost empty
vpcola 0:a1734fe1ec4b 2848 * 11 | Max number of back-off during CCA
vpcola 0:a1734fe1ec4b 2849 * 12 | Valid preamble detected
vpcola 0:a1734fe1ec4b 2850 * 13 | Sync word detected
vpcola 0:a1734fe1ec4b 2851 * 14 | RSSI above threshold (Carrier Sense)
vpcola 0:a1734fe1ec4b 2852 * 15 | Wake-up timeout in LDCR mode13
vpcola 0:a1734fe1ec4b 2853 * \endcode
vpcola 0:a1734fe1ec4b 2854 */
vpcola 0:a1734fe1ec4b 2855
vpcola 0:a1734fe1ec4b 2856 #define IRQ_MASK1_BASE ((uint8_t)0x92) /*!< IRQ_MASK is split into 4 registers*/
vpcola 0:a1734fe1ec4b 2857
vpcola 0:a1734fe1ec4b 2858 #define IRQ_MASK1_TX_FIFO_ALMOST_EMPTY ((uint8_t)0x01) /*!< IRQ: TX FIFO almost empty */
vpcola 0:a1734fe1ec4b 2859 #define IRQ_MASK1_RX_FIFO_ALMOST_FULL ((uint8_t)0x02) /*!< IRQ: RX FIFO almost full */
vpcola 0:a1734fe1ec4b 2860 #define IRQ_MASK1_RX_FIFO_ALMOST_EMPTY ((uint8_t)0x04) /*!< IRQ: RX FIFO almost empty */
vpcola 0:a1734fe1ec4b 2861 #define IRQ_MASK1_MAX_BO_CCA_REACH ((uint8_t)0x08) /*!< IRQ: Max number of back-off during CCA */
vpcola 0:a1734fe1ec4b 2862 #define IRQ_MASK1_VALID_PREAMBLE ((uint8_t)0x10) /*!< IRQ: Valid preamble detected */
vpcola 0:a1734fe1ec4b 2863 #define IRQ_MASK1_VALID_SYNC ((uint8_t)0x20) /*!< IRQ: Sync word detected */
vpcola 0:a1734fe1ec4b 2864 #define IRQ_MASK1_RSSI_ABOVE_TH ((uint8_t)0x40) /*!< IRQ: RSSI above threshold */
vpcola 0:a1734fe1ec4b 2865 #define IRQ_MASK1_WKUP_TOUT_LDC ((uint8_t)0x80) /*!< IRQ: Wake-up timeout in LDC mode */
vpcola 0:a1734fe1ec4b 2866
vpcola 0:a1734fe1ec4b 2867 /**
vpcola 0:a1734fe1ec4b 2868 * @}
vpcola 0:a1734fe1ec4b 2869 */
vpcola 0:a1734fe1ec4b 2870
vpcola 0:a1734fe1ec4b 2871 /** @defgroup IRQ_MASK2_Register
vpcola 0:a1734fe1ec4b 2872 * @{
vpcola 0:a1734fe1ec4b 2873 */
vpcola 0:a1734fe1ec4b 2874
vpcola 0:a1734fe1ec4b 2875 /**
vpcola 0:a1734fe1ec4b 2876 * \brief IRQ_MASK2 registers
vpcola 0:a1734fe1ec4b 2877 * \code
vpcola 0:a1734fe1ec4b 2878 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2879 * Read Write
vpcola 0:a1734fe1ec4b 2880 *
vpcola 0:a1734fe1ec4b 2881 * 7:0 INT_MASK2: IRQ mask, if the correspondent bit is set and IRQ can be generated (according to the next table)
vpcola 0:a1734fe1ec4b 2882 *
vpcola 0:a1734fe1ec4b 2883 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 2884 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 2885 * 16 | READY state in steady condition14
vpcola 0:a1734fe1ec4b 2886 * 17 | STANDBY state switching in progress
vpcola 0:a1734fe1ec4b 2887 * 18 | Low battery level
vpcola 0:a1734fe1ec4b 2888 * 19 | Power-On reset
vpcola 0:a1734fe1ec4b 2889 * 20 | Brown-Out event
vpcola 0:a1734fe1ec4b 2890 * 21 | LOCK state in steady condition
vpcola 0:a1734fe1ec4b 2891 * 22 | PM start-up timer expiration
vpcola 0:a1734fe1ec4b 2892 * 23 | XO settling timeout
vpcola 0:a1734fe1ec4b 2893 * \endcode
vpcola 0:a1734fe1ec4b 2894 */
vpcola 0:a1734fe1ec4b 2895 #define IRQ_MASK2_BASE ((uint8_t)0x91) /*!< IRQ_MASK is split into 4 registers*/
vpcola 0:a1734fe1ec4b 2896
vpcola 0:a1734fe1ec4b 2897 #define IRQ_MASK2_READY ((uint8_t)0x01) /*!< IRQ: READY state */
vpcola 0:a1734fe1ec4b 2898 #define IRQ_MASK2_STANDBY_DELAYED ((uint8_t)0x02) /*!< IRQ: STANDBY state after MCU_CK_CONF_CLOCK_TAIL_X clock cycles */
vpcola 0:a1734fe1ec4b 2899 #define IRQ_MASK2_LOW_BATT_LVL ((uint8_t)0x04) /*!< IRQ: Battery level below threshold*/
vpcola 0:a1734fe1ec4b 2900 #define IRQ_MASK2_POR ((uint8_t)0x08) /*!< IRQ: Power On Reset */
vpcola 0:a1734fe1ec4b 2901 #define IRQ_MASK2_BOR ((uint8_t)0x10) /*!< IRQ: Brown out event (both accurate and inaccurate)*/
vpcola 0:a1734fe1ec4b 2902 #define IRQ_MASK2_LOCK ((uint8_t)0x20) /*!< IRQ: LOCK state */
vpcola 0:a1734fe1ec4b 2903 #define IRQ_MASK2_PM_COUNT_EXPIRED ((uint8_t)0x40) /*!< IRQ: only for debug; Power Management startup timer expiration (see reg PM_START_COUNTER, 0xB5) */
vpcola 0:a1734fe1ec4b 2904 #define IRQ_MASK2_XO_COUNT_EXPIRED ((uint8_t)0x80) /*!< IRQ: only for debug; Crystal oscillator settling time counter expired */
vpcola 0:a1734fe1ec4b 2905
vpcola 0:a1734fe1ec4b 2906 /**
vpcola 0:a1734fe1ec4b 2907 * @}
vpcola 0:a1734fe1ec4b 2908 */
vpcola 0:a1734fe1ec4b 2909
vpcola 0:a1734fe1ec4b 2910 /** @defgroup IRQ_MASK3_Register
vpcola 0:a1734fe1ec4b 2911 * @{
vpcola 0:a1734fe1ec4b 2912 */
vpcola 0:a1734fe1ec4b 2913
vpcola 0:a1734fe1ec4b 2914 /**
vpcola 0:a1734fe1ec4b 2915 * \brief IRQ_MASK3 registers
vpcola 0:a1734fe1ec4b 2916 * \code
vpcola 0:a1734fe1ec4b 2917 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2918 * Read Write
vpcola 0:a1734fe1ec4b 2919 *
vpcola 0:a1734fe1ec4b 2920 * 7:0 INT_MASK3: IRQ mask, if the correspondent bit is set and IRQ can be generated (according to the next table)
vpcola 0:a1734fe1ec4b 2921 *
vpcola 0:a1734fe1ec4b 2922 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 2923 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 2924 * 24 | SYNTH locking timeout
vpcola 0:a1734fe1ec4b 2925 * 25 | SYNTH calibration start-up time
vpcola 0:a1734fe1ec4b 2926 * 26 | SYNTH calibration timeout
vpcola 0:a1734fe1ec4b 2927 * 27 | TX circuitry start-up time
vpcola 0:a1734fe1ec4b 2928 * 28 | RX circuitry start-up time
vpcola 0:a1734fe1ec4b 2929 * 29 | RX operation timeout
vpcola 0:a1734fe1ec4b 2930 * 30 | Others AES End–of –Operation
vpcola 0:a1734fe1ec4b 2931 * 31 | Reserved
vpcola 0:a1734fe1ec4b 2932 * \endcode
vpcola 0:a1734fe1ec4b 2933 */
vpcola 0:a1734fe1ec4b 2934 #define IRQ_MASK3_BASE ((uint8_t)0x90) /*!< IRQ_MASK is split into 4 registers*/
vpcola 0:a1734fe1ec4b 2935
vpcola 0:a1734fe1ec4b 2936 #define IRQ_MASK3_SYNTH_LOCK_TIMEOUT ((uint8_t)0x01) /*!< IRQ: only for debug; LOCK state timeout */
vpcola 0:a1734fe1ec4b 2937 #define IRQ_MASK3_SYNTH_LOCK_STARTUP ((uint8_t)0x02) /*!< IRQ: only for debug; see CALIBR_START_COUNTER */
vpcola 0:a1734fe1ec4b 2938 #define IRQ_MASK3_SYNTH_CAL_TIMEOUT ((uint8_t)0x04) /*!< IRQ: only for debug; SYNTH calibration timeout */
vpcola 0:a1734fe1ec4b 2939 #define IRQ_MASK3_TX_START_TIME ((uint8_t)0x08) /*!< IRQ: only for debug; TX circuitry startup time; see TX_START_COUNTER */
vpcola 0:a1734fe1ec4b 2940 #define IRQ_MASK3_RX_START_TIME ((uint8_t)0x10) /*!< IRQ: only for debug; RX circuitry startup time; see TX_START_COUNTER */
vpcola 0:a1734fe1ec4b 2941 #define IRQ_MASK3_RX_TIMEOUT ((uint8_t)0x20) /*!< IRQ: RX operation timeout */
vpcola 0:a1734fe1ec4b 2942 #define IRQ_MASK3_AES_END ((uint8_t)0x40) /*!< IRQ: AES End of operation */
vpcola 0:a1734fe1ec4b 2943
vpcola 0:a1734fe1ec4b 2944 /**
vpcola 0:a1734fe1ec4b 2945 * @}
vpcola 0:a1734fe1ec4b 2946 */
vpcola 0:a1734fe1ec4b 2947
vpcola 0:a1734fe1ec4b 2948
vpcola 0:a1734fe1ec4b 2949 /** @defgroup IRQ_STATUS0_Register
vpcola 0:a1734fe1ec4b 2950 * @{
vpcola 0:a1734fe1ec4b 2951 */
vpcola 0:a1734fe1ec4b 2952
vpcola 0:a1734fe1ec4b 2953 /**
vpcola 0:a1734fe1ec4b 2954 * \brief IRQ_STATUS0 registers
vpcola 0:a1734fe1ec4b 2955 * \code
vpcola 0:a1734fe1ec4b 2956 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2957 * Read Write
vpcola 0:a1734fe1ec4b 2958 *
vpcola 0:a1734fe1ec4b 2959 * 7:0 INT_STATUS0: IRQ status, if the correspondent bit is set and IRQ has been generated (according to the next table)
vpcola 0:a1734fe1ec4b 2960 *
vpcola 0:a1734fe1ec4b 2961 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 2962 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 2963 * 0 | RX data ready
vpcola 0:a1734fe1ec4b 2964 * 1 | RX data discarded (upon filtering)
vpcola 0:a1734fe1ec4b 2965 * 2 | TX data sent
vpcola 0:a1734fe1ec4b 2966 * 3 | Max re-TX reached
vpcola 0:a1734fe1ec4b 2967 * 4 | CRC error
vpcola 0:a1734fe1ec4b 2968 * 5 | TX FIFO underflow/overflow error
vpcola 0:a1734fe1ec4b 2969 * 6 | RX FIFO underflow/overflow error
vpcola 0:a1734fe1ec4b 2970 * 7 | TX FIFO almost full
vpcola 0:a1734fe1ec4b 2971 * \endcode
vpcola 0:a1734fe1ec4b 2972 */
vpcola 0:a1734fe1ec4b 2973
vpcola 0:a1734fe1ec4b 2974 #define IRQ_STATUS0_BASE ((uint8_t)(0xFD)) /*!< IRQ Events(RR, split into 4 registers) */
vpcola 0:a1734fe1ec4b 2975
vpcola 0:a1734fe1ec4b 2976 #define IRQ_STATUS0_SYNTH_LOCK_TIMEOUT ((uint8_t)(0x01)) /*!< IRQ: LOCK state timeout */
vpcola 0:a1734fe1ec4b 2977 #define IRQ_STATUS0_SYNTH_LOCK_STARTUP ((uint8_t)(0x02)) /*!< IRQ: only for debug; see CALIBR_START_COUNTER */
vpcola 0:a1734fe1ec4b 2978 #define IRQ_STATUS0_SYNTH_CAL_TIMEOUT ((uint8_t)(0x04)) /*!< IRQ: SYNTH locking timeout */
vpcola 0:a1734fe1ec4b 2979 #define IRQ_STATUS0_TX_START_TIME ((uint8_t)(0x08)) /*!< IRQ: only for debug; TX circuitry startup time; see TX_START_COUNTER */
vpcola 0:a1734fe1ec4b 2980 #define IRQ_STATUS0_RX_START_TIME ((uint8_t)(0x10)) /*!< IRQ: only for debug; RX circuitry startup time; see TX_START_COUNTER */
vpcola 0:a1734fe1ec4b 2981 #define IRQ_STATUS0_RX_TIMEOUT ((uint8_t)(0x20)) /*!< IRQ: RX operation timeout expiration */
vpcola 0:a1734fe1ec4b 2982 #define IRQ_STATUS0_AES_END ((uint8_t)(0x40)) /*!< IRQ: AES End of operation */
vpcola 0:a1734fe1ec4b 2983
vpcola 0:a1734fe1ec4b 2984 /**
vpcola 0:a1734fe1ec4b 2985 * @}
vpcola 0:a1734fe1ec4b 2986 */
vpcola 0:a1734fe1ec4b 2987
vpcola 0:a1734fe1ec4b 2988 /** @defgroup IRQ_STATUS1_Register
vpcola 0:a1734fe1ec4b 2989 * @{
vpcola 0:a1734fe1ec4b 2990 */
vpcola 0:a1734fe1ec4b 2991
vpcola 0:a1734fe1ec4b 2992 /**
vpcola 0:a1734fe1ec4b 2993 * \brief IRQ_STATUS1 registers
vpcola 0:a1734fe1ec4b 2994 * \code
vpcola 0:a1734fe1ec4b 2995 * Default value: 0x00
vpcola 0:a1734fe1ec4b 2996 * Read Write
vpcola 0:a1734fe1ec4b 2997 *
vpcola 0:a1734fe1ec4b 2998 * 7:0 INT_STATUS1: IRQ status, if the correspondent bit is set and IRQ has been generated (according to the next table)
vpcola 0:a1734fe1ec4b 2999 *
vpcola 0:a1734fe1ec4b 3000 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 3001 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 3002 * 8 | TX FIFO almost empty
vpcola 0:a1734fe1ec4b 3003 * 9 | RX FIFO almost full
vpcola 0:a1734fe1ec4b 3004 * 10 | RX FIFO almost empty
vpcola 0:a1734fe1ec4b 3005 * 11 | Max number of back-off during CCA
vpcola 0:a1734fe1ec4b 3006 * 12 | Valid preamble detected
vpcola 0:a1734fe1ec4b 3007 * 13 | Sync word detected
vpcola 0:a1734fe1ec4b 3008 * 14 | RSSI above threshold (Carrier Sense)
vpcola 0:a1734fe1ec4b 3009 * 15 | Wake-up timeout in LDCR mode13
vpcola 0:a1734fe1ec4b 3010 * \endcode
vpcola 0:a1734fe1ec4b 3011 */
vpcola 0:a1734fe1ec4b 3012
vpcola 0:a1734fe1ec4b 3013 #define IRQ_STATUS1_BASE ((uint8_t)(0xFC)) /*!< IRQ Events(RR, split into 4 registers) */
vpcola 0:a1734fe1ec4b 3014
vpcola 0:a1734fe1ec4b 3015 #define IRQ_STATUS1_READY ((uint8_t)(0x01)) /*!< IRQ: READY state in steady condition*/
vpcola 0:a1734fe1ec4b 3016 #define IRQ_STATUS1_STANDBY_DELAYED ((uint8_t)(0x02)) /*!< IRQ: STANDBY state after MCU_CK_CONF_CLOCK_TAIL_X clock cycles */
vpcola 0:a1734fe1ec4b 3017 #define IRQ_STATUS1_LOW_BATT_LVL ((uint8_t)(0x04)) /*!< IRQ: Battery level below threshold*/
vpcola 0:a1734fe1ec4b 3018 #define IRQ_STATUS1_POR ((uint8_t)(0x08)) /*!< IRQ: Power On Reset */
vpcola 0:a1734fe1ec4b 3019 #define IRQ_STATUS1_BOR ((uint8_t)(0x10)) /*!< IRQ: Brown out event (both accurate and inaccurate)*/
vpcola 0:a1734fe1ec4b 3020 #define IRQ_STATUS1_LOCK ((uint8_t)(0x20)) /*!< IRQ: LOCK state in steady condition */
vpcola 0:a1734fe1ec4b 3021 #define IRQ_STATUS1_PM_COUNT_EXPIRED ((uint8_t)(0x40)) /*!< IRQ: Power Management startup timer expiration (see reg PM_START_COUNTER, 0xB5) */
vpcola 0:a1734fe1ec4b 3022 #define IRQ_STATUS1_XO_COUNT_EXPIRED ((uint8_t)(0x80)) /*!< IRQ: Crystal oscillator settling time counter expired */
vpcola 0:a1734fe1ec4b 3023
vpcola 0:a1734fe1ec4b 3024 /**
vpcola 0:a1734fe1ec4b 3025 * @}
vpcola 0:a1734fe1ec4b 3026 */
vpcola 0:a1734fe1ec4b 3027
vpcola 0:a1734fe1ec4b 3028 /** @defgroup IRQ_STATUS2_Register
vpcola 0:a1734fe1ec4b 3029 * @{
vpcola 0:a1734fe1ec4b 3030 */
vpcola 0:a1734fe1ec4b 3031
vpcola 0:a1734fe1ec4b 3032 /**
vpcola 0:a1734fe1ec4b 3033 * \brief IRQ_STATUS2 registers
vpcola 0:a1734fe1ec4b 3034 * \code
vpcola 0:a1734fe1ec4b 3035 * Default value: 0x00
vpcola 0:a1734fe1ec4b 3036 * Read Write
vpcola 0:a1734fe1ec4b 3037 *
vpcola 0:a1734fe1ec4b 3038 * 7:0 INT_STATUS2: IRQ status, if the correspondent bit is set and IRQ has been generated (according to the next table)
vpcola 0:a1734fe1ec4b 3039 *
vpcola 0:a1734fe1ec4b 3040 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 3041 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 3042 * 16 | READY state in steady condition14
vpcola 0:a1734fe1ec4b 3043 * 17 | STANDBY state switching in progress
vpcola 0:a1734fe1ec4b 3044 * 18 | Low battery level
vpcola 0:a1734fe1ec4b 3045 * 19 | Power-On reset
vpcola 0:a1734fe1ec4b 3046 * 20 | Brown-Out event
vpcola 0:a1734fe1ec4b 3047 * 21 | LOCK state in steady condition
vpcola 0:a1734fe1ec4b 3048 * 22 | PM start-up timer expiration
vpcola 0:a1734fe1ec4b 3049 * 23 | XO settling timeout
vpcola 0:a1734fe1ec4b 3050 * \endcode
vpcola 0:a1734fe1ec4b 3051 */
vpcola 0:a1734fe1ec4b 3052
vpcola 0:a1734fe1ec4b 3053 #define IRQ_STATUS2_BASE ((uint8_t)0xFB) /*!< IRQ Events(RR, split into 4 registers) */
vpcola 0:a1734fe1ec4b 3054
vpcola 0:a1734fe1ec4b 3055 #define IRQ_STATUS2_TX_FIFO_ALMOST_EMPTY ((uint8_t)0x01) /*!< IRQ: TX FIFO almost empty */
vpcola 0:a1734fe1ec4b 3056 #define IRQ_STATUS2_RX_FIFO_ALMOST_FULL ((uint8_t)0x02) /*!< IRQ: RX FIFO almost full */
vpcola 0:a1734fe1ec4b 3057 #define IRQ_STATUS2_RX_FIFO_ALMOST_EMPTY ((uint8_t)0x04) /*!< IRQ: RX FIFO almost empty */
vpcola 0:a1734fe1ec4b 3058 #define IRQ_STATUS2_MAX_BO_CCA_REACH ((uint8_t)0x08) /*!< IRQ: Max number of back-off during CCA */
vpcola 0:a1734fe1ec4b 3059 #define IRQ_STATUS2_VALID_PREAMBLE ((uint8_t)0x10) /*!< IRQ: Valid preamble detected */
vpcola 0:a1734fe1ec4b 3060 #define IRQ_STATUS2_VALID_SYNC ((uint8_t)0x20) /*!< IRQ: Sync word detected */
vpcola 0:a1734fe1ec4b 3061 #define IRQ_STATUS2_RSSI_ABOVE_TH ((uint8_t)(0x40)) /*!< IRQ: RSSI above threshold */
vpcola 0:a1734fe1ec4b 3062 #define IRQ_STATUS2_WKUP_TOUT_LDC ((uint8_t)(0x80)) /*!< IRQ: Wake-up timeout in LDC mode */
vpcola 0:a1734fe1ec4b 3063
vpcola 0:a1734fe1ec4b 3064 /**
vpcola 0:a1734fe1ec4b 3065 * @}
vpcola 0:a1734fe1ec4b 3066 */
vpcola 0:a1734fe1ec4b 3067
vpcola 0:a1734fe1ec4b 3068 /** @defgroup IRQ_STATUS3_Register
vpcola 0:a1734fe1ec4b 3069 * @{
vpcola 0:a1734fe1ec4b 3070 */
vpcola 0:a1734fe1ec4b 3071
vpcola 0:a1734fe1ec4b 3072 /**
vpcola 0:a1734fe1ec4b 3073 * \brief IRQ_STATUS3 registers
vpcola 0:a1734fe1ec4b 3074 * \code
vpcola 0:a1734fe1ec4b 3075 * Default value: 0x00
vpcola 0:a1734fe1ec4b 3076 * Read Write
vpcola 0:a1734fe1ec4b 3077 *
vpcola 0:a1734fe1ec4b 3078 * 7:0 INT_STATUS3: IRQ status, if the correspondent bit is set and IRQ has been generated (according to the next table)
vpcola 0:a1734fe1ec4b 3079 *
vpcola 0:a1734fe1ec4b 3080 * Bit | Events Group Interrupt Event
vpcola 0:a1734fe1ec4b 3081 * -------------------------------------------------------
vpcola 0:a1734fe1ec4b 3082 * 24 | SYNTH locking timeout
vpcola 0:a1734fe1ec4b 3083 * 25 | SYNTH calibration start-up time
vpcola 0:a1734fe1ec4b 3084 * 26 | SYNTH calibration timeout
vpcola 0:a1734fe1ec4b 3085 * 27 | TX circuitry start-up time
vpcola 0:a1734fe1ec4b 3086 * 28 | RX circuitry start-up time
vpcola 0:a1734fe1ec4b 3087 * 29 | RX operation timeout
vpcola 0:a1734fe1ec4b 3088 * 30 | Others AES End–of –Operation
vpcola 0:a1734fe1ec4b 3089 * 31 | Reserved
vpcola 0:a1734fe1ec4b 3090 * \endcode
vpcola 0:a1734fe1ec4b 3091 */
vpcola 0:a1734fe1ec4b 3092 #define IRQ_STATUS3_BASE ((uint8_t)0xFA) /*!< IRQ Events(RR, split into 4 registers) */
vpcola 0:a1734fe1ec4b 3093
vpcola 0:a1734fe1ec4b 3094 #define IRQ_STATUS3_RX_DATA_READY ((uint8_t)0x01) /*!< IRQ: RX data ready */
vpcola 0:a1734fe1ec4b 3095 #define IRQ_STATUS3_RX_DATA_DISC ((uint8_t)0x02) /*!< IRQ: RX data discarded (upon filtering) */
vpcola 0:a1734fe1ec4b 3096 #define IRQ_STATUS3_TX_DATA_SENT ((uint8_t)0x04) /*!< IRQ: TX data sent */
vpcola 0:a1734fe1ec4b 3097 #define IRQ_STATUS3_MAX_RE_TX_REACH ((uint8_t)0x08) /*!< IRQ: Max re-TX reached */
vpcola 0:a1734fe1ec4b 3098 #define IRQ_STATUS3_CRC_ERROR ((uint8_t)0x10) /*!< IRQ: CRC error */
vpcola 0:a1734fe1ec4b 3099 #define IRQ_STATUS3_TX_FIFO_ERROR ((uint8_t)0x20) /*!< IRQ: TX FIFO underflow/overflow error */
vpcola 0:a1734fe1ec4b 3100 #define IRQ_STATUS3_RX_FIFO_ERROR ((uint8_t)0x40) /*!< IRQ: RX FIFO underflow/overflow error */
vpcola 0:a1734fe1ec4b 3101 #define IRQ_STATUS3_TX_FIFO_ALMOST_FULL ((uint8_t)0x80) /*!< IRQ: TX FIFO almost full */
vpcola 0:a1734fe1ec4b 3102
vpcola 0:a1734fe1ec4b 3103 /**
vpcola 0:a1734fe1ec4b 3104 * @}
vpcola 0:a1734fe1ec4b 3105 */
vpcola 0:a1734fe1ec4b 3106
vpcola 0:a1734fe1ec4b 3107 /**
vpcola 0:a1734fe1ec4b 3108 * @}
vpcola 0:a1734fe1ec4b 3109 */
vpcola 0:a1734fe1ec4b 3110
vpcola 0:a1734fe1ec4b 3111
vpcola 0:a1734fe1ec4b 3112 /** @defgroup MC_STATE_Registers
vpcola 0:a1734fe1ec4b 3113 * @{
vpcola 0:a1734fe1ec4b 3114 */
vpcola 0:a1734fe1ec4b 3115
vpcola 0:a1734fe1ec4b 3116 /** @defgroup MC_STATE1_Register
vpcola 0:a1734fe1ec4b 3117 * @{
vpcola 0:a1734fe1ec4b 3118 */
vpcola 0:a1734fe1ec4b 3119
vpcola 0:a1734fe1ec4b 3120 /**
vpcola 0:a1734fe1ec4b 3121 * \brief MC_STATE1 registers
vpcola 0:a1734fe1ec4b 3122 * \code
vpcola 0:a1734fe1ec4b 3123 * Default value: 0x50
vpcola 0:a1734fe1ec4b 3124 * Read
vpcola 0:a1734fe1ec4b 3125 *
vpcola 0:a1734fe1ec4b 3126 * 7:4 Reserved.
vpcola 0:a1734fe1ec4b 3127 *
vpcola 0:a1734fe1ec4b 3128 * 3 ANT_SELECT: Currently selected antenna
vpcola 0:a1734fe1ec4b 3129 *
vpcola 0:a1734fe1ec4b 3130 * 2 TX_FIFO_Full: 1 - TX FIFO is full
vpcola 0:a1734fe1ec4b 3131 *
vpcola 0:a1734fe1ec4b 3132 * 1 RX_FIFO_Empty: 1 - RX FIFO is empty
vpcola 0:a1734fe1ec4b 3133 *
vpcola 0:a1734fe1ec4b 3134 * 0 ERROR_LOCK: 1 - RCO calibrator error
vpcola 0:a1734fe1ec4b 3135 * \endcode
vpcola 0:a1734fe1ec4b 3136 */
vpcola 0:a1734fe1ec4b 3137 #define MC_STATE1_BASE ((uint8_t)(0xC0)) /*!< MC_STATE1 register address (see the SpiritStatus struct */
vpcola 0:a1734fe1ec4b 3138
vpcola 0:a1734fe1ec4b 3139
vpcola 0:a1734fe1ec4b 3140 /**
vpcola 0:a1734fe1ec4b 3141 * @}
vpcola 0:a1734fe1ec4b 3142 */
vpcola 0:a1734fe1ec4b 3143
vpcola 0:a1734fe1ec4b 3144
vpcola 0:a1734fe1ec4b 3145 /** @defgroup MC_STATE0_Register
vpcola 0:a1734fe1ec4b 3146 * @{
vpcola 0:a1734fe1ec4b 3147 */
vpcola 0:a1734fe1ec4b 3148
vpcola 0:a1734fe1ec4b 3149 /**
vpcola 0:a1734fe1ec4b 3150 * \brief MC_STATE0 registers
vpcola 0:a1734fe1ec4b 3151 * \code
vpcola 0:a1734fe1ec4b 3152 * Default value: 0x00
vpcola 0:a1734fe1ec4b 3153 * Read
vpcola 0:a1734fe1ec4b 3154 *
vpcola 0:a1734fe1ec4b 3155 * 7:1 STATE[6:0]: Current MC state.
vpcola 0:a1734fe1ec4b 3156 *
vpcola 0:a1734fe1ec4b 3157 * REGISTER VALUE | STATE
vpcola 0:a1734fe1ec4b 3158 * --------------------------------------------
vpcola 0:a1734fe1ec4b 3159 * 0x40 | STANDBY
vpcola 0:a1734fe1ec4b 3160 * 0x36 | SLEEP
vpcola 0:a1734fe1ec4b 3161 * 0x03 | READY
vpcola 0:a1734fe1ec4b 3162 * 0x3B | PM setup
vpcola 0:a1734fe1ec4b 3163 * 0x23 | XO settling
vpcola 0:a1734fe1ec4b 3164 * 0x53 | SYNTH setup
vpcola 0:a1734fe1ec4b 3165 * 0x1F | PROTOCOL
vpcola 0:a1734fe1ec4b 3166 * 0x4F | SYNTH calibration
vpcola 0:a1734fe1ec4b 3167 * 0x0F | LOCK
vpcola 0:a1734fe1ec4b 3168 * 0x33 | RX
vpcola 0:a1734fe1ec4b 3169 * 0x5F | TX
vpcola 0:a1734fe1ec4b 3170 *
vpcola 0:a1734fe1ec4b 3171 * 0 XO_ON: 1 - XO is operating
vpcola 0:a1734fe1ec4b 3172 * \endcode
vpcola 0:a1734fe1ec4b 3173 */
vpcola 0:a1734fe1ec4b 3174 #define MC_STATE0_BASE ((uint8_t)(0xC1)) /*!< MC_STATE0 register address. In this version ALL existing states have been inserted
vpcola 0:a1734fe1ec4b 3175 and are still to be verified */
vpcola 0:a1734fe1ec4b 3176 /**
vpcola 0:a1734fe1ec4b 3177 * @}
vpcola 0:a1734fe1ec4b 3178 */
vpcola 0:a1734fe1ec4b 3179
vpcola 0:a1734fe1ec4b 3180 /**
vpcola 0:a1734fe1ec4b 3181 * @}
vpcola 0:a1734fe1ec4b 3182 */
vpcola 0:a1734fe1ec4b 3183
vpcola 0:a1734fe1ec4b 3184 /** @defgroup Engineering-Test_Registers
vpcola 0:a1734fe1ec4b 3185 * @{
vpcola 0:a1734fe1ec4b 3186 */
vpcola 0:a1734fe1ec4b 3187
vpcola 0:a1734fe1ec4b 3188 #define SYNTH_CONFIG1_BASE ((uint8_t)(0x9E)) /*!< Synthesizier registers: M, A, K data sync on positive/negative clock edges [4],
vpcola 0:a1734fe1ec4b 3189 Enable Linearization of the charge pump [3], split time 1.75/3.45ns [2], VCO calibration window 16,32,64,128 clock cycles [1:0]*/
vpcola 0:a1734fe1ec4b 3190 #define SYNTH_CONFIG0_BASE ((uint8_t)(0x9F)) /*!< Enable DSM randomizer [7], Window width 1.2-7.5ns (Down-up) of lock detector*/
vpcola 0:a1734fe1ec4b 3191 #define VCOTH_BASE ((uint8_t)(0xA0)) /*!< Controls the threshold frequency between VCO low and VCO high [7:0]
vpcola 0:a1734fe1ec4b 3192 VCOth frequency=2*fXO*(96+VCO_TH/16), fmin=4992 MHz, fmax=5820 MHz*/
vpcola 0:a1734fe1ec4b 3193 #define PM_CONFIG2_BASE ((uint8_t)(0xA4)) /*!< Enables high current buffer on Temperature sensor, sets SMPS options */
vpcola 0:a1734fe1ec4b 3194 #define PM_CONFIG1_BASE ((uint8_t)(0xA5)) /*!< Set SMPS options */
vpcola 0:a1734fe1ec4b 3195 #define PM_CONFIG0_BASE ((uint8_t)(0xA6)) /*!< Set SMPS options */
vpcola 0:a1734fe1ec4b 3196 #define VCO_CONFIG_BASE ((uint8_t)(0xA1)) /*!< Set VCO current [5:2]part and [1:0] part */
vpcola 0:a1734fe1ec4b 3197 #define XO_CONFIG_BASE ((uint8_t)(0xA7)) /*!< Clock management options from XO to digital part */
vpcola 0:a1734fe1ec4b 3198
vpcola 0:a1734fe1ec4b 3199 #define XO_RCO_TEST_BASE ((uint8_t)(0xB4)) /*!< Test of XO and RCO */
vpcola 0:a1734fe1ec4b 3200
vpcola 0:a1734fe1ec4b 3201 /**
vpcola 0:a1734fe1ec4b 3202 * @}
vpcola 0:a1734fe1ec4b 3203 */
vpcola 0:a1734fe1ec4b 3204
vpcola 0:a1734fe1ec4b 3205
vpcola 0:a1734fe1ec4b 3206 /** @addtogroup Commands
vpcola 0:a1734fe1ec4b 3207 * @{
vpcola 0:a1734fe1ec4b 3208 */
vpcola 0:a1734fe1ec4b 3209
vpcola 0:a1734fe1ec4b 3210 #define COMMAND_TX ((uint8_t)(0x60)) /*!< Start to transmit; valid only from READY */
vpcola 0:a1734fe1ec4b 3211 #define COMMAND_RX ((uint8_t)(0x61)) /*!< Start to receive; valid only from READY */
vpcola 0:a1734fe1ec4b 3212 #define COMMAND_READY ((uint8_t)(0x62)) /*!< Go to READY; valid only from STANDBY or SLEEP or LOCK */
vpcola 0:a1734fe1ec4b 3213 #define COMMAND_STANDBY ((uint8_t)(0x63)) /*!< Go to STANDBY; valid only from READY */
vpcola 0:a1734fe1ec4b 3214 #define COMMAND_SLEEP ((uint8_t)(0x64)) /*!< Go to SLEEP; valid only from READY */
vpcola 0:a1734fe1ec4b 3215 #define COMMAND_LOCKRX ((uint8_t)(0x65)) /*!< Go to LOCK state by using the RX configuration of the synth; valid only from READY */
vpcola 0:a1734fe1ec4b 3216 #define COMMAND_LOCKTX ((uint8_t)(0x66)) /*!< Go to LOCK state by using the TX configuration of the synth; valid only from READY */
vpcola 0:a1734fe1ec4b 3217 #define COMMAND_SABORT ((uint8_t)(0x67)) /*!< Force exit form TX or RX states and go to READY state; valid only from TX or RX */
vpcola 0:a1734fe1ec4b 3218 #define COMMAND_LDC_RELOAD ((uint8_t)(0x68)) /*!< LDC Mode: Reload the LDC timer with the value stored in the LDC_PRESCALER / COUNTER
vpcola 0:a1734fe1ec4b 3219 registers; valid from all states */
vpcola 0:a1734fe1ec4b 3220 #define COMMAND_SEQUENCE_UPDATE ((uint8_t)(0x69)) /*!< Autoretransmission: Reload the Packet sequence counter with the value stored in the PROTOCOL[2] register
vpcola 0:a1734fe1ec4b 3221 valid from all states */
vpcola 0:a1734fe1ec4b 3222 #define COMMAND_AES_ENC ((uint8_t)(0x6A)) /*!< AES: Start the encryption routine; valid from all states; valid from all states */
vpcola 0:a1734fe1ec4b 3223 #define COMMAND_AES_KEY ((uint8_t)(0x6B)) /*!< AES: Start the procedure to compute the key for the decryption; valid from all states */
vpcola 0:a1734fe1ec4b 3224 #define COMMAND_AES_DEC ((uint8_t)(0x6C)) /*!< AES: Start the decryption routine using the current key; valid from all states */
vpcola 0:a1734fe1ec4b 3225 #define COMMAND_AES_KEY_DEC ((uint8_t)(0x6D)) /*!< AES: Compute the key and start the decryption; valid from all states */
vpcola 0:a1734fe1ec4b 3226 #define COMMAND_SRES ((uint8_t)(0x70)) /*!< Reset of all digital part, except SPI registers */
vpcola 0:a1734fe1ec4b 3227 #define COMMAND_FLUSHRXFIFO ((uint8_t)(0x71)) /*!< Clean the RX FIFO; valid from all states */
vpcola 0:a1734fe1ec4b 3228 #define COMMAND_FLUSHTXFIFO ((uint8_t)(0x72)) /*!< Clean the TX FIFO; valid from all states */
vpcola 0:a1734fe1ec4b 3229
vpcola 0:a1734fe1ec4b 3230 /**
vpcola 0:a1734fe1ec4b 3231 * @}
vpcola 0:a1734fe1ec4b 3232 */
vpcola 0:a1734fe1ec4b 3233
vpcola 0:a1734fe1ec4b 3234 /**
vpcola 0:a1734fe1ec4b 3235 * @}
vpcola 0:a1734fe1ec4b 3236 */
vpcola 0:a1734fe1ec4b 3237
vpcola 0:a1734fe1ec4b 3238 #ifdef __cplusplus
vpcola 0:a1734fe1ec4b 3239 }
vpcola 0:a1734fe1ec4b 3240 #endif
vpcola 0:a1734fe1ec4b 3241
vpcola 0:a1734fe1ec4b 3242 #endif
vpcola 0:a1734fe1ec4b 3243
vpcola 0:a1734fe1ec4b 3244 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/