This function is used to inject SHA error in NPI descriptor list (in the first NPI descriptor) from user application. 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.
Note: The caller shall invoke this XSem_CmdNpiInjectError function again to correct the injected error in NPI descriptor.
Prototype
XStatus XSem_CmdNpiInjectError(XIpiPsu *IpiInst, XSemIpiResp *Resp);
Parameters
The following table lists the XSem_CmdNpiInjectError
function arguments.
Type | Member | Description |
---|---|---|
XIpiPsu * | IpiInst | Pointer to IPI driver instance |
XSemIpiResp
* |
Resp |
Structure Pointer of IPI response
|
Returns
This API returns the success or failure.- XST_FAILURE: On NPI error injection failure
- XST_SUCCESS: On NPI error injection success