ConOpSys V2970
P004.07
ANVILEX control operating system
|
Checksum 8 base class. More...
#include <Checksum_8_Base.h>
Public Member Functions | |
virtual U8 | Init ()=0 |
Get initial value of checksum. More... | |
BOOL | Check (VOID *void_Data, U32 u32_Size, U8 u8_Expected_Checksum) |
Check checksum of the data buffer. More... | |
virtual U8 | Calculate (VOID *void_Data, U32 u32_Size) |
Calculate checkdum of the data buffer. More... | |
virtual VOID | Update (U8 &u8_Checksum, U8 u8_Data)=0 |
Update checksum with new data value. More... | |
virtual TRIL | Test () |
Test checksum calulation. More... | |
Checksum 8 base class.
Calculate checkdum of the data buffer.
[in] | *void_Data | - Pointer to the data buffer |
[in] | u32_Size | - Size of the data buffer |
References Init(), and Update().
Referenced by Check().
Check checksum of the data buffer.
[in] | *void_Data | - Pointer to the data buffer |
[in] | u32_Size | - Size of the data buffer |
[in] | u8_Expected_Checksum | - Expected checksum of the data buffer |
false | - CRC of the buffer not match to expected checksum |
true | - CRC of the buffer match to expected checksum |
References Calculate().
|
pure virtual |
Get initial value of checksum.
Referenced by Calculate().
|
virtual |
Test checksum calulation.
unset | - Test method not implemented |
false | - Test checksum calculation failed |
true | - Test checksum calculation successed |
References unset.
Update checksum with new data value.
[in,out] | &u8_Checksum | - Actual checksum value |
[in] | u8_Data | - Data value |
Referenced by Calculate().