no-OS
include
no_os_crc16.h
Go to the documentation of this file.
1
/***************************************************************************/
39
#ifndef _NO_OS_CRC16_H_
40
#define _NO_OS_CRC16_H_
41
42
#include <stdint.h>
43
#include <stddef.h>
44
45
#define NO_OS_CRC16_TABLE_SIZE 256
46
47
#define NO_OS_DECLARE_CRC16_TABLE(_table) \
48
static uint16_t _table[NO_OS_CRC16_TABLE_SIZE]
49
50
void
no_os_crc16_populate_msb
(uint16_t * table,
const
uint16_t polynomial);
51
uint16_t
no_os_crc16
(
const
uint16_t * table,
const
uint8_t *pdata,
52
size_t
nbytes,
53
uint16_t crc);
54
55
#endif // _NO_OS_CRC16_H_
no_os_crc16
uint16_t no_os_crc16(const uint16_t *table, const uint8_t *pdata, size_t nbytes, uint16_t crc)
no_os_crc16_populate_msb
void no_os_crc16_populate_msb(uint16_t *table, const uint16_t polynomial)
Generated by
1.8.17