oms_wp_phy_measure_entity_get_from_rx_state()

摘要

获取一个可用于写入新值的测量实体。

语法

oms_wp_phy_measure_entity_get_from_rx_state (rx_state_ptr, measure_type, measure_identification_code)

参数 类型 说明
rx_state_ptr OmsT_WP_Rx_State_Info 接收机的状态信息
该接收机状态信息可在类型为 WrlsT_Measurement_Record_Proc_Ptr 的测量记录回调函数中获得。更多信息见 WrlsT_Measurement_Record_Proc_Ptr。
measure_type OmsT_WP_Measurement_Type 测量类型
更多信息见 OmsT_WP_Measurement_Type。
measure_identification_code int 与测量类型组合后可唯一标识该测量的编码

返回类型

OmsT_WP_Measurement_Entity*

详细说明

该内核过程获取给定接收机的测量实体,可用于 oms_wp_phy_support_measurement_write() 写入新值。与写入函数配合使用,可创建传递给 oms_wp_phy_measure_register_single() 的自定义 measure proc。

示例

coverage_area_tracker 进程模型头部代码的节选。

/* Derive the key from the source node obect ID.			*/
src_node_key = (int) op_topo_parent (op_pk_creation_mod_get (pkptr));

/* Access the entry indicated by the measure key.			*/
m_entity_ptr = oms_wp_phy_measure_entity_get_from_rx_state (rx_state_ptr, measure_type, src_node_key);

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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