form_RFTool.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:50k
- /*****************************************************************************
- * 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:
- * ---------
- * form_RFTool.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * RF tool form 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 _FORM_RFTOOL_H_
- #define _FORM_RFTOOL_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <Buttons.hpp>
- #include <ComCtrls.hpp>
- #include <Grids.hpp>
- #include <ExtCtrls.hpp>
- #include <Dialogs.hpp>
- #include <ActnList.hpp>
- #ifndef _RF_COMMON_H_
- #include "rf_common.h"
- #endif
- #ifndef _CRYSTAL_AFC_H_
- #include "crystal_afc.h"
- #endif
- #ifndef _META_FACTORY_TYPE_H_
- #include "META_factory_type.h"
- #endif
- #ifndef _META_FACTORY_ADC_TYPE_H_
- #include "META_factory_ADC_type.h"
- #endif
- #ifndef _RF_MULTISLOTTX_H_
- #include "rf_MultiSlotTx.h"
- #endif
- #ifndef _RF_PM_H_
- #include "rf_pm.h"
- #endif
- #ifndef _RF_CR_H_
- #include "rf_cr.h"
- #endif
- #ifndef _RF_CT_COMMON_H_
- #include "rf_ct_common.h"
- #endif
- #ifndef _RF_CT_H
- #include "rf_ct.h"
- #endif
- #ifndef _RF_TX_H_
- #include "rf_tx.h"
- #endif
- #ifndef _RF_AFC_H_
- #include "rf_afc.h"
- #endif
- #ifndef _RF_AGC_H_
- #include "rf_agc.h"
- #endif
- #ifndef _RF_APC_H_
- #include "rf_apc.h"
- #endif
- #ifndef _RF_TXIQ_H_
- #include "rf_txiq.h"
- #endif
- #ifndef _RF_STOP_H_
- #include "rf_stop.h"
- #endif
- #ifndef _RF_APC_8PSK_H_
- #include "rf_apc_8psk.h"
- #endif
- #ifndef _RF_ID_H_
- #include "rf_id.h"
- #endif
- #ifndef _BB_ADC_H_
- #include "bb_adc.h"
- #endif
- #ifndef _BB_REG_H_
- #include "bb_reg.h"
- #endif
- #ifndef _RF_PMCH_SWEEP_H_
- #include "rf_pmch_sweep.h"
- #endif
- #ifndef _RF_RXL_SWEEP_H_
- #include "rf_rxl_sweep.h"
- #endif
- #ifndef _RF_SN_SWEEP_H_
- #include "rf_sn_sweep.h"
- #endif
- // AFC
- #ifndef _RF_CONTSINE_THRD_H_
- #include "rf_contsine_thrd.h"
- #endif
- // TX frequency error
- #ifndef _META_CRYSTAL_CFG_H_
- #include "meta_crystal_cfg.h"
- #endif
- // crystal
- #ifndef _CRYSTAL_AFC_SWEEP_H_
- #include "crystal_afc_sweep.h"
- #endif
- #ifndef _UART_H_
- #include "uart.h"
- #endif
- #ifndef _RF_TXPCS_SWEEP_H_
- #include "rf_txpcs_sweep.h"
- #endif
- // offset IQ sweep
- #ifndef _META_RF_CFG_H_
- #include "META_rf_cfg.h"
- #endif
- #ifndef _RF_OFFSET_IQ_SWEEP_INIT_AGE8960_H_
- #include "rf_offset_iq_Sweep_init_Age8960.h"
- #endif
- // TX IQ
- #ifndef _RF_TXIQ_RUN_H_
- #include "rf_txiq_run.h"
- #endif
- // multislot TX
- #ifndef _GNRL_MSCAP_H_
- #include "gnrl_mscap.h"
- #endif
- #ifndef _MAN_HANDLE_H_
- #include "man_handle.h"
- #endif
- //---------------------------------------------------------------------------
- class TfrmRFTool : public TForm
- {
- __published: // IDE-managed Components
- TBitBtn *btnAFCStart;
- TBitBtn *btnCRStart;
- TBitBtn *btnCTStart;
- TBitBtn *btnGSStart;
- TBitBtn *btnPMStart;
- TBitBtn *btnTXStart;
- TButton *btnAfcDownloadToFlash;
- TButton *btnGSPathLossSetting;
- TButton *btnAfcLoadFromFile;
- TButton *btnPMPathLossSetting;
- TButton *btnAfcSaveToFile;
- TButton *btnTXProfileSetting;
- TButton *btnAfcUploadFromFlash;
- TCheckBox *chkCRBurstMode;
- TComboBox *cbxAFCBand;
- TComboBox *cbxCRBand;
- TComboBox *cbxCTBand;
- TComboBox *cbxGSBand;
- TComboBox *cbxGSPerFrame;
- TComboBox *cbxPMBand;
- TComboBox *cbxPMPerFrame;
- TComboBox *cbxTXBand;
- TComboBox *cbxTXTsc;
- TEdit *edtAFCAfc;
- TEdit *edtAFCArfcn;
- TEdit *edtAFCGain;
- TEdit *edtCRArfcn;
- TEdit *edtCRGain;
- TEdit *edtCTArfcn;
- TEdit *edtGSArfcn;
- TEdit *edtGSCount;
- TEdit *edtGSGainMax;
- TEdit *edtGSGainMin;
- TEdit *edtGSGainStep;
- TEdit *edtInitAfcDac;
- TEdit *edtPMArfcn;
- TEdit *edtPMCount;
- TEdit *edtPMGain;
- TEdit *edtSlope;
- TEdit *edtTXAfc;
- TEdit *edtTXArfcn;
- TEdit *edtTXPcl;
- TGroupBox *grpAFC01;
- TGroupBox *grpAFC02;
- TGroupBox *grpCR01;
- TGroupBox *grpCT01;
- TGroupBox *grpGS01;
- TGroupBox *grpPM01;
- TGroupBox *grpTX01;
- TLabel *lblLabel01;
- TLabel *lblLabel02;
- TLabel *lblLabel03;
- TLabel *lblLabel04;
- TLabel *lblLabel05;
- TLabel *lblLabel06;
- TLabel *lblLabel11;
- TLabel *lblLabel12;
- TLabel *lblLabel13;
- TLabel *lblLabel14;
- TLabel *lblLabel15;
- TLabel *lblLabel16;
- TLabel *lblLabel17;
- TLabel *lblLabel18;
- TLabel *lblLabel19;
- TLabel *lblLabel1A;
- TLabel *lblLabel21;
- TLabel *lblLabel22;
- TLabel *lblLabel23;
- TLabel *lblLabel24;
- TLabel *lblLabel31;
- TLabel *lblLabel32;
- TLabel *lblLabel41;
- TLabel *lblLabel42;
- TLabel *lblLabel43;
- TLabel *lblLabel44;
- TLabel *lblLabel45;
- TLabel *lblLabel51;
- TLabel *lblLabel52;
- TLabel *lblLabel53;
- TLabel *lblLabel54;
- TLabel *lblLabel55;
- TLabel *lblLabel56;
- TLabel *lblLabel57;
- TLabel *lblLabel58;
- TLabel *lblLabel59;
- TLabel *lblLabel60;
- TOpenDialog *OpenDialog;
- TPageControl *pctlToolSel;
- TPanel *pnlAfcSetting;
- TRichEdit *memGSResult;
- TRichEdit *memPMResult;
- TSaveDialog *SaveDialog;
- TStaticText *lblAFCDeviation;
- TStaticText *lblAFCFbDecteted;
- TStaticText *lblAFCFreqErr;
- TTabSheet *tsAFC;
- TTabSheet *tsCR;
- TTabSheet *tsGS;
- TTabSheet *tsPM;
- TTabSheet *tsTX;
- TTabSheet *tsCT;
- TTimer *HintTimer;
- TButton *btnAfcEvaluate;
- TButton *btnSaveToFile;
- TTabSheet *tsAFCSweep;
- TGroupBox *GroupBox1;
- TLabel *Label1;
- TLabel *Label2;
- TLabel *Label3;
- TLabel *Label4;
- TLabel *Label5;
- TEdit *edtARFCN_AFCSweep;
- TEdit *edtMinAFC_AFCSweep;
- TEdit *edtGain_AFCSweep;
- TComboBox *cbxAFCBand_AFCSweep;
- TLabel *Label6;
- TEdit *edtMaxAFC_AFCSweep;
- TLabel *AFC;
- TEdit *edtStepAFC_AFCSweep;
- TRichEdit *RichEditAFCResult_AFCSweep;
- TButton *btnSaveToFile_AFCSweep;
- TTabSheet *tsCrystalAFCControl;
- TGroupBox *GroupBox2;
- TLabel *Label7;
- TComboBox *cbxCrystalAFCBand;
- TLabel *Label8;
- TEdit *edtCrystalAFCARFCN;
- TLabel *Label9;
- TEdit *edtCrystalAFCPCL;
- TLabel *lblCrystalAFC0;
- TEdit *edtCrystalAFC0;
- TLabel *lblCrystalAFC1;
- TEdit *edtCrystalAFC1;
- TEdit *edtCrystalAFC2;
- TLabel *lblCrystalAFC2;
- TLabel *lblCrystalAFC3;
- TEdit *edtCrystalAFC3;
- TLabel *lblCrystalAFC4;
- TEdit *edtCrystalAFC4;
- TEdit *edtCrystalAFC5;
- TLabel *lblCrystalAFC5;
- TEdit *edtCrystalAFC6;
- TLabel *lblCrystalAFC7;
- TEdit *edtCrystalAFC7;
- TLabel *Label19;
- TButton *btnCrystalAFCLoadFromFile;
- TButton *btnCrystalAFCUploadFromFlash;
- TButton *btnCrystalAFCDownloadToFlash;
- TButton *btnCrystalAFCSaveToFile;
- TBitBtn *btnCrystalAFCStart;
- TLabel *lblCrystalAFC6;
- TComboBox *cbxCrystalAFCTSC;
- TLabel *Label29;
- TTabSheet *tsMultiSlotTX;
- TGroupBox *GroupBox4;
- TComboBox *cbxMultiSlotTxBand;
- TLabel *Label38;
- TLabel *Label39;
- TEdit *edtMultiSlotTxARFCN;
- TLabel *Label40;
- TComboBox *cbxMultiSlotTxTSC;
- TLabel *Label42;
- TEdit *edtMultiSlotTxAFC;
- TLabel *Label43;
- TEdit *edtMultiSlotTxTA;
- TGroupBox *GroupBox5;
- TCheckBox *cbTimeSlot0;
- TCheckBox *cbTimeSlot1;
- TCheckBox *cbTimeSlot2;
- TCheckBox *cbTimeSlot3;
- TBitBtn *btnMultiSlotTxStart;
- TButton *btnMSTXInterSlotRampSetting;
- TComboBox *cbxCSTS0;
- TComboBox *cbxCSTS1;
- TComboBox *cbxCSTS2;
- TLabel *Label44;
- TLabel *Label45;
- TLabel *Label46;
- TComboBox *cbxCSTS3;
- TGroupBox *GroupBox6;
- TEdit *edtPCLTS0;
- TEdit *edtPCLTS1;
- TEdit *edtPCLTS2;
- TEdit *edtPCLTS3;
- TLabel *Label47;
- TLabel *Label48;
- TLabel *Label49;
- TLabel *Label41;
- TEdit *edtCrystalAFCCapID;
- TComboBox *cbxCrystalAFCChosen;
- TLabel *lblCrystalAFCChosen;
- TTabSheet *tsTxFreqErr;
- TGroupBox *GroupBox7;
- TComboBox *cbxTXFreqErrBand;
- TLabel *Label20;
- TLabel *Label51;
- TEdit *edtTXFreqErrARFCN;
- TLabel *Label52;
- TComboBox *cbxTXFreqErrTSC;
- TLabel *Label53;
- TEdit *edtTXFreqErrPCL;
- TLabel *Label54;
- TEdit *edtTXFreqErrAFC;
- TLabel *Label55;
- TEdit *edtTXFreqErrPeriod;
- TBitBtn *btnTXFreqErrStart;
- TGroupBox *GroupBox8;
- TRadioButton *rbABTXFreqErr;
- TRadioButton *rbNBTXFreqErr;
- TRadioButton *rbNBAllOneTXFreqErr;
- TTimer *TimerTXFreq;
- TComboBox *cbxTXFreqErrADC;
- TLabel *Label57;
- TStatusBar *sbAFCSweep;
- TStatusBar *sbPM;
- TStatusBar *sbGainSweep;
- TStatusBar *sbCR;
- TStatusBar *sbCT;
- TStatusBar *sbTXIQ;
- TStatusBar *sbAFCControl;
- TStatusBar *sbCAC;
- TStatusBar *sbMultiSlotTx;
- TStatusBar *sbTXFreqError;
- TTabSheet *tsCrystalAfcSweep;
- TLabel *Label81;
- TGroupBox *GroupBox11;
- TLabel *Label82;
- TComboBox *cbCASBand;
- TLabel *Label83;
- TEdit *edtCASARFCN;
- TLabel *Label84;
- TComboBox *cbCASTSC;
- TLabel *Label85;
- TEdit *edtCASPCL;
- TLabel *Label86;
- TEdit *edtCASMinCAPID;
- TEdit *edtCASMaxCAPID;
- TLabel *Label87;
- TLabel *Label88;
- TEdit *edtCASCAPIDStep;
- TLabel *Label89;
- TEdit *edtCASMinAFC;
- TLabel *Label90;
- TEdit *edtCASMaxAFC;
- TLabel *Label91;
- TEdit *edtCASAFCStep;
- TBitBtn *btnCASStart;
- TGroupBox *GroupBox12;
- TRadioButton *rbCASAB;
- TRadioButton *rbCASNB;
- TRadioButton *rbCASNBAllOne;
- TOpenDialog *dlgCASOpenNVRAMDatabase;
- TTimer *CrystalAFCSweepTimer;
- TStaticText *stCASNVRAMDatabaseFile;
- TButton *btnCASNVRAMDatabaseFile;
- TButton *btnCASCFGFile;
- TStaticText *stCASCFGFile;
- TButton *btnCASLogFile;
- TStaticText *stCASLogFile;
- TOpenDialog *dlgCASOpenCFG;
- TSaveDialog *dlgCASSaveLog;
- TButton *btnCACChangeDB;
- TButton *btnAfcChangeDB;
- TStatusBar *sbCAS;
- TBitBtn *btnStart_AFCSweep;
- TButton *btnCTBBTXRunTimeSetting;
- TButton *btnTXIQBBTXRunTimeSetting;
- TButton *btnGUIRampSetting;
- TGroupBox *GroupBox13;
- TRadioButton *rbCASRX;
- TRadioButton *rbCASTX;
- TLabel *Label92;
- TEdit *edtCASTestCount;
- TBitBtn *btnPMStop;
- TBitBtn *btnGSStop;
- TBitBtn *btnCRStop;
- TBitBtn *btnCTStop;
- TBitBtn *btnTXStop;
- TBitBtn *btnAFCStop;
- TBitBtn *btnStop_AFCSwee;
- TBitBtn *btnCrystalAFCStop;
- TBitBtn *btnMultiSlotTxStop;
- TBitBtn *btnTXFreqErrStop;
- TBitBtn *btnCASStop;
- TActionList *actList;
- TAction *ToggleHide;
- TButton *btnTxFreqErrCfgFile;
- TStaticText *stTxFreqErrCFGFile;
- TButton *btnTxFreqErrLogFile;
- TStaticText *stTxFreqErrLogFile;
- TOpenDialog *dlgTxFreqErrOpenCFG;
- TSaveDialog *dlgTxFreqErrSaveLog;
- TGroupBox *GroupBox10;
- TGroupBox *GroupBox14;
- TRadioButton *rbCMU_TXErr;
- TRadioButton *rb8960_TXErr;
- TTabSheet *tsTrimOffIQSweep;
- TGroupBox *GroupBox15;
- TComboBox *m_cbTXIQBand;
- TLabel *Label18;
- TLabel *Label64;
- TEdit *m_edtTXIQARFCN;
- TComboBox *m_cbTXIQTsc;
- TLabel *Label65;
- TLabel *Label66;
- TEdit *m_edtTXIQPCL;
- TLabel *Label67;
- TEdit *m_edtTXIQAFC;
- TGroupBox *GroupBox16;
- TRadioButton *m_rbTXIQAB;
- TRadioButton *m_rbTXIQNB;
- TRadioButton *m_rbTXIQNBAllOne;
- TBitBtn *m_btnTXIQStart;
- TBitBtn *m_btnTXIQStop;
- TLabel *Label68;
- TLabel *label;
- TLabel *Label75;
- TLabel *Label76;
- TLabel *Label77;
- TLabel *Label78;
- TLabel *Label79;
- TLabel *Label80;
- TGroupBox *GroupBox17;
- TRadioButton *m_rbTXIQAge8960;
- TRadioButton *m_rbTXIQCMU200;
- TButton *m_btnTXIQCFGFile;
- TButton *m_btnTXIQLogFile;
- TStaticText *m_stTXIQCFGFile;
- TStaticText *m_stTXIQLogFile;
- TOpenDialog *dlgTrOffOpenNVRAMDatabase;
- TOpenDialog *dlgTrOffOpenCFG;
- TSaveDialog *dlgTrOffSaveLog;
- TLabel *Label93;
- TLabel *Label94;
- TLabel *Label95;
- TLabel *Label96;
- TLabel *Label97;
- TLabel *Label98;
- TLabel *Label99;
- TLabel *Label100;
- TGroupBox *GroupBox18;
- TRadioButton *m_rbTXIQTrimIQ;
- TRadioButton *m_rbTXIQOffsetIQ;
- TStatusBar *m_sbTXIQ;
- TGroupBox *GroupBox19;
- TRadioButton *m_rbTXIQPhaseErr;
- TRadioButton *m_rbTXIQOOS;
- TRadioButton *m_rbTXIQSBS;
- TLabel *Label105;
- TEdit *m_edtTXIQMeasureCount;
- TStaticText *lblHint;
- TLabel *Label106;
- TComboBox *m_cbTXIQMod;
- TGroupBox *gbIP2Reg;
- TEdit *edtPMIP2Reg1;
- TLabel *lblPMIP2Reg1;
- TLabel *lblPMIP2Reg2;
- TEdit *edtPMIP2Reg2;
- TButton *btnPMUploadFromFlash;
- TButton *btnPMDownloadToFlash;
- TButton *btnPMLoadFromFile;
- TButton *btnPMSaveToFile;
- TGroupBox *gbMultiSlotTxBurstType;
- TRadioButton *rbMultiSlotTxNBAll0;
- TRadioButton *rbMultiSlotTxNBAll1;
- TRadioButton *rbMultiSlotTxNB;
- TStaticText *stPMIP2Reg10;
- TLabel *lblPMIP2Reg30;
- TLabel *lblPMIP2Reg10;
- TStaticText *stPMIP2Reg20;
- TButton *btnPMApply;
- TEdit *edtPMIP2Reg3;
- TLabel *lblPMIP2Reg3;
- TEdit *edtPMIP2Reg4;
- TLabel *lblPMIP2Reg4;
- TStaticText *stPMIP2Reg30;
- TLabel *lblPMIP2Reg20;
- TStaticText *stPMIP2Reg40;
- TLabel *lblPMIP2Reg40;
- TButton *btnGetAcode;
- TButton *btnPMNVRAMDB;
- TStaticText *stPMNVRAMDB;
- TOpenDialog *dlgOpenPMNVRAMDB;
- TTabSheet *tsPMCH;
- TGroupBox *GroupBox9;
- TLabel *Label108;
- TLabel *Label109;
- TLabel *Label110;
- TLabel *Label111;
- TLabel *Label112;
- TLabel *Label113;
- TEdit *edtPMCHStartArfcn;
- TEdit *edtPMCHCount;
- TEdit *edtPMCHGain;
- TComboBox *cbPMCHPerFrame;
- TLabel *Label114;
- TEdit *edtPMCHStopArfcn;
- TLabel *Label115;
- TEdit *edtPMCHArfcnStep;
- TLabel *Label116;
- TEdit *edtPMCHDnPwr;
- TLabel *Label117;
- TComboBox *cbxPMCHBand;
- TButton *btnPMCHCFGFile;
- TStaticText *stPMCHCFGFile;
- TOpenDialog *dlgPMCHOpenCFG;
- TButton *btnPMCHLogFile;
- TStaticText *stPMCHLogFile;
- TStatusBar *sbPMCH;
- TSaveDialog *dlgPMCHSaveLog;
- TBitBtn *btnPMCHStart;
- TBitBtn *btnPMCHStop;
- TGroupBox *GroupBox20;
- TRadioButton *rbPMCHAge8960;
- TRadioButton *rbPMCHCMU200;
- TTabSheet *tsTXPCS;
- TStatusBar *sbTXPCS;
- TButton *btnTXPCSCFGFile;
- TStaticText *stTXPCSCFGFile;
- TButton *btnTXPCSLogFile;
- TStaticText *stTXPCSLogFile;
- TGroupBox *GroupBox21;
- TRadioGroup *RadioGroup1;
- TRadioButton *rbTXPCSAb;
- TRadioButton *rbTXPCSNb;
- TRadioButton *rbTXPCSNbOne;
- TBitBtn *btnTXPCSStart;
- TBitBtn *btnTXPCSStop;
- TLabel *Label118;
- TLabel *Label119;
- TEdit *edtTXPCSStartArfcn;
- TComboBox *cbTXPCSTsc;
- TLabel *Label120;
- TLabel *Label121;
- TEdit *edtTXPCSPcl;
- TLabel *Label122;
- TEdit *edtTXPCSAfc;
- TComboBox *cbTXPCSBand;
- TLabel *Label123;
- TEdit *edtTXPCSStopArfcn;
- TOpenDialog *dlgTXPCSOpenCFG;
- TSaveDialog *dlgTXPCSSaveLog;
- TGroupBox *GroupBox22;
- TRadioButton *rbTXPCSAge8960;
- TRadioButton *rbTXPCSCMU200;
- TLabel *Label124;
- TEdit *edtTXPCSArfcnStep;
- TButton *btnPMSetBCcode;
- TLabel *lblPMBcodeI;
- TEdit *edtPMBcodeI;
- TEdit *edtPMBcodeQ;
- TEdit *edtPMCcodeI;
- TEdit *edtPMCcodeQ;
- TLabel *lblPMBcodeQ;
- TLabel *lblPMCcodeI;
- TLabel *lblPMCcodeQ;
- TCheckBox *cbPMAutoCal;
- TLabel *lblPMCalMode;
- TComboBox *cbPMCalibrationMode;
- TButton *btnPMGetBCcode;
- TRadioButton *rbMultiSlotTxPattern;
- TEdit *edtMultiSlotTxPattern;
- TLabel *lblMultiSlotCapability;
- TStaticText *stMultiSlotCapability;
- TButton *btnMSTXEPSKProfileSetting;
- TGroupBox *GroupBox23;
- TRadioButton *rbCTAll0;
- TRadioButton *rbCTAll1;
- TRadioButton *rbCTAlternate;
- TRadioButton *rbCTRandom;
- TRadioButton *rbCTPattern;
- TEdit *edtCTPattern;
- TGroupBox *gbCTModulation;
- TRadioButton *rbCTGMSK;
- TRadioButton *rbCT8PSK;
- TRadioButton *rbMultiSlotTxFixed;
- TRadioButton *rbMultiSlotTxFixedAll0;
- TRadioButton *rbMultiSlotTxFixedAlter;
- TButton *btnMSTXGMSKProfileSetting;
- TButton *btnTXEpskProfileSetting;
- TLabel *lblTXCS;
- TComboBox *cbTXCS;
- TLabel *lblTXModulation;
- TComboBox *cbTXModulation;
- TComboBox *cbTXBurstType;
- TLabel *lblTXBurstType;
- TLabel *lblTXPattern;
- TEdit *edtTXPattern;
- TLabel *lblTXTA;
- TEdit *edtTXTA;
- TButton *btnMSTXBBTXRunTimeSetting;
- TEdit *m_edtTXIQTrimI;
- TEdit *m_edtTXIQTrimQ;
- TEdit *m_edtTXIQOffsetI;
- TEdit *m_edtTXIQOffsetQ;
- TEdit *m_edtTXIQMinTrimI;
- TEdit *m_edtTXIQMaxTrimI;
- TEdit *m_edtTXIQTrimIStep;
- TEdit *m_edtTXIQTrimQStep;
- TEdit *m_edtTXIQMinTrimQ;
- TEdit *m_edtTXIQMaxTrimQ;
- TEdit *m_edtTXIQMinOffsetI;
- TEdit *m_edtTXIQMaxOffsetI;
- TEdit *m_edtTXIQOffsetIStep;
- TEdit *m_edtTXIQOffsetQStep;
- TEdit *m_edtTXIQMinOffsetQ;
- TEdit *m_edtTXIQMaxOffsetQ;
- TLabel *Label70;
- TComboBox *cbCASCOM;
- TLabel *lblCASMinTemp;
- TLabel *lblCASMaxTemp;
- TEdit *edtCASMaxTemp;
- TLabel *lblCASTempStep;
- TEdit *edtCASTempStep;
- TCheckBox *cbCASTempSweep;
- TRadioButton *rbCASAgilent8960;
- TRadioButton *rbCASCMU200;
- TEdit *edtCASMinTemp;
- TEdit *edtAFCCount;
- TEdit *edtTestCount_AFCSweep;
- TCheckBox *cbAFCContSineWave;
- TCheckBox *cbContSineWave_AFCSweep;
- TEdit *m_edtCrystalAFCAFC;
- TLabel *m_lblCrystalAFCAFC;
- TGroupBox *gbCrystalAFCOutput;
- TLabel *Label21;
- TLabel *Label22;
- TLabel *Label23;
- TLabel *Label24;
- TLabel *Label25;
- TLabel *Label26;
- TLabel *Label27;
- TLabel *Label28;
- TLabel *Label30;
- TLabel *Label31;
- TLabel *Label32;
- TLabel *Label33;
- TLabel *Label34;
- TLabel *Label35;
- TLabel *Label36;
- TLabel *Label37;
- TStaticText *StaticText1;
- TStaticText *StaticText2;
- TStaticText *StaticText3;
- TStaticText *StaticText4;
- TStaticText *StaticText5;
- TStaticText *StaticText6;
- TStaticText *StaticText7;
- TEdit *edtCrystalAFCFreqErr0;
- TEdit *edtCrystalAFCFreqErr1;
- TEdit *edtCrystalAFCFreqErr2;
- TEdit *edtCrystalAFCFreqErr3;
- TEdit *edtCrystalAFCFreqErr4;
- TEdit *edtCrystalAFCFreqErr5;
- TEdit *edtCrystalAFCFreqErr6;
- TEdit *edtCrystalAFCFreqErr7;
- TButton *btnEPSKGUIRampSetting;
- TButton *btnPMEvaluate;
- TTabSheet *tsSN;
- TButton *btnSNCFGFile;
- TStaticText *stSNCFGFile;
- TGroupBox *GroupBox3;
- TLabel *lblSNBand;
- TLabel *lblSNARFCN;
- TLabel *lblSNPerFrame;
- TLabel *lblSNCount;
- TLabel *Label10;
- TLabel *lblSNGainMin;
- TLabel *lblSNGainMax;
- TLabel *lblSNGainStep;
- TLabel *Label12;
- TLabel *Label13;
- TLabel *Label11;
- TLabel *lblSNThreshold;
- TLabel *Label14;
- TLabel *lblSNMaxDnPower;
- TLabel *Label16;
- TLabel *lblSNMinDnPower;
- TLabel *Label50;
- TLabel *lblSNDnPowerStep;
- TLabel *Label126;
- TComboBox *cbSNBand;
- TEdit *edtSNARFCN;
- TComboBox *cbSNPerFrame;
- TEdit *edtSNCount;
- TEdit *edtSNGainMin;
- TEdit *edtSNGainMax;
- TEdit *edtSNGainStep;
- TBitBtn *btnSNStart;
- TBitBtn *btnSNStop;
- TEdit *edtSNThreshold;
- TGroupBox *gbSNEquipment;
- TRadioButton *rbSNAgilent8960;
- TRadioButton *rbSNCMU200;
- TEdit *edtSNMaxDnPower;
- TEdit *edtSNMinDnPower;
- TEdit *edtSNDnPowerStep;
- TButton *btnSNSaveToFile;
- TRichEdit *memSNResult;
- TOpenDialog *dlgSNOpenCFG;
- TStatusBar *sbSN;
- TButton *btnTXIQBBTXSetting;
- TButton *btnRegSetting;
- TLabel *lblCTPCL;
- TEdit *edtCTPCL;
- TTabSheet *tsRXL;
- TGroupBox *GroupBox24;
- TCheckBox *m_cbRXLGsm850;
- TCheckBox *m_cbRXLGsm900;
- TCheckBox *m_cbRXLDcs1800;
- TCheckBox *m_cbRXLPcs1900;
- TBitBtn *btnRXLStart;
- TBitBtn *btnRXLStop;
- TRichEdit *memRXLResult;
- TStatusBar *sbRXL;
- TButton *btnRXLCfgFile;
- TStaticText *m_stRXLCfgFile;
- TOpenDialog *dlgRXLOpenCFG;
- TButton *btnRXLGenFile;
- TGroupBox *GroupBox25;
- TRadioButton *rbAgilent8960;
- TRadioButton *rbCMU200;
- TLabel *Label17;
- TEdit *edtRXLThreashold;
- TLabel *Label56;
- TLabel *Label58;
- TComboBox *cbRXLPerFrame;
- TLabel *Label59;
- TEdit *edtRXLPmCount;
- TLabel *Label60;
- TEdit *edtRXLGain;
- TLabel *Label61;
- TEdit *m_edtRXLDnPower;
- TLabel *Label62;
- TLabel *Label63;
- TCheckBox *cbSNGainChangeFirst;
- TRadioButton *m_rbTXIQPhasesel;
- TLabel *m_lblTXIQPhasesel;
- TEdit *m_edtTXIQPhasesel;
- TLabel *m_lblTXIQMinPhasesel;
- TLabel *m_lblTXIQMaxPhasesel;
- TLabel *m_lblTXIQPhaseselStep;
- TEdit *m_edtTXIQMinPhasesel;
- TEdit *m_edtTXIQMaxPhasesel;
- TEdit *m_edtTXIQPhaseselStep;
- TButton *m_btnAFCRtc32k;
- TButton *m_RXLNvramDB;
- TStaticText *m_stNvramDB;
- TCheckBox *m_cbCASContSineWave;
- void __fastcall AFC_DownloadToFlashStart(TObject *Sender);
- void __fastcall AFC_UploadFromFlashStart(TObject *Sender);
- void __fastcall FormShow(TObject *Sender);
- void __fastcall btnAFCStartClick(TObject *Sender);
- void __fastcall btnAfcLoadFromFileClick(TObject *Sender);
- void __fastcall btnAfcSaveToFileClick(TObject *Sender);
- void __fastcall btnCRStartClick(TObject *Sender);
- void __fastcall btnCTStartClick(TObject *Sender);
- void __fastcall btnGSStartClick(TObject *Sender);
- void __fastcall btnPMStartClick(TObject *Sender);
- void __fastcall btnPathLossSettingClick(TObject *Sender);
- void __fastcall btnTXProfileSettingClick(TObject *Sender);
- void __fastcall btnTXStartClick(TObject *Sender);
- void __fastcall chkTXBBSettingClick(TObject *Sender);
- void __fastcall pctlToolSelChange(TObject *Sender);
- void __fastcall edtArfcnCheck(TObject *Sender);
- void __fastcall edtGainCheck(TObject *Sender);
- void __fastcall edtAfcDacCheck(TObject *Sender);
- void __fastcall edtPMTestCountCheck(TObject *Sender);
- void __fastcall edtOffsetIQCheck(TObject *Sender);
- void __fastcall edtPclCheck(TObject *Sender);
- void __fastcall edtAfcSlopeCheck(TObject *Sender);
- void __fastcall cbxBandChange(TObject *Sender);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall edtInitAfcDacCheck(TObject *Sender);
- void __fastcall HintTimerTimer(TObject *Sender);
- void __fastcall btnAfcEvaluateClick(TObject *Sender);
- void __fastcall FormHide(TObject *Sender);
- // void __fastcall btnTXIQUploadFromFlashClick(TObject *Sender);
- // void __fastcall btnTXIQDownloadToFlashClick(TObject *Sender);
- // void __fastcall btnTXIQLoadFromFileClick(TObject *Sender);
- // void __fastcall btnTXIQSaveToFileClick(TObject *Sender);
- void __fastcall btnSaveToFileClick(TObject *Sender);
- void __fastcall btnStart_AFCSweepClick(TObject *Sender);
- void __fastcall btnSaveToFile_AFCSweepClick(TObject *Sender);
- void __fastcall edtCrystalARFCNCheck(TObject *Sender);
- void __fastcall edtCrystalAFC0DacCheck(TObject *Sender);
- void __fastcall edtCrystalAFC1DacCheck(TObject *Sender);
- void __fastcall btnCrystalAFCLoadFromFileClick(TObject *Sender);
- void __fastcall btnCrystalAFCSaveToFileClick(TObject *Sender);
- void __fastcall btnCrystalAFCUploadFromFlashClick(TObject *Sender);
- void __fastcall btnCrystalAFCDownloadToFlashClick(TObject *Sender);
- void __fastcall btnMSTXInterSlotRampSettingClick(TObject *Sender);
- void __fastcall edtTACheck(TObject *Sender);
- void __fastcall cbxCSChange(TObject *Sender);
- void __fastcall btnMultiSlotTxStartClick(TObject *Sender);
- void __fastcall TimeSlot0Checked(TObject *Sender);
- void __fastcall TimeSlot1Checked(TObject *Sender);
- void __fastcall TimeSlot2Checked(TObject *Sender);
- void __fastcall TimeSlot3Checked(TObject *Sender);
- void __fastcall btnCrystalAFCStartClick(TObject *Sender);
- void __fastcall btnTXFreqErrStartClick(TObject *Sender);
- void __fastcall btnSetupINIFileNameClick(TObject *Sender);
- void __fastcall btnSetupLogFileNameClick(TObject *Sender);
- void __fastcall FormDestroy(TObject *Sender);
- void __fastcall TimerTXFreqTimer(TObject *Sender);
- void __fastcall btnTXOldIQDataSettingClick(TObject *Sender);
- void __fastcall btnCTOldIQDataSettingClick(TObject *Sender);
- void __fastcall edtCAPIDCheck(TObject *Sender);
- void __fastcall btnSetupCfgFileClick(TObject *Sender);
- void __fastcall CrystalAFCSweepTimerTimer(TObject *Sender);
- void __fastcall btnCASNVRAMDatabaseFileClick(TObject *Sender);
- void __fastcall btnCASCFGFileClick(TObject *Sender);
- void __fastcall btnCASLogFileClick(TObject *Sender);
- void __fastcall btnCTChangeDBClick(TObject *Sender);
- void __fastcall btnCACChangeDBClick(TObject *Sender);
- void __fastcall btnTXIQChangeDBClick(TObject *Sender);
- void __fastcall btnAfcChangeDBClick(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall btnCTBBTXRunTimeSettingClick(TObject *Sender);
- void __fastcall btnTXIQBBTXRunTimeSettingClick(TObject *Sender);
- void __fastcall btnGUIRampSettingClick(TObject *Sender);
- void __fastcall rbCASRXClick(TObject *Sender);
- void __fastcall rbCASTXClick(TObject *Sender);
- void __fastcall btnCASStartClick(TObject *Sender);
- void __fastcall btnPMStopClick(TObject *Sender);
- void __fastcall btnGSStopClick(TObject *Sender);
- void __fastcall btnCRStopClick(TObject *Sender);
- void __fastcall btnCTStopClick(TObject *Sender);
- void __fastcall btnTXStopClick(TObject *Sender);
- void __fastcall btnAFCStopClick(TObject *Sender);
- void __fastcall btnStop_AFCSweeClick(TObject *Sender);
- void __fastcall btnCrystalAFCStopClick(TObject *Sender);
- void __fastcall btnMultiSlotTxStopClick(TObject *Sender);
- void __fastcall btnTXFreqErrStopClick(TObject *Sender);
- void __fastcall btnCASStopClick(TObject *Sender);
- void __fastcall ToggleHideExcute(TObject *Sender);
- void __fastcall btnTxFreqErrCfgFileClick(TObject *Sender);
- void __fastcall btnTxFreqErrLogFileClick(TObject *Sender);
- void __fastcall m_btnTXIQStartClick(TObject *Sender);
- void __fastcall edtOffsetIQStepCheck(TObject *Sender);
- void __fastcall m_btnTXIQNVRAMDBFileClick(TObject *Sender);
- void __fastcall m_btnTXIQCFGFileClick(TObject *Sender);
- void __fastcall m_btnTXIQLogFileClick(TObject *Sender);
- void __fastcall m_rbTXIQTrimIQClick(TObject *Sender);
- void __fastcall edtTrimIQCheck(TObject *Sender);
- void __fastcall edtTrimIQStepCheck(TObject *Sender);
- void __fastcall m_rbTXIQOffsetIQClick(TObject *Sender);
- void __fastcall m_btnTXIQStopClick(TObject *Sender);
- void __fastcall edtMeasureCountCheck(TObject *Sender);
- void __fastcall edtBBTXCalibratedFlagCheck(TObject *Sender);
- void __fastcall cbxMultiSlotTxModulationChange(TObject *Sender);
- void __fastcall btnMSTXEPSKProfileSettingClick(TObject *Sender);
- void __fastcall btnPMUploadFromFlashClick(TObject *Sender);
- void __fastcall btnPMDownloadToFlashClick(TObject *Sender);
- void __fastcall edtPMIP2Reg1Check(TObject *Sender);
- void __fastcall edtPMIP2Reg2Check(TObject *Sender);
- void __fastcall btnPMSaveToFileClick(TObject *Sender);
- void __fastcall btnPMLoadFromFileClick(TObject *Sender);
- void __fastcall btnPMChangeNVRAMDBClick(TObject *Sender);
- void __fastcall btnPMEvaluateClick(TObject *Sender);
- void __fastcall btnPMApplyClick(TObject *Sender);
- void __fastcall edtPMIP2Reg3Check(TObject *Sender);
- void __fastcall edtPMIP2Reg4Check(TObject *Sender);
- void __fastcall rbPMOnClick(TObject *Sender);
- void __fastcall rbPMOffClick(TObject *Sender);
- void __fastcall btnGetAcodeClick(TObject *Sender);
- void __fastcall cbCalModeClick(TObject *Sender);
- void __fastcall btnPMNVRAMDBClick(TObject *Sender);
- void __fastcall cbxPMCHBandChange(TObject *Sender);
- void __fastcall edtTXIQBBTXTrimICheck(TObject *Sender);
- void __fastcall edtTXIQBBTXTrimQCheck(TObject *Sender);
- void __fastcall edtTXIQBBTXOffsetICheck(TObject *Sender);
- void __fastcall edtTXIQBBTXOffsetQCheck(TObject *Sender);
- void __fastcall btnPMCHCFGFileClick(TObject *Sender);
- void __fastcall btnPMCHLogFileClick(TObject *Sender);
- void __fastcall btnPMCHStartClick(TObject *Sender);
- void __fastcall edtDnPwrCheck(TObject *Sender);
- void __fastcall edtArfcnStepCheck(TObject *Sender);
- void __fastcall cbTXPCSBandChange(TObject *Sender);
- void __fastcall btnTXPCSCFGFileClick(TObject *Sender);
- void __fastcall btnTXPCSLogFileClick(TObject *Sender);
- void __fastcall btnTXPCSStartClick(TObject *Sender);
- void __fastcall btnPMCHStopClick(TObject *Sender);
- void __fastcall btnTXPCSStopClick(TObject *Sender);
- void __fastcall btnPMSetBCcodeClick(TObject *Sender);
- void __fastcall edtBcodeICheck(TObject *Sender);
- void __fastcall edtBcodeQCheck(TObject *Sender);
- void __fastcall edtCcodeICheck(TObject *Sender);
- void __fastcall edtCcodeQCheck(TObject *Sender);
- void __fastcall cbPMAutoCalClick(TObject *Sender);
- void __fastcall cbPMCalibrationModeChange(TObject *Sender);
- void __fastcall btnPMGetBCcodeClick(TObject *Sender);
- void __fastcall edtPatternCheck(TObject *Sender);
- void __fastcall edtCTPatternCheck(TObject *Sender);
- void __fastcall cbTXModulationChange(TObject *Sender);
- void __fastcall cbTXBurstTypeChange(TObject *Sender);
- void __fastcall edtTrOffTrimICheck(TObject *Sender);
- void __fastcall edtTrOffTrimQCheck(TObject *Sender);
- void __fastcall edtTrOffOffsetICheck(TObject *Sender);
- void __fastcall edtTrOffOffsetQCheck(TObject *Sender);
- void __fastcall edtTrOffMinTrimICheck(TObject *Sender);
- void __fastcall edtTrOffMaxTrimICheck(TObject *Sender);
- void __fastcall edtTrOffTrimIStepCheck(TObject *Sender);
- void __fastcall edtTrOffTrimQStepCheck(TObject *Sender);
- void __fastcall edtTrOffMinTrimQCheck(TObject *Sender);
- void __fastcall edtTrOffMaxTrimQCheck(TObject *Sender);
- void __fastcall edtTrOffMinOffsetICheck(TObject *Sender);
- void __fastcall edtTrOffMaxOffsetICheck(TObject *Sender);
- void __fastcall edtTrOffOffsetIStepCheck(TObject *Sender);
- void __fastcall edtTrOffOffsetQStepCheck(TObject *Sender);
- void __fastcall edtTrOffMinOffsetQCheck(TObject *Sender);
- void __fastcall edtTrOffMaxOffsetQCheck(TObject *Sender);
- void __fastcall cbCASTempSweepClick(TObject *Sender);
- void __fastcall edtCASMinTempCheck(TObject *Sender);
- void __fastcall edtCASMaxTempCheck(TObject *Sender);
- void __fastcall edtCASTempStepCheck(TObject *Sender);
- void __fastcall edtAFCTestCountCheck(TObject *Sender);
- void __fastcall cbAFCContSineWaveClick(TObject *Sender);
- void __fastcall cbContSineWave_AFCSweepClick(TObject *Sender);
- void __fastcall btnEPSKGUIRampSettingClick(TObject *Sender);
- void __fastcall btnSNCFGFileClick(TObject *Sender);
- void __fastcall edtSNThresholdCheck(TObject *Sender);
- void __fastcall btnSNSaveToFileClick(TObject *Sender);
- void __fastcall btnSNStartClick(TObject *Sender);
- void __fastcall btnSNStopClick(TObject *Sender);
- void __fastcall btnTXIQBBTXSettingClick(TObject *Sender);
- void __fastcall btnRegSettingClick(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- void __fastcall m_rbTXIQPhaseselClick(TObject *Sender);
- void __fastcall m_edtTXIQMinPhaseselCheck(TObject *Sender);
- void __fastcall m_edtTXIQMaxPhaseselCheck(TObject *Sender);
- void __fastcall m_edtTXIQPhaseselStepCheck(TObject *Sender);
- void __fastcall m_btnAFCRtc32kClick(TObject *Sender);
- void __fastcall m_edtTXIQPhaseselCheck(TObject *Sender);
- void __fastcall m_RXLNvramDBClick(TObject *Sender);
- void __fastcall btnRXLStartClick(TObject *Sender);
- void __fastcall btnRXLCfgFileClick(TObject *Sender);
- void __fastcall edtRXLPmCountCheck(TObject *Sender);
- void __fastcall edtRXLGainCheck(TObject *Sender);
- void __fastcall m_edtRXLDnPowerCheck(TObject *Sender);
- void __fastcall edtRXLThreasholdCheck(TObject *Sender);
- void __fastcall btnRXLStopClick(TObject *Sender);
- void __fastcall btnRXLGenFileClick(TObject *Sender);
-
- //void __fastcall btnTXUploadFromFlashClick(TObject *Sender);
- // void __fastcall btnTXDownloadToFlashClick(TObject *Sender);
-
- private: // User declarations
- // common
- CMETAHANDLE m_META_HANDLE_Obj;
- bool m_bInit;
- unsigned int m_uiFinalRfid;
- BBCHIP_TYPE m_eBBChip;
- E_BBTXCFG_VER_T m_eBbTxCfgVer;
- RfMsCapabilityEx_S m_sFinalMSCAP;
- bool m_bFirstPmCnf;
- bool m_bFirstPMShow;
- bool m_bFirstPMCHShow;
- bool m_bFirstSNShow;
- bool m_bFirstAFCCtrlShow;
- bool m_bFirstAFCSweepShow;
- bool m_bFirstTXShow;
- bool m_bFirstTXPCSShow;
- bool m_bFirstTrOffShow;
- bool m_bFirstMultiSlotTxShow;
- bool m_bFirstCrystalAFCSweepShow;
- bool m_bFirstTxFreqErrShow;
- //RFID rf_id;
- // band
- // RFBandSupport_S band_support;
- // FrequencyBand FreqBand;
- AnsiString as_NVRAM_DB_File;
- // PM
- bool isDownloadIP2Trigger;
- bool isSetMT6139CW7ToRegTrigger;
- int SetMT6139CoefToRegTrigger;
- int SetMT6139CW2ToRegTrigger;
- c_RFMod_Sky74045_Coef_T c_sky74045_coef;
- c_RFMod_Sky74117_Coef_T mc_sky74117_coef;
- uc_RFMod_MT6139_Coef_T uc_mt6139_coef;
- // c_RFMod_B5P_Coef_T c_b5p_coef;
- RF_SKY74045_Coef_T sky74045_coef;
- RF_MT6139B_Coef_T mt6139_coef;
- RF_BRIGHT5P_Coef_T b5p_coef;
- S_MT6139_CW7 mt6139_cw7;
- // PM channel sweep
- sPMCHSweep pmch_sweep;
- bool b_OpenPMCHCfgFile;
- bool b_SetupPMCHLogFile;
- TStringList *st_Log_PMCH; // save log
- // PM saturate and noise floor
- S_SNSweep m_sn_sweep;
- bool m_bOpenSNCfgFile;
- bool m_bSetupSNLogFile;
- TStringList *m_st_Log_SN; // save log
-
- // AFC
- sTContSine t_cont_sine;
- // cyrstal AFC
- TEdit *edtCrystalAFC[TOTAL_AFCDAC_COUNT];
- TEdit *edtCrystalAFCFreqErr[TOTAL_AFCDAC_COUNT];
- TYPE_META_FACTORY_CONTROL MF_ctrl;
- TYPE_META_FACTORY_ADC_CONTROL MF_ADC_ctrl; // for test
- // TMETA_factory_cfg *META_factory_cfg; // for test
- char TimeSlotMask;
- // crystal AFC sweep
- unsigned short ComPortCount;
- unsigned short ComPortArray[MAX_SUPPORT_COM_NUM];
- S_CAS_T CAS;
- // CT
- E_CT_SUPPORT m_eCtSupport;
- CRFCTCMN RF_CTCMN_Obj;
- // TX level
- S_UI_L1CAL_TXIQ m_sUiL1CalTxIq;
- // S_BB_TX_PARAMETER_ACCESS m_sBBTXParAccess;
- // bool m_bBBTxDownloadTrigger;
- // Multislot TX
- //RfMsCapability_S RfMsCapability;
-
- // TX power channel sweep
- sTXPCSSweep txpcs_sweep;
- bool b_OpenTXPCSCfgFile;
- bool b_SetupTXPCSLogFile;
- // TX frequency error
- bool b_OpenTxFreqErrCfgFile;
- bool b_SetupTxFreqErrLogFile;
- AnsiString as_TxFreqErrLogFileName;
- // bool b_SetupLogFile;
- // AnsiString as_LogFileName;
- TStringList *st_Log; // save log
- TMETA_crystal_cfg *META_crystal_cfg, *META_crystal_AFC_sweep_cfg;
- HANDLE hAgeDll;
- CBBADC BB_ADC_Object;
- CBBREG BB_REG_Object;
- int adc_value;
- int CurAdcChannel;
- ViStatus vistat;
- ViChar errmsg[256];
- ViInt16 MeasFcnDone;
- ViInt32 PFERIntegrity;
- ViReal64 PFERRMSError;
- ViReal64 PFERPeakError;
- ViReal64 PFERFreqError;
- ViReal64 FreqError;
- char buf[80];
- // crystal AFC sweep
- bool b_OpenCASDBFile, b_OpenCASCfgFile, b_SetupCASLogFile;
- AnsiString as_CASLogFileName;
- AnsiString as_AgeTaModel;
- TStringList *st_Log_CAS; // save log
- TNotifyEvent ne, neTBU;
- // offset IQ sweep
- bool b_SetupTrOffLogFile;
- bool b_OpenTrOffDBFile;
- bool b_OpenTrOffCfgFile;
- AnsiString as_TrOffLogFileName;
- S_TXIQ_SWEEP_T m_TxIqSweep;
- E_BANDSEL m_eCurBand;
- bool FirstTime;
- CRFPM RF_PM_Object;
- CRFCR RF_CR_Object;
- CRFCT RF_CT_Object;
- CRFTX RF_TX_Object;
- // CRFTX8PSK RF_TX_8PSK_Object;
- CRFAPC8PSK RF_APC_8PSK_Object;
- CRFAFC RF_AFC_Object;
- CRFAGC RF_AGC_Object;
- CRFAPC RF_APC_Object;
- CRFTXIQ m_cRF_TXIQ_Obj;
- CRFTXIQRUN m_cRF_TXIQRUN_Obj;
- CRFSTOP RF_STOP_Object;
- CCRYSTALAFC CRYSTAL_AFC_Object;
- //CRFID RF_ID_Object;
- //CCRYSTALAFCSWEEP CRYSTAL_AFC_SWEEP_Object;
- CRFMULTISLOTTX RF_MULTI_SLOT_TX_Object;
- bool is_title_AFCSweep;
- // multi slot tx
- bool m_bMultiSlotTxExSupport;
- // RX path loss subband search
- S_RXL_SWEEP_T m_sRxlSweep;
- S_RCT m_sRct;
- l1cal_agcPathLoss_T m_sRxPathLoss;
- TThread *m_pt_RXLSweep;
-
- public: // User declarations
- TThread *pt_Age8960, *pt_Age8960_Crystal_Sweep_TX, *pt_Age8960_Crystal_Sweep_RX;
- __fastcall TfrmRFTool(TComponent* Owner);
- // Shine add member objects follow
- // common
- int Get_APCTxPattern( void );
- void _fastcall SubClassWndProc( Messages::TMessage &Message);
- void ShowHintLabel( TControl *sender, char* hint );
- void ApplyHideProperty( void );
- bool read_db_file( AnsiString asFileName );
- void UpdateDBFileCaption(AnsiString asFileName);
- // PM
- bool CheckIP2RegFields( void );
- void Display_PMCalibrationMode( void );
- void REQ_PM_Start( void );
- void PM_UploadFromFlashDone( void );
- void PM_DownloadToFlashDone( void );
- void read_PM_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void read_PM_db_file( AnsiString asFileName );
- // PM channel sweep
- TThread *pt_PMCH_sweep;
- void read_PMCH_cfg_file( AnsiString asFileName);
- void setup_PMCH_log_file( AnsiString asFileName);
- void write_PMCH_log_file( AnsiString as_PMCHLogFileName );
- void wrap_PMCH_log_file( AnsiString as_PMCHLogFileName );
- void read_PMCH_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void write_PMCH_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- bool CheckPMCHFields( void );
- void __fastcall on_PMCH_TerminateSuccess(TObject *Sender);
- void __fastcall on_PMCH_TerminateFail(TObject *Sender);
- void __fastcall on_PMCH_TerminateByUser(TObject *Sender);
- // RX path loss subband search
- bool CheckRXLFields(void);
- void read_RXL_cfg_file(AnsiString asFileName);
- void __fastcall on_RXL_TerminateSuccess(TObject *Sender);
- void __fastcall on_RXL_TerminateFail(TObject *Sender);
- void __fastcall on_RXL_TerminateByUser(TObject *Sender);
- // Saturate & noise floor
- TThread *m_pt_SN_sweep;
- void read_SN_cfg_file( AnsiString asFileName );
- void __fastcall on_SN_TerminateSuccess(TObject *Sender);
- void __fastcall on_SN_TerminateFail(TObject *Sender);
- void __fastcall on_SN_TerminateByUser(TObject *Sender);
- void FillSNResult( bool is_title, S_SNResult &sn_result );
- void read_SN_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void write_SN_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- // AFC
- void cbContSineWaveClick( void );
- void QuerySineWaveSupport( void );
- void __fastcall on_QueryContSineSupport_Fail(TObject *Sender);
- void __fastcall on_QueryContSineSupport_TerminateSuccess(TObject *Sender);
- // TX level
- APCTxPattern Get_GmskBurstType(void);
- APCTxPattern Get_EpskBurstType(void);
- void Display_TxCS( RfMsCapabilityBits capability, E_MODULATION modulation );
- void Display_TXGmskBurstType( void );
- void Display_TXEpskBurstType( void );
- void Display_TxGmskUi( void );
- void Display_TxEpskUi( void );
- //void RedrawBBTxParameters(void);
- // TX power sweep
- TThread *pt_TXPCS_sweep;
- bool CheckTXPCSFields( void );
- void read_TXPCS_cfg_file( AnsiString asFileName);
- void setup_TXPCS_log_file( AnsiString asFileName);
- void write_TXPCS_log_file( void );
- void wrap_TXPCS_log_file( AnsiString as_PMCHLogFileName );
- void read_TXPCS_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void write_TXPCS_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void __fastcall on_TXPCS_TerminateSuccess(TObject *Sender);
- void __fastcall on_TXPCS_TerminateFail(TObject *Sender);
- void __fastcall on_TXPCS_TerminateByUser(TObject *Sender);
- // TX IQ sweep
- TThread *m_pt_TXIQ_sweep;
- void write_TXIQ_log(void);
- void setup_TXIQ_log_file(AnsiString asFileName);
- void read_TXIQ_db_file(AnsiString asFileName);
- void read_TXIQ_cfg_file(AnsiString asFileName);
- void read_TXIQ_files_setup(AnsiString asSetupFile, AnsiString asExeName);
- void write_TXIQ_files_setup(AnsiString asSetupFile, AnsiString asExeName);
- void wrap_TXIQ_log_file(void);
- void __fastcall on_TXIQ_TerminateSuccess(TObject *Sender);
- void __fastcall on_TXIQ_TerminateByUser(TObject *Sender);
- // crystal AFC sweep
- void Display_ComPort( void );
- // call back
- void ConfirmCallback_PM( void );
- void CNF_PM_SetMT6139CoefToReg( void );
- void CNF_PM_SetMT6139CW2ToReg( void );
- void CNF_PM_GetBCcodeFromReg( void );
- void CNF_PM_SetBCcodeToReg( void );
- void CNF_PM_GetAcodeFromReg( void );
- void CNF_PM_GetMT6139CW7FromReg( void );
- void CNF_PM_SetMT6139CW7ToReg( void );
- void ConfirmCallback_CR( void );
- void ConfirmCallback_CT( void );
- void ConfirmCallback_TX( void );
- void ConfirmCallback_AFC( void );
- void ConfirmCallback_SetAfcSinWaveDetection( void );
- void ConfirmCallback_CrystalAFC( void );
- void ConfirmCallback_MultiSlotTX( void );
- void ConfirmCallback_QueryRfMsCapability( void );
- void AFC_UploadFromFlashDone( void );
- void AFC_DownloadToFlashDone( void );
- //void TXIQ_UploadFromFlashDone( void );
- // void TXIQ_DownloadToFlashDone( void );
- void CurrentPageReset( void );
- void CurrentPageLock( void );
- void FillPMResult( bool is_title, TRichEdit *rmemo );
- void FillAFCResult( void );
- void Force_RF_Stop( void );
- // Crystal
- void Crystal_AFCData_UploadFromFlashDone( void );
- void Crystal_AFCData_DownloadToFlashDone( void );
- void Crystal_CapId_UploadFromFlashDone( void );
- void Crystal_CapId_DownloadToFlashDone( void );
- // Crystal AFC sweep
- void read_CAS_db_file( AnsiString asFileName );
- void read_CAS_cfg_file( AnsiString asFileName);
- void setup_CAS_log_file( AnsiString asFileName);
- void read_CAS_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void write_CAS_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void write_CAS_log( void );
- void wrap_CAS_log_file( void );
- void __fastcall on_CAS_TerminateSuccess(TObject *Sender);
- void __fastcall on_CAS_TerminateFail(TObject *Sender);
- void __fastcall on_CAS_TerminateByUser(TObject *Sender);
- // void Crystal_AFC_Sweep_Start_TX_Click( void );
- void Crystal_AFC_Sweep_Start_Click( void );
- // Multislot TX
- void Display_MultislotTx( void );
- void Display_MultiSlotTxCS( RfMsCapabilityBits capability );
- // TX frequency error
- void write_TxFreqErr_log( void );
- void wrap_TxFreqErr_log_file( void );
- void setup_log_file( AnsiString asFileName);
- void __fastcall on_ThreadInitAge8960_TerminateSuccess(TObject *Sender);
- void __fastcall on_ThreadInitAge8960_TerminateFail(TObject *Sender);
- void MeasureAdc1_Done( void );
- bool __fastcall CheckError(ViStatus ErrorStatus);
- void Force_BB_Stop(void);
- void read_TxFreqErr_cfg_file( AnsiString asFileName);
- void setup_TxFreqErr_log_file( AnsiString asFileName);
- void read_TxFreqErr_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void write_TxFreqErr_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- // PM
- void Display_IP2Reg( void );
- void RedrawIP2RegEditor( void );
- void write_PM_files_setup( AnsiString asSetupFile, AnsiString asExeName );
- void CNF_SetSky74117IP2MagToReg( void );
- void CNF_SetSky74117IP2PolToReg( void );
- // export information
- void Init( void );
- CRFAGC* Get_AgcObject(void);
- CRFAPC* Get_ApcObject(void);
- E_CT_SUPPORT Get_CtSupport(void);
- bool Get_MultiSlotTxExSupport(void);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmRFTool *frmRFTool;
- //---------------------------------------------------------------------------
- #endif