nRF5 SDK v17.1.0
Modules | Functions
CRC32 compute

This module implements the CRC-32 calculation in the blocks. More...

Modules

 CRC32 calculation routines configuration
 

Functions

uint32_t crc32_compute (uint8_t const *p_data, uint32_t size, uint32_t const *p_crc)
 Function for calculating CRC-32 in blocks. More...
 

Detailed Description

This module implements the CRC-32 calculation in the blocks.

Function Documentation

uint32_t crc32_compute ( uint8_t const *  p_data,
uint32_t  size,
uint32_t const *  p_crc 
)

Function for calculating CRC-32 in blocks.

Feed each consecutive data block into this function, along with the current value of p_crc as returned by the previous call of this function. The first call of this function should pass NULL as the initial value of the crc in p_crc.

Parameters
[in]p_dataThe input data block for computation.
[in]sizeThe size of the input data block in bytes.
[in]p_crcThe previous calculated CRC-32 value or NULL if first call.
Returns
The updated CRC-32 value, based on the input supplied.

Documentation feedback | Developer Zone | Subscribe | Updated