STM32H735xx HAL User Manual
|
CRC HAL module driver. This file provides firmware functions to manage the following functionalities of the Cyclic Redundancy Check (CRC) peripheral: + Initialization and de-initialization functions + Peripheral Control functions + Peripheral State functions. More...
#include "stm32h7xx_hal.h"
Go to the source code of this file.
Functions | |
static uint32_t | CRC_Handle_8 (CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength) |
Enter 8-bit input data to the CRC calculator. | |
static uint32_t | CRC_Handle_16 (CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength) |
Enter 16-bit input data to the CRC calculator. | |
HAL_StatusTypeDef | HAL_CRC_Init (CRC_HandleTypeDef *hcrc) |
Initialize the CRC according to the specified parameters in the CRC_InitTypeDef and create the associated handle. | |
HAL_StatusTypeDef | HAL_CRC_DeInit (CRC_HandleTypeDef *hcrc) |
DeInitialize the CRC peripheral. | |
__weak void | HAL_CRC_MspInit (CRC_HandleTypeDef *hcrc) |
Initializes the CRC MSP. | |
__weak void | HAL_CRC_MspDeInit (CRC_HandleTypeDef *hcrc) |
DeInitialize the CRC MSP. | |
uint32_t | HAL_CRC_Accumulate (CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength) |
Compute the 7, 8, 16 or 32-bit CRC value of an 8, 16 or 32-bit data buffer starting with the previously computed CRC as initialization value. | |
uint32_t | HAL_CRC_Calculate (CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength) |
Compute the 7, 8, 16 or 32-bit CRC value of an 8, 16 or 32-bit data buffer starting with hcrc->Instance->INIT as initialization value. | |
HAL_CRC_StateTypeDef | HAL_CRC_GetState (CRC_HandleTypeDef *hcrc) |
Return the CRC handle state. |
CRC HAL module driver. This file provides firmware functions to manage the following functionalities of the Cyclic Redundancy Check (CRC) peripheral: + Initialization and de-initialization functions + Peripheral Control functions + Peripheral State functions.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
=============================================================================== ##### How to use this driver ##### =============================================================================== [..] (+) Enable CRC AHB clock using __HAL_RCC_CRC_CLK_ENABLE(); (+) Initialize CRC calculator (++) specify generating polynomial (peripheral default or non-default one) (++) specify initialization value (peripheral default or non-default one) (++) specify input data format (++) specify input or output data inversion mode if any (+) Use HAL_CRC_Accumulate() function to compute the CRC value of the input data buffer starting with the previously computed CRC as initialization value (+) Use HAL_CRC_Calculate() function to compute the CRC value of the input data buffer starting with the defined initialization value (default or non-default) to initiate CRC calculation
Definition in file stm32h7xx_hal_crc.c.