This function reads the data from the Flash device and copies it into the specified user buffer.
The source and destination addresses can be on any alignment supported by the processor.
The device is polled until an error or the operation completes successfully.
int XFlash_Read(XFlash *InstancePtr, u32 Offset, u32 Bytes, void *DestPtr);
The following table lists the
XFlash_Read function arguments.
|Pointer to the XFlash instance.
|Offset into the device(s) address space from which to read.
|Number of bytes to copy.
|Destination address to copy data to.
- XST_SUCCESS if successful.
- XFLASH_ADDRESS_ERROR if the source address does not start within the addressable areas of the device(s).