This function is used to execute device specific commands.
For a list of device specific commands, see the xilflash.h.
Prototype
int XFlash_DeviceControl(XFlash *InstancePtr, u32 Command, DeviceCtrlParam *Parameters);
Parameters
The following table lists the XFlash_DeviceControl function arguments.
| Type | Member | Description |
|---|---|---|
| XFlash * | InstancePtr | Pointer to the XFlash instance |
| u32 | Command | Device specific command to issue |
| DeviceCtrlParam * | Parameters | Specifies the arguments passed to the device control function |
Returns
- XST_SUCCESS if successful.
- XFLASH_NOT_SUPPORTED if the command is not recognized/supported by the device(s).