form_RFReg.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:2k
- //---------------------------------------------------------------------------
- #ifndef _FORM_RFREG_H_
- #define _FORM_RFREG_H_
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ComCtrls.hpp>
- #include <ExtCtrls.hpp>
- #ifndef _RF_REG_H_
- #include "rf_reg.h"
- #endif
- typedef struct
- {
- TLabel *lblRFRegName;
- TStaticText *stRFRegName;
- TLabel *lblRFRegAddr;
- TStaticText *stRFRegAddr;
- //TLabel *lblRFRegValue0X;
- TLabel *lblRFReadBsiData;
- TEdit *edtRFReadBsiData;
- TLabel *lblRFWriteBsiData;
- TEdit *edtRFWriteBsiData;
- TButton *btnRFRegRead;
- TButton *btnRFRegWrite;
- }S_RF_REG_UI_T;
- //---------------------------------------------------------------------------
- class TfrmRFReg : public TForm
- {
- __published: // IDE-managed Components
- TStatusBar *m_sbRfReg;
- TStaticText *lblHint;
- TTimer *HintTimer;
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall FormActivate(TObject *Sender);
- void __fastcall FormDestroy(TObject *Sender);
- void __fastcall HintTimerTimer(TObject *Sender);
- private: // User declarations
- bool m_bInit;
- unsigned int m_ui2GRfId;
- int m_iTag;
- unsigned int m_uiBsiAddr;
- unsigned int m_uiBsiData;
- CRFREG m_cRF_REG_Obj;
- vector<S_RF_REG_T> *m_pvRfReg;
- vector<S_RF_REG_UI_T> *m_pvRfRegUI;
-
- public: // User declarations
- __fastcall TfrmRFReg(TComponent* Owner);
- void Init(void);
- void Display_RfRegister(void);
- bool CheckFields(E_RF_REG_OP_T e_op, int tag);
- void ReDrawFields(int tag);
- void ShowHintLabel(TControl *sender, char* hint);
- void __fastcall edtRfValueCheck(TObject *Sender);
- void __fastcall btnRfRegReadClick(TObject *Sender);
- void RF_ReadRegister_Done(void);
- void __fastcall btnRfRegWriteClick(TObject *Sender);
- void RF_WriteRegister_Done(void);
- // vector
- void AllocateVector(void);
- void DeAllocateVector(void);
- void EraseVector(void);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmRFReg *frmRFReg;
- //---------------------------------------------------------------------------
- #endif