![]() |
Morse Micro IoT SDK
2.6.4-esp32
|
This API provides support for CRC algorithms used by Morse Micro code.
Functions | |
| uint16_t | mmcrc_16_xmodem (uint16_t crc, const void *data, size_t data_len) |
| Compute the CRC-16 for the data buffer using the XMODEM model. More... | |
| uint16_t mmcrc_16_xmodem | ( | uint16_t | crc, |
| const void * | data, | ||
| size_t | data_len | ||
| ) |
Compute the CRC-16 for the data buffer using the XMODEM model.
| crc | Seed for CRC calc, zero in most cases this is zero (0). If chaining calls then this is the output from the previous invocation. |
| data | Pointer to the start of the data to calculate the crc over. |
| data_len | Length of the data array in bytes. |