XFlash_DeviceControl - 2022.2 English

Xilinx Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2022-10-19
Version
2022.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).