|
ConOpSys V2970
P004.07
ANVILEX control operating system
|
Cyclic redundancy check (CRC-32) base class. More...
#include <CRC_32_Base.h>


Public Member Functions | |
| virtual U32 | Init ()=0 |
| Get initial value of CRC. More... | |
| BOOL | Check (VOID *void_Data, U32 u32_Size, U32 u32_Expected_CRC) |
| Check CRC of the data buffer. More... | |
| virtual U32 | Calculate (VOID *void_Data, U32 u32_Size) |
| Calculate CRC of the data buffer. More... | |
| virtual VOID | Update (U32 &u32_CRC, U8 u8_Data)=0 |
| Update CRC with new data value. More... | |
| virtual TRIL | Test () |
| Test CRC calulation. More... | |
Cyclic redundancy check (CRC-32) base class.
Calculate CRC of the data buffer.
| [in] | *void_Data | - Pointer to the data buffer |
| [in] | u32_Size | - Size of the data buffer |
Reimplemented in TCRC_32_ABCC.
References Init(), and Update().
Referenced by Check().


Check CRC of the data buffer.
| [in] | *void_Data | - Pointer to the data buffer |
| [in] | u32_Size | - Size of the data buffer |
| [in] | u32_Expected_CRC | - Expected CRC of the data buffer |
| false | - CRC of the buffer not match to expected CRC |
| true | - CRC of the buffer match to expected CRC |
References Calculate().

|
pure virtual |
Get initial value of CRC.
Referenced by Calculate().

|
virtual |
Test CRC calulation.
| unset | - Test method not implemented |
| false | - Test CRC calculation failed |
| true | - Test CRC calculation successed |
References unset.
Update CRC with new data value.
| [in,out] | &u32_CRC | - Actual CRC value |
| [in] | u8_Data | - Data value |
Implemented in TCRC_32_ABCC.
Referenced by Calculate().
