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

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

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

Macros

#define NO_OS_CRC24_TABLE_SIZE   256
 
#define NO_OS_DECLARE_CRC24_TABLE(_table)
 

Functions

void no_os_crc24_populate_msb (uint32_t *table, const uint32_t polynomial)
 
uint32_t no_os_crc24 (const uint32_t *table, const uint8_t *pdata, size_t nbytes, uint32_t crc)
 

Detailed Description

Header file of CRC-24 computation.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2021(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ NO_OS_CRC24_TABLE_SIZE

#define NO_OS_CRC24_TABLE_SIZE   256

◆ NO_OS_DECLARE_CRC24_TABLE

#define NO_OS_DECLARE_CRC24_TABLE ( _table)
Value:
static uint32_t _table[NO_OS_CRC24_TABLE_SIZE]
#define NO_OS_CRC24_TABLE_SIZE
Definition no_os_crc24.h:16

Function Documentation

◆ no_os_crc24()

uint32_t no_os_crc24 ( const uint32_t * table,
const uint8_t * pdata,
size_t nbytes,
uint32_t crc )

◆ no_os_crc24_populate_msb()

void no_os_crc24_populate_msb ( uint32_t * table,
const uint32_t polynomial )