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

Go to the source code of this file.

Functions

static crc_16_dnp_bbb_t crc_16_dnp_bbb_reflect (crc_16_dnp_bbb_t data, size_t data_len)
 
crc_16_dnp_bbb_t crc_16_dnp_bbb_update (crc_16_dnp_bbb_t crc, const void *data, size_t data_len)
 
crc_16_dnp_bbb_t crc_16_dnp_bbb_finalize (crc_16_dnp_bbb_t crc)
 

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

Function Documentation

◆ crc_16_dnp_bbb_finalize()

crc_16_dnp_bbb_t crc_16_dnp_bbb_finalize ( crc_16_dnp_bbb_t crc)

Calculate the final crc value.

Parameters
[in]crcThe current crc value.
Returns
The final crc value.

Definition at line 58 of file crc_16_dnp_bbb.c.

◆ crc_16_dnp_bbb_reflect()

crc_16_dnp_bbb_t crc_16_dnp_bbb_reflect ( crc_16_dnp_bbb_t data,
size_t data_len )
static

Definition at line 24 of file crc_16_dnp_bbb.c.

◆ crc_16_dnp_bbb_update()

crc_16_dnp_bbb_t crc_16_dnp_bbb_update ( crc_16_dnp_bbb_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 37 of file crc_16_dnp_bbb.c.