PX4 Firmware
PX4 Autopilot Software http://px4.io
crc.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include "crc.h"
Include dependency graph for crc.c:

Go to the source code of this file.

Functions

uint16_t crc16_add (uint16_t crc, uint8_t value)
 
uint16_t crc16_signature (uint16_t initial, size_t length, const uint8_t *bytes)
 
__EXPORT uint64_t crc64_add_word (uint64_t crc, uint32_t value)
 

Function Documentation

◆ crc16_add()

uint16_t crc16_add ( uint16_t  crc,
uint8_t  value 
)

Definition at line 89 of file crc.c.

Referenced by crc16_signature().

Here is the caller graph for this function:

◆ crc16_signature()

uint16_t crc16_signature ( uint16_t  initial,
size_t  length,
const uint8_t *  bytes 
)

Definition at line 124 of file crc.c.

References crc16_add(), and CRC16_OUTPUT_XOR.

Here is the call graph for this function:

◆ crc64_add_word()

__EXPORT uint64_t crc64_add_word ( uint64_t  crc,
uint32_t  value 
)

Definition at line 152 of file crc.c.

Referenced by calulate_signature().

Here is the caller graph for this function: