XSem_Ssit_CmdNpiInjectError - 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 inject SHA error in NPI descriptor list (in the first NPI descriptor) from user application on targeted SLR . Primarily this function sends an IPI request to PLM to invoke SEM NPI ErrorInject, waits for PLM to process the request and reads the response message of the given SLR.

Note: The caller shall invoke this XSem_CmdNpiInjectError function again to correct the injected error in NPI descriptor.

Prototype

XStatus XSem_Ssit_CmdNpiInjectError(XIpiPsu *IpiInst, XSemIpiResp *Resp, u32 TargetSlr);

Parameters

The following table lists the XSem_Ssit_CmdNpiInjectError function arguments.

Table 1. XSem_Ssit_CmdNpiInjectError Arguments
Type Member Description
XIpiPsu * IpiInst Pointer to IPI driver instance
XSemIpiResp * Resp Structure Pointer of IPI response
  • Resp->RespMsg1: Acknowledgment ID of NPI error injection(0x10307)
  • Resp->RespMsg2: Status of NPI error injection
u32 TargetSlr Target SLR index on which command is to be executed
  • 0x0 : Target is master only
  • 0x1 : Target is slave 0 only
  • 0x2 : Target is slave 1 only
  • 0x3 : Target is slave 2 only
  • 0xF : Broadcast not supported for this API Status of NPI scan error injection: 0: Success, 1: Failure

Returns

This API returns the success or failure.
  • XST_FAILURE: On NPI error injection failure
  • XST_SUCCESS: On NPI error injection success