l1_rf10.c
来自「是一个手机功能的模拟程序」· C语言 代码 · 共 1,723 行 · 第 1/4 页
C
1,723 行
{// Ramp-Down #8 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #9 profile - Power Level 9
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #9 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #10 profile - Power Level 10
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #10 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #11 profile - Power Level 11
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #11 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #12 profile - Power Level 12
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #12 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #13 profile - Power Level 13
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #13 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #14 profile - Power Level 14
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #14 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #15 profile - Power Level 15
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #15 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
},
{ //TX temperature compensation
#if (ORDER2_TX_TEMP_CAL==1)
{ -11, 0, 0, 0 },
{ +9, 0, 0, 0 },
{ +39, 0, 0, 0 },
{ +59, 0, 0, 0 },
{ 127, 0, 0, 0 }
#else
{ -11, 0 },
{ +9, 0 },
{ +39, 0 },
{ +59, 0 },
{ 127, 0 }
#endif
},
},
//IQ swap
SWAP_IQ_DCS
};
//copy from gsm900
const T_RF_BAND rf_850 =
{
{ //RX structure
//T_RX_CAL_PARAMS rx_cal_params
{
181, //g_magic
40, //lna_gain_max * 2
40, //lna_th_high
44 //lna_th_low
},
{ //T_RF_AGC_BAND agc_bands[RF_RX_CAL_CHAN_SIZE];
// Remark: ARFCN=0 (GSM-E) is maintained by 1st GSM subbband.
// upper_bound, agc_calib
{ 10, 0}, // sub-band1 up to arfcn = 10, Agc calibration = 0db
{ 30, 0}, // sub-band2 up to arfcn = 30, Agc calibration = 0db
{ 51, 0}, // sub-band3 up to arfcn = 51, Agc calibration = 0db
{ 71, 0}, // etc.
{ 90, 0}, //
{ 112, 0}, //
{ 124, 0}, //
{ 991, 0}, //
{ 992, 0}, //
{1023, 0}, //
},
{ //RX temperature compensation
{ -15 , 0 },
{ -5 , 0 },
{ 6 , 0 },
{ 16 , 0 },
{ 25 , 0 },
{ 35 , 0 },
{ 45 , 0 },
{ 56 , 0 },
{ 66 , 0 },
{ 75 , 0 },
{ 100 , 0 }
}
},
{ //TX structure
{// gsm850 T_LEVEL_TX
{ 510, 0, 0 }, // 0
{ 510, 0, 0 }, // 1
{ 510, 0, 0 }, // 2
{ 510, 0, 0 }, // 3
{ 510, 0, 0 }, // 4
{ 510, 0, 0 }, // 5
{ 449, 1, 0 }, // 6
{ 361, 2, 0 }, // 7
{ 291, 3, 0 }, // 8
{ 236, 4, 0 }, // 9
{ 192, 5, 0 }, // 10
{ 157, 6, 0 }, // 11
{ 130, 7, 0 }, // 12
{ 107, 8, 0 }, // 13
{ 86, 9, 0 }, // 14
{ 71, 10, 0 }, // 15
{ 61, 11, 0 }, // 16
{ 52, 12, 0 }, // 17
{ 47, 13, 0 }, // 18
{ 43, 14, 0 }, // 19
{ 43, 14, 0 }, // 20
{ 43, 14, 0 }, // 21
{ 43, 14, 0 }, // 22
{ 43, 14, 0 }, // 23
{ 43, 14, 0 }, // 24
{ 43, 14, 0 }, // 25
{ 43, 14, 0 }, // 26
{ 43, 14, 0 }, // 27
{ 43, 14, 0 }, // 28
{ 43, 14, 0 }, // 29
{ 43, 14, 0 }, // 30
{ 43, 14, 0 }, // 31
},
{// Channel Calibration Talbles
{// arfcn, tx_chan_cal
{ 40, 128 }, // Calibration Table 0
{ 80, 128 },
{ 124, 128 },
{ 586, 128 },
{ 661, 128 },
{ 736, 128 },
{ 885, 128 },
{ 1023, 128 }
},
{// arfcn, tx_chan_cal
{ 554, 128 }, // Calibration Table 1
{ 722, 128 },
{ 746, 128 },
{ 774, 128 },
{ 808, 128 },
{ 851, 128 },
{ 870, 128 },
{ 885, 128 }
},
{// arfcn, tx_chan_cal
{ 40, 128 }, // Calibration Table 2
{ 80, 128 },
{ 124, 128 },
{ 586, 128 },
{ 661, 128 },
{ 736, 128 },
{ 885, 128 },
{ 1023, 128 }
},
{// arfcn, tx_chan_cal
{ 40, 128 }, // Calibration Table 3
{ 80, 128 },
{ 124, 128 },
{ 586, 128 },
{ 661, 128 },
{ 736, 128 },
{ 885, 128 },
{ 1023, 128 }
}
},
{ //Ramp profiles 850
{
{// Ramp-Up #0 profile - Power Level 5
0,0,0,0,0,0,0,0,0,10,31,31,31,15,10,0
},
{ //Ramp-Down #0 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #1 profile - Power Level 6
0,0,0,0,0,0,0,0,0,10,31,31,31,15,10,0
},
{ //Ramp-Down #1 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #2 profile - Power Level 7
0,0,0,0,0,0,0,0,0,6,19,31,31,31,10,0
},
{ //Ramp-Down #2 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #3 profile - Power Level 8
0,0,0,0,0,0,0,0,0,6,19,31,31,31,10,0
},
{ //Ramp-Down #3 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #4 profile - Power Level 9
0,0,0,0,0,0,0,0,0,9,16,31,31,31,10,0
},
{ //Ramp-Down #4 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #5 profile - Power Level 10
0,0,0,0,0,0,0,0,0,9,16,31,31,31,10,0
},
{ //Ramp-Down #5 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #6 profile - Power Level 11
0,0,0,0,0,0,0,0,0,9,16,31,31,31,10,0
},
{ //Ramp-Down #6 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #7 profile - Power Level 12
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #7 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #8 profile - Power Level 13
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #8 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #9 profile - Power Level 14
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #9 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #10 profile - Power Level 15
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #10 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #11 profile - Power Level 16
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #11 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #12 profile - Power Level 17
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #12 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #13 profile - Power Level 18
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #13 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #14 profile - Power Level 19
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{ //Ramp-Down #14 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
},
},
{
{// Ramp-Up #15 profile - Power Level 19
0,0,0,0,0,0,0,0,0,0,25,31,31,31,10,0
},
{// Ramp-Down #15 profile
0,10,25,31,31,22,9,0,0,0,0,0,0,0,0,0
}
}
},
{ //TX temperature compensation
#if (ORDER2_TX_TEMP_CAL==1)
{ -11, 0, 0, 0 },
{ +9, 0, 0, 0 },
{ +39, 0, 0, 0 },
{ +59, 0, 0, 0 },
{ 127, 0, 0, 0 }
#else
{ -11, 0 },
{ +9, 0 },
{ +39, 0 },
{ +59, 0 },
{ 127, 0 }
#endif
},
},
//IQ swap
SWAP_IQ_GSM850,
};
//copy from dcs1800
const T_RF_BAND rf_1900 =
{
{ //RX structure
{ //T_RX_CAL_PARAMS rx_cal_params
186, //g_magic
40, //lna gain * 2
40, //lna_th_high
44 //lna_th_low
},
{ //T_RF_AGC_BAND agc_bands[RF_RX_CAL_CHAN_SIZE];
/*--------------*/
/*-- PCS band --*/
/*--------------*/
{ 548, 1}, //
{ 622, 1}, //
{ 680, 0}, //
{ 745, 0}, //
{ 812, 3}, //
{ 860, 0}, //
{ 885, 2}, //
{ 991, 0}, //
{ 992, 0}, //
{1023, 0}, //
},
{ //RX temperature compensation
{ -15 , 0 },
{ -5 , 0 },
{ 6 , 0 },
{ 16 , 0 },
{ 25 , 0 },
{ 35 , 0 },
{ 45 , 0 },
{ 56 , 0 },
{ 66 , 0 },
{ 75 , 0 },
{ 100 , 0 }
}
},
{ //TX structure
{// pcs1900 T_LEVEL_TX
{ 460, 0, 0 }, // 0
{ 373, 1, 0 }, // 1
{ 307, 2, 0 }, // 2
{ 253, 3, 0 }, // 3
{ 209, 4, 0 }, // 4
{ 175, 5, 0 }, // 5
{ 145, 6, 0 }, // 6
{ 122, 7, 0 }, // 7
{ 99, 8, 0 }, // 8
{ 83, 9, 0 }, // 9
{ 70, 10, 0 }, // 10
{ 58, 11, 0 }, // 11
{ 47, 12, 0 }, // 12
{ 38, 13, 0 }, // 13
{ 32, 14, 0 }, // 14
{ 25, 15, 0 }, // 15
{ 25, 15, 0 }, // 16
{ 25, 15, 0 }, // 17
{ 25, 15, 0 }, // 18
{ 25, 15, 0 }, // 19
{ 25, 15, 0 }, // 20
{ 25, 15, 0 }, // 21
{ 25, 15, 0 }, // 22
{ 25, 15, 0 }, // 23
{ 25, 15, 0 }, // 24
{ 25, 15, 0 }, // 25
{ 25, 15, 0 }, // 26
{ 25, 15, 0 }, // 27
{ 25, 15, 0 }, // 28
{ 460, 0, 0 }, // 29
{ 460, 0, 0 }, // 30
{ 460, 0, 0 }, // 31
},
{// Channel Calibration Tables
{// arfcn, tx_chan_cal
{ 549, 127 }, // Calibration Table 0
{ 586, 127 },
{ 623, 127 },
{ 697, 128 },
{ 726, 129 },
{ 754, 128 },
{ 782, 129 },
{ 810, 131 }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?