oms_wp_phy_rcvd_pk_accept_status_get()

摘要

获取从 PHY 模块收到的给定数据包的接收接受状态(accept status)与平均 SNR 值。

语法

oms_wp_phy_rcvd_pk_accept_status_get (rcvd_pkptr, snr_ptr)

参数 类型 说明
rcvd_pkptr Packet* 待判定的数据包
snr_ptr double* 指向 SNR 的指针

返回类型

Boolean

OPC_TRUE:该数据包被 PHY 成功接收。OPC_FALSE:该数据包被 PHY 拒绝。

详细说明

接收接受状态表明该数据包最初是被 PHY 层接受还是拒绝。这在使用多载波模式时很有用:在多载波模式下,即使 PHY 层判定应当丢弃该数据包,数据包仍会被交付给 MAC 层。被丢弃的数据包仍会被 MAC 层用于帮助重传机制重建包中的数据。该内核过程同时提供该数据包所经历的平均 SNR。

在数据包发送之前,可以通过调用 oms_wp_phy_pk_transmission_info_set() 设置属性 OMSC_WP_PK_ECC_ACCEPT_STATUS_INT,强制该数据包无论接收差错条件如何都被接收。

示例

/* Packet arrived via PHY layer model.						*/
/* Get the decode recommendation from the PHY.					*/
else if ((decode_success = oms_wp_phy_rcvd_pk_accept_status_get 
		(rcvd_pkptr, &effective_snr_db)) != OPC_TRUE)	{
	/* Find the current number of retransmissions for this process.		*/
	num_rxmt = ue_context_ptr->harq_receive_state_arr [harq_process]->num_rxmt;
	/* The PHY layer could not decode the packet, pass it to HARQ		*/
	/* channel to compute HARQ SNR gain.					*/
	harq_support_packet_coding_gain_calculate_simple_harq (HarqC_Chase_Combining,
		&effective_snr_db,
		1.0 /*This is the entire packet*/, ue_context_ptr->harq_receiver_handle,
		harq_process,
		(num_rxmt == 0) /*New transmission*/);;

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