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
crc_16_dnp_bbf.c File Reference
#include "crc_16_dnp_bbf.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for crc_16_dnp_bbf.c:

Go to the source code of this file.

Functions

crc_16_dnp_bbf_t crc_16_dnp_bbf_reflect (crc_16_dnp_bbf_t data, size_t data_len)
 
crc_16_dnp_bbf_t crc_16_dnp_bbf_update (crc_16_dnp_bbf_t crc, const void *data, size_t data_len)
 

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_bbf.c.

Function Documentation

◆ crc_16_dnp_bbf_reflect()

crc_16_dnp_bbf_t crc_16_dnp_bbf_reflect ( crc_16_dnp_bbf_t data,
size_t data_len )

Reflect all bits of a data word of data_len bytes.

Parameters
[in]dataThe data word to be reflected.
[in]data_lenThe width of data expressed in number of bits.
Returns
The reflected data.

Definition at line 21 of file crc_16_dnp_bbf.c.

Referenced by crc_16_dnp_bbf_finalize().

◆ crc_16_dnp_bbf_update()

crc_16_dnp_bbf_t crc_16_dnp_bbf_update ( crc_16_dnp_bbf_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 34 of file crc_16_dnp_bbf.c.