📄 l1_rf10.c
字号:
},
{
{ 549, 128 }, // Calibration Table 1
{ 586, 128 },
{ 623, 128 },
{ 697, 128 },
{ 726, 128 },
{ 754, 128 },
{ 782, 128 },
{ 810, 128 }
},
{// arfcn, tx_chan_cal
{ 549, 128 }, // Calibration Table 2
{ 586, 128 },
{ 623, 128 },
{ 697, 128 },
{ 726, 128 },
{ 754, 128 },
{ 782, 128 },
{ 810, 128 }
},
{// arfcn, tx_chan_cal
{ 549, 128 }, // Calibration Table 3
{ 586, 128 },
{ 623, 128 },
{ 697, 128 },
{ 726, 128 },
{ 754, 128 },
{ 782, 128 },
{ 810, 128 }
}
},
{ // PCS1900 Power Ramp Values
{
{// Ramp-Up #0 profile - Power Level 0
0,0,0,0,0,0,0,0,0,9,16,31,31,31,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 1
0,0,0,0,0,0,0,0,0,10,15,31,31,31,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 2
0,0,0,0,0,0,0,0,0,10,15,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 3
0,0,0,0,0,0,0,0,0,17,18,29,24,30,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 4
0,0,0,0,0,0,0,0,0,17,18,29,24,30,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 5
0,0,0,0,0,0,0,0,0,17,18,29,24,30,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 6
0,0,0,0,0,0,0,0,0,17,18,29,24,30,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 7
0 ,0,0,0,0,0,0,0,0,17,18,29,24,30,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 8
0,0,0,0,0,0,0,0,0,17,18,29,24,30,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 9
0,0,0,0,0,0,0,0,0,17,18,29,24,30,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,17,18,29,24,30,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,17,18,29,24,30,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,17,18,29,24,30,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,17,18,29,24,30,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,17,18,29,24,30,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,17,18,29,24,30,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_PCS
};
/*------------------------------------------*/
/* ABB Initialization words
/*------------------------------------------*/
#if (ANALOG == 1)
UWORD16 abb[ABB_TABLE_SIZE] =
{
C_AFCCTLADD, // Value at reset
C_VBUR, // Uplink gain amp 0dB, Sidetone gain to mute
C_VBDR, // Downlink gain amp 0dB, Volume control 0 dB
C_BBCTL, // value at reset
C_APCOFF, // value at reset
C_BULIOFF, // value at reset
C_BULQOFF, // value at reset
C_DAI_ON_OFF, // value at reset
C_AUXDAC, // value at reset
C_VBCR, // VULSWITCH=0, VDLAUX=1, VDLEAR=1
C_APCDEL // value at reset
};
#elif (ANALOG == 2)
UWORD16 abb[ABB_TABLE_SIZE] =
{
C_AFCCTLADD,
C_VBUR,
C_VBDR,
C_BBCTL,
C_BULGCAL,
C_APCOFF,
C_BULIOFF,
C_BULQOFF,
C_DAI_ON_OFF,
C_AUXDAC,
C_VBCR,
C_VBCR2,
C_APCDEL,
C_APCDEL2
};
#elif (ANALOG == 3)
UWORD16 abb[ABB_TABLE_SIZE] =
{
C_AFCCTLADD,
C_VBUR,
C_VBDR,
C_BBCTL,
C_BULGCAL,
C_APCOFF,
C_BULIOFF,
C_BULQOFF,
C_DAI_ON_OFF,
C_AUXDAC,
C_VBCR,
C_VBCR2,
C_APCDEL,
C_APCDEL2,
C_VBPOP,
C_VAUDINITD,
C_VAUDCR,
C_VAUOCR,
C_VAUSCR,
C_VAUDPLL
};
#endif
/*------------------------------------------*/
/* Gain table */
/* specified in the TRF6053 spec */
/* 2 dB steps - LNA always ON */
/*------------------------------------------*/
UWORD16 AGC_TABLE[AGC_TABLE_SIZE] =
{
0x00, //6dB
0x01, //8dB
0x02, //10dB
0x03, //12dB
0x04, //14
0x05, //16
0x06, //18
0x07, //20
0x08, //22
0x09, //24
0x0a, //26
0x0b, //28
0x0c, //30
0x0d, //32
0x0e, //34
0x0f, //36
0x10, //38
0x11, //40
0x12, //42
0x13, //44
0x14, //46
0x15, //48
0x16, //50
0x17, //52
0x18, //54
0x19, //56
0x1a //58
};
// structure for ADC conversion (4 Internal channel + 5 Ext channels max.)
T_ADC adc;
// MADC calibration structure
T_ADCCAL adc_cal=
{ // a: 0,..,8
// b, 0,..,8
// cal_a = 4*1750 is the Typical value 1.75 V ref voltage , divide by 4
7000, 8750, 7000, 7000, 7000, 7000, 7000, 256, 7000,
0, 0, 0, 0, 0, 0, 0, 0, 0
};
// table which converts ADC value into RF temperature
T_TEMP temperature[TEMP_TABLE_SIZE] =
{
7, -35,
7, -34,
8, -33,
8, -32,
9, -31,
9, -30,
10, -29,
11, -28,
11, -27,
12, -26,
13, -25,
14, -24,
14, -23,
15, -22,
16, -21,
17, -20,
18, -19,
19, -18,
21, -17,
22, -16,
23, -15,
24, -14,
26, -13,
27, -12,
29, -11,
30, -10,
32, -9,
34, -8,
36, -7,
37, -6,
39, -5,
41, -4,
44, -3,
46, -2,
48, -1,
51, 0,
53, 1,
56, 2,
59, 3,
61, 4,
64, 5,
68, 6,
71, 7,
74, 8,
78, 9,
81, 10,
85, 11,
89, 12,
93, 13,
97, 14,
101, 15,
105, 16,
110, 17,
115, 18,
119, 19,
124, 20,
130, 21,
135, 22,
140, 23,
146, 24,
152, 25,
158, 26,
164, 27,
170, 28,
176, 29,
183, 30,
190, 31,
197, 32,
204, 33,
211, 34,
219, 35,
226, 36,
234, 37,
242, 38,
250, 39,
259, 40,
267, 41,
276, 42,
285, 43,
294, 44,
303, 45,
312, 46,
322, 47,
331, 48,
341, 49,
351, 50,
361, 51,
371, 52,
382, 53,
392, 54,
403, 55,
413, 56,
424, 57,
435, 58,
446, 59,
458, 60,
469, 61,
480, 62,
492, 63,
503, 64,
515, 65,
527, 66,
539, 67,
550, 68,
562, 69,
574, 70,
586, 71,
598, 72,
611, 73,
623, 74,
635, 75,
647, 76,
659, 77,
671, 78,
683, 79,
696, 80,
708, 81,
720, 82,
732, 83,
744, 84,
756, 85,
768, 86,
780, 87,
792, 88,
804, 89,
816, 90,
827, 91,
839, 92,
851, 93,
862, 94,
873, 95
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -