form_RFCTBBTXRun.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:
- * ---------
- * form_RFCTBBTX.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * RF continuous TX BB TX 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_RFCTBBTXRUN_H_
- #define _FORM_RFCTBBTXRUN_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <Buttons.hpp>
- #include <ComCtrls.hpp>
- #include <ExtCtrls.hpp>
- #include <Dialogs.hpp>
- // RF
- #ifndef _RF_CT_H_
- #include "rf_ct.h"
- #endif
- #ifndef _RF_TXIQ_RUN_H_
- #include "rf_txiq_run.h"
- #endif
- #ifndef _RF_STOP_H_
- #include "rf_stop.h"
- #endif
- //---------------------------------------------------------------------------
- class TfrmCTBBTXRunTimeSetting : public TForm
- {
- __published: // IDE-managed Components
- TGroupBox *grpCT01;
- TLabel *lblLabel32;
- TLabel *lblLabel31;
- TEdit *edtCTArfcn;
- TComboBox *cbxCTBand;
- TGroupBox *GroupBox10;
- TLabel *Label64;
- TLabel *Label65;
- TEdit *edtCTCMV;
- TEdit *edtCTBBTXGain;
- TEdit *edtCTBBTXCalrcsel;
- TBitBtn *btnCTStart;
- TStatusBar *sbCT;
- TStaticText *lblHint;
- TTimer *HintTimer;
- TLabel *Label1;
- TLabel *Label2;
- TEdit *edtCTOffsetI;
- TLabel *Label3;
- TLabel *Label4;
- TEdit *edtCTOffsetQ;
- TEdit *edtCTTXCalbias;
- TLabel *Label5;
- TLabel *Label6;
- TButton *btnLoadFromReg;
- TButton *Button1;
- TButton *btnCTLoadFromFile;
- TButton *btnCTSaveToFile;
- TOpenDialog *OpenDialog;
- TEdit *edtCTTXIQSwap;
- TEdit *edtCTTrimI;
- TEdit *edtCTTrimQ;
- TSaveDialog *SaveDialog;
- TBitBtn *btnCTStop;
- TLabel *lblCTBBTXPhasesel;
- TEdit *edtCTBBTXPhasesel;
- TComboBox *cbTXModulation;
- TLabel *lblTXModulation;
- TGroupBox *GroupBox23;
- TRadioButton *rbCTAll0;
- TRadioButton *rbCTAll1;
- TRadioButton *rbCTAlternate;
- TRadioButton *rbCTRandom;
- TRadioButton *rbCTPattern;
- TEdit *edtCTPattern;
- TLabel *lblPCL;
- TEdit *edtPCL;
- void __fastcall btnCTStartClick(TObject *Sender);
- void __fastcall edtArfcnCheck(TObject *Sender);
- void __fastcall HintTimerTimer(TObject *Sender);
- void __fastcall cbxCTBandChange(TObject *Sender);
- void __fastcall edtBBTXCommonModeVoltageCheck(TObject *Sender);
- void __fastcall edtBBTXGainCheck(TObject *Sender);
- void __fastcall edtCTBBTXCalrcselCheck(TObject *Sender);
- void __fastcall btnLoadFromRegClick(TObject *Sender);
- void __fastcall btnCTLoadFromFileClick(TObject *Sender);
- void __fastcall edtOffsetIQCheck(TObject *Sender);
- void __fastcall edtBBTXCalbiasCheck(TObject *Sender);
- void __fastcall edtTrimIQCheck(TObject *Sender);
- void __fastcall edtBBTXIQSwapCheck(TObject *Sender);
- void __fastcall btnCTSaveToFileClick(TObject *Sender);
- void __fastcall btnCTStopClick(TObject *Sender);
- void __fastcall edtCTBBTXPhaseselCheck(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall edtCTPatternCheck(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- void __fastcall edtPCLCheck(TObject *Sender);
- private: // User declarations
- bool m_bInit;
- E_CT_SUPPORT m_eCtSupport;
- E_BANDSEL m_eCurBand;
- E_BBTXCFG_VER_T m_eBbTxCfgVer;
- RfBBTXCfg4 m_sBbTxCfg;
- CRFCT* m_pcRF_CT_Obj;
- CRFTXIQRUN* m_pcRF_TXIQRUN_Obj;
- CRFSTOP* m_pcRF_STOP_Obj;
- public: // User declarations
- __fastcall TfrmCTBBTXRunTimeSetting(TComponent* Owner);
- void _fastcall SubClassWndProc(Messages::TMessage &Message);
- void Init(void);
- // UI
- bool CheckBbTxCfgFields(void);
- void ReDrawFields(void);
- void CurrentPageReset(void);
- void CurrentPageLock(void);
- void ShowHintLabel(TControl *sender, char* hint );
- // callback
- void ConfirmCallback_CT(void);
- void ConfirmCallback_GetBBTxCfg(void);
- void CNF_SetBBTxCfg(void);
- // export information
- void Set_RF_CT_Obj(CRFCT* rf_ct_obj);
- void Set_RF_TXIQRUN_Obj(CRFTXIQRUN* rf_txiqrun_obj);
- void Set_RF_STOP_Obj(CRFSTOP* rf_stop_obj);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmCTBBTXRunTimeSetting *frmCTBBTXRunTimeSetting;
- //---------------------------------------------------------------------------
- #endif