This function is used to read all NPI Status registers from PMC RAM and send to user application.
Prototype
XStatus XSem_CmdNpiGetStatus(XSemNpiStatus *NpiStatusInfo);
Parameters
The following table lists the XSem_CmdNpiGetStatus
function arguments.
Type | Member | Description |
---|---|---|
XSemNpiStatus
* |
NpiStatusInfo |
This is a pointer to buffer where XilSEM on PLM updates the status after receiving the command. The buffer should be non-cacheable and accessible to PMC. Structure Pointer with NPI Status details. NpiStatusInfo->Status: Provides details about NPI scan
|
XSemNpiStatus
* |
NpiStatusInfo |
NpiStatusInfo->SlvSkipCnt: Provides NPI descriptor slave skip counter value if arbitration failure. This is 8 words result to accommodate 32 1-Byte skip counters for individual slaves arbitration failures. Slaves can be DDRMC Main, GT for which arbitration is required before performing scanning. NpiStatusInfo->ScanCnt: NPI scan counter value. This counter represents number of periodic scan cycle completion. NpiStatusInfo->HbCnt: NPI heartbeat counter value. This counter represents number of scanned descriptor slaves. NpiStatusInfo->ErrInfo: NPI scan error information if SHA mismatch is detected. This is 2 word information.
|
Returns
This API returns the success or failure.- XST_FAILURE: If NULL pointer reference of NpiStatusInfo
- XST_SUCCESS: On successful read from PMC RAM