⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global_var.cpp.bak

📁 在vc上做的802.16d ofdm phy的仿真
💻 BAK
📖 第 1 页 / 共 4 页
字号:
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
	};

	DlRxBurstParam g_dlRxBurstParam[MAX_DL_BURST_NUM_0] = 
	{
		//burst0# preamble and fch
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			0,		//the burst Index in a frame.
			12,		//payload info bytes 
			LONG_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;
//output
			FCH_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
								//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,			//Rate_ID
			0, 			//DIUC
			0, 			//4 LSB bit of BS ID
			3,	//the allocated burst length in OFDM symbols
				//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0	//stcFlag
		},
		//burst1# use rateID
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			1,		//the burst Index in a frame.
			12,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			BURSTONE_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,			//Rate_ID
			0, 			//DIUC
			0, 			//4 LSB bit of BS ID
			2,	//the allocated burst length in OFDM symbols
				//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
		//burst2# use diuc
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			2,		//the burst Index in a frame.
			24,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			BURSTONE_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,			//Rate_ID
			1, 			//DIUC
			0, 			//4 LSB bit of BS ID
			2,			//the allocated burst length in OFDM symbols
						//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
		//burst3# use diuc
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			3,		//the burst Index in a frame.
			36,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			BURSTONE_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,			//Rate_ID
			2, 			//DIUC
			0, 			//4 LSB bit of BS ID
			2,			//the allocated burst length in OFDM symbols
						//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
			//burst4# use diuc
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			4,		//the burst Index in a frame.
			72,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			BURSTONE_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,			//Rate_ID
			4, 			//DIUC
			0, 			//4 LSB bit of BS ID
			2,			//the allocated burst length in OFDM symbols
						//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
		//burst5# use diuc
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			5,		//the burst Index in a frame.
			96,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			BURSTONE_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,			//Rate_ID
			5, 			//DIUC
			0, 			//4 LSB bit of BS ID
			2,			//the allocated burst length in OFDM symbols
						//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
//input/output:
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
		//burst6# stcPreamble and stcfch
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			6,		//the burst Index in a frame.
			12,		//payload info bytes 
			STC_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			STCFCH_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,				//Rate_ID
			0, 				//DIUC
			0, 				//4 LSB bit of BS ID
			2,				//the allocated burst length in OFDM symbols
							//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
		//burst7# stcdata dl_map use rateid
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			7,		//the burst Index in a frame.
			12,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			STC_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,				//Rate_ID
			0, 				//DIUC
			0, 				//4 LSB bit of BS ID
			3,				//the allocated burst length in OFDM symbols
							//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
		//burst8# stcdata
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			8,		//the burst Index in a frame.
			24,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			STC_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,				//Rate_ID
			1, 				//DIUC
			0, 				//4 LSB bit of BS ID
			2,				//the allocated burst length in OFDM symbols
							//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
		//burst9# stcdata
		{
			0, 		//4 LSB bit the  frame index number
			16,		//the sub-channel index
			9,		//the burst Index in a frame.
			96,		//payload info bytes 
			NO_PREAMBLE,		//=NO_PREAMBLE, SHORT_PREAMBLE, LONG_PREAMBLE;
							//STC_PREAMBLE;

			STC_BURSTFLAG,		//=FCH_BURSTFLAG, indication that the burst is FCH
									//=BURSTONE_BURSTFLAG, the burst is non-FCH  but not in STC.
								//=STCFCH_BURSTFLAG, indication that the burst is STC-FCH.
								//=STC_BURSTFLAG, the burst is in STC region but  is not STC-FCH
			0,				//Rate_ID
			5, 				//DIUC
			0, 				//4 LSB bit of BS ID
			2,				//the allocated burst length in OFDM symbols
							//=3 for FCH; =2 for STC_FCH;
			NOFEC_DONE,			//execution status
								//NOFEC_DONE=no FEC coding done,
								//RSENCODE_DONE=RS encoding is done,
								//CONVENCODE_DONE=convolutional encoding is done
								//INTERLEAVE_DONE=interleaving is done
								//DATAMOD_DONE=data modulation is done
			0,	//the OFDM symbol index in a burst.
			0   //stcFlag
		},
	};


	OfdmSymbolParam g_bsDlOfdmSymbolParam[DIUC_NUM_1] =
	{
		{
			12,//before FEC in bytes including "0x00"tail byte, 
										//without subchannelization
			24,	//after FEC in bytes without subchannelization
			0,		//RS parity bytes without subchannelization
			24,	//after CC in bytes without subchannelization
			0,		//after BTC in bytes without subchannelization
			0,		//after CTC in bytes without subchannelization
			ONE_HALF,
			0,
			0,
		    BPSK,
			6,		//max number of uncoded bits (before rand.) per subchannel per symbol.
			12,		//number of CC coded bits per (single) subchannel per symbol.
			1,		//number of coded bits per subcarrier.
			12,		//number of coded bits per (single) sub-channel per OFDM symbol, 
								//=12*ncpc, Ncbps=ncbpss*number of allocated subChannels.
								//For DL, Ncbps=16*ncbpss, always.
			1,	//=nbpss/ncpc, the number of QAM symbols per symbol per (single) subchannel
		},
		{
			24,//before FEC in bytes including "0x00"tail byte, 
										//without subchannelization
			48,	//after FEC in bytes without subchannelization
			8,		//RS parity bytes without subchannelization
			48,	//after CC in bytes without subchannelization
			0,		//after BTC in bytes without subchannelization
			0,		//after CTC in bytes without subchannelization
			TWO_THIRDS,
			0,
			0,
		    QPSK,
			12,		//max number of uncoded bits (before rand.) per subchannel per symbol.
			24,		//number of CC coded bits per (single) subchannel per symbol.
			2,		//number of coded bits per subcarrier.
			24,		//number of coded bits per (single) sub-channel per OFDM symbol, 
								//=12*ncpc, Ncbps=ncbpss*number of allocated subChannels.
								//For DL, Ncbps=16*ncbpss, always.
			2,	//=nbpss/ncpc, the number of QAM symbols per symbol per (single) subchannel
		},
		{
			36,//before FEC in bytes including "0x00"tail byte, 
										//without subchannelization
			48,	//after FEC in bytes without subchannelization
			4,		//RS parity bytes without subchannelization
			48,	//after CC in bytes without subchannelization
			0,		//after BTC in bytes without subchannelization
			0,		//after CTC in bytes without subchannelization
			FIVE_SIXTHS,
			0,
			0,
		    QPSK,
			18,		//max number of uncoded bits (before rand.) per subchannel per symbol.
			24,		//number of CC coded bits per (single) subchannel per symbol.
			2,		//number of coded bits per subcarrier.
			24,		//number of coded bits per (single) sub-channel per OFDM symbol, 
								//=12*ncpc, Ncbps=ncbpss*number of allocated subChannels.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -