oms_wp_phy_module_handle_get()
摘要
获取 PHY 模块的句柄。
语法
oms_wp_phy_module_handle_get (phy_module_name)
| 参数 | 类型 | 说明 |
|---|---|---|
phy_module_name |
const char* |
节点模型中 PHY 模块的名称 使用所提供的模块时,默认名称为 “phy”。 |
返回类型
OmsT_WP_Phy_Handle*
详细说明
当未使用 oms_wp_phy_module_initialize_single_carrier() 和 oms_wp_phy_module_initialize_multi_carrier() 时,应使用该函数。在这种情况下,PHY 模块客户端可以利用该句柄向 PHY 模块发送数据包,或安装测量并订阅通知。
示例
coverage_area_tracker 进程模型 init4 enter execs 的节选。
* Obtain a handle to the advanced wireless PHY module. */
phy_handle = oms_wp_phy_module_handle_get ("phy");
/* Register a received power measure. Note that the object ID of the cell */
/* transmitter is associated to this measurement so only the packets sent from */
/* that node contribute to this measurement. */
oms_wp_phy_measure_register_single(phy_handle,
(int) Transmitter_Node_Objid,
OmsC_WP_RCV_Power,
OMSC_WP_MEASURE_WNDW_SIZE_NONE,
coverage_tracker_phy_rcvd_power_measurement_collect_only_one_node);