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

Cyclic redundancy check (CRC-16-MODBUS) class. More...

#include <CRC_16_MODBUS.h>

Inheritance diagram for TCRC_16_MODBUS:
Inheritance graph
Collaboration diagram for TCRC_16_MODBUS:
Collaboration graph

Public Member Functions

virtual U16 Init ()
 Get initial value of CRC method. More...
 
virtual VOID Update (U16 &u16_CRC, U8 u8_Data)
 Update CRC with new data value method. More...
 
virtual TRIL Test ()
 Test CRC calulation method. More...
 
- Public Member Functions inherited from TCRC_16_Base
BOOL Check (VOID *void_Data, U32 u32_Size, U16 u16_Expected_CRC)
 Check CRC of the data buffer. More...
 
virtual U16 Calculate (VOID *void_Data, U32 u32_Size)
 Calculate CRC of the data buffer. More...
 

Detailed Description

Cyclic redundancy check (CRC-16-MODBUS) class.

Member Function Documentation

◆ Init()

U16 TCRC_16_MODBUS::Init ( )
virtual

Get initial value of CRC method.


Note
None
Returns
U16 - CRC initial value
Override
Not allowed
Attention
None
UML diagram
dot_TCRC_16_MODBUS__Init.png

Implements TCRC_16_Base.

◆ Test()

TRIL TCRC_16_MODBUS::Test ( )
virtual

Test CRC calulation method.


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

Reimplemented from TCRC_16_Base.

References unset.

◆ Update()

VOID TCRC_16_MODBUS::Update ( U16 u16_CRC,
U8  u8_Data 
)
virtual

Update CRC with new data value method.


Note
None
Parameters
[in,out]&u16_CRC- Actual CRC value
[in]u8_Data- Data value
Returns
None
Override
Not allowed
Attention
None
UML diagram
dot_TCRC_16_MODBUS__Update.png

Implements TCRC_16_Base.


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