IoT Supervisor 0.0
Loading...
Searching...
No Matches
Kirisaki_CRC.c File Reference
#include <stdint.h>

Go to the source code of this file.

Functions

void KirisakiCRC16Calc (uint8_t Data, uint16_t *CRC)
 

Variables

code const uint16_t KirisakiCRCtable [256]
 

Function Documentation

◆ KirisakiCRC16Calc()

void KirisakiCRC16Calc ( uint8_t  Data,
uint16_t *  CRC 
)

This function calculates the CRC based on the CRC table.

Note
The CRC has to be initialized and final-xor'd outside of this function
Parameters
[in]Datato continue CRC calculation on
[in,out]CRCpointer to CRC source and CRC output

Definition at line 52 of file Kirisaki_CRC.c.

Variable Documentation

◆ KirisakiCRCtable

code const uint16_t KirisakiCRCtable[256]

CRC table, probably from crccalc.com

Definition at line 11 of file Kirisaki_CRC.c.