MTK .h文件总结PPT课件
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
•
/*MT6166*/ #define PDATA_GSM850_PR3 (0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_GSM_PR1
(0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM_PR2
具体代表的含义如下:
•
/*MT6166*/ #define PDATA_GSM850_PR1 (0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM850_PR2 (0x000006
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM_PT2M2_8G (0x100009
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_DCS_PT1
(0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_GSM850_PT2M1_G8 (0x100009|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM850_PT2M2_G8 (0x100009|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
BPI Setting
射频的频段选择、PA使能、开关逻辑的信息全部包含在BPI文件中, BPI分为RX和TX两部分,其中的项分别为:
- BPI RX Configuration(PR1、PR2、PR3) - BPI TX Configuration(PT1、PT2、PT2B、PT3、PT2M1_G8、 PT2M2_G8、PT2M1_8G、PT2M2_8G)
•
/*MT6166*/ #define PDATA_GSM_PT2M2_G8 (0x100009|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM_PT2M1_8G (0x000001
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
(0x000000
|SPI_SWITCH_TO_2G
)
RX LNA Selection
配置射频频段对应的接收端口
/*MT6166*/ /********************************************/
/*MT6166*/ /* Define your band mode selection on */
22
/*MT6166*/ #define QB_SR3
5 /* SR3 should be larger than (QB_RX_FSYNC_2_FENA+2QB) */
166 [Set PLL frequency (TRx warm-up)]
/*MT6166*/ #define QB_SR2
45 /* SR2 should be larger than (QB_RX_FENA_2_FSYNC+8QB)*/[Set TRx
RX Mode,gain setting]
/*MT6166*/ #define QB_SR2M
•
/*MT6166*/ #define PDATA_PCS_PT2
(0x000003
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_PCS_PT2B
(0x10000B
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM850_PT2B (0x100009
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM850_PT3 (0x000000
(0x000006
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM_PR3
(0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_DCS_PR1
(0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
(0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_GSM850_PT1 (0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM850_PT2 (0x000001
*/
/*MT6166*/ /* LNA_5 : B5
*/
/*MT6166*/ /* LNA_6 : B2
*/
/*MT6166*/ /* LNA_7 : B8
*/
/*MT6166*/ /********************************************/
/*MT6166*/
/*MT6166*/ #define GSM850_PATH_SEL LNA_2
•
/*MT6166*/ #define PDATA_GSM_PT2B
(0x100009
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM_PT3
(0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_GSM_PT2M1_G8 (0x100009|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_DCS_PT3
(0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_DCS_PT2M1_G8 (0x10000B|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*M3
(0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_PCS_PT2M1_G8 (0x10000B|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_PCS_PT2M2_G8 (0x10000B|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_PCS_PT2M1_8G (0x000003
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
/*MT6166*/ #define GSM_PATH_SEL LNA_2
/*MT6166*/ #define DCS_PATH_SEL LNA_1
/*MT6166*/ #define PCS_PATH_SEL LNA_1
RF Timing
设置射频部分信号的时序,一般不建议修改
/*MT6166*/ #define QB_SR1
•
/*MT6166*/ #define PDATA_DCS_PR2
(0x000004
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_DCS_PR3
(0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_PCS_PR1
/*MT6166*/ /* High Band and Low Band receivers */
/*MT6166*/ /* LNA_1 : 2GHB
*/
/*MT6166*/ /* LNA_2 : 2GLB
*/
/*MT6166*/ /* LNA_3 : B40
*/
/*MT6166*/ /* LNA_4 : B1
(0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_PCS_PR2
(0x000004
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_PCS_PR3
•
/*MT6166*/ #define PDATA_DCS_PT2
(0x000003
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_DCS_PT2B
(0x10000B
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM850_PT2M1_8G (0x000001
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM850_PT2M2_8G (0x100009
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_DCS_PT2M2_G8 (0x10000B|PDATA_8PSK|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_DCS_PT2M1_8G (0x000003
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
.h文件
射频部分的配置信息全部写在.h文件中,.h文件有两种: - ul1d_custom_rf.h - l1d_custom_rf.h l1d_custom_rf.h文件中射频配置的部分包括: - RX LNA Selection - BPI Setting
- BPI RX Configuration - BPI TX Configuration - RF Timing - RF_CLK_BUFFER - EPSK Close loop power control - (E)GPRS TX Power rollback - initial CapID
•
/*MT6166*/ #define PDATA_DCS_PT2M2_8G (0x10000B
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_PCS_PT1
(0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM_PT1
(0x000000
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_GSM_PT2
(0x000001
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_PCS_PT2M2_8G (0x10000B
|PDATA_GSM_ERR_DET|SPI_SWITCH_TO_2G)
•
/*MT6166*/ #define PDATA_INIT
(0x000000
|SPI_SWITCH_TO_2G
)
•
/*MT6166*/ #define PDATA_IDLE