no-OS
Loading...
Searching...
No Matches
no_os_crc16.h File Reference

Header file of CRC-16 computation. More...

#include <stdint.h>
#include <stddef.h>
Include dependency graph for no_os_crc16.h:

Macros

#define NO_OS_CRC16_TABLE_SIZE   256
 
#define NO_OS_DECLARE_CRC16_TABLE(_table)
 

Functions

void no_os_crc16_populate_msb (uint16_t *table, const uint16_t polynomial)
 
uint16_t no_os_crc16 (const uint16_t *table, const uint8_t *pdata, size_t nbytes, uint16_t crc)
 

Detailed Description

Header file of CRC-16 computation.

Author
Darius Berghe (dariu.nosp@m.s.be.nosp@m.rghe@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2020(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ NO_OS_CRC16_TABLE_SIZE

#define NO_OS_CRC16_TABLE_SIZE   256

◆ NO_OS_DECLARE_CRC16_TABLE

#define NO_OS_DECLARE_CRC16_TABLE ( _table)
Value:
static uint16_t _table[NO_OS_CRC16_TABLE_SIZE]
#define NO_OS_CRC16_TABLE_SIZE
Definition no_os_crc16.h:16

Function Documentation

◆ 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 )