WB32L003 Standard Peripherals Firmware Library
函数
CRC_Private_Functions

函数

void CRC_InitResult (void)
 Initialize CRC caculation. 更多...
 
void CRC_DeInit (void)
 DeInitializes the CRC peripheral. 更多...
 
uint32_t CRC_Accumulate (const uint8_t *pBuffer, uint32_t bufferLength)
 Computes the 16-bit CRC of 8-bit data buffer using combination of the previous CRC value and the new one. 更多...
 
uint32_t CRC_Calculate (const uint8_t *pBuffer, uint32_t bufferLength)
 Computes the 16-bit CRC of 8-bit data buffer independently of the previous CRC value. 更多...
 

详细描述

函数说明

◆ CRC_Accumulate()

uint32_t CRC_Accumulate ( const uint8_t *  pBuffer,
uint32_t  bufferLength 
)

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

参数
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 (defined in word, 4 bytes)
返回值
16-bitCRC

◆ CRC_Calculate()

uint32_t CRC_Calculate ( const uint8_t *  pBuffer,
uint32_t  bufferLength 
)

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

参数
pBufferPointer to the buffer containing the data to be computed
bufferLengthLength of the buffer to be computed (defined in word, 4 bytes)
返回值
16-bitCRC

◆ CRC_DeInit()

void CRC_DeInit ( void  )

DeInitializes the CRC peripheral.

返回值
void

◆ CRC_InitResult()

void CRC_InitResult ( void  )

Initialize CRC caculation.

返回值
None