Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...
Fork of nRF51822 by
This module implements the CRC-16 calculation in the blocks. More...
|uint16_t||crc16_compute (const uint8_t *p_data, uint32_t size, const uint16_t *p_crc)|
|Function for calculating CRC-16 in blocks. |
This module implements the CRC-16 calculation in the blocks.
|uint16_t crc16_compute||(||const uint8_t *||p_data,|
|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.
[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.
- The updated CRC-16 value, based on the input supplied.
Generated on Mon Dec 17 2018 22:13:52 by 1.7.2