www.pudn.com > T5557BCBExample.rar > frmMain.h


//--------------------------------------------------------------------------- 
 
#ifndef frmMainH 
#define frmMainH 
//--------------------------------------------------------------------------- 
#include  
#include  
#include  
#include  
#include  
#include  
//--------------------------------------------------------------------------- 
class TfrmNMain : public TForm 
{ 
__published:	// IDE-managed Components 
        TButton *btnExit; 
        TPageControl *tabT5557; 
        TTabSheet *shtCommand; 
        TTabSheet *shtConfig; 
        TTimer *Timer1; 
        TLabel *Label1; 
        TComboBox *cboMasterKey; 
        TLabel *Label2; 
        TComboBox *cboXMode; 
        TLabel *Label3; 
        TComboBox *cboBitRate; 
        TLabel *Label4; 
        TComboBox *cboModulation; 
        TLabel *Label5; 
        TComboBox *cboPSKCF; 
        TLabel *Label6; 
        TComboBox *cboAOR; 
        TLabel *Label7; 
        TComboBox *cboMaxBlock; 
        TLabel *lblPWD; 
        TComboBox *cboPWD; 
        TLabel *Label9; 
        TComboBox *cboST; 
        TComboBox *cboPORDelay; 
        TLabel *Label10; 
        TButton *btnUpdateConfig; 
        TGroupBox *GroupBox1; 
        TButton *btnOpenCom1; 
        TButton *btnDisconnect; 
        TEdit *txtCom; 
        TLabel *lblCom; 
        TTabSheet *shtRegularRead; 
        TCheckBox *chkRegularRead; 
        TEdit *txtRegularRead; 
        TGroupBox *GroupBox2; 
        TRadioButton *rdoEM4100; 
        TRadioButton *rdoT5557; 
        TRadioButton *rdoAnimal; 
        TGroupBox *grpT5557; 
        TEdit *txtBlocks; 
        TLabel *Label8; 
        TRadioButton *rdoBlocks; 
        TRadioButton *rdoTID; 
        TButton *btnTest; 
        TButton *btnReadBlock; 
        TPageControl *PageControl1; 
        TTabSheet *shtRead; 
        TTabSheet *shtWrite; 
        TButton *btnWriteBlock; 
        TEdit *txtWriteData; 
        TEdit *txtWriteAddr; 
        TLabel *Label11; 
        TLabel *Label12; 
        TButton *btnRead; 
        TEdit *txtReadData; 
        TEdit *txtReadAddr; 
        TLabel *Label13; 
        TLabel *Label14; 
        TEdit *txtConfig; 
        TLabel *Label15; 
        void __fastcall FormCreate(TObject *Sender); 
        void __fastcall btnOpenCom1Click(TObject *Sender); 
        void __fastcall btnDisconnectClick(TObject *Sender); 
        void __fastcall btnExitClick(TObject *Sender); 
        void __fastcall chkRegularReadClick(TObject *Sender); 
        void __fastcall Timer1Timer(TObject *Sender); 
        void __fastcall btnTestClick(TObject *Sender); 
        void __fastcall rdoTIDClick(TObject *Sender); 
        void __fastcall rdoBlocksClick(TObject *Sender); 
        void __fastcall btnReadClick(TObject *Sender); 
        void __fastcall btnWriteBlockClick(TObject *Sender); 
        void __fastcall btnUpdateConfigClick(TObject *Sender); 
        void __fastcall cboMasterKeyChange(TObject *Sender); 
        void __fastcall cboXModeChange(TObject *Sender); 
        void __fastcall cboBitRateChange(TObject *Sender); 
        void __fastcall cboModulationChange(TObject *Sender); 
        void __fastcall cboPSKCFChange(TObject *Sender); 
        void __fastcall cboAORChange(TObject *Sender); 
        void __fastcall cboMaxBlockChange(TObject *Sender); 
        void __fastcall cboPWDChange(TObject *Sender); 
        void __fastcall cboSTChange(TObject *Sender); 
        void __fastcall cboPORDelayChange(TObject *Sender); 
private:	// User declarations 
        unsigned char config[4]; 
        void GetConfigSetting(); 
public:		// User declarations 
        __fastcall TfrmNMain(TComponent* Owner); 
}; 
//--------------------------------------------------------------------------- 
extern PACKAGE TfrmNMain *frmNMain; 
//--------------------------------------------------------------------------- 
#endif