form_UpdateParameter.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:7k
- /*****************************************************************************
- * 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_UpdateParameter.h
- *
- * Project:
- * --------
- * Maui META APP
- *
- * Description:
- * ------------
- * RF and ADC parameter update 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_UPDATEPARAMETER_H_
- #define _FORM_UPDATEPARAMETER_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ComCtrls.hpp>
- #include "UpdateParameter.h"
- #include <Dialogs.hpp>
- #include <ActnList.hpp>
- // query
- #ifndef _RF_TADO_THRD_H_
- #include "rf_tado_thrd.h"
- #endif
- #ifndef _RF_ID_THRD_H_
- #include "rf_id_thrd.h"
- #endif
- #ifndef _RF_TXIQ_H_
- #include "rf_txiq.h"
- #endif
- //---------------------------------------------------------------------------
- typedef enum
- {
- PARAMETER_RX_PATH_LOSS = 0,
- PARAMETER_AFC,
- PARAMETER_IP2,
- PARAMETER_TXIQ,
- PARAMETER_GMSK_APC,
- PARAMETER_EPSK_APC,
- PARAMETER_ADC,
- PARAMETER_WIFI_TX_DC_OFFSET,
- PARAMETER_WIFI_TX_POWER,
- PARAMETER_WIFI_ALC,
- PARAMETER_BT_CAP_ID,
- PARAMETER_IMEI,
- PARAMETER_BARCODE
- }E_PARAMETER;
- //---------------------------------------------------------------------------
- class TfrmUpdateParameter : public TForm
- {
- __published: // IDE-managed Components
- TGroupBox *GroupBox1;
- TCheckBox *cbRXPathLoss;
- TCheckBox *cbAFC;
- TCheckBox *cbGmskLevelRamp;
- TCheckBox *cbADC;
- TButton *btnUploadFromFlash;
- TButton *btnDownloadToFlash;
- TButton *btnLoadFromFile;
- TButton *btnSaveToFile;
- TStatusBar *sbUpdateParameter;
- TOpenDialog *OpenDialog;
- TSaveDialog *SaveDialog;
- TButton *btnChangeDB;
- TGroupBox *GroupBox2;
- TRadioButton *rbTCVCXO;
- TRadioButton *rbCrystal;
- TActionList *ActionList1;
- TAction *ToggleHide;
- TCheckBox *cbCheckSectionExist;
- TCheckBox *cbIMEI;
- TCheckBox *cbBarcode;
- TCheckBox *cbIP2;
- TCheckBox *cbEpskLevelRamp;
- TCheckBox *cbTxIQ;
- TCheckBox *cbWiFiTxPower;
- TCheckBox *cbWiFiTxDcOffset;
- TCheckBox *cbCheckChecksum;
- TCheckBox *m_cbBtCapId;
- TCheckBox *m_cbWiFiAlc;
- void __fastcall btnUploadFromFlashClick(TObject *Sender);
- void __fastcall btnDownloadToFlashClick(TObject *Sender);
- void __fastcall btnSaveToFileClick(TObject *Sender);
- void __fastcall btnLoadFromFileClick(TObject *Sender);
- void __fastcall btnChangeDBClick(TObject *Sender);
- void __fastcall FormShow(TObject *Sender);
- void __fastcall ToggleHideExecute(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- private: // User declarations
- bool m_bInit;
- E_PARAMETER m_ePar;
- bool m_bAction;
- CUPDATEPARAMETER m_UP_Obj;
- // query
- BBCHIP_TYPE m_eBbChip;
- unsigned int m_uiFinalRFID;
- sTRFID m_t_rf_id;
- sTRFTADO m_t_RfTado;
- bool m_bTADOSupport;
- E_BBTXCFG_VER_T m_eBbTxCfgVer;
- bool m_bAlcSupport;
- public: // User declarations
- __fastcall TfrmUpdateParameter(TComponent* Owner);
- void _fastcall SubClassWndProc( Messages::TMessage &Message);
- void DownloadToFlash(void);
- void DownloadToFlashDone(void);
- void UploadFromFlash(void);
- void UploadFromFlashDone(void);
- void ApplyHideProperty(void);
- void DisplayIP2Visible(int rf_id);
- void CurrentPageLock(void);
- void CurrentPageReset(void);
- // query
- void __fastcall on_QueryTwoApcDcOffset_Fail(TObject *Sender);
- void __fastcall on_QueryTwoApcDcOffset_TerminateSuccess(TObject *Sender);
- void Query_TwoApcDcOffset_Support(void);
- void __fastcall on_QueryRFID_Fail(TObject *Sender);
- void __fastcall on_QueryRFID_TerminateSuccess(TObject *Sender);
- void QueryRfId(void);
- // global information
- void Init(void);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmUpdateParameter *frmUpdateParameter;
- //---------------------------------------------------------------------------
- #endif