no-OS
include
no_os_crc16.h
Go to the documentation of this file.
1
/***************************************************************************/
33
#ifndef _NO_OS_CRC16_H_
34
#define _NO_OS_CRC16_H_
35
36
#include <stdint.h>
37
#include <stddef.h>
38
39
#define NO_OS_CRC16_TABLE_SIZE 256
40
41
#define NO_OS_DECLARE_CRC16_TABLE(_table) \
42
static uint16_t _table[NO_OS_CRC16_TABLE_SIZE]
43
44
void
no_os_crc16_populate_msb
(uint16_t * table,
const
uint16_t polynomial);
45
uint16_t
no_os_crc16
(
const
uint16_t * table,
const
uint8_t *pdata,
46
size_t
nbytes,
47
uint16_t crc);
48
49
#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