<< Previous | Next >> | |
|
int readUserBlockArray( void * dests[], unsigned numbytes[], int numdests, unsigned addr );
Description
- Reads a number of bytes from the User block on the primary flash to a set of buffers in root memory. This function is usually used as the inverse function of
writeUserBlockArray()
.
- This function was introduced in Dynamic C version 7.30.
Parameters
- dests
- Pointer to array of destinations to copy data to.
- numbytes
- Array of numbers of bytes to be written to each destination.
- numdests
- Number of destinations.
- addr
- Address offset in User block to read from.
Return value
0
: Success
-1
: Invalid address or range
-2
: No valid System ID block found (block version 3 or later)
The return values below are applicable only if_SPI_USE_UCOS_MUTEX
is not #defined:
-ETIME
: (Serial flash only, time out waiting for SPI)
postive N: (Serial flash only, SPI in use by device N)Library
- IDBLOCK.LIB
See also
- writeUserBlockArray, readUserBlock
Dynamic C Functions | << Previous | Next >> | rabbit.com |