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

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

#include <CRC_32.h>

Collaboration diagram for TCRC_32:
Collaboration graph

Public Member Functions

 TCRC_32 ()
 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...
 
U32 Calculate (VOID *void_Data, U32 u32_Size)
 Calculate CRC of the data buffer. More...
 
VOID Update (U32 &u32_CRC, U8 u8_Data)
 Update CRC with new data value. More...
 
VOID Update (U8 u8_Data)
 Update CRC with new data value. More...
 
VOID Update (U32 &u32_CRC, U8 *u8_Data, U32 u32_Length)
 Update CRC with new data from data buffer. More...
 
VOID Update (U32 &u32_CRC, U32 u32_Data)
 Update CRC with new data value. More...
 

Private Attributes

U32 u32_CRC_Intern
 CRC internal storage variable. More...
 

Detailed Description

Cyclic redundancy check (CRC-32) class.

Constructor & Destructor Documentation

◆ TCRC_32()

TCRC_32::TCRC_32 ( )

Class constructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.
UML diagram
dot_TCRC_32__TCRC_32.png

References Initialise().

Here is the call graph for this function:

Member Function Documentation

◆ Calculate()

U32 TCRC_32::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
U32 - Calculated CRC of the data buffer
Override
Not allowed
Attention
None
UML diagram
dot_TCRC_32__Calculate.png

References Update().

Referenced by Check(), and TParameter_Manager::Media_Database_Write_Parameter().

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

◆ Check()

BOOL TCRC_32::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
UML diagram
dot_TCRC_32__Check.png

References Calculate().

Referenced by TParameter_Manager::Media_Database_Validate_Record(), and TParameter_Manager::Verify_Writtern_Record().

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

◆ Initialise()

VOID TCRC_32::Initialise ( )

initialise internal CRC value to initial value


Note
None
Override
Not allowed
Attention
None
UML diagram
dot_TCRC_32__Initialise.png

References u32_CRC_Intern.

Referenced by TCRC_32().

Here is the caller graph for this function:

◆ Update() [1/4]

VOID TCRC_32::Update ( U32 u32_CRC,
U32  u32_Data 
)

Update CRC with new data value.


Note
None
Parameters
[in,out]&u32_CRC- Actual CRC value
[in]u32_Data- Data value
Returns
None
Override
Not allowed
Attention
None
UML diagram
dot_TCRC_32__Update.png

References Extract_U8_From_U32(), and u32_CRC32_Table.

Here is the call graph for this function:

◆ Update() [2/4]

VOID TCRC_32::Update ( U32 u32_CRC,
U8 u8_Data,
U32  u32_Length 
)

Update CRC with new data from data buffer.


Note
None
Parameters
[in,out]&u32_CRC- Actual CRC value
[in]*u8_Data- Pointer to the data buffer
[in]u32_Length- Data buffer length
Returns
None
Override
Not allowed
Attention
None
UML diagram
dot_TCRC_32__Update.png

References u32_CRC32_Table.

◆ Update() [3/4]

VOID TCRC_32::Update ( U32 u32_CRC,
U8  u8_Data 
)

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
UML diagram
dot_TCRC_32__Update.png

References u32_CRC32_Table.

Referenced by TParameter_Base::Append_Hash_Data(), Calculate(), TEvent_Manager::Calculate_Database_Hash(), TParameter_Manager::Calculate_Database_Hash(), TCPU_STM32F410CBU6::Calculate_Image_Hash(), TCPU_STM32F429::Calculate_Image_Hash(), and Update().

Here is the caller graph for this function:

◆ Update() [4/4]

VOID TCRC_32::Update ( U8  u8_Data)

Update CRC with new data value.


Note
None
Parameters
[in]u8_Data- Data value
Returns
None
Override
Not allowed
Attention
None
UML diagram
dot_TCRC_32__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::u32_CRC_Intern
private

CRC internal storage variable.

Referenced by Initialise(), and Update().


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