XIsf_GetStatusReg2 - 2020.2 English

OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2020-11-24
Version
2020.2 English

This API reads the Serial Flash Status Register 2.

Note: The contents of the Status Register 2 is stored at the second byte pointed by the ReadPtr. This operation is available only in Winbond Serial Flash.

Prototype

int XIsf_GetStatusReg2(XIsf *InstancePtr, u8 *ReadPtr);

Parameters

The following table lists the XIsf_GetStatusReg2 function arguments.

Table 1. XIsf_GetStatusReg2 Arguments
Type Name Description
XIsf * InstancePtr Pointer to the XIsf instance.
u8 * ReadPtr Pointer to the memory where the Status Register content is copied.

Returns

XST_SUCCESS if successful else XST_FAILURE.