Reads the flash ID and identifies the flash in FCT table.
Prototype
u32 XSfl_FlashIdRead(XSfl_Interface *SflInstnacePtr, u8 ChipSelect, u8 *SflReadBuffer);
Parameters
The following table lists the XSfl_FlashIdRead function arguments.
| Type | Name | Description |
|---|---|---|
| XSfl_Interface | SflInstancePtr |
is a pointer to the
XSfl_Interface
driver component to use.
|
| u8 | ChipSelNum | is the chip select number. |
| u8 * | SflReadBuffer | is pointer to the read buffer to store flash id. |
Returns
- XST_SUCCESS if successful
- XST_FAILURE - In case of failure