Version of easy-connect with the u-blox cellular platforms C027 and C030 added.
Embed:
(wiki syntax)
Show/hide line numbers
SPIRIT_PktCommon.h
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file SPIRIT_PktCommon.h 00004 * @author VMA division - AMS 00005 * @version 3.2.2 00006 * @date 08-July-2015 00007 * @brief Configuration and management of the common features of SPIRIT packets. 00008 * 00009 * @details 00010 * 00011 * This module provides all the common functions and definitions used by the 00012 * packets modules. 00013 * Here are also defined all the generic enumeration types that are redefined 00014 * in the specific packets modules, but every enumeration value is referred 00015 * to this module. So the user who wants to configure the preamble of a Basic, 00016 * or a STack packet has to use the enumeration values defined here. 00017 * 00018 * <b>Example:</b> 00019 * @code 00020 * 00021 * ... 00022 * 00023 * SpiritPktBasicSetPreambleLength(PKT_PREAMBLE_LENGTH_18BYTES); 00024 * 00025 * ... 00026 * 00027 * @endcode 00028 * 00029 * @note Is recommended for the user to not use these API directly 00030 * importing this module in his application. 00031 * 00032 * 00033 * @attention 00034 * 00035 * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> 00036 * 00037 * Redistribution and use in source and binary forms, with or without modification, 00038 * are permitted provided that the following conditions are met: 00039 * 1. Redistributions of source code must retain the above copyright notice, 00040 * this list of conditions and the following disclaimer. 00041 * 2. Redistributions in binary form must reproduce the above copyright notice, 00042 * this list of conditions and the following disclaimer in the documentation 00043 * and/or other materials provided with the distribution. 00044 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00045 * may be used to endorse or promote products derived from this software 00046 * without specific prior written permission. 00047 * 00048 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00049 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00050 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00051 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00052 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00053 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00054 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00055 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00056 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00057 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00058 * 00059 ****************************************************************************** 00060 */ 00061 00062 /* Define to prevent recursive inclusion -------------------------------------*/ 00063 #ifndef __SPIRIT_PKT_COMMON_H 00064 #define __SPIRIT_PKT_COMMON_H 00065 00066 /* Includes ------------------------------------------------------------------*/ 00067 00068 #include "SPIRIT_Regs.h" 00069 #include "SPIRIT_Types.h" 00070 00071 00072 #ifdef __cplusplus 00073 extern "C" { 00074 #endif 00075 00076 00077 00078 /** 00079 * @addtogroup SPIRIT_Libraries 00080 * @{ 00081 */ 00082 00083 00084 /** 00085 * @defgroup SPIRIT_PktCommon Pkt Common 00086 * @brief Configuration and management of the common features of SPIRIT packets. 00087 * @details See the file <i>@ref SPIRIT_PktCommon.h</i> for more details. 00088 * @{ 00089 */ 00090 00091 /** 00092 * @defgroup PktCommon_Exported_Types Pkt Common Exported Types 00093 * @{ 00094 */ 00095 00096 00097 /** 00098 * @brief Preamble length in bytes enumeration. 00099 */ 00100 typedef enum 00101 { 00102 PKT_PREAMBLE_LENGTH_01BYTE = 0x00, /*!< Preamble length 1 byte*/ 00103 PKT_PREAMBLE_LENGTH_02BYTES = 0x08, /*!< Preamble length 2 bytes */ 00104 PKT_PREAMBLE_LENGTH_03BYTES = 0x10, /*!< Preamble length 3 bytes */ 00105 PKT_PREAMBLE_LENGTH_04BYTES = 0x18, /*!< Preamble length 4 bytes */ 00106 PKT_PREAMBLE_LENGTH_05BYTES = 0x20, /*!< Preamble length 5 bytes */ 00107 PKT_PREAMBLE_LENGTH_06BYTES = 0x28, /*!< Preamble length 6 bytes */ 00108 PKT_PREAMBLE_LENGTH_07BYTES = 0x30, /*!< Preamble length 7 bytes */ 00109 PKT_PREAMBLE_LENGTH_08BYTES = 0x38, /*!< Preamble length 8 bytes */ 00110 PKT_PREAMBLE_LENGTH_09BYTES = 0x40, /*!< Preamble length 9 bytes */ 00111 PKT_PREAMBLE_LENGTH_10BYTES = 0x48, /*!< Preamble length 10 bytes */ 00112 PKT_PREAMBLE_LENGTH_11BYTES = 0x50, /*!< Preamble length 11 bytes */ 00113 PKT_PREAMBLE_LENGTH_12BYTES = 0x58, /*!< Preamble length 12 bytes */ 00114 PKT_PREAMBLE_LENGTH_13BYTES = 0x60, /*!< Preamble length 13 bytes */ 00115 PKT_PREAMBLE_LENGTH_14BYTES = 0x68, /*!< Preamble length 14 bytes */ 00116 PKT_PREAMBLE_LENGTH_15BYTES = 0x70, /*!< Preamble length 15 bytes */ 00117 PKT_PREAMBLE_LENGTH_16BYTES = 0x78, /*!< Preamble length 16 bytes */ 00118 PKT_PREAMBLE_LENGTH_17BYTES = 0x80, /*!< Preamble length 17 bytes */ 00119 PKT_PREAMBLE_LENGTH_18BYTES = 0x88, /*!< Preamble length 18 bytes */ 00120 PKT_PREAMBLE_LENGTH_19BYTES = 0x90, /*!< Preamble length 19 bytes */ 00121 PKT_PREAMBLE_LENGTH_20BYTES = 0x98, /*!< Preamble length 20 bytes */ 00122 PKT_PREAMBLE_LENGTH_21BYTES = 0xA0, /*!< Preamble length 21 bytes */ 00123 PKT_PREAMBLE_LENGTH_22BYTES = 0xA8, /*!< Preamble length 22 bytes */ 00124 PKT_PREAMBLE_LENGTH_23BYTES = 0xB0, /*!< Preamble length 23 bytes */ 00125 PKT_PREAMBLE_LENGTH_24BYTES = 0xB8, /*!< Preamble length 24 bytes */ 00126 PKT_PREAMBLE_LENGTH_25BYTES = 0xC0, /*!< Preamble length 25 bytes */ 00127 PKT_PREAMBLE_LENGTH_26BYTES = 0xC8, /*!< Preamble length 26 bytes */ 00128 PKT_PREAMBLE_LENGTH_27BYTES = 0xD0, /*!< Preamble length 27 bytes */ 00129 PKT_PREAMBLE_LENGTH_28BYTES = 0xD8, /*!< Preamble length 28 bytes */ 00130 PKT_PREAMBLE_LENGTH_29BYTES = 0xE0, /*!< Preamble length 29 bytes */ 00131 PKT_PREAMBLE_LENGTH_30BYTES = 0xE8, /*!< Preamble length 30 bytes */ 00132 PKT_PREAMBLE_LENGTH_31BYTES = 0xF0, /*!< Preamble length 31 bytes */ 00133 PKT_PREAMBLE_LENGTH_32BYTES = 0xF8 /*!< Preamble length 32 bytes */ 00134 00135 }PktPreambleLength; 00136 00137 #define IS_PKT_PREAMBLE_LENGTH(LENGTH) ((LENGTH == PKT_PREAMBLE_LENGTH_01BYTE) || \ 00138 (LENGTH == PKT_PREAMBLE_LENGTH_02BYTES) || \ 00139 (LENGTH == PKT_PREAMBLE_LENGTH_03BYTES) || \ 00140 (LENGTH == PKT_PREAMBLE_LENGTH_04BYTES) || \ 00141 (LENGTH == PKT_PREAMBLE_LENGTH_05BYTES) || \ 00142 (LENGTH == PKT_PREAMBLE_LENGTH_06BYTES) || \ 00143 (LENGTH == PKT_PREAMBLE_LENGTH_07BYTES) || \ 00144 (LENGTH == PKT_PREAMBLE_LENGTH_08BYTES) || \ 00145 (LENGTH == PKT_PREAMBLE_LENGTH_09BYTES) || \ 00146 (LENGTH == PKT_PREAMBLE_LENGTH_10BYTES) || \ 00147 (LENGTH == PKT_PREAMBLE_LENGTH_11BYTES) || \ 00148 (LENGTH == PKT_PREAMBLE_LENGTH_12BYTES) || \ 00149 (LENGTH == PKT_PREAMBLE_LENGTH_13BYTES) || \ 00150 (LENGTH == PKT_PREAMBLE_LENGTH_14BYTES) || \ 00151 (LENGTH == PKT_PREAMBLE_LENGTH_15BYTES) || \ 00152 (LENGTH == PKT_PREAMBLE_LENGTH_16BYTES) || \ 00153 (LENGTH == PKT_PREAMBLE_LENGTH_17BYTES) || \ 00154 (LENGTH == PKT_PREAMBLE_LENGTH_18BYTES) || \ 00155 (LENGTH == PKT_PREAMBLE_LENGTH_19BYTES) || \ 00156 (LENGTH == PKT_PREAMBLE_LENGTH_20BYTES) || \ 00157 (LENGTH == PKT_PREAMBLE_LENGTH_21BYTES) || \ 00158 (LENGTH == PKT_PREAMBLE_LENGTH_22BYTES) || \ 00159 (LENGTH == PKT_PREAMBLE_LENGTH_23BYTES) || \ 00160 (LENGTH == PKT_PREAMBLE_LENGTH_24BYTES) || \ 00161 (LENGTH == PKT_PREAMBLE_LENGTH_25BYTES) || \ 00162 (LENGTH == PKT_PREAMBLE_LENGTH_26BYTES) || \ 00163 (LENGTH == PKT_PREAMBLE_LENGTH_27BYTES) || \ 00164 (LENGTH == PKT_PREAMBLE_LENGTH_28BYTES) || \ 00165 (LENGTH == PKT_PREAMBLE_LENGTH_29BYTES) || \ 00166 (LENGTH == PKT_PREAMBLE_LENGTH_30BYTES) || \ 00167 (LENGTH == PKT_PREAMBLE_LENGTH_31BYTES) || \ 00168 (LENGTH == PKT_PREAMBLE_LENGTH_32BYTES)) 00169 00170 00171 00172 /** 00173 * @brief Sync length in bytes enumeration. 00174 */ 00175 typedef enum 00176 { 00177 PKT_SYNC_LENGTH_1BYTE = 0x00, /*!< Sync length 1 byte*/ 00178 PKT_SYNC_LENGTH_2BYTES = 0x02, /*!< Sync length 2 bytes*/ 00179 PKT_SYNC_LENGTH_3BYTES = 0x04, /*!< Sync length 3 bytes */ 00180 PKT_SYNC_LENGTH_4BYTES = 0x06 , /*!< Sync length 4 bytes */ 00181 00182 }PktSyncLength; 00183 00184 #define IS_PKT_SYNC_LENGTH(LENGTH) ((LENGTH == PKT_SYNC_LENGTH_1BYTE) || \ 00185 (LENGTH == PKT_SYNC_LENGTH_2BYTES)|| \ 00186 (LENGTH == PKT_SYNC_LENGTH_3BYTES)|| \ 00187 (LENGTH == PKT_SYNC_LENGTH_4BYTES)) 00188 00189 00190 00191 /** 00192 * @brief CRC length in bytes enumeration. 00193 */ 00194 typedef enum 00195 { 00196 PKT_NO_CRC = 0x00, /*!< No CRC */ 00197 PKT_CRC_MODE_8BITS = 0x20, /*!< CRC length 8 bits - poly: 0x07 */ 00198 PKT_CRC_MODE_16BITS_1 = 0x40, /*!< CRC length 16 bits - poly: 0x8005 */ 00199 PKT_CRC_MODE_16BITS_2 = 0x60, /*!< CRC length 16 bits - poly: 0x1021 */ 00200 PKT_CRC_MODE_24BITS = 0x80, /*!< CRC length 24 bits - poly: 0x864CFB */ 00201 00202 }PktCrcMode; 00203 00204 #define IS_PKT_CRC_MODE(MODE) ((MODE == PKT_NO_CRC) || \ 00205 (MODE == PKT_CRC_MODE_8BITS) || \ 00206 (MODE == PKT_CRC_MODE_16BITS_1) || \ 00207 (MODE == PKT_CRC_MODE_16BITS_2) || \ 00208 (MODE == PKT_CRC_MODE_24BITS)) 00209 00210 00211 00212 /** 00213 * @brief Fixed or variable payload length enumeration. 00214 */ 00215 typedef enum 00216 { 00217 PKT_LENGTH_FIX = 0x00, /*!< Fixed payload length */ 00218 PKT_LENGTH_VAR = 0x01 /*!< Variable payload length */ 00219 00220 }PktFixVarLength; 00221 00222 #define IS_PKT_FIX_VAR_LENGTH(LENGTH) ((LENGTH == PKT_LENGTH_FIX) || \ 00223 (LENGTH == PKT_LENGTH_VAR)) 00224 00225 00226 /** 00227 * @brief Control length in bytes enumeration for SPIRIT packets. 00228 */ 00229 typedef enum 00230 { 00231 PKT_CONTROL_LENGTH_0BYTES = 0x00, /*!< Control length 0 byte*/ 00232 PKT_CONTROL_LENGTH_1BYTE, /*!< Control length 1 byte*/ 00233 PKT_CONTROL_LENGTH_2BYTES, /*!< Control length 2 bytes*/ 00234 PKT_CONTROL_LENGTH_3BYTES, /*!< Control length 3 bytes*/ 00235 PKT_CONTROL_LENGTH_4BYTES /*!< Control length 4 bytes*/ 00236 00237 }PktControlLength; 00238 00239 #define IS_PKT_CONTROL_LENGTH(LENGTH) ((LENGTH == PKT_CONTROL_LENGTH_0BYTES) || \ 00240 (LENGTH == PKT_CONTROL_LENGTH_1BYTE) || \ 00241 (LENGTH == PKT_CONTROL_LENGTH_2BYTES) || \ 00242 (LENGTH == PKT_CONTROL_LENGTH_3BYTES) || \ 00243 (LENGTH == PKT_CONTROL_LENGTH_4BYTES)) 00244 00245 /** 00246 * @brief Sync words enumeration for SPIRIT packets. 00247 */ 00248 typedef enum 00249 { 00250 PKT_SYNC_WORD_1=0x01, /*!< Index of the 1st sync word*/ 00251 PKT_SYNC_WORD_2, /*!< Index of the 2nd sync word*/ 00252 PKT_SYNC_WORD_3, /*!< Index of the 3rd sync word*/ 00253 PKT_SYNC_WORD_4 /*!< Index of the 4th sync word*/ 00254 00255 }PktSyncX; 00256 00257 #define IS_PKT_SYNCx(WORD) ((WORD == PKT_SYNC_WORD_1) || \ 00258 (WORD == PKT_SYNC_WORD_2) || \ 00259 (WORD == PKT_SYNC_WORD_3) || \ 00260 (WORD == PKT_SYNC_WORD_4)) 00261 00262 00263 00264 /** 00265 * @brief Max retransmissions number enumeration for SPIRIT packets. 00266 */ 00267 typedef enum 00268 { 00269 PKT_DISABLE_RETX = 0x00, /*!< No retrasmissions*/ 00270 PKT_N_RETX_1 = 0x10, /*!< Max retrasmissions 1*/ 00271 PKT_N_RETX_2 = 0x20, /*!< Max retrasmissions 2*/ 00272 PKT_N_RETX_3 = 0x30, /*!< Max retrasmissions 3*/ 00273 PKT_N_RETX_4 = 0x40, /*!< Max retrasmissions 4*/ 00274 PKT_N_RETX_5 = 0x50, /*!< Max retrasmissions 5*/ 00275 PKT_N_RETX_6 = 0x60, /*!< Max retrasmissions 6*/ 00276 PKT_N_RETX_7 = 0x70, /*!< Max retrasmissions 7*/ 00277 PKT_N_RETX_8 = 0x80, /*!< Max retrasmissions 8*/ 00278 PKT_N_RETX_9 = 0x90, /*!< Max retrasmissions 9*/ 00279 PKT_N_RETX_10 = 0xA0, /*!< Max retrasmissions 10*/ 00280 PKT_N_RETX_11 = 0xB0, /*!< Max retrasmissions 11*/ 00281 PKT_N_RETX_12 = 0xC0, /*!< Max retrasmissions 12*/ 00282 PKT_N_RETX_13 = 0xD0, /*!< Max retrasmissions 13*/ 00283 PKT_N_RETX_14 = 0xE0, /*!< Max retrasmissions 14*/ 00284 PKT_N_RETX_15 = 0xF0 /*!< Max retrasmissions 15*/ 00285 00286 }PktNMaxReTx; 00287 00288 #define IS_PKT_NMAX_RETX(N_RETX) ((N_RETX == PKT_DISABLE_RETX) || \ 00289 (N_RETX == PKT_N_RETX_1) || \ 00290 (N_RETX == PKT_N_RETX_2) || \ 00291 (N_RETX == PKT_N_RETX_3) || \ 00292 (N_RETX == PKT_N_RETX_4) || \ 00293 (N_RETX == PKT_N_RETX_5) || \ 00294 (N_RETX == PKT_N_RETX_6) || \ 00295 (N_RETX == PKT_N_RETX_7) || \ 00296 (N_RETX == PKT_N_RETX_8) || \ 00297 (N_RETX == PKT_N_RETX_9) || \ 00298 (N_RETX == PKT_N_RETX_10) || \ 00299 (N_RETX == PKT_N_RETX_11) || \ 00300 (N_RETX == PKT_N_RETX_12) || \ 00301 (N_RETX == PKT_N_RETX_13) || \ 00302 (N_RETX == PKT_N_RETX_14) || \ 00303 (N_RETX == PKT_N_RETX_15)) 00304 00305 00306 /** 00307 *@} 00308 */ 00309 00310 00311 /** 00312 * @defgroup PktCommon_Exported_Constants Pkt Common Exported Constants 00313 * @{ 00314 */ 00315 00316 #define IS_PKT_LENGTH_WIDTH_BITS(BITS) (BITS<=16) 00317 #define IS_PKT_SEQ_NUMBER_RELOAD(SEQN) (SEQN<=3) 00318 00319 /** 00320 *@} 00321 */ 00322 00323 00324 /** 00325 * @defgroup PktCommon_Exported_Macros Pkt Common Exported Macros 00326 * @{ 00327 */ 00328 00329 00330 /** 00331 * @brief Macro used to compute the lower part of the packet length, to write in the PCKTLEN0 register 00332 * @param nLength Length of the packet payload. 00333 * This parameter is an uint16_t. 00334 * @retval None. 00335 */ 00336 #define BUILD_PCKTLEN0(nLength) ((nLength) & 0xFF) 00337 00338 00339 /** 00340 * @brief Macro used to compute the upper part of the packet length, to write the PCKTLEN1 register 00341 * @param nLength Length of the packet payload. 00342 * This parameter is an uint16_t. 00343 * @retval None. 00344 */ 00345 #define BUILD_PCKTLEN1(nLength) ((nLength) >> 8) 00346 00347 /** 00348 *@} 00349 */ 00350 00351 00352 /** 00353 * @defgroup PktCommon_Exported_Functions Pkt Common Exported Functions 00354 * @{ 00355 */ 00356 00357 void SpiritPktCommonSetControlLength(PktControlLength xControlLength); 00358 uint8_t SpiritPktCommonGetControlLength(void); 00359 void SpiritPktCommonSetPreambleLength(PktPreambleLength xPreambleLength); 00360 uint8_t SpiritPktCommonGetPreambleLength(void); 00361 void SpiritPktCommonSetSyncLength(PktSyncLength xSyncLength); 00362 uint8_t SpiritPktCommonGetSyncLength(void); 00363 void SpiritPktCommonSetFixVarLength(PktFixVarLength xFixVarLength); 00364 void SpiritPktCommonFilterOnCrc(SpiritFunctionalState xNewState); 00365 SpiritFunctionalState SpiritPktCommonGetFilterOnCrc(void); 00366 void SpiritPktCommonSetCrcMode(PktCrcMode xCrcLength); 00367 PktCrcMode SpiritPktCommonGetCrcMode(void); 00368 void SpiritPktCommonWhitening(SpiritFunctionalState xNewState); 00369 void SpiritPktCommonFec(SpiritFunctionalState xNewState); 00370 void SpiritPktCommonSetSyncxWord(PktSyncX xSyncX, uint8_t cSyncWord); 00371 uint8_t SpiritPktCommonGetSyncxWord(PktSyncX xSyncX); 00372 void SpiritPktCommonSetSyncWords(uint32_t lSyncWords, PktSyncLength xSyncLength); 00373 uint32_t SpiritPktCommonGetSyncWords(PktSyncLength xSyncLength); 00374 uint8_t SpiritPktCommonGetVarLengthWidth(void); 00375 void SpiritPktCommonSetDestinationAddress(uint8_t cAddress); 00376 uint8_t SpiritPktCommonGetTransmittedDestAddress(void); 00377 void SpiritPktCommonSetMyAddress(uint8_t cAddress); 00378 uint8_t SpiritPktCommonGetMyAddress(void); 00379 void SpiritPktCommonSetBroadcastAddress(uint8_t cAddress); 00380 uint8_t SpiritPktCommonGetBroadcastAddress(void); 00381 SpiritFunctionalState SpiritPktCommonGetTxAckRequest(void); 00382 void SpiritPktCommonSetMulticastAddress(uint8_t cAddress); 00383 uint8_t SpiritPktCommonGetMulticastAddress(void); 00384 void SpiritPktCommonSetCtrlMask(uint32_t lMask); 00385 uint32_t SpiritPktCommonGetCtrlMask(void); 00386 void SpiritPktCommonSetCtrlReference(uint32_t lReference); 00387 uint32_t SpiritPktCommonGetCtrlReference(void); 00388 void SpiritPktCommonSetTransmittedCtrlField(uint32_t lField); 00389 uint32_t SpiritPktCommonGetTransmittedCtrlField(void); 00390 void SpiritPktCommonFilterOnMyAddress(SpiritFunctionalState xNewState); 00391 void SpiritPktCommonFilterOnMulticastAddress(SpiritFunctionalState xNewState); 00392 void SpiritPktCommonFilterOnBroadcastAddress(SpiritFunctionalState xNewState); 00393 SpiritFunctionalState SpiritPktCommonGetFilterOnMyAddress(void); 00394 SpiritFunctionalState SpiritPktCommonGetFilterOnMulticastAddress(void); 00395 SpiritFunctionalState SpiritPktCommonGetFilterOnBroadcastAddress(void); 00396 uint8_t SpiritPktCommonGetReceivedDestAddress(void); 00397 uint32_t SpiritPktCommonGetReceivedCtrlField(void); 00398 void SpiritPktCommonGetReceivedCrcField(uint8_t* cCrcFieldVect); 00399 void SpiritPktCommonAutoAck(SpiritFunctionalState xAutoAck,SpiritFunctionalState xPiggybacking); 00400 void SpiritPktCommonRequireAck(SpiritFunctionalState xRequireAck); 00401 void SpiritPktCommonSetTransmittedSeqNumberReload(uint8_t cSeqNumberReload); 00402 void SpiritPktCommonSetNMaxReTx(PktNMaxReTx xNMaxReTx); 00403 uint8_t SpiritPktCommonGetNMaxReTx(void); 00404 uint8_t SpiritPktCommonGetReceivedDestAddress(void); 00405 uint8_t SpiritPktCommonGetReceivedSourceAddress(void); 00406 uint8_t SpiritPktCommonGetReceivedSeqNumber(void); 00407 uint8_t SpiritPktCommonGetReceivedNackRx(void); 00408 uint8_t SpiritPktCommonGetTransmittedSeqNumber(void); 00409 uint8_t SpiritPktCommonGetNReTx(void); 00410 void SpiritPktCommonFilterOnControlField(SpiritFunctionalState xNewState); 00411 SpiritFunctionalState SpiritPktCommonGetFilterOnControlField(void); 00412 00413 /** 00414 *@} 00415 */ 00416 00417 /** 00418 *@} 00419 */ 00420 00421 00422 /** 00423 *@} 00424 */ 00425 00426 #ifdef __cplusplus 00427 } 00428 #endif 00429 00430 #endif 00431 00432 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 15:14:30 by 1.7.2