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

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com