ConOpSys V2970
P004.07
ANVILEX control operating system
|
Cyclic redundancy check (CRC-7) class. More...
#include <CRC_7.h>
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... | |
Cyclic redundancy check (CRC-7) class.
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().
Check CRC of the data buffer.
[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 |
false | - CRC of the buffer not match to expected CRC |
true | - CRC of the buffer match to expected CRC |
References Calculate().
Update CRC with new data value.
[in,out] | &u8_CRC | - Actual CRC value |
[in] | u8_Data | - Data value |
References u8_CRC_7_Table.
Referenced by Calculate().