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

Cyclic redundancy check (CRC-32-ABCC) class. More...

#include <CRC_32_ABCC.h>

Inheritance diagram for TCRC_32_ABCC:
Inheritance graph
Collaboration diagram for TCRC_32_ABCC:
Collaboration graph

Public Member Functions

 TCRC_32_ABCC ()
 Class constructor method. More...
 
VOID Initialise ()
 Initialise internal CRC value to initial value. 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)
 Update CRC with new data value. More...
 
VOID Update (U8 u8_Data)
 Update internal CRC with new data value. More...
 
- Public Member Functions inherited from TCRC_32_Base
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 TRIL Test ()
 Test CRC calulation. More...
 

Private Attributes

U32 u32_CRC_Intern
 CRC internal storage. More...
 

Detailed Description

Cyclic redundancy check (CRC-32-ABCC) class.

Constructor & Destructor Documentation

◆ TCRC_32_ABCC()

TCRC_32_ABCC::TCRC_32_ABCC ( )

Class constructor method.


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

References Initialise().

Here is the call graph for this function:

Member Function Documentation

◆ Calculate()

U32 TCRC_32_ABCC::Calculate ( VOID void_Data,
U32  u32_Size 
)
virtual

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 CRC of the data buffer
Override
Not allowed
Attention
None
dot_TCRC_32_ABCC__Calculate.png

Reimplemented from TCRC_32_Base.

References Update().

Referenced by Check().

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

◆ Check()

BOOL TCRC_32_ABCC::Check ( VOID void_Data,
U32  u32_Size,
U32  u32_Expected_CRC 
)

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]u32_Expected_CRC- Expected CRC of the data buffer
Returns
BOOL - Data buffer CRC checking status
Return values
false- CRC of the buffer not match to expected CRC
true- CRC of the buffer match to expected CRC
Override
Not allowed
Attention
None
dot_TCRC_32_ABCC__Check.png

References Calculate().

Here is the call graph for this function:

◆ Initialise()

VOID TCRC_32_ABCC::Initialise ( )

Initialise internal CRC value to initial value.


Note
None
Override
Not allowed
Attention
None
dot_TCRC_32_ABCC__Initialise.png

References u32_CRC_Intern.

Referenced by TCRC_32_ABCC().

Here is the caller graph for this function:

◆ Update() [1/2]

VOID TCRC_32_ABCC::Update ( U32 u32_CRC,
U8  u8_Data 
)
virtual

Update CRC with new data value.


Note
None
Parameters
[in,out]&u32_CRC- Actual CRC value
[in]u8_Data- Data value
Returns
None
Override
Not allowed
Attention
None
dot_TCRC_32_ABCC__Update.png

Implements TCRC_32_Base.

References u32_CRC32_Table.

Referenced by Calculate(), and Update().

Here is the caller graph for this function:

◆ Update() [2/2]

VOID TCRC_32_ABCC::Update ( U8  u8_Data)

Update internal CRC with new data value.


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

References u32_CRC_Intern, and Update().

Here is the call graph for this function:

Member Data Documentation

◆ u32_CRC_Intern

U32 TCRC_32_ABCC::u32_CRC_Intern
private

CRC internal storage.

Referenced by Initialise(), and Update().


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