no-OS
include
no_os_crc8.h
Go to the documentation of this file.
1
/***************************************************************************/
33
#ifndef _NO_OS_CRC8_H_
34
#define _NO_OS_CRC8_H_
35
36
#include <stdint.h>
37
#include <stddef.h>
38
39
#define NO_OS_CRC8_TABLE_SIZE 256
40
41
#define NO_OS_DECLARE_CRC8_TABLE(_table) \
42
static uint8_t _table[NO_OS_CRC8_TABLE_SIZE]
43
44
void
no_os_crc8_populate_msb
(uint8_t * table,
const
uint8_t polynomial);
45
uint8_t
no_os_crc8
(
const
uint8_t * table,
const
uint8_t *pdata,
size_t
nbytes,
46
uint8_t crc);
47
48
#endif // _NO_OS_CRC8_H_
no_os_crc8_populate_msb
void no_os_crc8_populate_msb(uint8_t *table, const uint8_t polynomial)
no_os_crc8
uint8_t no_os_crc8(const uint8_t *table, const uint8_t *pdata, size_t nbytes, uint8_t crc)
Generated by
1.8.17