Firmware SDK
twr_crc

Calculate crc. More...

Functions

uint8_t twr_crc8 (const uint8_t polynomial, const void *buffer, size_t length, const uint8_t initialization)
 Calculate CRC8. More...
 

Detailed Description

Calculate crc.

Function Documentation

◆ twr_crc8()

uint8_t twr_crc8 ( const uint8_t  polynomial,
const void *  buffer,
size_t  length,
const uint8_t  initialization 
)

Calculate CRC8.

Parameters
[in]polynomial
[in]bufferData buffer
[in]lengthData buffer length
[in]initializationdata
Returns
crc

Definition at line 3 of file twr_crc.c.

Referenced by twr_sht30_get_temperature_kelvin().

Here is the caller graph for this function: