T_CFG_handle.cpp
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:22k
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * T_CFG_handle.cpp
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * Calibration CFG file handle source
- *
- * Author:
- * -------
- * Andy Ueng (mtk00490)
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * $Revision$
- * $Modtime$
- * $Log$
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- #pragma hdrstop
- #ifndef _T_META_FACTORY_CALIBRATION_H_
- #include "T_META_factory_calibration.H"
- #endif
- #ifndef _META_UTILS_H_
- #include "meta_utils.h"
- #endif
- #ifndef _RCT_COMMON_H_
- #include "rct_common.h"
- #endif
- #ifndef _TIME_UTILS_H_
- #include "time_utils.h"
- #endif
- //===========================================================================
- void __fastcall T_META_factory_calibration::Read_Common_CFG(void)
- {
- if (AGILENT_8960 == m_pRct->device_type)
- {
- cfg->getGSM400_CableLoss(m_pRct->age.d400);
- cfg->getGSM850_CableLoss(m_pRct->age.d850);
- cfg->getGSM900_CableLoss(m_pRct->age.d900);
- cfg->getDCS1800_CableLoss(m_pRct->age.d1800);
- cfg->getPCS1900_CableLoss(m_pRct->age.d1900);
- cfg->getTimeOut(m_pRct->age.TMO);
- cfg->getGPIB_Addr(m_pRct->age.ADD);
- }
- else // CMU 200
- {
- cfg->getCMU200_INPUT_GSM850_CableLoss(m_pRct->cmu.loss_gsm850_i);
- cfg->getCMU200_INPUT_GSM900_CableLoss(m_pRct->cmu.loss_gsm_i);
- cfg->getCMU200_INPUT_DCS1800_CableLoss(m_pRct->cmu.loss_dcs_i);
- cfg->getCMU200_INPUT_PCS1900_CableLoss(m_pRct->cmu.loss_pcs_i);
- cfg->getCMU200_OUTPUT_GSM850_CableLoss( m_pRct->cmu.loss_gsm850_o );
- cfg->getCMU200_OUTPUT_GSM900_CableLoss( m_pRct->cmu.loss_gsm_o );
- cfg->getCMU200_OUTPUT_DCS1800_CableLoss( m_pRct->cmu.loss_dcs_o );
- cfg->getCMU200_OUTPUT_PCS1900_CableLoss( m_pRct->cmu.loss_pcs_o );
- cfg->getCMU200_TimeOut( m_pRct->cmu.TMO );
- cfg->getCMU200_GPIB_Addr( m_pRct->cmu.ADD );
- m_pRct->cmu.ADD = m_pRct->cmu.ADD.SubString(0, m_pRct->cmu.ADD.Pos("::INSTR")-1);
-
- }
- cfg->getFreqBank( m_asFreqBank );
- cfg->getARFCN_C0_GSM850( m_sARFCN_C0_GSM850 );
- cfg->getARFCN_C0_GSM( m_sARFCN_C0_GSM );
- cfg->getARFCN_C0_DCS( m_sARFCN_C0_DCS );
- cfg->getARFCN_C0_PCS( m_sARFCN_C0_PCS );
- cfg->getTSC(m_cTSC);
- cfg->getP_DL(d_P_DL);
- }
- //---------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_AFC_CFG(void)
- {
- cfg->getAFC_BAND(m_asAFC_BAND);
- cfg->getAFC_ARFCN(m_sAFC_ARFCN);
- cfg->get_DAC1(m_sDAC1);
- cfg->get_DAC2(m_sDAC2);
- cfg->get_CRYSTAL_DAC1(m_sCRYSTAL_DAC1);
- cfg->get_CRYSTAL_DAC2(m_sCRYSTAL_DAC2);
- cfg->getN_AFC(m_sN_AFC);
- // check
- cfg->get_MAX_INIT_AFC_DAC(m_sMaxInitAfcDac);
- cfg->get_MIN_INIT_AFC_DAC(m_sMinInitAfcDac);
- cfg->get_MAX_AFC_SLOPE(d_max_AfcSlope);
- cfg->get_MIN_AFC_SLOPE(d_min_AfcSlope);
- }
- //---------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_CrystalAFC_CFG(void)
- {
- cfg->get_CRYSTAL_AFC_BAND(as_CRYSTAL_AFC_BAND);
- cfg->get_CRYSTAL_AFC_ARFCN(m_sCRYSTAL_AFC_ARFCN);
- cfg->get_CRYSTAL_AFC_TCH_P_DL(d_CRYSTAL_AFC_TCH_P_DL);
- cfg->get_CRYSTAL_AFC_GSM850_PCL(i_CRYSTAL_AFC_GSM850_PCL);
- cfg->get_CRYSTAL_AFC_GSM900_PCL(i_CRYSTAL_AFC_GSM900_PCL);
- cfg->get_CRYSTAL_AFC_DCS1800_PCL(i_CRYSTAL_AFC_DCS1800_PCL);
- cfg->get_CRYSTAL_AFC_PCS1900_PCL(i_CRYSTAL_AFC_PCS1900_PCL);
- cfg->get_CRYSTAL_AFC_CAL_DAC(m_sCRYSTAL_AFC_CAL_DAC);
- // MIN_CHECK_DAC
- cfg->get_CRYSTAL_AFC_CHECK_DAC1(m_sCHECK_DAC[0]);
- // CRYSTAL_AFC_MAX_CHECK_DAC
- cfg->get_CRYSTAL_AFC_CHECK_DAC2(m_sCHECK_DAC[1]);
- cfg->get_CRYSTAL_AFC_MIN_FREQ_ERR_PPM(d_CRYSTAL_AFC_MIN_FREQ_ERR_PPM);
- cfg->get_CRYSTAL_AFC_MAX_FREQ_ERR_PPM(d_CRYSTAL_AFC_MAX_FREQ_ERR_PPM);
- cfg->get_CRYSTAL_AFC_MAX_AFC_TRACK_INIT_FREQ_ERR(m_dCRYSTAL_AFC_MAX_AFC_TRACK_INIT_FREQ_ERR);
- cfg->get_CRYSTAL_AFC_FREQ_ERR_MEASUSE_COUNT(m_sCRYSTAL_AFC_FREQ_ERR_MEASUSE_COUNT);
- cfg->get_CRYSTAL_AFC_RECURSIVE_TIMES(m_sCRYSTAL_AFC_RECURSIVE_TIMES);
- }
- //------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_RxPathLoss_CFG(void)
- {
- cfg->getN_PM(iN_PM);
- cfg->getM_PM(cM_PM);
- // check
- if ( IsFreqBankSupported(m_asFreqBank, FrequencyBand850) )
- {
- cfg->getGSM850_MAX_RX_LOSS( as_gsm850_max_rx_loss_p );
- cfg->getGSM850_MIN_RX_LOSS( as_gsm850_min_rx_loss_p );
- }
- if ( IsFreqBankSupported(m_asFreqBank, FrequencyBand900) )
- {
- cfg->getGSM900_MAX_RX_LOSS( as_gsm900_max_rx_loss_p );
- cfg->getGSM900_MIN_RX_LOSS( as_gsm900_min_rx_loss_p );
- }
- if ( IsFreqBankSupported(m_asFreqBank, FrequencyBand1800) )
- {
- cfg->getDCS1800_MAX_RX_LOSS( as_dcs1800_max_rx_loss_p );
- cfg->getDCS1800_MIN_RX_LOSS( as_dcs1800_min_rx_loss_p );
- }
- if ( IsFreqBankSupported(m_asFreqBank, FrequencyBand1900) )
- {
- cfg->getPCS1900_MAX_RX_LOSS( as_pcs1900_max_rx_loss_p );
- cfg->getPCS1900_MIN_RX_LOSS( as_pcs1900_min_rx_loss_p );
- }
- }
- //---------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_TXPCL_CFG(void)
- {
- if (IsFreqBankSupported(m_asFreqBank, FrequencyBand850))
- {
- cfg->getGSM850_CAL_PCL( m_as_gsm850_tx_cal_pcl );
- cfg->getGSM850_2CAL_PCL(m_as_gsm850_tx_2cal_pcl);
- cfg->getGSM850_4CAL_PCL(m_as_gsm850_tx_4cal_pcl);
- cfg->getGSM850_6CAL_PCL(m_as_gsm850_tx_6cal_pcl);
- cfg->getGSM850_6CAL_DAC(m_as_gsm850_tx_6cal_dac);
- cfg->getGSM850_PCL( m_as_gsm850_tx_pcl );
- cfg->getGSM850_CHECK_PCL( m_as_gsm850_tx_check_pcl );
- cfg->getGSM850_MAX_P( m_as_gsm850_max_p );
- cfg->getGSM850_WANTED_P( m_as_gsm850_wanted_p );
- cfg->getGSM850_MIN_P( m_as_gsm850_min_p );
- cfg->getGSM850_C( m_as_gsm850_c );
- cfg->getGSM850_CORRECTION( m_as_gsm850_correction );
- }
- if ( IsFreqBankSupported(m_asFreqBank, FrequencyBand900) )
- {
- cfg->getGSM900_CAL_PCL(m_as_gsm900_tx_cal_pcl);
- cfg->getGSM900_2CAL_PCL(m_as_gsm900_tx_2cal_pcl);
- cfg->getGSM900_4CAL_PCL(m_as_gsm900_tx_4cal_pcl);
- cfg->getGSM900_6CAL_PCL(m_as_gsm900_tx_6cal_pcl);
- cfg->getGSM900_6CAL_DAC(m_as_gsm900_tx_6cal_dac);
- cfg->getGSM900_PCL( m_as_gsm900_tx_pcl );
- cfg->getGSM900_CHECK_PCL( m_as_gsm900_tx_check_pcl );
- cfg->getGSM900_MAX_P( m_as_gsm900_max_p );
- cfg->getGSM900_WANTED_P( m_as_gsm900_wanted_p );
- cfg->getGSM900_MIN_P( m_as_gsm900_min_p );
- cfg->getGSM900_C( m_as_gsm900_c );
- cfg->getGSM900_CORRECTION( m_as_gsm900_correction );
- }
- if (IsFreqBankSupported(m_asFreqBank, FrequencyBand1800))
- {
- cfg->getDCS1800_CAL_PCL(m_as_dcs1800_tx_cal_pcl);
- cfg->getDCS1800_2CAL_PCL(m_as_dcs1800_tx_2cal_pcl);
- cfg->getDCS1800_4CAL_PCL(m_as_dcs1800_tx_4cal_pcl);
- cfg->getDCS1800_6CAL_PCL(m_as_dcs1800_tx_6cal_pcl);
- cfg->getDCS1800_6CAL_DAC(m_as_dcs1800_tx_6cal_dac);
- cfg->getDCS1800_PCL( m_as_dcs1800_tx_pcl );
- cfg->getDCS1800_CHECK_PCL( m_as_dcs1800_tx_check_pcl );
- cfg->getDCS1800_MAX_P( m_as_dcs1800_max_p );
- cfg->getDCS1800_WANTED_P( m_as_dcs1800_wanted_p );
- cfg->getDCS1800_MIN_P( m_as_dcs1800_min_p );
- cfg->getDCS1800_C( m_as_dcs1800_c );
- cfg->getDCS1800_CORRECTION( m_as_dcs1800_correction );
- }
- if (IsFreqBankSupported(m_asFreqBank, FrequencyBand1900))
- {
- cfg->getPCS1900_CAL_PCL(m_as_pcs1900_tx_cal_pcl);
- cfg->getPCS1900_2CAL_PCL(m_as_pcs1900_tx_2cal_pcl);
- cfg->getPCS1900_4CAL_PCL(m_as_pcs1900_tx_4cal_pcl);
- cfg->getPCS1900_6CAL_PCL(m_as_pcs1900_tx_6cal_pcl);
- cfg->getPCS1900_6CAL_DAC(m_as_pcs1900_tx_6cal_dac);
- cfg->getPCS1900_PCL(m_as_pcs1900_tx_pcl);
- cfg->getPCS1900_CHECK_PCL(m_as_pcs1900_tx_check_pcl);
- cfg->getPCS1900_MAX_P(m_as_pcs1900_max_p);
- cfg->getPCS1900_WANTED_P(m_as_pcs1900_wanted_p);
- cfg->getPCS1900_MIN_P(m_as_pcs1900_min_p);
- cfg->getPCS1900_C(m_as_pcs1900_c);
- cfg->getPCS1900_CORRECTION(m_as_pcs1900_correction);
- }
- cfg->get_MAX_APC_DAC(m_sMAX_APC_DAC);
- cfg->getTXlevelRecursiveTimes(i_TXlevelRecusiveTimes);
- cfg->getAPC_Delta(m_dAPC_Delta);
- cfg->getAPC_Check(m_asAPC_Check);
- cfg->getSKY77328_DAC_Delta(i_SKY77328_DAC_Delta);
- cfg->getSKY77328_GSM850_MAX_HIGH_APC_DC_OFFSET_P(m_dSKY77328_GSM850_MAX_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM850_WANTED_HIGH_APC_DC_OFFSET_P(m_dSKY77328_GSM850_WANTED_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM850_MIN_HIGH_APC_DC_OFFSET_P(m_dSKY77328_GSM850_MIN_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM900_MAX_HIGH_APC_DC_OFFSET_P(m_dSKY77328_GSM900_MAX_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM900_WANTED_HIGH_APC_DC_OFFSET_P(m_dSKY77328_GSM900_WANTED_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM900_MIN_HIGH_APC_DC_OFFSET_P(m_dSKY77328_GSM900_MIN_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_DCS1800_MAX_HIGH_APC_DC_OFFSET_P(m_dSKY77328_DCS1800_MAX_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_DCS1800_WANTED_HIGH_APC_DC_OFFSET_P(m_dSKY77328_DCS1800_WANTED_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_DCS1800_MIN_HIGH_APC_DC_OFFSET_P(m_dSKY77328_DCS1800_MIN_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_PCS1900_MAX_HIGH_APC_DC_OFFSET_P(m_dSKY77328_PCS1900_MAX_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_PCS1900_WANTED_HIGH_APC_DC_OFFSET_P(m_dSKY77328_PCS1900_WANTED_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_PCS1900_MIN_HIGH_APC_DC_OFFSET_P(m_dSKY77328_PCS1900_MIN_HIGH_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM850_MAX_LOW_APC_DC_OFFSET_P(m_dSKY77328_GSM850_MAX_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM850_WANTED_LOW_APC_DC_OFFSET_P(m_dSKY77328_GSM850_WANTED_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM850_MIN_LOW_APC_DC_OFFSET_P(m_dSKY77328_GSM850_MIN_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM900_MAX_LOW_APC_DC_OFFSET_P(m_dSKY77328_GSM900_MAX_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM900_WANTED_LOW_APC_DC_OFFSET_P(m_dSKY77328_GSM900_WANTED_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM900_MIN_LOW_APC_DC_OFFSET_P(m_dSKY77328_GSM900_MIN_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_DCS1800_MAX_LOW_APC_DC_OFFSET_P(m_dSKY77328_DCS1800_MAX_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_DCS1800_WANTED_LOW_APC_DC_OFFSET_P(m_dSKY77328_DCS1800_WANTED_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_DCS1800_MIN_LOW_APC_DC_OFFSET_P(m_dSKY77328_DCS1800_MIN_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_PCS1900_MAX_LOW_APC_DC_OFFSET_P(m_dSKY77328_PCS1900_MAX_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_PCS1900_WANTED_LOW_APC_DC_OFFSET_P(m_dSKY77328_PCS1900_WANTED_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_PCS1900_MIN_LOW_APC_DC_OFFSET_P(m_dSKY77328_PCS1900_MIN_LOW_APC_DC_OFFSET_P);
- cfg->getSKY77328_GSM850_M (d_SKY77328_GSM850_M);
- cfg->getSKY77328_GSM900_M (d_SKY77328_GSM900_M);
- cfg->getSKY77328_DCS1800_M(d_SKY77328_DCS1800_M);
- cfg->getSKY77328_PCS1900_M(d_SKY77328_PCS1900_M);
- cfg->getSKY77328_GSM850_TARGET_PCL (i_SKY77328_GSM850_TARGET_PCL);
- cfg->getSKY77328_GSM900_TARGET_PCL (i_SKY77328_GSM900_TARGET_PCL);
- cfg->getSKY77328_DCS1800_TARGET_PCL(i_SKY77328_DCS1800_TARGET_PCL);
- cfg->getSKY77328_PCS1900_TARGET_PCL(i_SKY77328_PCS1900_TARGET_PCL);
- // Axiom 502 releated cfg
- cfg->get_AXIOM502_GSM850_SWITCH_PCL(m_asAXIOM502_GSM850_SWITCH_PCL);
- cfg->get_AXIOM502_GSM900_SWITCH_PCL(m_asAXIOM502_GSM900_SWITCH_PCL);
- cfg->get_AXIOM502_DCS1800_SWITCH_PCL(m_asAXIOM502_DCS1800_SWITCH_PCL);
- cfg->get_AXIOM502_PCS1900_SWITCH_PCL(m_asAXIOM502_PCS1900_SWITCH_PCL);
- }
- //---------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_EPSK_TXPCL_CFG(void)
- {
- if (IsFreqBankSupported(m_asFreqBank, FrequencyBand850))
- {
- cfg->getGSM850_EPSK_1CAL_PCL(m_s_gsm850_epsk_tx_1cal_pcl);
- cfg->getGSM850_EPSK_CAL_PCL(m_as_gsm850_epsk_tx_cal_pcl);
- cfg->getGSM850_EPSK_2CAL_PCL(m_as_gsm850_epsk_tx_2cal_pcl);
- cfg->getGSM850_EPSK_4CAL_PCL(m_as_gsm850_epsk_tx_4cal_pcl);
- cfg->getGSM850_EPSK_PCL(m_as_gsm850_epsk_tx_pcl);
- cfg->getGSM850_EPSK_CHECK_PCL(m_as_gsm850_epsk_tx_check_pcl);
- cfg->getGSM850_EPSK_MAX_P(m_as_gsm850_epsk_max_p);
- cfg->getGSM850_EPSK_WANTED_P(m_as_gsm850_epsk_wanted_p);
- cfg->getGSM850_EPSK_MIN_P(m_as_gsm850_epsk_min_p);
- cfg->getGSM850_EPSK_C(m_as_gsm850_epsk_c);
- cfg->getGSM850_EPSK_CORRECTION(m_as_gsm850_epsk_correction);
- }
- if (IsFreqBankSupported(m_asFreqBank, FrequencyBand900))
- {
- cfg->getGSM900_EPSK_CAL_PCL(m_as_gsm900_epsk_tx_cal_pcl);
- cfg->getGSM900_EPSK_1CAL_PCL(m_s_gsm900_epsk_tx_1cal_pcl);
- cfg->getGSM900_EPSK_2CAL_PCL(m_as_gsm900_epsk_tx_2cal_pcl);
- cfg->getGSM900_EPSK_4CAL_PCL(m_as_gsm900_epsk_tx_4cal_pcl);
- cfg->getGSM900_EPSK_PCL(m_as_gsm900_epsk_tx_pcl);
- cfg->getGSM900_EPSK_CHECK_PCL(m_as_gsm900_epsk_tx_check_pcl);
- cfg->getGSM900_EPSK_MAX_P(m_as_gsm900_epsk_max_p);
- cfg->getGSM900_EPSK_WANTED_P(m_as_gsm900_epsk_wanted_p);
- cfg->getGSM900_EPSK_MIN_P(m_as_gsm900_epsk_min_p);
- cfg->getGSM900_EPSK_C(m_as_gsm900_epsk_c);
- cfg->getGSM900_EPSK_CORRECTION(m_as_gsm900_epsk_correction);
- }
- if (IsFreqBankSupported(m_asFreqBank, FrequencyBand1800))
- {
- cfg->getDCS1800_EPSK_1CAL_PCL(m_s_dcs1800_epsk_tx_1cal_pcl);
- cfg->getDCS1800_EPSK_CAL_PCL(m_as_dcs1800_epsk_tx_cal_pcl);
- cfg->getDCS1800_EPSK_2CAL_PCL(m_as_dcs1800_epsk_tx_2cal_pcl);
- cfg->getDCS1800_EPSK_4CAL_PCL(m_as_dcs1800_epsk_tx_4cal_pcl);
- cfg->getDCS1800_EPSK_PCL(m_as_dcs1800_epsk_tx_pcl);
- cfg->getDCS1800_EPSK_CHECK_PCL(m_as_dcs1800_epsk_tx_check_pcl);
- cfg->getDCS1800_EPSK_MAX_P(m_as_dcs1800_epsk_max_p);
- cfg->getDCS1800_EPSK_WANTED_P(m_as_dcs1800_epsk_wanted_p);
- cfg->getDCS1800_EPSK_MIN_P(m_as_dcs1800_epsk_min_p);
- cfg->getDCS1800_EPSK_C(m_as_dcs1800_epsk_c);
- cfg->getDCS1800_EPSK_CORRECTION(m_as_dcs1800_epsk_correction);
- }
- if (IsFreqBankSupported(m_asFreqBank, FrequencyBand1900))
- {
- cfg->getPCS1900_EPSK_1CAL_PCL(m_s_pcs1900_epsk_tx_1cal_pcl);
- cfg->getPCS1900_EPSK_CAL_PCL(m_as_pcs1900_epsk_tx_cal_pcl);
- cfg->getPCS1900_EPSK_2CAL_PCL(m_as_pcs1900_epsk_tx_2cal_pcl);
- cfg->getPCS1900_EPSK_4CAL_PCL(m_as_pcs1900_epsk_tx_4cal_pcl);
- cfg->getPCS1900_EPSK_PCL(m_as_pcs1900_epsk_tx_pcl);
- cfg->getPCS1900_EPSK_CHECK_PCL(m_as_pcs1900_epsk_tx_check_pcl);
- cfg->getPCS1900_EPSK_MAX_P(m_as_pcs1900_epsk_max_p);
- cfg->getPCS1900_EPSK_WANTED_P(m_as_pcs1900_epsk_wanted_p);
- cfg->getPCS1900_EPSK_MIN_P(m_as_pcs1900_epsk_min_p);
- cfg->getPCS1900_EPSK_C(m_as_pcs1900_epsk_c);
- cfg->getPCS1900_EPSK_CORRECTION(m_as_pcs1900_epsk_correction);
- }
- cfg->getTXlevelRecursiveTimes(i_TXlevelRecusiveTimes);
- cfg->getAPC_Delta(m_dAPC_Delta);
- }
- //------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_IP2_CFG(void)
- {
- cfg->get_IP2_arfcn_C0_GSM850(m_sIP2_arfcn_C0_GSM850);
- cfg->get_IP2_arfcn_C0_GSM(m_sIP2_arfcn_C0_GSM);
- cfg->get_IP2_arfcn_C0_DCS(m_sIP2_arfcn_C0_DCS);
- cfg->get_IP2_arfcn_C0_PCS(m_sIP2_arfcn_C0_PCS);
- //cfg->get_IP2_arfcn_TCH_GSM850(m_sIP2_arfcn_TCH_GSM850);
- //cfg->get_IP2_arfcn_TCH_DCS(m_sIP2_arfcn_TCH_DCS);
- //cfg->get_IP2_arfcn_TCH_PCS(m_sIP2_arfcn_TCH_PCS);
- //cfg->get_IP2_arfcn_TCH_GSM(m_sIP2_arfcn_TCH_GSM);
- cfg->get_IP2_CAL_P_DL_ON_SKY(d_IP2_CAL_P_DL_ON_SKY);
- cfg->get_IP2_CAL_P_DL_ON_MT(d_IP2_CAL_P_DL_ON_MT);
- cfg->get_IP2_CAL_P_DL_OFF_SKY(d_IP2_CAL_P_DL_OFF_SKY);
- cfg->get_IP2_CAL_P_DL_OFF_MT(d_IP2_CAL_P_DL_OFF_MT);
- cfg->get_IP2_CHECK_P_DL_ON(d_IP2_CHECK_P_DL_ON);
- cfg->get_IP2_CHECK_P_DL_OFF(d_IP2_CHECK_P_DL_OFF);
- cfg->get_IP2_GAIN(d_IP2_GAIN);
- cfg->get_IP2_N_PM(i_IP2_N_PM);
- cfg->get_IP2_M_PM(c_IP2_M_PM);
- cfg->get_IP2_ICORRECTION1_SKY74045(i_IP2_ICORRECTION1_SKY74045);
- cfg->get_IP2_QCORRECTION1_SKY74045(i_IP2_QCORRECTION1_SKY74045);
- cfg->get_IP2_ICORRECTION2_SKY74045(i_IP2_ICORRECTION2_SKY74045);
- cfg->get_IP2_QCORRECTION2_SKY74045(i_IP2_QCORRECTION2_SKY74045);
- cfg->get_IP2_ICORRECTION1_SKY74117(i_IP2_ICORRECTION1_SKY74117);
- cfg->get_IP2_QCORRECTION1_SKY74117(i_IP2_QCORRECTION1_SKY74117);
- cfg->get_IP2_ICORRECTION2_SKY74117(i_IP2_ICORRECTION2_SKY74117);
- cfg->get_IP2_QCORRECTION2_SKY74117(i_IP2_QCORRECTION2_SKY74117);
- cfg->get_IP2_AMCODEI1(i_IP2_AMCODEI1);
- cfg->get_IP2_AMCODEQ1(i_IP2_AMCODEQ1);
- cfg->get_IP2_AMCODEI2(i_IP2_AMCODEI2);
- cfg->get_IP2_AMCODEQ2(i_IP2_AMCODEQ2);
- cfg->get_IP2_MAX_IDC_SKY74045(m_iIP2_MAX_IDC_SKY74045);
- cfg->get_IP2_MAX_QDC_SKY74045(m_iIP2_MAX_QDC_SKY74045);
- cfg->get_IP2_MAX_IDC_SKY74117(m_iIP2_MAX_IDC_SKY74117);
- cfg->get_IP2_MAX_QDC_SKY74117(m_iIP2_MAX_QDC_SKY74117);
- cfg->get_IP2_MAX_IDC_MT6139(m_iIP2_MAX_IDC_MT6139);
- cfg->get_IP2_MAX_QDC_MT6139(m_iIP2_MAX_QDC_MT6139);
- }
- //-------------------------------------------------------------------------
- //bool __fastcall T_META_factory_calibration::Read_TxPhaseError_CFG( void )
- //{
- // cfg->get_PHASE_ERROR_BAND( as_PHASE_ERROR_BAND );
- //
- // cfg->get_PHASE_ERROR_ARFCN( m_sPHASE_ERROR_ARFCN );
- //
- // cfg->get_PHASE_ERROR_PCL( i_PHASE_ERROR_PCL );
- //
- // cfg->get_PHASE_ERROR_RMS_ERROR( d_PHASE_ERROR_RMS_ERROR );
- //
- // return true;
- //}
- //-------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_TxIq_CFG(void)
- {
- cfg->get_TX_IQ_MEASUREMENT_COUNT( m_uiTX_IQ_MEASUREMENT_COUNT );
- cfg->get_TX_IQ_BAND( m_asTX_IQ_BAND );
- cfg->get_TX_IQ_ARFCN( m_sTX_IQ_ARFCN );
- cfg->get_TX_IQ_PCL( m_sTX_IQ_PCL );
- cfg->get_TX_IQ_DC_OFFSET_MAX( m_dTX_IQ_DC_OFFSET_MAX );
- cfg->get_TX_IQ_GAIN_IMBALANCE_MAX( m_dTX_IQ_GAIN_IMBALANCE_MAX);
- // high band parameter
- cfg->get_TX_IQ_BAND_HIGH( m_asTX_IQ_BAND_HIGH );
- cfg->get_TX_IQ_ARFCN_HIGH( m_sTX_IQ_ARFCN_HIGH );
- cfg->get_TX_IQ_PCL_HIGH( m_sTX_IQ_PCL_HIGH );
- cfg->get_TX_IQ_DC_OFFSET_MAX_HIGH( m_dTX_IQ_DC_OFFSET_MAX_HIGH );
- cfg->get_TX_IQ_GAIN_IMBALANCE_MAX_HIGH( m_dTX_IQ_GAIN_IMBALANCE_MAX_HIGH );
- }
- //-------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_ADC_CFG(void)
- {
- cfg->getADC_V1(i_ADC_V1);
- cfg->getADC_V2( i_ADC_V2);
- cfg->getADC_CHECK_VOLTAGE( i_ADC_CHECK_VOLTAGE);
- cfg->get_NORMAL_VOLTAGE( i_NORMAL_VOLTAGE);
- cfg->get_CURRENT_LIMIT(i_CURRENT_LIMIT);
- cfg->get_MAX_BATTERY_ADC_SLOPE(i_MAX_BATTERY_ADC_SLOPE);
- cfg->get_MIN_BATTERY_ADC_SLOPE(i_MIN_BATTERY_ADC_SLOPE);
- cfg->get_MAX_BATTERY_ADC_OFFSET(i_MAX_BATTERY_ADC_OFFSET);
- cfg->get_MIN_BATTERY_ADC_OFFSET(i_MIN_BATTERY_ADC_OFFSET);
- cfg->get_BATTERY_CHANNEL( i_BATTERY_CHANNEL );
- cfg->get_CHARGER_CHANNEL(i_CHARGER_CHANNEL);
- cfg->get_ADC_RESISTANCE(d_ADC_RESISTANCE);
- cfg->get_MAX_VOLTAGE_DIFFERENCE(d_MAX_VOLTAGE_DIFFERENCE);
- cfg->get_MAX_CURRENT_DIFFERENCE(d_MAX_CURRENT_DIFFERENCE);
- cfg->get_ADC_MEASUREMENT_COUNT(i_ADC_MEASUREMENT_COUNT);
- }
- //-------------------------------------------------------------------------
- void __fastcall T_META_factory_calibration::Read_CV_CFG(void)
- {
- cfg->get_MAX_CV_STEP(m_cMAX_CV_STEP);
- cfg->get_MIN_CV_STEP(m_cMIN_CV_STEP);
- }