F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
lib_crc.h File Reference

Go to the source code of this file.

Macros

#define CRC_VERSION   "1.16"
 
#define CRC_FALSE   0
 
#define CRC_TRUE   1
 

Functions

unsigned short update_crc_16 (unsigned short crc, char c)
 
unsigned long update_crc_32 (unsigned long crc, char c)
 
unsigned short update_crc_ccitt (unsigned short crc, char c)
 
unsigned short update_crc_dnp (unsigned short crc, char c)
 
unsigned short update_crc_kermit (unsigned short crc, char c)
 
unsigned short update_crc_sick (unsigned short crc, char c, char prev_byte)
 

Macro Definition Documentation

◆ CRC_FALSE

#define CRC_FALSE   0

Definition at line 61 of file lib_crc.h.

◆ CRC_TRUE

#define CRC_TRUE   1

Definition at line 62 of file lib_crc.h.

◆ CRC_VERSION

#define CRC_VERSION   "1.16"

Definition at line 57 of file lib_crc.h.

Function Documentation

◆ update_crc_16()

unsigned short update_crc_16 ( unsigned short  crc,
char  c 
)

Definition at line 188 of file lib_crc.c.

◆ update_crc_32()

unsigned long update_crc_32 ( unsigned long  crc,
char  c 
)

Definition at line 271 of file lib_crc.c.

◆ update_crc_ccitt()

unsigned short update_crc_ccitt ( unsigned short  crc,
char  c 
)

Definition at line 131 of file lib_crc.c.

◆ update_crc_dnp()

unsigned short update_crc_dnp ( unsigned short  crc,
char  c 
)

Definition at line 244 of file lib_crc.c.

◆ update_crc_kermit()

unsigned short update_crc_kermit ( unsigned short  crc,
char  c 
)

Definition at line 217 of file lib_crc.c.

◆ update_crc_sick()

unsigned short update_crc_sick ( unsigned short  crc,
char  c,
char  prev_byte 
)

Definition at line 159 of file lib_crc.c.