User`s manual
Rabbit 4000 Designer’s Handbook rabbit.com 65
7.2.3 Reading the User Block
readUserBlock
int readUserBlock(void *dest, unsigned addr, unsigned numbytes);
DESCRIPTION:
Reads a number of bytes from the User block on the primary flash to a buffer in root memory.
NOTE: portions of the User block may be used by the BIOS for your board to store values such
as calibration constants. See the manual for your particular board for more information before
overwriting any part of the User block.
PARAMETERS
dest Pointer to destination to copy data to.
addr Address offset in User block to read from.
numbytes Number of bytes to copy.
RETURN VALUE
0: Successful
-1: Invalid address or range
-2: No valid System ID block found
LIBRARY
IDBLOCK.LIB