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:
218:44081b78fdc2
test with CLOCK_SETUP = 0

Who changed what in which revision?

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