XFlash_DeviceControl - 2021.2 English

Xilinx Standalone Library Documentation: OS and Libraries Document Collection

Document ID
UG643
Release Date
2021-10-27
Version
2021.2 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).