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

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

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

Macros

#define NO_OS_CRC8_TABLE_SIZE   256
 
#define NO_OS_DECLARE_CRC8_TABLE(_table)
 

Functions

void no_os_crc8_populate_msb (uint8_t *table, const uint8_t polynomial)
 
void no_os_crc8_populate_lsb (uint8_t *table, const uint8_t polynomial)
 
uint8_t no_os_crc8 (const uint8_t *table, const uint8_t *pdata, size_t nbytes, uint8_t crc)
 

Detailed Description

Header file of CRC-8 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_CRC8_TABLE_SIZE

#define NO_OS_CRC8_TABLE_SIZE   256

◆ NO_OS_DECLARE_CRC8_TABLE

#define NO_OS_DECLARE_CRC8_TABLE ( _table)
Value:
static uint8_t _table[NO_OS_CRC8_TABLE_SIZE]
#define NO_OS_CRC8_TABLE_SIZE
Definition no_os_crc8.h:16

Function Documentation

◆ no_os_crc8()

uint8_t no_os_crc8 ( const uint8_t * table,
const uint8_t * pdata,
size_t nbytes,
uint8_t crc )

◆ no_os_crc8_populate_lsb()

void no_os_crc8_populate_lsb ( uint8_t * table,
const uint8_t polynomial )

◆ no_os_crc8_populate_msb()

void no_os_crc8_populate_msb ( uint8_t * table,
const uint8_t polynomial )