ConOpSys V2970
P004.07
ANVILEX control operating system
|
Cyclic redundancy check (CRC-16-MODBUS) class. More...
#include <CRC_16_MODBUS.h>
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... | |
Cyclic redundancy check (CRC-16-MODBUS) class.
|
virtual |
Get initial value of CRC method.
Implements TCRC_16_Base.
|
virtual |
Test CRC calulation method.
unset | - Test method not implemented |
false | - Test CRC calculation failed |
true | - Test CRC calculation successed |
Reimplemented from TCRC_16_Base.
References unset.
Update CRC with new data value method.
[in,out] | &u16_CRC | - Actual CRC value |
[in] | u8_Data | - Data value |
Implements TCRC_16_Base.