#include <ESCrcKchipFast.h>
Public Member Functions | |
void | add (unsigned int data) |
ESCrcKchipFast () | |
uint32_t | get_crc () |
void | init () |
bool | isCrcOk (unsigned int crcin=0x0000) |
void | reset () |
~ESCrcKchipFast () | |
Private Attributes | |
uint32_t | crc |
Definition at line 4 of file ESCrcKchipFast.h.
ESCrcKchipFast::ESCrcKchipFast | ( | ) | [inline] |
ESCrcKchipFast::~ESCrcKchipFast | ( | ) | [inline] |
Definition at line 44 of file ESCrcKchipFast.h.
{ } ;
void ESCrcKchipFast::add | ( | unsigned int | data | ) | [inline] |
uint32_t ESCrcKchipFast::get_crc | ( | ) | [inline] |
Definition at line 36 of file ESCrcKchipFast.h.
References crc.
Referenced by isCrcOk().
{ return crc ; };
void ESCrcKchipFast::init | ( | void | ) | [inline] |
Definition at line 17 of file ESCrcKchipFast.h.
References crc.
Referenced by ESCrcKchipFast().
{ crc = 0x0ffff ; }
bool ESCrcKchipFast::isCrcOk | ( | unsigned int | crcin = 0x0000 | ) | [inline] |
Definition at line 40 of file ESCrcKchipFast.h.
References get_crc().
{ return ((get_crc()==crcin) ? true : false ); };
void ESCrcKchipFast::reset | ( | void | ) | [inline] |
Definition at line 21 of file ESCrcKchipFast.h.
References crc.
Referenced by ESCrcKchipFast().
{ crc = 0x0ffff ; } ;
uint32_t ESCrcKchipFast::crc [private] |