STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Peripheral Control functions

management functions. More...

Collaboration diagram for Peripheral Control functions:

Functions

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.
 

Detailed Description

management functions.

 ===============================================================================
                      ##### Peripheral Control functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) compute the 32-bit CRC value of a 32-bit data buffer
          using combination of the previous CRC value and the new one.

       [..]  or

      (+) compute the 32-bit CRC value of a 32-bit data buffer
          independently of the previous CRC value.

Function Documentation

◆ HAL_CRC_Accumulate()

uint32_t HAL_CRC_Accumulate ( CRC_HandleTypeDef * hcrc,
uint32_t pBuffer[],
uint32_t BufferLength )

#include <stm32f4xx_hal_crc.h>

Compute the 32-bit CRC value of a 32-bit data buffer starting with the previously computed CRC as initialization value.

Parameters
hcrcCRC handle
pBufferpointer to the input data buffer.
BufferLengthinput data buffer length (number of uint32_t words).
Return values
uint32_tCRC (returned value LSBs for CRC shorter than 32 bits)

Definition at line 227 of file stm32f4xx_hal_crc.c.

References HAL_CRC_STATE_BUSY, HAL_CRC_STATE_READY, CRC_HandleTypeDef::Instance, and CRC_HandleTypeDef::State.

◆ HAL_CRC_Calculate()

uint32_t HAL_CRC_Calculate ( CRC_HandleTypeDef * hcrc,
uint32_t pBuffer[],
uint32_t BufferLength )

#include <stm32f4xx_hal_crc.h>

Compute the 32-bit CRC value of a 32-bit data buffer starting with hcrc->Instance->INIT as initialization value.

Parameters
hcrcCRC handle
pBufferpointer to the input data buffer.
BufferLengthinput data buffer length (number of uint32_t words).
Return values
uint32_tCRC (returned value LSBs for CRC shorter than 32 bits)

Definition at line 257 of file stm32f4xx_hal_crc.c.

References __HAL_CRC_DR_RESET, HAL_CRC_STATE_BUSY, HAL_CRC_STATE_READY, CRC_HandleTypeDef::Instance, and CRC_HandleTypeDef::State.