ConOpSys V2970  P004.07
ANVILEX control operating system
Public Member Functions | Private Attributes | List of all members
TChecksum_8 Class Reference

Checksum 8 class. More...

#include <Checksum_8.h>

Collaboration diagram for TChecksum_8:
Collaboration graph

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...
 

Detailed Description

Checksum 8 class.

Constructor & Destructor Documentation

◆ TChecksum_8()

TChecksum_8::TChecksum_8 ( )

Class constructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.
dot_TChecksum_8__TChecksum_8.png

Member Function Documentation

◆ Calculate()

U32 TChecksum_8::Calculate ( VOID void_Data,
U32  u32_Size 
)

Calculate CRC of the data buffer.


Note
None
Parameters
[in]*void_Data- Pointer to the data buffer
[in]u32_Size- Size of the data buffer
Returns
U8 - Calculated checksum 8 of the data buffer
Override
Not allowed
Attention
None
dot_TChecksum_8__Calculate.png

References Update().

Referenced by Check().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Check()

BOOL TChecksum_8::Check ( VOID void_Data,
U32  u32_Size,
U8  u8_Expected_Checksum 
)

Check CRC of the data buffer.


Note
None
Parameters
[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
Returns
BOOL - Data buffer checksum 8 checking status
Return values
false- Checksum of the buffer not match to expected CRC
true- Checksum of the buffer match to expected CRC
Override
Not allowed
Attention
None
dot_TChecksum_8__Check.png

References Calculate().

Here is the call graph for this function:

◆ Initialise()

VOID TChecksum_8::Initialise ( )

initialise internal CRC value to initial value


Note
None
Override
Not allowed
Attention
None
dot_TChecksum_8__Initialise.png

References u8_Checksum_Intern.

◆ Update() [1/3]

VOID TChecksum_8::Update ( U8 u8_Checksum,
U8 u8_Data,
U32  u32_Length 
)

Update checksum with new data from data buffer.


Note
None
Parameters
[in,out]&u8_Checksum- Actual checksum value
[in]*u8_Data- Pointer to the data buffer
[in]u32_Length- Data buffer length
Returns
None
Override
Not allowed
Attention
None
dot_TChecksum_8__Update.png

◆ Update() [2/3]

VOID TChecksum_8::Update ( U8 u8_Checksum,
U8  u8_Data 
)

Update checksum with new data value.


Note
None
Parameters
[in,out]&u8_Checksum- Actual checksum value
[in]u8_Data- Data value
Returns
None
Override
Not allowed
Attention
None
dot_TChecksum_8__Update.png

Referenced by Calculate(), and Update().

Here is the caller graph for this function:

◆ Update() [3/3]

VOID TChecksum_8::Update ( U8  u8_Data)

Update checksum with new data value.


Note
None
Parameters
[in]u8_Data- Data value
Returns
None
Override
Not allowed
Attention
None
dot_TChecksum_8__Update.png

References u8_Checksum_Intern, and Update().

Here is the call graph for this function:

Member Data Documentation

◆ u8_Checksum_Intern

U8 TChecksum_8::u8_Checksum_Intern = (U8)0x00
private

Checksum internal storage variable.

Referenced by Initialise(), and Update().


The documentation for this class was generated from the following files: