📄 global_var.cpp.bak
字号:
#include "typedef.h"
#include "globalMacro.h"
//dlburst
Uint16 g_dlTxBurstIndex = {0};
Uint16 g_dlTxFrameSymIndex;
Uint8 g_dlTxCcEncodeReg = 0;
Uint8 g_dlTxStcFlag;
Uint8 g_dlTxSTcSwitch = {DISABLED}; //Tx STC enableing switch.
DlBurstProfileParam g_bsDlBurstProfile[DIUC_NUM_1];
//channel encoding
Uint16 g_dlTxRandVector;
Uint8 g_dlTxInBuff[DL_TX_INBUFF_SIZE_0]; //input buffer
Uint8 g_dlTxRandOutBuff[DL_TX_INBUFF_SIZE_0]; //randomization output buffer.
Uint8 g_dlTxRsOutBuff[DL_TX_RSENC_OUTBUFF_SIZE_0];//Rsencoding output
Uint8 g_dlTxCcEncodeOutBuff[DL_TX_CCENC_OUTBUFF_SIZE_0];
//CCencoding output
Uint8 g_dlTxInterleaveOutBuff[DL_TX_CCENC_OUTBUFF_SIZE_0];
//interleaver output
Int16 g_dlTxModulationOutBuff[2*DL_TX_DATAMOD_OUTBUFF_SIZE_0]; //output buffer I/Q with STC.
Int8 g_dlTxStcPilots[2][PILOTS_NUM];
Int16 g_dlTxStcOutBuff0[DL_TX_DATAMOD_OUTBUFF_SIZE_0]; //STC encoded output buffer I/Q .
Int16 g_dlTxStcOutBuff1[DL_TX_DATAMOD_OUTBUFF_SIZE_0]; //STC encoded output buffer I/Q .
PilotParam g_dlTxPilotParam = {0,0x07ff,0};
//PilotParam pil = {2,0x07ff,0x07ff};
Int16 bpskCoordinates[2] = {2896, -2896};
Int16 qpskCoordinates[2] = {2048, -2048};
Int16 qam16Coordinates[4] = {916, 2747, -916, -2747};
Int16 qam64Coordinates[8] = {1340, 446, 2234, 3128, -1340, -446, -2234, -3128};
TxScalingParam g_dlTxScalingParam =
{
TX_QAM_BITWIDTH,
TX_QAM_AVE,
TX_DAC_BITWIDTH,
TX_DAC_SCALING_FAC,
};
StcStartTimeParam g_dlTxStcStartTime =
{
DL_STC_STARTTIME_SYM_0,
DL_STC_STARTTIME_BURST_0
};
StcStartTimeParam g_dlRxStcStartTime =
{
DL_STC_STARTTIME_SYM_0,
DL_STC_STARTTIME_BURST_0
};
FrameParam g_bsDlFrameParam =
{
5000000,
2,
22, // frame duration in symbols;
10,
0, // the time padding duration in samples in the frame.
CP_1_4,
FFT_SIZE, // FFT size in samples
200
}; //the frame duration parameter currently in use
FrameParam g_ssDlFrameParam =
{
5000000,
2,
22, // frame duration in symbols;
10,
0, // the time padding duration in samples in the frame.
CP_1_4,
FFT_SIZE, // FFT size in samples
200
}; //the frame duration parameter currently in use
DlTxBurstParam g_dlTxBurstParam[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;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -