Macros | Functions
BCDS_CRC.h File Reference
#include "BCDS_Utils.h"
#include "BCDS_Retcode.h"
+ Include dependency graph for BCDS_CRC.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define CRC32_EATH_STD_INIT(x)   (x = (~0UL))
 
#define CRC32_ETHERNET_REVERSE_POLYNOMIAL   UINT32_C(0xEDB88320)
 
#define CRC32_INVERSE(x)   (x = x ^ (~0UL))
 

Functions

Retcode_T CRC_16 (uint16_t poly, uint16_t *shifter, uint8_t *data_p, uint16_t len)
 Calculates CRC16 for a given message, or data, using a a given polynomial and initial value. No frills: no bit-reversing, no final XOR. More...
 
Retcode_T CRC_32 (uint32_t poly, uint32_t *shifter, uint8_t *data_p, uint16_t len)
 Calculates CRC32 for a given message, or data, using a a given polynomial and initial value. No frills: no bit-reversing, no final XOR. More...
 
Retcode_T CRC_32_Reverse (uint32_t poly, uint32_t *shifter, uint8_t *data_p, uint16_t len)
 Calculates CRC32 with reverse polynomial for a given message, or data and initial value. More...
 
Retcode_T CRC_8 (uint8_t poly, uint8_t *shifter, uint8_t *data_p, uint16_t len)
 Calculates CRC8 for a given message, or data, using a a given polynomial and initial value. No frills: no bit-reversing, no final XOR. More...
 

This documentation file has been automatically generated on Wed May 6 2020 20:45:18 by doxygen 1.8.8