Declares the functions to compute and validate the CRC of a buffer. More...
#include <septentrio_gnss_driver/packed_structs/sbf_structs.hpp>
#include <cstdint>
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
uint16_t | 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. More... | |
bool | isValid (const uint8_t *block) |
Validates whether the calculated CRC of the SBF block at hand matches the CRC field of the streamed SBF block. More... | |
Declares the functions to compute and validate the CRC of a buffer.
Definition in file crc.h.
uint16_t compute16CCITT | ( | const uint8_t * | buf, |
size_t | buf_length | ||
) |
bool isValid | ( | const uint8_t * | block | ) |