Loading...
Searching...
No Matches
crc8.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Gunar Schorcht
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
21#ifndef CHECKSUM_CRC8_H
22#define CHECKSUM_CRC8_H
23
24#include <stddef.h>
25#include <stdint.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
44uint8_t crc8(const uint8_t *data, size_t len, uint8_t poly, uint8_t seed);
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* CHECKSUM_CRC8_H */
uint8_t crc8(const uint8_t *data, size_t len, uint8_t poly, uint8_t seed)
Calculate CRC-8.