APM:Libraries
Functions
crc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t crc_crc8 (const uint8_t *p, uint8_t len)
 
uint16_t crc_xmodem_update (uint16_t crc, uint8_t data)
 
uint16_t crc_xmodem (const uint8_t *b, uint16_t len)
 
uint32_t crc_crc32 (uint32_t crc, const uint8_t *buf, uint32_t size)
 

Function Documentation

◆ crc_crc32()

uint32_t crc_crc32 ( uint32_t  crc,
const uint8_t *  buf,
uint32_t  size 
)

Definition at line 140 of file crc.cpp.

◆ crc_crc8()

uint8_t crc_crc8 ( const uint8_t *  p,
uint8_t  len 
)

Definition at line 50 of file crc.cpp.

Referenced by AP_RangeFinder_TeraRangerI2C::collect(), and AP_Proximity_TeraRangerTower::read_sensor_data().

Here is the caller graph for this function:

◆ crc_xmodem()

uint16_t crc_xmodem ( const uint8_t *  b,
uint16_t  len 
)

Definition at line 82 of file crc.cpp.

Here is the call graph for this function:

◆ crc_xmodem_update()

uint16_t crc_xmodem_update ( uint16_t  crc,
uint8_t  data 
)

Definition at line 67 of file crc.cpp.

Referenced by crc_xmodem().

Here is the caller graph for this function: