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

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

#include <CRC_7.h>

Collaboration diagram for TCRC_7:
Collaboration graph

Public Member Functions

BOOL Check (VOID *void_Data, U32 u32_Size, U8 u8_Expected_CRC)
 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_CRC, U8 u8_Data)
 Update CRC with new data value. More...
 

Detailed Description

Cyclic redundancy check (CRC-7) class.

Member Function Documentation

◆ Calculate()

U8 TCRC_7::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 CRC of the data buffer
Override
Not allowed
Attention
None
dot_TCRC_7__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 TCRC_7::Check ( VOID void_Data,
U32  u32_Size,
U8  u8_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]u8_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_7__Check.png

References Calculate().

Here is the call graph for this function:

◆ Update()

VOID TCRC_7::Update ( U8 u8_CRC,
U8  u8_Data 
)

Update CRC with new data value.


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

References u8_CRC_7_Table.

Referenced by Calculate().

Here is the caller graph for this function:

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