XFlash_DeviceControl - 2021.1 English

Xilinx Standalone Library Documentation OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2021-06-16
Version
2021.1 English

This function is used to execute device specific commands.

For a list of device specific commands, see the xilflash.h.

Note: None.

Prototype

int XFlash_DeviceControl(XFlash *InstancePtr, u32 Command, DeviceCtrlParam *Parameters);

Parameters

The following table lists the XFlash_DeviceControl function arguments.

Table 1. XFlash_DeviceControl Arguments
Type Name 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).