Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICRC16::firstBlock ( P6UINT8 pBlock,
P6UINT32  blockSize 
)
pure virtual

This object allows the caller to pass one or more buffers into the CRC calculation.

If the caller only has one buffer to compute the CRC then the "nextBlock" function is not needed. This function must be called for the first buffer over which a CRC is to be computed.

As a side effect, this function resets the CRC calculation by setting the CRC register to either zero or the configured "initValue".

Parameters
pBlock[ in ] Pointer to a buffer of 8 bit bytes of data (binary or text)
blockSize[ in ] The number of bytes in the buffer pointed to by pBlock
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpBlock is NULL, or blockSize is zero.
P6R::eNotInitializedA successful call to initialize has not been done.