|
STM32F103xB HAL User Manual
|
Header file of CRC HAL module. More...
#include "stm32f1xx_hal_def.h"Go to the source code of this file.
Data Structures | |
| struct | CRC_HandleTypeDef |
| CRC Handle Structure definition. More... | |
Defines | |
| #define | __HAL_CRC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CRC_STATE_RESET) |
| Reset CRC handle state. | |
| #define | __HAL_CRC_DR_RESET(__HANDLE__) ((__HANDLE__)->Instance->CR |= CRC_CR_RESET) |
| Reset CRC Data Register. | |
| #define | __HAL_CRC_SET_IDR(__HANDLE__, __VALUE__) (WRITE_REG((__HANDLE__)->Instance->IDR, (__VALUE__))) |
| Store data in the Independent Data (ID) register. | |
| #define | __HAL_CRC_GET_IDR(__HANDLE__) (((__HANDLE__)->Instance->IDR) & CRC_IDR_IDR) |
| Return the data stored in the Independent Data (ID) register. | |
Enumerations | |
| enum | HAL_CRC_StateTypeDef { HAL_CRC_STATE_RESET = 0x00U, HAL_CRC_STATE_READY = 0x01U, HAL_CRC_STATE_BUSY = 0x02U, HAL_CRC_STATE_TIMEOUT = 0x03U, HAL_CRC_STATE_ERROR = 0x04U } |
| CRC HAL State Structure definition. More... | |
Functions | |
| 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 32-bit CRC value of a 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 32-bit CRC value of a 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. | |
Header file of CRC HAL module.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f1xx_hal_crc.h.
1.7.6.1