op_intrpt_esys_interface()
Abstract
Obtains the esys interface ID associated with the current interrupt of the invoking process.
Syntax
op_intrpt_esys_interface ()
| Argument | Type | Description |
|---|---|---|
| no arguments |
Return Type
int
Esys interface ID associated with the current interrupt.
Example
/* Determine whether the event is an esys interface interrupt, and */
/* if so, obtain the esys interface ID and then the value on the */
/* output esys interface. */
if (op_intrpt_type() == OPC_INTRPT_ESYS_INTERFACE)
{
result_interface_id = op_intrpt_esys_interface();
op_esys_interface_value_get (result_interface_id, &result_value, 0);
}
Details
This KP produces a valid result only when invoked after an interrupt that is associated with data arriving on an esys interface.
Purpose
For esys interface interrupts, this KP determines the esys interface on which values are arriving (this information is needed to identify the esys interface from which to extract the values).
Errors
- Program Abort: KP requires process context.
- Recoverable Error: Current event is not an esys interface interrupt.
Reference
- Use the KP op_intrpt_type() to determine the type of the current interrupt
- Use the KP op_intrpt_code() to determine the numeric code associated with the current interrupt
- Use the KP op_esys_interface_value_get() to retrieve a value from an esys interface
- Use the KPs op_esys_interface_array_get() and op_esys_interface_vector_get() to retrieve multiple values from vector interfaces