dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Files

file  pios_crc.h
 CRC functions header.
 

Functions

uint8_t PIOS_CRC_updateByte (uint8_t crc, const uint8_t data)
 
uint8_t PIOS_CRC_updateCRC (uint8_t crc, const uint8_t *data, int32_t length)
 Update a CRC with a data buffer. More...
 
uint8_t PIOS_CRC_updateCRC_TBS (uint8_t crc, const uint8_t *data, int32_t length)
 
uint16_t PIOS_CRC16_updateByte (uint16_t crc, const uint8_t data)
 
uint16_t PIOS_CRC16_updateCRC (uint16_t crc, const uint8_t *data, int32_t length)
 Update a CRC with a data buffer. More...
 
uint16_t PIOS_CRC16_CCITT_updateCRC (uint16_t crc, const uint8_t *data, uint32_t data_len)
 
uint32_t PIOS_CRC32_updateByte (uint32_t crc, const uint8_t data)
 
uint32_t PIOS_CRC32_updateCRC (uint32_t crc, const uint8_t *data, int32_t length)
 Update a CRC with a data buffer. More...
 

Detailed Description

Function Documentation

uint16_t PIOS_CRC16_CCITT_updateCRC ( uint16_t  crc,
const uint8_t *  data,
uint32_t  data_len 
)

Definition at line 235 of file pios_crc.c.

uint16_t PIOS_CRC16_updateByte ( uint16_t  crc,
const uint8_t  data 
)

Update the crc value with new data.

Parameters
crcThe current crc value.
dataPointer to a buffer of data_len bytes.
lengthNumber of bytes in the data buffer.
Returns
The updated crc value.

Definition at line 198 of file pios_crc.c.

uint16_t PIOS_CRC16_updateCRC ( uint16_t  crc,
const uint8_t *  data,
int32_t  length 
)

Update a CRC with a data buffer.

Parameters
[in]crcStarting CRC value
[in]dataData buffer
[in]lengthNumber of bytes to process
Returns
Updated CRC

Definition at line 210 of file pios_crc.c.

uint32_t PIOS_CRC32_updateByte ( uint32_t  crc,
const uint8_t  data 
)

Update the crc value with new data.

Parameters
crcThe current crc value.
dataPointer to a buffer of data_len bytes.
lengthNumber of bytes in the data buffer.
Returns
The updated crc value.

Definition at line 265 of file pios_crc.c.

uint32_t PIOS_CRC32_updateCRC ( uint32_t  crc,
const uint8_t *  data,
int32_t  length 
)

Update a CRC with a data buffer.

Parameters
[in]crcStarting CRC value
[in]dataData buffer
[in]lengthNumber of bytes to process
Returns
Updated CRC

Definition at line 277 of file pios_crc.c.

uint8_t PIOS_CRC_updateByte ( uint8_t  crc,
const uint8_t  data 
)

Update the crc value with new data.

Generated by pycrc v0.7.5, http://www.tty1.net/pycrc/ using the configuration: Width = 8 Poly = 0x07 XorIn = 0x00 ReflectIn = False XorOut = 0x00 ReflectOut = False Algorithm = table-driven

Parameters
crcThe current crc value.
dataPointer to a buffer of data_len bytes.
lengthNumber of bytes in the data buffer.
Returns
The updated crc value.

Definition at line 141 of file pios_crc.c.

uint8_t PIOS_CRC_updateCRC ( uint8_t  crc,
const uint8_t *  data,
int32_t  length 
)

Update a CRC with a data buffer.

Parameters
[in]crcStarting CRC value
[in]dataData buffer
[in]lengthNumber of bytes to process
Returns
Updated CRC

Definition at line 153 of file pios_crc.c.

uint8_t PIOS_CRC_updateCRC_TBS ( uint8_t  crc,
const uint8_t *  data,
int32_t  length 
)

Update the crc value with new data. This CRC is used for Team Blacksheep Smart Audio

Generated by pycrc v0.9, https://pycrc.org using the configuration: Width = 8 Poly = 0xd5 Xor_In = 0x00 ReflectIn = False Xor_Out = 0x00 ReflectOut = False Algorithm = bit-by-bit-fast

Parameters
crcThe current crc value.
dataPointer to a buffer of data_len bytes.
lengthNumber of bytes in the data buffer.
Returns
The updated crc value.

Definition at line 185 of file pios_crc.c.