Agora  1.2.0
Agora project
DoCRC Class Reference

#include <crc.h>

Public Member Functions

 DoCRC ()
 
 ~DoCRC ()=default
 
uint32_t CalculateCrc24 (const unsigned char *data, int len)
 
void AddCrc24 (MacPacketPacked *p)
 
bool CheckCrc24 (unsigned char *data, int len, uint32_t ref_crc)
 

Static Public Member Functions

static void InitCrc24 (uint32_t table[256])
 

Private Attributes

const uint32_t crc24_table_ [256]
 

Constructor & Destructor Documentation

◆ DoCRC()

DoCRC::DoCRC ( )
inline

◆ ~DoCRC()

DoCRC::~DoCRC ( )
default

Member Function Documentation

◆ AddCrc24()

void DoCRC::AddCrc24 ( MacPacketPacked p)
Here is the call graph for this function:

◆ CalculateCrc24()

uint32_t DoCRC::CalculateCrc24 ( const unsigned char *  data,
int  len 
)

Compute CRC

Here is the caller graph for this function:

◆ CheckCrc24()

bool DoCRC::CheckCrc24 ( unsigned char *  data,
int  len,
uint32_t  ref_crc 
)
Here is the call graph for this function:

◆ InitCrc24()

static void DoCRC::InitCrc24 ( uint32_t  table[256])
static

Member Data Documentation

◆ crc24_table_

const uint32_t DoCRC::crc24_table_[256]
private

The documentation for this class was generated from the following files: