This API provides support for CRC algorithms used by Morse Micro code.
|
| 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...
|
| |
◆ mmcrc_16_xmodem()
| 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.
- Parameters
-
| 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. |
- Returns
- Returns the CRC value.