Fork of my MQTTGateway

Dependencies:   mbed-http

Committer:
vpcola
Date:
Sat Apr 08 14:45:51 2017 +0000
Revision:
0:f1d3878b8dd9
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vpcola 0:f1d3878b8dd9 1 /**
vpcola 0:f1d3878b8dd9 2 ******************************************************************************
vpcola 0:f1d3878b8dd9 3 * @file SPIRIT_Commands.h
vpcola 0:f1d3878b8dd9 4 * @author VMA division - AMS
vpcola 0:f1d3878b8dd9 5 * @version 3.2.2
vpcola 0:f1d3878b8dd9 6 * @date 08-July-2015
vpcola 0:f1d3878b8dd9 7 * @brief Management of SPIRIT Commands.
vpcola 0:f1d3878b8dd9 8 *
vpcola 0:f1d3878b8dd9 9 * @details
vpcola 0:f1d3878b8dd9 10 *
vpcola 0:f1d3878b8dd9 11 * In this module can be found all the API used to strobe commands to
vpcola 0:f1d3878b8dd9 12 * Spirit.
vpcola 0:f1d3878b8dd9 13 * Every command strobe is an SPI transaction with a specific command code.
vpcola 0:f1d3878b8dd9 14 *
vpcola 0:f1d3878b8dd9 15 * <b>Example:</b>
vpcola 0:f1d3878b8dd9 16 * @code
vpcola 0:f1d3878b8dd9 17 * ...
vpcola 0:f1d3878b8dd9 18 *
vpcola 0:f1d3878b8dd9 19 * SpiritCmdStrobeRx();
vpcola 0:f1d3878b8dd9 20 *
vpcola 0:f1d3878b8dd9 21 * ...
vpcola 0:f1d3878b8dd9 22 * @endcode
vpcola 0:f1d3878b8dd9 23 *
vpcola 0:f1d3878b8dd9 24 *
vpcola 0:f1d3878b8dd9 25 * @attention
vpcola 0:f1d3878b8dd9 26 *
vpcola 0:f1d3878b8dd9 27 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
vpcola 0:f1d3878b8dd9 28 *
vpcola 0:f1d3878b8dd9 29 * Redistribution and use in source and binary forms, with or without modification,
vpcola 0:f1d3878b8dd9 30 * are permitted provided that the following conditions are met:
vpcola 0:f1d3878b8dd9 31 * 1. Redistributions of source code must retain the above copyright notice,
vpcola 0:f1d3878b8dd9 32 * this list of conditions and the following disclaimer.
vpcola 0:f1d3878b8dd9 33 * 2. Redistributions in binary form must reproduce the above copyright notice,
vpcola 0:f1d3878b8dd9 34 * this list of conditions and the following disclaimer in the documentation
vpcola 0:f1d3878b8dd9 35 * and/or other materials provided with the distribution.
vpcola 0:f1d3878b8dd9 36 * 3. Neither the name of STMicroelectronics nor the names of its contributors
vpcola 0:f1d3878b8dd9 37 * may be used to endorse or promote products derived from this software
vpcola 0:f1d3878b8dd9 38 * without specific prior written permission.
vpcola 0:f1d3878b8dd9 39 *
vpcola 0:f1d3878b8dd9 40 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
vpcola 0:f1d3878b8dd9 41 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
vpcola 0:f1d3878b8dd9 42 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
vpcola 0:f1d3878b8dd9 43 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
vpcola 0:f1d3878b8dd9 44 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
vpcola 0:f1d3878b8dd9 45 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
vpcola 0:f1d3878b8dd9 46 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
vpcola 0:f1d3878b8dd9 47 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
vpcola 0:f1d3878b8dd9 48 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
vpcola 0:f1d3878b8dd9 49 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
vpcola 0:f1d3878b8dd9 50 *
vpcola 0:f1d3878b8dd9 51 ******************************************************************************
vpcola 0:f1d3878b8dd9 52 */
vpcola 0:f1d3878b8dd9 53
vpcola 0:f1d3878b8dd9 54 /* Define to prevent recursive inclusion -------------------------------------*/
vpcola 0:f1d3878b8dd9 55 #ifndef __SPIRIT_COMMANDS_H
vpcola 0:f1d3878b8dd9 56 #define __SPIRIT_COMMANDS_H
vpcola 0:f1d3878b8dd9 57
vpcola 0:f1d3878b8dd9 58
vpcola 0:f1d3878b8dd9 59 /* Includes ------------------------------------------------------------------*/
vpcola 0:f1d3878b8dd9 60
vpcola 0:f1d3878b8dd9 61 #include "SPIRIT_Regs.h"
vpcola 0:f1d3878b8dd9 62 #include "SPIRIT_Types.h"
vpcola 0:f1d3878b8dd9 63
vpcola 0:f1d3878b8dd9 64
vpcola 0:f1d3878b8dd9 65 #ifdef __cplusplus
vpcola 0:f1d3878b8dd9 66 extern "C" {
vpcola 0:f1d3878b8dd9 67 #endif
vpcola 0:f1d3878b8dd9 68
vpcola 0:f1d3878b8dd9 69
vpcola 0:f1d3878b8dd9 70 /**
vpcola 0:f1d3878b8dd9 71 * @addtogroup SPIRIT_Libraries
vpcola 0:f1d3878b8dd9 72 * @{
vpcola 0:f1d3878b8dd9 73 */
vpcola 0:f1d3878b8dd9 74
vpcola 0:f1d3878b8dd9 75
vpcola 0:f1d3878b8dd9 76 /**
vpcola 0:f1d3878b8dd9 77 * @defgroup SPIRIT_Commands Commands
vpcola 0:f1d3878b8dd9 78 * @brief Management of SPIRIT Commands.
vpcola 0:f1d3878b8dd9 79 * @details See the file <i>@ref SPIRIT_Commands.h</i> for more details.
vpcola 0:f1d3878b8dd9 80 * @{
vpcola 0:f1d3878b8dd9 81 */
vpcola 0:f1d3878b8dd9 82
vpcola 0:f1d3878b8dd9 83 /**
vpcola 0:f1d3878b8dd9 84 * @defgroup Commands_Exported_Types Commands Exported Types
vpcola 0:f1d3878b8dd9 85 * @{
vpcola 0:f1d3878b8dd9 86 */
vpcola 0:f1d3878b8dd9 87
vpcola 0:f1d3878b8dd9 88 /**
vpcola 0:f1d3878b8dd9 89 * @brief SPIRIT Commands codes enumeration
vpcola 0:f1d3878b8dd9 90 */
vpcola 0:f1d3878b8dd9 91 typedef enum
vpcola 0:f1d3878b8dd9 92 {
vpcola 0:f1d3878b8dd9 93 CMD_TX = COMMAND_TX, /*!< Start to transmit; valid only from READY */
vpcola 0:f1d3878b8dd9 94 CMD_RX = COMMAND_RX, /*!< Start to receive; valid only from READY */
vpcola 0:f1d3878b8dd9 95 CMD_READY = COMMAND_READY, /*!< Go to READY; valid only from STANDBY or SLEEP or LOCK */
vpcola 0:f1d3878b8dd9 96 CMD_STANDBY = COMMAND_STANDBY, /*!< Go to STANDBY; valid only from READY */
vpcola 0:f1d3878b8dd9 97 CMD_SLEEP = COMMAND_SLEEP, /*!< Go to SLEEP; valid only from READY */
vpcola 0:f1d3878b8dd9 98 CMD_LOCKRX = COMMAND_LOCKRX, /*!< Go to LOCK state by using the RX configuration of the synth; valid only from READY */
vpcola 0:f1d3878b8dd9 99 CMD_LOCKTX = COMMAND_LOCKTX, /*!< Go to LOCK state by using the TX configuration of the synth; valid only from READY */
vpcola 0:f1d3878b8dd9 100 CMD_SABORT = COMMAND_SABORT, /*!< Force exit form TX or RX states and go to READY state; valid only from TX or RX */
vpcola 0:f1d3878b8dd9 101 CMD_LDC_RELOAD = COMMAND_LDC_RELOAD, /*!< LDC Mode: Reload the LDC timer with the value stored in the LDC_PRESCALER / COUNTER registers; valid from all states */
vpcola 0:f1d3878b8dd9 102 CMD_SEQUENCE_UPDATE = COMMAND_SEQUENCE_UPDATE, /*!< Autoretransmission: Reload the Packet sequence counter with the value stored in the PROTOCOL[2] register valid from all states */
vpcola 0:f1d3878b8dd9 103 CMD_AES_ENC = COMMAND_AES_ENC, /*!< Commands: Start the encryption routine; valid from all states; valid from all states */
vpcola 0:f1d3878b8dd9 104 CMD_AES_KEY = COMMAND_AES_KEY, /*!< Commands: Start the procedure to compute the key for the decryption; valid from all states */
vpcola 0:f1d3878b8dd9 105 CMD_AES_DEC = COMMAND_AES_DEC, /*!< Commands: Start the decryption routine using the current key; valid from all states */
vpcola 0:f1d3878b8dd9 106 CMD_AES_KEY_DEC = COMMAND_AES_KEY_DEC, /*!< Commands: Compute the key and start the decryption; valid from all states */
vpcola 0:f1d3878b8dd9 107 CMD_SRES = COMMAND_SRES, /*!< Reset of all digital part, except SPI registers */
vpcola 0:f1d3878b8dd9 108 CMD_FLUSHRXFIFO = COMMAND_FLUSHRXFIFO, /*!< Clean the RX FIFO; valid from all states */
vpcola 0:f1d3878b8dd9 109 CMD_FLUSHTXFIFO = COMMAND_FLUSHTXFIFO, /*!< Clean the TX FIFO; valid from all states */
vpcola 0:f1d3878b8dd9 110 } SpiritCmd;
vpcola 0:f1d3878b8dd9 111
vpcola 0:f1d3878b8dd9 112 #define IS_SPIRIT_CMD(CMD) (CMD == CMD_TX || \
vpcola 0:f1d3878b8dd9 113 CMD == CMD_RX || \
vpcola 0:f1d3878b8dd9 114 CMD == CMD_READY || \
vpcola 0:f1d3878b8dd9 115 CMD == CMD_STANDBY || \
vpcola 0:f1d3878b8dd9 116 CMD == CMD_SLEEP || \
vpcola 0:f1d3878b8dd9 117 CMD == CMD_LOCKRX || \
vpcola 0:f1d3878b8dd9 118 CMD == CMD_LOCKTX || \
vpcola 0:f1d3878b8dd9 119 CMD == CMD_SABORT || \
vpcola 0:f1d3878b8dd9 120 CMD == CMD_LDC_RELOAD || \
vpcola 0:f1d3878b8dd9 121 CMD == CMD_SEQUENCE_UPDATE || \
vpcola 0:f1d3878b8dd9 122 CMD == CMD_AES_ENC || \
vpcola 0:f1d3878b8dd9 123 CMD == CMD_AES_KEY || \
vpcola 0:f1d3878b8dd9 124 CMD == CMD_AES_DEC || \
vpcola 0:f1d3878b8dd9 125 CMD == CMD_AES_KEY_DEC || \
vpcola 0:f1d3878b8dd9 126 CMD == CMD_SRES || \
vpcola 0:f1d3878b8dd9 127 CMD == CMD_FLUSHRXFIFO || \
vpcola 0:f1d3878b8dd9 128 CMD == CMD_FLUSHTXFIFO \
vpcola 0:f1d3878b8dd9 129 )
vpcola 0:f1d3878b8dd9 130
vpcola 0:f1d3878b8dd9 131 /**
vpcola 0:f1d3878b8dd9 132 * @}
vpcola 0:f1d3878b8dd9 133 */
vpcola 0:f1d3878b8dd9 134
vpcola 0:f1d3878b8dd9 135
vpcola 0:f1d3878b8dd9 136 /**
vpcola 0:f1d3878b8dd9 137 * @defgroup Commands_Exported_Constants Commands Exported Constants
vpcola 0:f1d3878b8dd9 138 * @{
vpcola 0:f1d3878b8dd9 139 */
vpcola 0:f1d3878b8dd9 140
vpcola 0:f1d3878b8dd9 141
vpcola 0:f1d3878b8dd9 142 /**
vpcola 0:f1d3878b8dd9 143 * @}
vpcola 0:f1d3878b8dd9 144 */
vpcola 0:f1d3878b8dd9 145
vpcola 0:f1d3878b8dd9 146
vpcola 0:f1d3878b8dd9 147 /**
vpcola 0:f1d3878b8dd9 148 * @defgroup Commands_Exported_Macros Commands Exported Macros
vpcola 0:f1d3878b8dd9 149 * @{
vpcola 0:f1d3878b8dd9 150 */
vpcola 0:f1d3878b8dd9 151
vpcola 0:f1d3878b8dd9 152 /**
vpcola 0:f1d3878b8dd9 153 * @brief Sends the TX command to SPIRIT. Start to transmit.
vpcola 0:f1d3878b8dd9 154 * @param None.
vpcola 0:f1d3878b8dd9 155 * @retval None.
vpcola 0:f1d3878b8dd9 156 */
vpcola 0:f1d3878b8dd9 157 #define SpiritCmdStrobeTx() {SpiritManagementWaCmdStrobeTx(); \
vpcola 0:f1d3878b8dd9 158 SpiritCmdStrobeCommand(CMD_TX);}
vpcola 0:f1d3878b8dd9 159
vpcola 0:f1d3878b8dd9 160
vpcola 0:f1d3878b8dd9 161 /**
vpcola 0:f1d3878b8dd9 162 * @brief Sends the RX command to SPIRIT. Start to receive.
vpcola 0:f1d3878b8dd9 163 * @param None.
vpcola 0:f1d3878b8dd9 164 * @retval None.
vpcola 0:f1d3878b8dd9 165 */
vpcola 0:f1d3878b8dd9 166 #define SpiritCmdStrobeRx() {SpiritManagementWaCmdStrobeRx(); \
vpcola 0:f1d3878b8dd9 167 SpiritCmdStrobeCommand(CMD_RX); \
vpcola 0:f1d3878b8dd9 168 }
vpcola 0:f1d3878b8dd9 169
vpcola 0:f1d3878b8dd9 170
vpcola 0:f1d3878b8dd9 171 /**
vpcola 0:f1d3878b8dd9 172 * @brief Sends the Ready state command to SPIRIT. Go to READY.
vpcola 0:f1d3878b8dd9 173 * @param None.
vpcola 0:f1d3878b8dd9 174 * @retval None.
vpcola 0:f1d3878b8dd9 175 */
vpcola 0:f1d3878b8dd9 176 #define SpiritCmdStrobeReady() SpiritCmdStrobeCommand(CMD_READY)
vpcola 0:f1d3878b8dd9 177
vpcola 0:f1d3878b8dd9 178
vpcola 0:f1d3878b8dd9 179
vpcola 0:f1d3878b8dd9 180 /**
vpcola 0:f1d3878b8dd9 181 * @brief Sends the Standby command to SPIRIT. Go to STANDBY.
vpcola 0:f1d3878b8dd9 182 * @param None.
vpcola 0:f1d3878b8dd9 183 * @retval None.
vpcola 0:f1d3878b8dd9 184 */
vpcola 0:f1d3878b8dd9 185 #define SpiritCmdStrobeStandby() SpiritCmdStrobeCommand(CMD_STANDBY)
vpcola 0:f1d3878b8dd9 186
vpcola 0:f1d3878b8dd9 187
vpcola 0:f1d3878b8dd9 188
vpcola 0:f1d3878b8dd9 189 /**
vpcola 0:f1d3878b8dd9 190 * @brief Sends the Sleep command to SPIRIT. Go to SLEEP.
vpcola 0:f1d3878b8dd9 191 * @param None.
vpcola 0:f1d3878b8dd9 192 * @retval None.
vpcola 0:f1d3878b8dd9 193 */
vpcola 0:f1d3878b8dd9 194 #define SpiritCmdStrobeSleep() SpiritCmdStrobeCommand(CMD_SLEEP)
vpcola 0:f1d3878b8dd9 195
vpcola 0:f1d3878b8dd9 196
vpcola 0:f1d3878b8dd9 197
vpcola 0:f1d3878b8dd9 198 /**
vpcola 0:f1d3878b8dd9 199 * @brief Sends the LOCK_RX command to SPIRIT. Go to the LOCK state by using the RX configuration of the synthesizer.
vpcola 0:f1d3878b8dd9 200 * @param None.
vpcola 0:f1d3878b8dd9 201 * @retval None.
vpcola 0:f1d3878b8dd9 202 */
vpcola 0:f1d3878b8dd9 203 #define SpiritCmdStrobeLockRx() SpiritCmdStrobeCommand(CMD_LOCKRX)
vpcola 0:f1d3878b8dd9 204
vpcola 0:f1d3878b8dd9 205
vpcola 0:f1d3878b8dd9 206
vpcola 0:f1d3878b8dd9 207 /**
vpcola 0:f1d3878b8dd9 208 * @brief Sends the LOCK_TX command to SPIRIT. Go to the LOCK state by using the TX configuration of the synthesizer.
vpcola 0:f1d3878b8dd9 209 * @param None.
vpcola 0:f1d3878b8dd9 210 * @retval None.
vpcola 0:f1d3878b8dd9 211 */
vpcola 0:f1d3878b8dd9 212 #define SpiritCmdStrobeLockTx() SpiritCmdStrobeCommand(CMD_LOCKTX)
vpcola 0:f1d3878b8dd9 213
vpcola 0:f1d3878b8dd9 214
vpcola 0:f1d3878b8dd9 215
vpcola 0:f1d3878b8dd9 216 /**
vpcola 0:f1d3878b8dd9 217 * @brief Sends the SABORT command to SPIRIT. Exit from TX or RX states and go to READY state.
vpcola 0:f1d3878b8dd9 218 * @param None.
vpcola 0:f1d3878b8dd9 219 * @retval None.
vpcola 0:f1d3878b8dd9 220 */
vpcola 0:f1d3878b8dd9 221 #define SpiritCmdStrobeSabort() SpiritCmdStrobeCommand(CMD_SABORT)
vpcola 0:f1d3878b8dd9 222
vpcola 0:f1d3878b8dd9 223
vpcola 0:f1d3878b8dd9 224 /**
vpcola 0:f1d3878b8dd9 225 * @brief Sends the LDC_RELOAD command to SPIRIT. Reload the LDC timer with the value stored in the LDC_PRESCALER / COUNTER registers.
vpcola 0:f1d3878b8dd9 226 * @param None.
vpcola 0:f1d3878b8dd9 227 * @retval None.
vpcola 0:f1d3878b8dd9 228 */
vpcola 0:f1d3878b8dd9 229 #define SpiritCmdStrobeLdcReload() SpiritCmdStrobeCommand(CMD_LDC_RELOAD)
vpcola 0:f1d3878b8dd9 230
vpcola 0:f1d3878b8dd9 231
vpcola 0:f1d3878b8dd9 232
vpcola 0:f1d3878b8dd9 233 /**
vpcola 0:f1d3878b8dd9 234 * @brief Sends the SEQUENCE_UPDATE command to SPIRIT. Reload the Packet sequence counter with the value stored in the PROTOCOL[2] register.
vpcola 0:f1d3878b8dd9 235 * @param None.
vpcola 0:f1d3878b8dd9 236 * @retval None.
vpcola 0:f1d3878b8dd9 237 */
vpcola 0:f1d3878b8dd9 238 #define SpiritCmdStrobeSequenceUpdate() SpiritCmdStrobeCommand(CMD_SEQUENCE_UPDATE)
vpcola 0:f1d3878b8dd9 239
vpcola 0:f1d3878b8dd9 240
vpcola 0:f1d3878b8dd9 241
vpcola 0:f1d3878b8dd9 242 /**
vpcola 0:f1d3878b8dd9 243 * @brief Sends the AES_ENC command to SPIRIT. Starts the encryption routine.
vpcola 0:f1d3878b8dd9 244 * @param None.
vpcola 0:f1d3878b8dd9 245 * @retval None.
vpcola 0:f1d3878b8dd9 246 */
vpcola 0:f1d3878b8dd9 247 #define SpiritCmdStrobeAesEnc() SpiritCmdStrobeCommand(CMD_AES_ENC)
vpcola 0:f1d3878b8dd9 248
vpcola 0:f1d3878b8dd9 249
vpcola 0:f1d3878b8dd9 250
vpcola 0:f1d3878b8dd9 251 /**
vpcola 0:f1d3878b8dd9 252 * @brief Sends the AES_KEY command to SPIRIT. Starts the procedure to compute the key for the decryption.
vpcola 0:f1d3878b8dd9 253 * @param None.
vpcola 0:f1d3878b8dd9 254 * @retval None.
vpcola 0:f1d3878b8dd9 255 */
vpcola 0:f1d3878b8dd9 256 #define SpiritCmdStrobeAesKey() SpiritCmdStrobeCommand(CMD_AES_KEY)
vpcola 0:f1d3878b8dd9 257
vpcola 0:f1d3878b8dd9 258
vpcola 0:f1d3878b8dd9 259
vpcola 0:f1d3878b8dd9 260 /**
vpcola 0:f1d3878b8dd9 261 * @brief Sends the AES_DEC command to SPIRIT. Starts the decryption using the current key.
vpcola 0:f1d3878b8dd9 262 * @param None.
vpcola 0:f1d3878b8dd9 263 * @retval None.
vpcola 0:f1d3878b8dd9 264 */
vpcola 0:f1d3878b8dd9 265 #define SpiritCmdStrobeAesDec() SpiritCmdStrobeCommand(CMD_AES_DEC)
vpcola 0:f1d3878b8dd9 266
vpcola 0:f1d3878b8dd9 267
vpcola 0:f1d3878b8dd9 268
vpcola 0:f1d3878b8dd9 269 /**
vpcola 0:f1d3878b8dd9 270 * @brief Sends the KEY_DEC command to SPIRIT. Computes the key derivation and start the decryption.
vpcola 0:f1d3878b8dd9 271 * @param None.
vpcola 0:f1d3878b8dd9 272 * @retval None.
vpcola 0:f1d3878b8dd9 273 */
vpcola 0:f1d3878b8dd9 274 #define SpiritCmdStrobeAesKeyDec() SpiritCmdStrobeCommand(CMD_AES_KEY_DEC)
vpcola 0:f1d3878b8dd9 275
vpcola 0:f1d3878b8dd9 276 /**
vpcola 0:f1d3878b8dd9 277 * @brief Sends the SRES command to SPIRIT. Partial reset: all digital circuit will be reset (exception for SPI only).
vpcola 0:f1d3878b8dd9 278 * @param None.
vpcola 0:f1d3878b8dd9 279 * @retval None.
vpcola 0:f1d3878b8dd9 280 */
vpcola 0:f1d3878b8dd9 281 #define SpiritCmdStrobeSres() SpiritCmdStrobeCommand(CMD_SRES)
vpcola 0:f1d3878b8dd9 282
vpcola 0:f1d3878b8dd9 283
vpcola 0:f1d3878b8dd9 284 /**
vpcola 0:f1d3878b8dd9 285 * @brief Sends the FLUSHRXFIFO command to SPIRIT. Clean the RX FIFO.
vpcola 0:f1d3878b8dd9 286 * @param None.
vpcola 0:f1d3878b8dd9 287 * @retval None.
vpcola 0:f1d3878b8dd9 288 */
vpcola 0:f1d3878b8dd9 289 #define SpiritCmdStrobeFlushRxFifo() SpiritCmdStrobeCommand(CMD_FLUSHRXFIFO)
vpcola 0:f1d3878b8dd9 290
vpcola 0:f1d3878b8dd9 291
vpcola 0:f1d3878b8dd9 292
vpcola 0:f1d3878b8dd9 293 /**
vpcola 0:f1d3878b8dd9 294 * @brief Sends the FLUSHTXFIFO command to SPIRIT. Clean the TX FIFO.
vpcola 0:f1d3878b8dd9 295 * @param None.
vpcola 0:f1d3878b8dd9 296 * @retval None.
vpcola 0:f1d3878b8dd9 297 */
vpcola 0:f1d3878b8dd9 298 #define SpiritCmdStrobeFlushTxFifo() SpiritCmdStrobeCommand(CMD_FLUSHTXFIFO)
vpcola 0:f1d3878b8dd9 299
vpcola 0:f1d3878b8dd9 300
vpcola 0:f1d3878b8dd9 301
vpcola 0:f1d3878b8dd9 302 /**
vpcola 0:f1d3878b8dd9 303 * @}
vpcola 0:f1d3878b8dd9 304 */
vpcola 0:f1d3878b8dd9 305
vpcola 0:f1d3878b8dd9 306
vpcola 0:f1d3878b8dd9 307 /**
vpcola 0:f1d3878b8dd9 308 * @defgroup Commands_Exported_Functions Commands Exported Functions
vpcola 0:f1d3878b8dd9 309 * @{
vpcola 0:f1d3878b8dd9 310 */
vpcola 0:f1d3878b8dd9 311 void SpiritCmdStrobeCommand(SpiritCmd xCommandCode);
vpcola 0:f1d3878b8dd9 312
vpcola 0:f1d3878b8dd9 313
vpcola 0:f1d3878b8dd9 314 /**
vpcola 0:f1d3878b8dd9 315 * @}
vpcola 0:f1d3878b8dd9 316 */
vpcola 0:f1d3878b8dd9 317
vpcola 0:f1d3878b8dd9 318 /**
vpcola 0:f1d3878b8dd9 319 * @}
vpcola 0:f1d3878b8dd9 320 */
vpcola 0:f1d3878b8dd9 321
vpcola 0:f1d3878b8dd9 322
vpcola 0:f1d3878b8dd9 323 /**
vpcola 0:f1d3878b8dd9 324 * @}
vpcola 0:f1d3878b8dd9 325 */
vpcola 0:f1d3878b8dd9 326
vpcola 0:f1d3878b8dd9 327
vpcola 0:f1d3878b8dd9 328
vpcola 0:f1d3878b8dd9 329
vpcola 0:f1d3878b8dd9 330 #ifdef __cplusplus
vpcola 0:f1d3878b8dd9 331 }
vpcola 0:f1d3878b8dd9 332 #endif
vpcola 0:f1d3878b8dd9 333
vpcola 0:f1d3878b8dd9 334 #endif
vpcola 0:f1d3878b8dd9 335
vpcola 0:f1d3878b8dd9 336 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/