UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
Functions
Crc

CRC Routines. More...

Functions

uint8_t Util_crc8 (const uint8_t *buf, uint32_t size)
 
uint16_t Util_crc16 (const uint8_t *buf, uint32_t size)
 
uint32_t Util_crc32 (const uint8_t *buf, uint32_t size)
 

Detailed Description

CRC Routines.

Function Documentation

uint8_t Util_crc8 ( const uint8_t *  buf,
uint32_t  size 
)

Calculate the 8-bit CRC of the input buffer, using the CRC-8 standard.

Parameters
bufInput buffer to calculated
sizeSize of the input buffer (in bytes)
Returns
The 8bit CRC of the input buffer

Definition at line 88 of file crc.c.

uint16_t Util_crc16 ( const uint8_t *  buf,
uint32_t  size 
)

Calculate the 16-bit CRC of the input buffer, using the CRC-16-CCITT standard.

Parameters
bufInput buffer to calculated
sizeSize of the input buffer (in bytes)
Returns
The 16bit CRC of the input buffer

Definition at line 100 of file crc.c.

uint32_t Util_crc32 ( const uint8_t *  buf,
uint32_t  size 
)

Calculate the 32-bit CRC of the input buffer, using the CRC-32 standard.

Parameters
bufInput buffer to calculated
sizeSize of the input buffer (in bytes)
Returns
The 32bit CRC of the input buffer

Definition at line 112 of file crc.c.