ConOpSys V2970  P004.07
ANVILEX control operating system
Public Member Functions | List of all members
TChecksum_8_Base Class Referenceabstract

Checksum 8 base class. More...

#include <Checksum_8_Base.h>

Collaboration diagram for TChecksum_8_Base:
Collaboration graph

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

Detailed Description

Checksum 8 base class.

Member Function Documentation

◆ Calculate()

U8 TChecksum_8_Base::Calculate ( VOID void_Data,
U32  u32_Size 
)
virtual

Calculate checkdum 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 of the data buffer
Override
Not allowed
Attention
None
dot_TChecksum_8_Base__Calculate.png

References Init(), and Update().

Referenced by Check().

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

◆ Check()

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

Check checksum 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 checking status
Return values
false- CRC of the buffer not match to expected checksum
true- CRC of the buffer match to expected checksum
Override
Not allowed
Attention
None
dot_TChecksum_8_Base__Check.png

References Calculate().

Here is the call graph for this function:

◆ Init()

virtual U8 TChecksum_8_Base::Init ( )
pure virtual

Get initial value of checksum.


Note
None
Returns
U16 - CRC initial value
Override
Requered
Attention
None

Referenced by Calculate().

Here is the caller graph for this function:

◆ Test()

TRIL TChecksum_8_Base::Test ( )
virtual

Test checksum calulation.


Note
None
Returns
TRIL - Test checksum calculation status
Return values
unset- Test method not implemented
false- Test checksum calculation failed
true- Test checksum calculation successed
Override
Not allowed
Attention
Don't call this method directly
dot_TChecksum_8_Base__Test.png

References unset.

◆ Update()

virtual VOID TChecksum_8_Base::Update ( U8 u8_Checksum,
U8  u8_Data 
)
pure virtual

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

Referenced by Calculate().

Here is the caller graph for this function:

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