|
ConOpSys V2970
P004.07
ANVILEX control operating system
|
Cyclic redundancy check (CRC-32) class. More...
#include <CRC_32.h>

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... | |
Cyclic redundancy check (CRC-32) class.
| TCRC_32::TCRC_32 | ( | ) |
Class constructor method.
References Initialise().

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(), and TParameter_Manager::Media_Database_Write_Parameter().


Check CRC of the data buffer.
| [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 |
| false | - CRC of the buffer not match to expected CRC |
| true | - CRC of the buffer match to expected CRC |
References Calculate().
Referenced by TParameter_Manager::Media_Database_Validate_Record(), and TParameter_Manager::Verify_Writtern_Record().


| VOID TCRC_32::Initialise | ( | ) |
initialise internal CRC value to initial value
References u32_CRC_Intern.
Referenced by TCRC_32().

Update CRC with new data value.
| [in,out] | &u32_CRC | - Actual CRC value |
| [in] | u32_Data | - Data value |
References Extract_U8_From_U32(), and u32_CRC32_Table.

Update CRC with new data from data buffer.
| [in,out] | &u32_CRC | - Actual CRC value |
| [in] | *u8_Data | - Pointer to the data buffer |
| [in] | u32_Length | - Data buffer length |
References u32_CRC32_Table.
Update CRC with new data value.
| [in,out] | &u32_CRC | - Actual CRC value |
| [in] | u8_Data | - Data value |
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().

Update CRC with new data value.
| [in] | u8_Data | - Data value |
References u32_CRC_Intern, and Update().

|
private |
CRC internal storage variable.
Referenced by Initialise(), and Update().