STM32F439xx HAL User Manual
Functions
Peripheral Control functions
CRC Exported Functions

Peripheral Control functions. More...

Functions

uint32_t HAL_CRC_Accumulate (CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
 Computes the 32-bit CRC of 32-bit data buffer using combination of the previous CRC value and the new one.
uint32_t HAL_CRC_Calculate (CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
 Computes the 32-bit CRC of 32-bit data buffer independently of the previous CRC value.

Detailed Description

Peripheral Control functions.

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


Function Documentation

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

Computes the 32-bit CRC of 32-bit data buffer using combination of the previous CRC value and the new one.

Parameters:
hcrcpointer to a CRC_HandleTypeDef structure that contains the configuration information for CRC
pBufferpointer to the buffer containing the data to be computed
BufferLengthlength of the buffer to be computed
Return values:
32-bitCRC

Definition at line 232 of file stm32f4xx_hal_crc.c.

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

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

Computes the 32-bit CRC of 32-bit data buffer independently of the previous CRC value.

Parameters:
hcrcpointer to a CRC_HandleTypeDef structure that contains the configuration information for CRC
pBufferPointer to the buffer containing the data to be computed
BufferLengthLength of the buffer to be computed
Return values:
32-bitCRC

Definition at line 267 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.