META_crystal_cfg.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:8k
- /*****************************************************************************
- * 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:
- * ---------
- * META_crystal_cfg.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * Crystal configuration header
- *
- * 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!!
- *============================================================================
- ****************************************************************************/
- #ifndef _META_CRYSTAL_CFG_H_
- #define _META_CRYSTAL_CFG_H_
- #include <Classes.hpp>
- class TMETA_crystal_cfg : public TPersistent
- {
- private :
- // 8960 Initialization
- AnsiString as_8960_GPIB_Addr;
- int i_TimeOut;
- // dB cable loss
- double d_GSM400_CL, d_GSM850_CL, d_GSM900_CL, d_DCS1800_CL, d_PCS1900_CL;
- AnsiString as_CMU200_GPIB_Addr;
- int i_CMU200_TimeOut;
- // dB cable loss
- double d_CMU200_INPUT_GSM400_CL, d_CMU200_INPUT_GSM850_CL, d_CMU200_INPUT_GSM900_CL, d_CMU200_INPUT_DCS1800_CL, d_CMU200_INPUT_PCS1900_CL;
- double d_CMU200_OUTPUT_GSM400_CL, d_CMU200_OUTPUT_GSM850_CL, d_CMU200_OUTPUT_GSM900_CL, d_CMU200_OUTPUT_DCS1800_CL, d_CMU200_OUTPUT_PCS1900_CL;
- // Freq Bank
- AnsiString as_FreqBank;
- // C0 for each Bank
- short m_sARFCN_C0_GSM850;
- short m_sARFCN_C0_GSM;
- short m_sARFCN_C0_DCS;
- short m_sARFCN_C0_PCS;
-
- // Downlink power
- double d_P_DL;
- // RX measurement samples
- short i_N_PM;
- char c_M_PM;
- // AFC calibration
- AnsiString as_AFC_BAND;
- short m_sAFC_ARFCN;
- short m_sN_AFC;
- int i_DAC1;
- int i_DAC2;
- // TX PCL table
- AnsiString as_GSM400_PCL;
- AnsiString as_GSM400_MAX_P;
- AnsiString as_GSM400_WANTED_P;
- AnsiString as_GSM400_MIN_P;
- AnsiString as_GSM400_C;
- AnsiString as_GSM850_PCL;
- AnsiString as_GSM850_MAX_P;
- AnsiString as_GSM850_WANTED_P;
- AnsiString as_GSM850_MIN_P;
- AnsiString as_GSM850_C;
- AnsiString as_GSM900_PCL;
- AnsiString as_GSM900_MAX_P;
- AnsiString as_GSM900_WANTED_P;
- AnsiString as_GSM900_MIN_P;
- AnsiString as_GSM900_C;
- AnsiString as_DCS1800_PCL;
- AnsiString as_DCS1800_MAX_P;
- AnsiString as_DCS1800_WANTED_P;
- AnsiString as_DCS1800_MIN_P;
- AnsiString as_DCS1800_C;
- AnsiString as_PCS1900_PCL;
- AnsiString as_PCS1900_MAX_P;
- AnsiString as_PCS1900_WANTED_P;
- AnsiString as_PCS1900_MIN_P;
- AnsiString as_PCS1900_C;
- char c_TSC;
- int i_N_TX; // test period in frames
- int i_RecursiveTimes;
- double d_APC_Delta; // wanted +- d_APC_delta => APC calibration wanted
- protected:
- //
- public:
- __fastcall TMETA_crystal_cfg();
- __fastcall ~TMETA_crystal_cfg();
- // Agilent 8960
- bool getGPIB_Addr(AnsiString &as);
- bool getTimeOut(int &i);
- bool getGSM400_CableLoss( double &d); // dB
- bool getGSM850_CableLoss( double &d); // dB
- bool getGSM900_CableLoss( double &d); // dB
- bool getDCS1800_CableLoss( double &d); // dB
- bool getPCS1900_CableLoss( double &d); // dB
- // CMU 200
- bool getCMU200_GPIB_Addr(AnsiString &as);
- bool getCMU200_TimeOut(int &i);
- bool getCMU200_INPUT_GSM400_CableLoss( double &d);
- bool getCMU200_INPUT_GSM850_CableLoss( double &d);
- bool getCMU200_INPUT_GSM900_CableLoss( double &d);
- bool getCMU200_INPUT_DCS1800_CableLoss( double &d);
- bool getCMU200_INPUT_PCS1900_CableLoss( double &d);
- bool getCMU200_OUTPUT_GSM400_CableLoss( double &d);
- bool getCMU200_OUTPUT_GSM850_CableLoss( double &d);
- bool getCMU200_OUTPUT_GSM900_CableLoss( double &d);
- bool setCMU200_OUTPUT_GSM900_CableLoss( double d);
- bool getCMU200_OUTPUT_DCS1800_CableLoss( double &d);
- bool getCMU200_OUTPUT_PCS1900_CableLoss( double &d);
- bool getFreqBank(AnsiString &as);
- bool getARFCN_C0_GSM850(short &s);
- bool getARFCN_C0_GSM(short &s);
- bool getARFCN_C0_DCS(short &s);
- bool getARFCN_C0_PCS(short &s);
- bool getP_DL(double &d);
- bool getN_PM(short &i);
- bool getM_PM(char &c);
- bool getAFC_BAND(AnsiString &as);
- bool getAFC_ARFCN(short &s);
- bool getN_AFC(short &s);
- bool getDAC1(int &i);
- bool getDAC2(int &i);
- bool getGSM400_PCL(AnsiString &as);
- bool getGSM400_MAX_P(AnsiString &as);
- bool getGSM400_WANTED_P(AnsiString &as);
- bool getGSM400_MIN_P(AnsiString &as);
- bool getGSM400_C(AnsiString &as);
- bool getGSM850_PCL(AnsiString &as);
- bool getGSM850_MAX_P(AnsiString &as);
- bool getGSM850_WANTED_P(AnsiString &as);
- bool getGSM850_MIN_P(AnsiString &as);
- bool getGSM850_C(AnsiString &as);
- bool getGSM900_PCL(AnsiString &as);
- bool getGSM900_MAX_P(AnsiString &as);
- bool getGSM900_WANTED_P(AnsiString &as);
- bool getGSM900_MIN_P(AnsiString &as);
- bool getGSM900_C(AnsiString &as);
-
- bool getDCS1800_PCL(AnsiString &as);
- bool getDCS1800_MAX_P(AnsiString &as);
- bool getDCS1800_WANTED_P(AnsiString &as);
- bool getDCS1800_MIN_P(AnsiString &as);
- bool getDCS1800_C(AnsiString &as);
- bool getPCS1900_PCL(AnsiString &as);
- bool getPCS1900_MAX_P(AnsiString &as);
- bool getPCS1900_WANTED_P(AnsiString &as);
- bool getPCS1900_MIN_P(AnsiString &as);
- bool getPCS1900_C(AnsiString &as);
- bool getTSC(char &c);
- bool getN_TX(int &i);
- bool getTXlevelRecursiveTimes(int &i);
- bool getAPC_Delta(double &d);
- bool ReadFromIniFile( AnsiString as_FileName );
- bool is_MAX_WANTED_MIN_P_valid();
- };
- //---------------------------------------------------------------------------
- #endif