168 #define IF_p6ICRC16 {0x49eab11f,0xf78e,0x4360,{0xa4,0xff,0xf0,0x2c,0xec,0x48,0x8f,0x42}}
171 #define COMP_p6CRC16 {0x84041833,0x27d7,0x4be5,{0xbe,0x40,0xf9,0x9,0x10,0xf1,0xe6,0x82}}
virtual P6R::P6ERR firstBlock(P6UINT8 *pBlock, P6UINT32 blockSize)=0
This object allows the caller to pass one or more buffers into the CRC calculation.
virtual P6R::P6ERR reset(P6CRC16FLAGS flags, P6UINT16 polynomial, P6UINT16 initValue, P6UINT16 finalXOR, P6BOOL reflected)=0
To reuse this object either with the same or different polynomial this function must be called...
const P6CRC16FLAGS P6CRC16_USEDEFAULTS
virtual P6R::P6ERR initialize(P6CRC16FLAGS flags, P6UINT16 polynomial, P6UINT16 initValue, P6UINT16 finalXOR, P6BOOL reflected)=0
This function ensures that this object is in its proper initial state.
const P6CRC16FLAGS P6CRC16_NOFLAGS
Cyclic Redundancy Check 16 bits.
unsigned short int P6UINT16
The base interface all [p6]COM components must derive from and implement.
virtual P6R::P6ERR getCRC(P6UINT16 *pCRC16)=0
After all buffers have been feed to the firstBlock(), nextBlock(), ..., nextBlock() functions the CRC...
virtual P6R::P6ERR nextBlock(P6UINT8 *pBlock, P6UINT32 blockSize)=0
If computing a CRC over multiple buffers, then this function must be called for the 2nd and all follo...
P6COM definitions and interfaces.
P6UINT32 P6CRC16FLAGS
P6CRC16FLAGS.