mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Committer:
shaoziyang
Date:
Sat Sep 13 14:25:46 2014 +0000
Revision:
323:9e901b0a5aa1
Parent:
237:f3da66175598
test with CLOCK_SETUP = 0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 237:f3da66175598 1 /**
mbed_official 237:f3da66175598 2 ******************************************************************************
mbed_official 237:f3da66175598 3 * @file stm32f3xx_hal_crc.h
mbed_official 237:f3da66175598 4 * @author MCD Application Team
mbed_official 237:f3da66175598 5 * @version V1.0.1
mbed_official 237:f3da66175598 6 * @date 18-June-2014
mbed_official 237:f3da66175598 7 * @brief Header file of CRC HAL module.
mbed_official 237:f3da66175598 8 ******************************************************************************
mbed_official 237:f3da66175598 9 * @attention
mbed_official 237:f3da66175598 10 *
mbed_official 237:f3da66175598 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
mbed_official 237:f3da66175598 12 *
mbed_official 237:f3da66175598 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 237:f3da66175598 14 * are permitted provided that the following conditions are met:
mbed_official 237:f3da66175598 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 237:f3da66175598 16 * this list of conditions and the following disclaimer.
mbed_official 237:f3da66175598 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 237:f3da66175598 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 237:f3da66175598 19 * and/or other materials provided with the distribution.
mbed_official 237:f3da66175598 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 237:f3da66175598 21 * may be used to endorse or promote products derived from this software
mbed_official 237:f3da66175598 22 * without specific prior written permission.
mbed_official 237:f3da66175598 23 *
mbed_official 237:f3da66175598 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 237:f3da66175598 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 237:f3da66175598 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 237:f3da66175598 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 237:f3da66175598 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 237:f3da66175598 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 237:f3da66175598 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 237:f3da66175598 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 237:f3da66175598 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 237:f3da66175598 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 237:f3da66175598 34 *
mbed_official 237:f3da66175598 35 ******************************************************************************
mbed_official 237:f3da66175598 36 */
mbed_official 237:f3da66175598 37
mbed_official 237:f3da66175598 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 237:f3da66175598 39 #ifndef __STM32F3xx_HAL_CRC_H
mbed_official 237:f3da66175598 40 #define __STM32F3xx_HAL_CRC_H
mbed_official 237:f3da66175598 41
mbed_official 237:f3da66175598 42 #ifdef __cplusplus
mbed_official 237:f3da66175598 43 extern "C" {
mbed_official 237:f3da66175598 44 #endif
mbed_official 237:f3da66175598 45
mbed_official 237:f3da66175598 46 /* Includes ------------------------------------------------------------------*/
mbed_official 237:f3da66175598 47 #include "stm32f3xx_hal_def.h"
mbed_official 237:f3da66175598 48
mbed_official 237:f3da66175598 49 /** @addtogroup STM32F3xx_HAL_Driver
mbed_official 237:f3da66175598 50 * @{
mbed_official 237:f3da66175598 51 */
mbed_official 237:f3da66175598 52
mbed_official 237:f3da66175598 53 /** @addtogroup CRC
mbed_official 237:f3da66175598 54 * @{
mbed_official 237:f3da66175598 55 */
mbed_official 237:f3da66175598 56
mbed_official 237:f3da66175598 57 /* Exported types ------------------------------------------------------------*/
mbed_official 237:f3da66175598 58
mbed_official 237:f3da66175598 59 /**
mbed_official 237:f3da66175598 60 * @brief CRC HAL State Structure definition
mbed_official 237:f3da66175598 61 */
mbed_official 237:f3da66175598 62 typedef enum
mbed_official 237:f3da66175598 63 {
mbed_official 237:f3da66175598 64 HAL_CRC_STATE_RESET = 0x00, /*!< CRC not yet initialized or disabled */
mbed_official 237:f3da66175598 65 HAL_CRC_STATE_READY = 0x01, /*!< CRC initialized and ready for use */
mbed_official 237:f3da66175598 66 HAL_CRC_STATE_BUSY = 0x02, /*!< CRC internal process is ongoing */
mbed_official 237:f3da66175598 67 HAL_CRC_STATE_TIMEOUT = 0x03, /*!< CRC timeout state */
mbed_official 237:f3da66175598 68 HAL_CRC_STATE_ERROR = 0x04 /*!< CRC error state */
mbed_official 237:f3da66175598 69 }HAL_CRC_StateTypeDef;
mbed_official 237:f3da66175598 70
mbed_official 237:f3da66175598 71
mbed_official 237:f3da66175598 72 /**
mbed_official 237:f3da66175598 73 * @brief CRC Init Structure definition
mbed_official 237:f3da66175598 74 */
mbed_official 237:f3da66175598 75 typedef struct
mbed_official 237:f3da66175598 76 {
mbed_official 237:f3da66175598 77 uint8_t DefaultPolynomialUse; /*!< This parameter is a value of @ref CRC_Default_Polynomial and indicates if default polynomial is used.
mbed_official 237:f3da66175598 78 If set to DEFAULT_POLYNOMIAL_ENABLE, resort to default
mbed_official 237:f3da66175598 79 X^32 + X^26 + X^23 + X^22 + X^16 + X^12 + X^11 + X^10 +X^8 + X^7 + X^5 + X^4 + X^2+ X +1.
mbed_official 237:f3da66175598 80 In that case, there is no need to set GeneratingPolynomial field.
mbed_official 237:f3da66175598 81 If otherwise set to DEFAULT_POLYNOMIAL_DISABLE, GeneratingPolynomial and CRCLength fields must be set */
mbed_official 237:f3da66175598 82
mbed_official 237:f3da66175598 83 uint8_t DefaultInitValueUse; /*!< This parameter is a value of @ref CRC_Default_InitValue_Use and indicates if default init value is used.
mbed_official 237:f3da66175598 84 If set to DEFAULT_INIT_VALUE_ENABLE, resort to default
mbed_official 237:f3da66175598 85 0xFFFFFFFF value. In that case, there is no need to set InitValue field.
mbed_official 237:f3da66175598 86 If otherwise set to DEFAULT_INIT_VALUE_DISABLE, InitValue field must be set */
mbed_official 237:f3da66175598 87
mbed_official 237:f3da66175598 88 uint32_t GeneratingPolynomial; /*!< Set CRC generating polynomial. 7, 8, 16 or 32-bit long value for a polynomial degree
mbed_official 237:f3da66175598 89 respectively equal to 7, 8, 16 or 32. This field is written in normal representation,
mbed_official 237:f3da66175598 90 e.g., for a polynomial of degree 7, X^7 + X^6 + X^5 + X^2 + 1 is written 0x65.
mbed_official 237:f3da66175598 91 No need to specify it if DefaultPolynomialUse is set to DEFAULT_POLYNOMIAL_ENABLE */
mbed_official 237:f3da66175598 92
mbed_official 237:f3da66175598 93 uint32_t CRCLength; /*!< This parameter is a value of @ref CRC_Polynomial_Size_Definitions and indicates CRC length.
mbed_official 237:f3da66175598 94 Value can be either one of
mbed_official 237:f3da66175598 95 CRC_POLYLENGTH_32B (32-bit CRC)
mbed_official 237:f3da66175598 96 CRC_POLYLENGTH_16B (16-bit CRC)
mbed_official 237:f3da66175598 97 CRC_POLYLENGTH_8B (8-bit CRC)
mbed_official 237:f3da66175598 98 CRC_POLYLENGTH_7B (7-bit CRC) */
mbed_official 237:f3da66175598 99
mbed_official 237:f3da66175598 100 uint32_t InitValue; /*!< Init value to initiate CRC computation. No need to specify it if DefaultInitValueUse
mbed_official 237:f3da66175598 101 is set to DEFAULT_INIT_VALUE_ENABLE */
mbed_official 237:f3da66175598 102
mbed_official 237:f3da66175598 103 uint32_t InputDataInversionMode; /*!< This parameter is a value of @ref CRCEx_Input_Data_Inversion and specifies input data inversion mode.
mbed_official 237:f3da66175598 104 Can be either one of the following values
mbed_official 237:f3da66175598 105 CRC_INPUTDATA_INVERSION_NONE no input data inversion
mbed_official 237:f3da66175598 106 CRC_INPUTDATA_INVERSION_BYTE byte-wise inversion, 0x1A2B3C4D becomes 0x58D43CB2
mbed_official 237:f3da66175598 107 CRC_INPUTDATA_INVERSION_HALFWORD halfword-wise inversion, 0x1A2B3C4D becomes 0xD458B23C
mbed_official 237:f3da66175598 108 CRC_INPUTDATA_INVERSION_WORD word-wise inversion, 0x1A2B3C4D becomes 0xB23CD458 */
mbed_official 237:f3da66175598 109
mbed_official 237:f3da66175598 110 uint32_t OutputDataInversionMode; /*!< This parameter is a value of @ref CRCEx_Output_Data_Inversion and specifies output data (i.e. CRC) inversion mode.
mbed_official 237:f3da66175598 111 Can be either
mbed_official 237:f3da66175598 112 CRC_OUTPUTDATA_INVERSION_DISABLED no CRC inversion, or
mbed_official 237:f3da66175598 113 CRC_OUTPUTDATA_INVERSION_ENABLED CRC 0x11223344 is converted into 0x22CC4488 */
mbed_official 237:f3da66175598 114 }CRC_InitTypeDef;
mbed_official 237:f3da66175598 115
mbed_official 237:f3da66175598 116
mbed_official 237:f3da66175598 117 /**
mbed_official 237:f3da66175598 118 * @brief CRC Handle Structure definition
mbed_official 237:f3da66175598 119 */
mbed_official 237:f3da66175598 120 typedef struct
mbed_official 237:f3da66175598 121 {
mbed_official 237:f3da66175598 122 CRC_TypeDef *Instance; /*!< Register base address */
mbed_official 237:f3da66175598 123
mbed_official 237:f3da66175598 124 CRC_InitTypeDef Init; /*!< CRC configuration parameters */
mbed_official 237:f3da66175598 125
mbed_official 237:f3da66175598 126 HAL_LockTypeDef Lock; /*!< CRC Locking object */
mbed_official 237:f3da66175598 127
mbed_official 237:f3da66175598 128 __IO HAL_CRC_StateTypeDef State; /*!< CRC communication state */
mbed_official 237:f3da66175598 129
mbed_official 237:f3da66175598 130 uint32_t InputDataFormat; /*!< This parameter is a value of @ref CRC_Input_Buffer_Format and specifies input data format.
mbed_official 237:f3da66175598 131 Can be either
mbed_official 237:f3da66175598 132 CRC_INPUTDATA_FORMAT_BYTES input data is a stream of bytes (8-bit data)
mbed_official 237:f3da66175598 133 CRC_INPUTDATA_FORMAT_HALFWORDS input data is a stream of half-words (16-bit data)
mbed_official 237:f3da66175598 134 CRC_INPUTDATA_FORMAT_WORDS input data is a stream of words (32-bits data)
mbed_official 237:f3da66175598 135 Note that constant CRC_INPUT_FORMAT_UNDEFINED is defined but an initialization error
mbed_official 237:f3da66175598 136 must occur if InputBufferFormat is not one of the three values listed above */
mbed_official 237:f3da66175598 137 }CRC_HandleTypeDef;
mbed_official 237:f3da66175598 138
mbed_official 237:f3da66175598 139 /* Exported constants --------------------------------------------------------*/
mbed_official 237:f3da66175598 140
mbed_official 237:f3da66175598 141 /** @defgroup CRC_Default_Polynomial_Value Default CRC generating polynomial
mbed_official 237:f3da66175598 142 * @{
mbed_official 237:f3da66175598 143 */
mbed_official 237:f3da66175598 144 #define DEFAULT_CRC32_POLY 0x04C11DB7
mbed_official 237:f3da66175598 145
mbed_official 237:f3da66175598 146 /**
mbed_official 237:f3da66175598 147 * @}
mbed_official 237:f3da66175598 148 */
mbed_official 237:f3da66175598 149
mbed_official 237:f3da66175598 150 /** @defgroup CRC_Default_InitValue Default CRC computation initialization value
mbed_official 237:f3da66175598 151 * @{
mbed_official 237:f3da66175598 152 */
mbed_official 237:f3da66175598 153 #define DEFAULT_CRC_INITVALUE 0xFFFFFFFF
mbed_official 237:f3da66175598 154
mbed_official 237:f3da66175598 155 /**
mbed_official 237:f3da66175598 156 * @}
mbed_official 237:f3da66175598 157 */
mbed_official 237:f3da66175598 158
mbed_official 237:f3da66175598 159 /** @defgroup CRC_Default_Polynomial Indicates whether or not default polynomial is used
mbed_official 237:f3da66175598 160 * @{
mbed_official 237:f3da66175598 161 */
mbed_official 237:f3da66175598 162 #define DEFAULT_POLYNOMIAL_ENABLE ((uint8_t)0x00)
mbed_official 237:f3da66175598 163 #define DEFAULT_POLYNOMIAL_DISABLE ((uint8_t)0x01)
mbed_official 237:f3da66175598 164
mbed_official 237:f3da66175598 165 #define IS_DEFAULT_POLYNOMIAL(DEFAULT) (((DEFAULT) == DEFAULT_POLYNOMIAL_ENABLE) || \
mbed_official 237:f3da66175598 166 ((DEFAULT) == DEFAULT_POLYNOMIAL_DISABLE))
mbed_official 237:f3da66175598 167
mbed_official 237:f3da66175598 168 /**
mbed_official 237:f3da66175598 169 * @}
mbed_official 237:f3da66175598 170 */
mbed_official 237:f3da66175598 171
mbed_official 237:f3da66175598 172 /** @defgroup CRC_Default_InitValue_Use Indicates whether or not default init value is used
mbed_official 237:f3da66175598 173 * @{
mbed_official 237:f3da66175598 174 */
mbed_official 237:f3da66175598 175 #define DEFAULT_INIT_VALUE_ENABLE ((uint8_t)0x00)
mbed_official 237:f3da66175598 176 #define DEFAULT_INIT_VALUE_DISABLE ((uint8_t)0x01)
mbed_official 237:f3da66175598 177
mbed_official 237:f3da66175598 178 #define IS_DEFAULT_INIT_VALUE(VALUE) (((VALUE) == DEFAULT_INIT_VALUE_ENABLE) || \
mbed_official 237:f3da66175598 179 ((VALUE) == DEFAULT_INIT_VALUE_DISABLE))
mbed_official 237:f3da66175598 180
mbed_official 237:f3da66175598 181 /**
mbed_official 237:f3da66175598 182 * @}
mbed_official 237:f3da66175598 183 */
mbed_official 237:f3da66175598 184
mbed_official 237:f3da66175598 185 /** @defgroup CRC_Polynomial_Sizes Polynomial sizes to configure the IP
mbed_official 237:f3da66175598 186 * @{
mbed_official 237:f3da66175598 187 */
mbed_official 237:f3da66175598 188 #define CRC_POLYLENGTH_32B ((uint32_t)0x00000000)
mbed_official 237:f3da66175598 189 #define CRC_POLYLENGTH_16B ((uint32_t)CRC_CR_POLYSIZE_0)
mbed_official 237:f3da66175598 190 #define CRC_POLYLENGTH_8B ((uint32_t)CRC_CR_POLYSIZE_1)
mbed_official 237:f3da66175598 191 #define CRC_POLYLENGTH_7B ((uint32_t)CRC_CR_POLYSIZE)
mbed_official 237:f3da66175598 192 #define IS_CRC_POL_LENGTH(LENGTH) (((LENGTH) == CRC_POLYLENGTH_32B) || \
mbed_official 237:f3da66175598 193 ((LENGTH) == CRC_POLYLENGTH_16B) || \
mbed_official 237:f3da66175598 194 ((LENGTH) == CRC_POLYLENGTH_8B) || \
mbed_official 237:f3da66175598 195 ((LENGTH) == CRC_POLYLENGTH_7B))
mbed_official 237:f3da66175598 196 /**
mbed_official 237:f3da66175598 197 * @}
mbed_official 237:f3da66175598 198 */
mbed_official 237:f3da66175598 199
mbed_official 237:f3da66175598 200 /** @defgroup CRC_Polynomial_Size_Definitions CRC polynomial possible sizes actual definitions
mbed_official 237:f3da66175598 201 * @{
mbed_official 237:f3da66175598 202 */
mbed_official 237:f3da66175598 203 #define HAL_CRC_LENGTH_32B 32
mbed_official 237:f3da66175598 204 #define HAL_CRC_LENGTH_16B 16
mbed_official 237:f3da66175598 205 #define HAL_CRC_LENGTH_8B 8
mbed_official 237:f3da66175598 206 #define HAL_CRC_LENGTH_7B 7
mbed_official 237:f3da66175598 207
mbed_official 237:f3da66175598 208 /**
mbed_official 237:f3da66175598 209 * @}
mbed_official 237:f3da66175598 210 */
mbed_official 237:f3da66175598 211
mbed_official 237:f3da66175598 212 /** @defgroup CRC_Input_Buffer_Format Input Buffer Format
mbed_official 237:f3da66175598 213 * @{
mbed_official 237:f3da66175598 214 */
mbed_official 237:f3da66175598 215 /* WARNING: CRC_INPUT_FORMAT_UNDEFINED is created for reference purposes but
mbed_official 237:f3da66175598 216 * an error is triggered in HAL_CRC_Init() if InputDataFormat field is set
mbed_official 237:f3da66175598 217 * to CRC_INPUT_FORMAT_UNDEFINED: the format MUST be defined by the user for
mbed_official 237:f3da66175598 218 * the CRC APIs to provide a correct result */
mbed_official 237:f3da66175598 219 #define CRC_INPUTDATA_FORMAT_UNDEFINED ((uint32_t)0x00000000)
mbed_official 237:f3da66175598 220 #define CRC_INPUTDATA_FORMAT_BYTES ((uint32_t)0x00000001)
mbed_official 237:f3da66175598 221 #define CRC_INPUTDATA_FORMAT_HALFWORDS ((uint32_t)0x00000002)
mbed_official 237:f3da66175598 222 #define CRC_INPUTDATA_FORMAT_WORDS ((uint32_t)0x00000003)
mbed_official 237:f3da66175598 223
mbed_official 237:f3da66175598 224 #define IS_CRC_INPUTDATA_FORMAT(FORMAT) (((FORMAT) == CRC_INPUTDATA_FORMAT_BYTES) || \
mbed_official 237:f3da66175598 225 ((FORMAT) == CRC_INPUTDATA_FORMAT_HALFWORDS) || \
mbed_official 237:f3da66175598 226 ((FORMAT) == CRC_INPUTDATA_FORMAT_WORDS))
mbed_official 237:f3da66175598 227 /**
mbed_official 237:f3da66175598 228 * @}
mbed_official 237:f3da66175598 229 */
mbed_official 237:f3da66175598 230
mbed_official 237:f3da66175598 231 /* Exported macros -----------------------------------------------------------*/
mbed_official 237:f3da66175598 232
mbed_official 237:f3da66175598 233 /** @defgroup CRC_Exported_Macros
mbed_official 237:f3da66175598 234 * @{
mbed_official 237:f3da66175598 235 */
mbed_official 237:f3da66175598 236
mbed_official 237:f3da66175598 237 /** @brief Reset CRC handle state
mbed_official 237:f3da66175598 238 * @param __HANDLE__: CRC handle.
mbed_official 237:f3da66175598 239 * @retval None
mbed_official 237:f3da66175598 240 */
mbed_official 237:f3da66175598 241 #define __HAL_CRC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CRC_STATE_RESET)
mbed_official 237:f3da66175598 242
mbed_official 237:f3da66175598 243 /**
mbed_official 237:f3da66175598 244 * @brief Reset CRC Data Register.
mbed_official 237:f3da66175598 245 * @param __HANDLE__: CRC handle
mbed_official 237:f3da66175598 246 * @retval None.
mbed_official 237:f3da66175598 247 */
mbed_official 237:f3da66175598 248 #define __HAL_CRC_DR_RESET(__HANDLE__) ((__HANDLE__)->Instance->CR |= CRC_CR_RESET)
mbed_official 237:f3da66175598 249
mbed_official 237:f3da66175598 250 /**
mbed_official 237:f3da66175598 251 * @brief Set CRC INIT non-default value
mbed_official 237:f3da66175598 252 * @param __HANDLE__ : CRC handle
mbed_official 237:f3da66175598 253 * @param __INIT__ : 32-bit initial value
mbed_official 237:f3da66175598 254 * @retval None.
mbed_official 237:f3da66175598 255 */
mbed_official 237:f3da66175598 256 #define __HAL_CRC_INITIALCRCVALUE_CONFIG(__HANDLE__, __INIT__) ((__HANDLE__)->Instance->INIT = (__INIT__))
mbed_official 237:f3da66175598 257
mbed_official 237:f3da66175598 258 /**
mbed_official 237:f3da66175598 259 * @}
mbed_official 237:f3da66175598 260 */
mbed_official 237:f3da66175598 261
mbed_official 237:f3da66175598 262
mbed_official 237:f3da66175598 263 /* Include CRC HAL Extension module */
mbed_official 237:f3da66175598 264 #include "stm32f3xx_hal_crc_ex.h"
mbed_official 237:f3da66175598 265
mbed_official 237:f3da66175598 266 /* Exported functions --------------------------------------------------------*/
mbed_official 237:f3da66175598 267
mbed_official 237:f3da66175598 268 /* Initialization and de-initialization functions ****************************/
mbed_official 237:f3da66175598 269 HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc);
mbed_official 237:f3da66175598 270 HAL_StatusTypeDef HAL_CRC_DeInit (CRC_HandleTypeDef *hcrc);
mbed_official 237:f3da66175598 271 void HAL_CRC_MspInit(CRC_HandleTypeDef *hcrc);
mbed_official 237:f3da66175598 272 void HAL_CRC_MspDeInit(CRC_HandleTypeDef *hcrc);
mbed_official 237:f3da66175598 273 /* Aliases for inter STM32 series compatibility */
mbed_official 237:f3da66175598 274 #define HAL_CRC_Input_Data_Reverse HAL_CRCEx_Input_Data_Reverse
mbed_official 237:f3da66175598 275 #define HAL_CRC_Output_Data_Reverse HAL_CRCEx_Output_Data_Reverse
mbed_official 237:f3da66175598 276
mbed_official 237:f3da66175598 277 /* Peripheral Control functions ***********************************************/
mbed_official 237:f3da66175598 278 uint32_t HAL_CRC_Accumulate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength);
mbed_official 237:f3da66175598 279 uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength);
mbed_official 237:f3da66175598 280
mbed_official 237:f3da66175598 281 /* Peripheral State and Error functions ***************************************/
mbed_official 237:f3da66175598 282 HAL_CRC_StateTypeDef HAL_CRC_GetState(CRC_HandleTypeDef *hcrc);
mbed_official 237:f3da66175598 283
mbed_official 237:f3da66175598 284 /**
mbed_official 237:f3da66175598 285 * @}
mbed_official 237:f3da66175598 286 */
mbed_official 237:f3da66175598 287
mbed_official 237:f3da66175598 288 /**
mbed_official 237:f3da66175598 289 * @}
mbed_official 237:f3da66175598 290 */
mbed_official 237:f3da66175598 291
mbed_official 237:f3da66175598 292 #ifdef __cplusplus
mbed_official 237:f3da66175598 293 }
mbed_official 237:f3da66175598 294 #endif
mbed_official 237:f3da66175598 295
mbed_official 237:f3da66175598 296 #endif /* __STM32F3xx_HAL_CRC_H */
mbed_official 237:f3da66175598 297
mbed_official 237:f3da66175598 298 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/