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.
Fork of nrf51-sdk by
CRC compute
This module implements the CRC-16 calculation in the blocks. More...
Functions | |
uint16_t | crc16_compute (const uint8_t *p_data, uint32_t size, const uint16_t *p_crc) |
Function for calculating CRC-16 in blocks. |
Detailed Description
This module implements the CRC-16 calculation in the blocks.
Function Documentation
uint16_t crc16_compute | ( | const uint8_t * | p_data, |
uint32_t | size, | ||
const uint16_t * | p_crc | ||
) |
Function for calculating CRC-16 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_data The input data block for computation. [in] size The size of the input data block in bytes. [in] p_crc The previous calculated CRC-16 value or NULL if first call.
- Returns:
- The updated CRC-16 value, based on the input supplied.
Generated on Tue Jul 12 2022 14:11:21 by
