form_RFTXIQBBTXRun.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:9k
- /*****************************************************************************
- * 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_RFTXIQBBTXRun.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * RF TXIQ BB TX runtime setting 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_RFTXIQBBTXRUN_H_
- #define _FORM_RFTXIQBBTXRUN_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <Buttons.hpp>
- #include <ExtCtrls.hpp>
- #include <ComCtrls.hpp>
- #include <Dialogs.hpp>
- #ifndef _RF_TXIQ_RUN_H_
- #include "rf_txiq_run.h"
- #endif
- #ifndef _RF_MULTISLOTTX_RUN_H_
- #include "rf_multislottx_run.h"
- #endif
- //---------------------------------------------------------------------------
- class TfrmTXIQBBTXRunTimeSetting : public TForm
- {
- __published: // IDE-managed Components
- TGroupBox *grpTX01;
- TLabel *lblLabel42;
- TLabel *lblLabel43;
- TLabel *lblLabel44;
- TLabel *lblLabel45;
- TLabel *lblLabel41;
- TEdit *edtTXPcl;
- TEdit *edtTXAfc;
- TComboBox *cbxTXBand;
- TComboBox *cbxTXTsc;
- TEdit *edtTXArfcn;
- TBitBtn *btnTXStart;
- TStatusBar *sbTXIQ;
- TTimer *HintTimer;
- TGroupBox *GroupBox10;
- TLabel *Label64;
- TLabel *Label65;
- TLabel *Label1;
- TLabel *Label2;
- TLabel *Label3;
- TLabel *Label4;
- TLabel *Label5;
- TLabel *Label6;
- TEdit *edtTXCMV;
- TEdit *edtTXBBTXGain;
- TEdit *edtTXBBTXCalrcsel;
- TEdit *edtTXOffsetI;
- TEdit *edtTXOffsetQ;
- TEdit *edtTXTXCalbias;
- TEdit *edtTXTXIQSwap;
- TEdit *edtTXTrimI;
- TEdit *edtTXTrimQ;
- TStaticText *lblHint;
- TButton *btnLoadFromReg;
- TButton *btnLoadFromFile;
- TButton *btnSaveToFile;
- TOpenDialog *OpenDialog;
- TSaveDialog *SaveDialog;
- TBitBtn *btnTXStop;
- TComboBox *cbTXModulation;
- TLabel *lblTXModulation;
- TLabel *lblTXTA;
- TEdit *edtTXTA;
- TLabel *lblTXCS;
- TComboBox *cbTXCS;
- TLabel *lblTXBurstType;
- TComboBox *cbTXBurstType;
- TLabel *lblTXPattern;
- TEdit *edtTXPattern;
- TEdit *edtTXBBTXPhasesel;
- TLabel *lblTXBBTXPhasesel;
- void __fastcall btnTXStartClick(TObject *Sender);
- void __fastcall edtArfcnCheck(TObject *Sender);
- void __fastcall edtPclCheck(TObject *Sender);
- void __fastcall edtAfcDacCheck(TObject *Sender);
- void __fastcall HintTimerTimer(TObject *Sender);
- void __fastcall cbxTXBandChange(TObject *Sender);
- void __fastcall edtBBTXCommonModeVoltageCheck(TObject *Sender);
- void __fastcall edtBBTXGainCheck(TObject *Sender);
- void __fastcall edtTXBBTXCalrcselCheck(TObject *Sender);
- void __fastcall edtAPCBatLowVoltageCheck(TObject *Sender);
- void __fastcall edtAPCBatHighVoltageCheck(TObject *Sender);
- void __fastcall edtAPCBatLowTemperatureCheck(TObject *Sender);
- void __fastcall edtAPCBatHighTemperatureCheck(TObject *Sender);
- void __fastcall edtTrimIQCheck(TObject *Sender);
- void __fastcall edtOffsetIQCheck(TObject *Sender);
- void __fastcall edtBBTXCalbiasCheck(TObject *Sender);
- void __fastcall edtBBTXIQSwapCheck(TObject *Sender);
- void __fastcall btnLoadFromRegClick(TObject *Sender);
- void __fastcall btnLoadFromFileClick(TObject *Sender);
- void __fastcall btnSaveToFileClick(TObject *Sender);
- void __fastcall cbTXModulationChange(TObject *Sender);
- void __fastcall edtPatternCheck(TObject *Sender);
- void __fastcall cbTXBurstTypeChange(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall edtTACheck(TObject *Sender);
- void __fastcall edtTXBBTXPhaseselCheck(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- void __fastcall btnTXStopClick(TObject *Sender);
- private: // User declarations
- bool m_bInit;
- bool m_bMultiSlotTxExSupport;
- E_BANDSEL m_eCurBand;
- E_BBTXCFG_VER_T m_eBbTxCfgVer;
- RfBBTXCfg4 m_sBbTxCfg;
- RfMsCapabilityEx_S m_sFinalMSCAP;
- CRFTX* m_pcRF_TX_Obj;
- CRFTXIQRUN* m_pcRF_TXIQRUN_Obj;
- CRFMULTISLOTTX* m_pcRF_MULTI_SLOT_TX_Obj;
- CRFSTOP* m_pcRF_STOP_Obj;
- public: // User declarations
- __fastcall TfrmTXIQBBTXRunTimeSetting(TComponent* Owner);
- void _fastcall SubClassWndProc(Messages::TMessage &Message);
- void Init(void);
- // callback
- void ConfirmCallback_GetBBTxCfg(void);
- void CNF_SetBBTxCfg(void);
- void ConfirmCallback_TX(void);
- void ConfirmCallback_MultiSlotTX(void);
- // UI
- bool CheckBbTxCfgFields(void);
- void CurrentPageReset(void);
- void CurrentPageLock(void);
- void ShowHintLabel(TControl *sender, char* hint);
- void Display_TxGmskUi(void);
- void Display_TxEpskUi(void);
- void Display_TxCS(RfMsCapabilityBits capability, E_MODULATION modulation);
- void Display_TXGmskBurstType(void);
- void Display_TXEpskBurstType(void);
- void ReDrawFields(void);
- APCTxPattern Get_GmskBurstType(void);
- APCTxPattern Get_EpskBurstType(void);
- // export information
- void Set_RF_TXIQRUN_Obj(CRFTXIQRUN* rf_txiqrun_obj);
- void Set_RF_TX_Obj(CRFTX* rf_tx_obj);
- void Set_RF_MULTI_SLOT_TX_Obj(CRFMULTISLOTTX* rf_multi_slot_tx_obj);
- void Set_RF_STOP_Obj(CRFSTOP* rf_stop_obj);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmTXIQBBTXRunTimeSetting *frmTXIQBBTXRunTimeSetting;
- //---------------------------------------------------------------------------
- #endif