|
Function |
|
Compare bufferINFO and bufferRF with respect to specified length |
|
Purpose |
|
Buffer comparison |
|
Syntax |
|
bit compareBufferINFO2RF(uns8 length) |
|
Parameters |
|
length: number of bytes to be compared (1 to 64) |
|
Return value |
|
• 1 – Match • 0 – Mismatch |
|
Output values |
|
– |
|
Preconditions |
|
Offset memoryOffsetFrom is applied to shift the initial address in bufferINFO and offset memoryOffsetTo is applied to shift the initial address in bufferRF. |
|
Remarks |
|
• If memoryOffsetFrom = 0, memoryOffsetTo = 0, complete 64 B is compared. • See Example E06–RAM. |
|
Side effects |
|
– |
|
See also |
|
clearBufferINFO, copyBufferINFO2RF, copyBufferRF2INFO, swapBufferINFO |
|
Example |
|
if (!compareBufferINFO2RF(32)) // Compare 32 B then Error = 1; // Error if mismatch |