This function performs read from the flash.
Prototype
u32 XSfl_FlashRead(u8 SflHandler, u32 Address, u32 ByteCount, u8 *ReadBfrPtr, u64 RxAddr64bit);
Parameters
The following table lists the XSfl_FlashRead function arguments.
| Type | Name | Description |
|---|---|---|
| u8 | SflHandler | is a index to the Sfl interface component to use. |
| u32 | Address | contains the address of the flash that needs to be read. |
| u32 | ByteCount | contains the total size to be erased. |
| u8 * | ReadBfrPtr | is the pointer to the read buffer to which valid received data must be written |
| u64 | RxAddr64bit | is of the 64-bit address of destination read buffer to which valid received data must be written. |
Returns
- XST_SUCCESS if successful
- XST_FAILURE - In case of failure