Agora
1.2.0
Agora project
|
#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] |
|
inline |
|
default |
void DoCRC::AddCrc24 | ( | MacPacketPacked * | p | ) |
uint32_t DoCRC::CalculateCrc24 | ( | const unsigned char * | data, |
int | len | ||
) |
Compute CRC
bool DoCRC::CheckCrc24 | ( | unsigned char * | data, |
int | len, | ||
uint32_t | ref_crc | ||
) |
|
static |
|
private |