ASCII Serial Com
Serial communication library between computers, microcontrollers, FPGAs, etc. Uses only ASCII. Not the most efficient protocol, but meant to be easy to read
Loading...
Searching...
No Matches
Functions | Variables
crc_16_dnp_tbl4bit.c File Reference
#include "crc_16_dnp_tbl4bit.h"
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for crc_16_dnp_tbl4bit.c:

Go to the source code of this file.

Functions

crc_16_dnp_tbl4bit_t crc_16_dnp_tbl4bit_update (crc_16_dnp_tbl4bit_t crc, const void *data, size_t data_len)
 

Variables

static const crc_16_dnp_tbl4bit_t crc_table [16]
 

Detailed Description

Functions and types for CRC checks.

Generated on Mon Aug 24 06:27:49 2020 by pycrc v0.9.2, https://pycrc.org using the configuration:

Definition in file crc_16_dnp_tbl4bit.c.

Function Documentation

◆ crc_16_dnp_tbl4bit_update()

crc_16_dnp_tbl4bit_t crc_16_dnp_tbl4bit_update ( crc_16_dnp_tbl4bit_t crc,
const void * data,
size_t data_len )

Update the crc value with new data.

Parameters
[in]crcThe current crc value.
[in]dataPointer to a buffer of data_len bytes.
[in]data_lenNumber of bytes in the data buffer.
Returns
The updated crc value.

Definition at line 27 of file crc_16_dnp_tbl4bit.c.

References crc_table.

Variable Documentation

◆ crc_table

const crc_16_dnp_tbl4bit_t crc_table[16]
static
Initial value:
= {
0x0000, 0xb26b, 0x29af, 0x9bc4, 0x535e, 0xe135, 0x7af1, 0xc89a,
0xa6bc, 0x14d7, 0x8f13, 0x3d78, 0xf5e2, 0x4789, 0xdc4d, 0x6e26}

Static table used for the table_driven implementation.

Definition at line 23 of file crc_16_dnp_tbl4bit.c.

Referenced by crc_16_dnp_tbl4bit_update().