LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
juno_binhex.c File Reference
#include "juno/crc/crc.h"
#include <stdint.h>
#include "crc/binhex.h"
Include dependency graph for juno_binhex.c:

Functions

uint16_t Juno_CrcBinhexUpdate (uint16_t iCrc, const void *pcData, size_t zDataSize)
 Update BinHex CRC with new data.
 

Function Documentation

◆ Juno_CrcBinhexUpdate()

uint16_t Juno_CrcBinhexUpdate ( uint16_t  iCrc,
const void *  pcData,
size_t  zDataSize 
)

Update BinHex CRC with new data.

Parameters
iCrcRunning CRC value (use JUNO_BINHEX_CRC_INIT initially).
pcDataPointer to data buffer (can be NULL when zDataSize is 0).
zDataSizeSize of data buffer in bytes.
Returns
Updated CRC value; returns 0 when pcData is NULL or zDataSize is 0.