Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
CRC computation of one/many 32-bit data functions
[CRC_Private_Functions]
CRC computation of one/many 32-bit data functions. More...
Functions | |
uint32_t | CRC_CalcCRC (uint32_t CRC_Data) |
Computes the 32-bit CRC of a given data word(32-bit). | |
uint32_t | CRC_CalcCRC16bits (uint16_t CRC_Data) |
Computes the 16-bit CRC of a given 16-bit data. | |
uint32_t | CRC_CalcCRC8bits (uint8_t CRC_Data) |
Computes the 8-bit CRC of a given 8-bit data. | |
uint32_t | CRC_CalcBlockCRC (uint32_t pBuffer[], uint32_t BufferLength) |
Computes the 32-bit CRC of a given buffer of data word(32-bit). | |
uint32_t | CRC_GetCRC (void) |
Returns the current CRC value. |
Detailed Description
CRC computation of one/many 32-bit data functions.
=============================================================================== ##### CRC computation functions ##### ===============================================================================
Function Documentation
uint32_t CRC_CalcBlockCRC | ( | uint32_t | pBuffer[], |
uint32_t | BufferLength | ||
) |
Computes the 32-bit CRC of a given buffer of data word(32-bit).
- Parameters:
-
pBuffer,: pointer to the buffer containing the data to be computed BufferLength,: length of the buffer to be computed
- Return values:
-
32-bit CRC
Definition at line 281 of file stm32f30x_crc.c.
uint32_t CRC_CalcCRC | ( | uint32_t | CRC_Data ) |
Computes the 32-bit CRC of a given data word(32-bit).
- Parameters:
-
CRC_Data,: data word(32-bit) to compute its CRC
- Return values:
-
32-bit CRC
Definition at line 244 of file stm32f30x_crc.c.
uint32_t CRC_CalcCRC16bits | ( | uint16_t | CRC_Data ) |
Computes the 16-bit CRC of a given 16-bit data.
- Parameters:
-
CRC_Data,: data half-word(16-bit) to compute its CRC
- Return values:
-
16-bit CRC
Definition at line 256 of file stm32f30x_crc.c.
uint32_t CRC_CalcCRC8bits | ( | uint8_t | CRC_Data ) |
Computes the 8-bit CRC of a given 8-bit data.
- Parameters:
-
CRC_Data,: 8-bit data to compute its CRC
- Return values:
-
8-bit CRC
Definition at line 268 of file stm32f30x_crc.c.
uint32_t CRC_GetCRC | ( | void | ) |
Returns the current CRC value.
- Parameters:
-
None
- Return values:
-
32-bit CRC
Definition at line 297 of file stm32f30x_crc.c.
Generated on Tue Jul 12 2022 17:34:45 by
