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.
|XFlash *||InstancePtr||Pointer to the XFlash instance.|
|u32||Offset||Offset into the device(s) address space from which to read.|
|u32||Bytes||Number of bytes to copy.|
|void *||DestPtr||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).