A simple 128x32 graphical LCD program to quickstart with LCD on ARM mbed IoT Starter Kit. This requires mbed Applciation Shield with FRDM-K64F platform.

Dependencies:   C12832

Committer:
tushki7
Date:
Sun Apr 12 15:45:52 2015 +0000
Revision:
1:eb68c94a8ee5
Parent:
0:60d829a0353a
A simple 128x32 LCD program with ARM mbed IoT Starter Kit;

Who changed what in which revision?

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