ConOpSys V2970
P004.07
ANVILEX control operating system
|
Checksum 8 class. More...
#include <Checksum_8.h>
Public Member Functions | |
TChecksum_8 () | |
Class constructor method. More... | |
VOID | Initialise () |
initialise internal CRC value to initial value More... | |
BOOL | Check (VOID *void_Data, U32 u32_Size, U8 u8_Expected_Checksum) |
Check CRC of the data buffer. More... | |
U8 | Calculate (VOID *void_Data, U32 u32_Size) |
Calculate CRC of the data buffer. More... | |
VOID | Update (U8 &u8_Checksum, U8 u8_Data) |
Update checksum with new data value. More... | |
VOID | Update (U8 u8_Data) |
Update checksum with new data value. More... | |
VOID | Update (U8 &u8_Checksum, U8 *u8_Data, U32 u32_Length) |
Update checksum with new data from data buffer. More... | |
Private Attributes | |
U8 | u8_Checksum_Intern = (U8)0x00 |
Checksum internal storage variable. More... | |
Checksum 8 class.
TChecksum_8::TChecksum_8 | ( | ) |
Class constructor method.
Calculate CRC of the data buffer.
[in] | *void_Data | - Pointer to the data buffer |
[in] | u32_Size | - Size of the data buffer |
References 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] | u8_Expected_Checksum | - Expected checksum of the data buffer |
false | - Checksum of the buffer not match to expected CRC |
true | - Checksum of the buffer match to expected CRC |
References Calculate().
VOID TChecksum_8::Initialise | ( | ) |
initialise internal CRC value to initial value
References u8_Checksum_Intern.
Update checksum with new data from data buffer.
[in,out] | &u8_Checksum | - Actual checksum value |
[in] | *u8_Data | - Pointer to the data buffer |
[in] | u32_Length | - Data buffer length |
Update checksum with new data value.
[in,out] | &u8_Checksum | - Actual checksum value |
[in] | u8_Data | - Data value |
Referenced by Calculate(), and Update().
Update checksum with new data value.
[in] | u8_Data | - Data value |
References u8_Checksum_Intern, and Update().
Checksum internal storage variable.
Referenced by Initialise(), and Update().