form_Rtc32k.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:4k
源码类别:

MTK

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef _FORM_RTC32K_H_
  3. #define _FORM_RTC32K_H_
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ComCtrls.hpp>
  10. #include <Dialogs.hpp>
  11. #include <Buttons.hpp>
  12. #include <ExtCtrls.hpp>
  13. #ifndef  _RF_RTC_H_
  14. #include "rf_rtc.h"
  15. #endif
  16. //---------------------------------------------------------------------------
  17. class TfrmRTC32k : public TForm
  18. {
  19. __published: // IDE-managed Components
  20.         TButton *m_btnLogFile;
  21.         TStaticText *m_stLogFile;
  22.         TStatusBar *m_sbRtc32K;
  23.         TSaveDialog *m_dlgSaveLog;
  24.         TStaticText *lblHint;
  25.         TTimer *HintTimer;
  26.         TGroupBox *GroupBox1;
  27.         TLabel *lblLabel41;
  28.         TComboBox *m_cbBand;
  29.         TLabel *lblLabel42;
  30.         TEdit *m_edtArfcn;
  31.         TLabel *lblLabel43;
  32.         TComboBox *m_cbTXTsc;
  33.         TLabel *lblLabel44;
  34.         TEdit *m_edtPcl;
  35.         TLabel *m_lblTestCount;
  36.         TEdit *m_edtTestCount;
  37.         TEdit *m_edtPeriod;
  38.         TLabel *m_lblPeriod;
  39.         TLabel *Label1;
  40.         TBitBtn *m_btnStart;
  41.         TBitBtn *m_btnStop;
  42.         TRichEdit *m_reResult;
  43.         TOpenDialog *m_dlgOpenDB;
  44.         TLabel *Label2;
  45.         TComboBox *m_cbEquipment;
  46.         TLabel *Label3;
  47.         TEdit *m_edtDnPower;
  48.         TButton *m_btnCfgFile;
  49.         TStaticText *m_stCfgFile;
  50.         TOpenDialog *m_dlgOpenCfg;
  51.         void __fastcall m_btnLogFileClick(TObject *Sender);
  52.         void __fastcall m_btnStartClick(TObject *Sender);
  53.         void __fastcall m_btnStopClick(TObject *Sender);
  54.         void __fastcall FormDestroy(TObject *Sender);
  55.         void __fastcall edtTestCountCheck(TObject *Sender);
  56.         void __fastcall edtPeriodCheck(TObject *Sender);
  57.         void __fastcall HintTimerTimer(TObject *Sender);
  58.         void __fastcall FormCreate(TObject *Sender);
  59.         void __fastcall m_btnCfgFileClick(TObject *Sender);
  60.         void __fastcall FormActivate(TObject *Sender);
  61.         void __fastcall m_cbBandChange(TObject *Sender);
  62.         void __fastcall m_edtArfcnCheck(TObject *Sender);
  63.         void __fastcall m_edtPclCheck(TObject *Sender);
  64.         void __fastcall m_edtDnPowerCheck(TObject *Sender);
  65. private: // User declarations
  66.         bool m_bInit;
  67.         TMETA_factory_cfg* m_pCfg;
  68.         TThread *m_pt_Rtc32K;
  69.         S_RF_RTC_T m_sRfRtc;
  70.         S_RCT m_sRct;
  71. public: // User declarations
  72.         __fastcall TfrmRTC32k(TComponent* Owner);
  73.         void Init(void);
  74.         void _fastcall SubClassWndProc(Messages::TMessage &Message);
  75.         // UI
  76.         void ShowHintLabel(TControl *sender, char* hint);
  77.         void CurrentPageLock(void);
  78.         void CurrentPageReset(void);
  79.         void FillRtc32KResult(bool b_title, int clock_mHz);
  80.         // cfg
  81.         bool read_cfg_file(AnsiString asFileName);
  82.         //log
  83.         void setup_log_file(AnsiString asFileName);
  84.         // equipment
  85.         void CloseRctHandle(void);
  86.         // RF
  87.         void StopRf(void);
  88.         
  89.         // callback
  90.         void __fastcall on_TerminateSuccess(TObject *Sender);
  91.         void __fastcall on_TerminateFail(TObject *Sender);
  92.         void __fastcall on_TerminateByUser(TObject *Sender);
  93. };
  94. //---------------------------------------------------------------------------
  95. extern PACKAGE TfrmRTC32k *frmRTC32k;
  96. //---------------------------------------------------------------------------
  97. #endif