EnOcean Link  1.14.0.0
Middleware to Connect EnOcean easily to other Projects
eoProc Class Reference

Helper to calculate different crc. More...

#include <eoProc.h>

Static Public Member Functions

static uint8_t crc8 (uint8_t CRC, uint8_t Data)
 
static uint16_t crc16 (uint16_t CRC, uint16_t Data)
 

Detailed Description

Helper to calculate different crc.

Member Function Documentation

◆ crc16()

static uint16_t eoProc::crc16 ( uint16_t  CRC,
uint16_t  Data 
)
static

Calculates the crc

Parameters
CRCprevious calculated crc
Datadata byte to use
Returns
next calculated crc

◆ crc8()

static uint8_t eoProc::crc8 ( uint8_t  CRC,
uint8_t  Data 
)
static

Calculates the crc

Parameters
CRCprevious calculated crc
Datadata byte to use
Returns
next calculated crc