|
Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
#include <cstdint>
Go to the source code of this file.
Functions | |
| uint16_t | crc16 (const uint8_t *data, uint16_t size, uint16_t *prevCrc=nullptr) |
| Calculates or updates the CRC-16-CCITT based on given data. More... | |
| uint16_t crc16 | ( | const uint8_t * | data, |
| uint16_t | size, | ||
| uint16_t * | prevCrc = nullptr |
||
| ) |
Calculates or updates the CRC-16-CCITT based on given data.
| [in] | data | Pointer to data. |
| [in] | size | Size of data. |
| [in] | prevCrc | Previous CRC, or null pointer for first call. |