Function crc::compute16CCITT
Defined in File crc.hpp
Function Documentation
-
uint16_t crc::compute16CCITT(const uint8_t *buf, size_t buf_length)
This function computes the CRC-8-CCITT (Cyclic Redundancy Check) of a buffer “buf” of “buf_length” bytes.
- Parameters:
buf – [in] The buffer at hand
buf_length – [in] Number of bytes in “buf”
- Returns:
The calculated CRC