XFlash_DeviceControl - 2023.2 English

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

Document ID
UG643
Release Date
2023-12-13
Version
2023.2 English

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.

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