www.pudn.com > HDTV_play_flash.rar > Unit1.h
//--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include#include #include #include #include #include "Unit22.h" #include "Unit33.h" #include "Unit44.h" #include #include "Unit22.h" #include "Unit33.h" #include "Unit44.h" #include "Tserial_event.h" //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TPanel *Panel1; TSplitter *Splitter1; TPanel *Panel2; TButton *Button1; TButton *Button2; TFrame2 *Frame21; TFrame3 *Frame31; TFrame4 *Frame41; TButton *Button3; TMainMenu *MainMenu1; TMenuItem *N1; TMenuItem *N2; TMenuItem *N3; TMenuItem *N4; TMenuItem *N5; TMenuItem *N6; TMenuItem *N7; TMenuItem *N8; TTimer *Timer1; TShape *Shape1; TLabel *Label1; TButton *Button4; TShape *PwrLed; TButton *Button5; TButton *Button6; TButton *Button7; void __fastcall Button1Click(TObject *Sender); void __fastcall Button2Click(TObject *Sender); void __fastcall Button3Click(TObject *Sender); void __fastcall FormCreate(TObject *Sender); void __fastcall N3Click(TObject *Sender); void __fastcall N5Click(TObject *Sender); void __fastcall N7Click(TObject *Sender); void __fastcall N6Click(TObject *Sender); void __fastcall N2Click(TObject *Sender); void __fastcall Timer1Timer(TObject *Sender); void __fastcall Button4Click(TObject *Sender); void __fastcall Button7Click(TObject *Sender); void __fastcall Button5Click(TObject *Sender); void __fastcall Button6Click(TObject *Sender); void __fastcall Button5MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y); void __fastcall Button5MouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y); void __fastcall Button6MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y); void __fastcall Button6MouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y); private: // User declarations public: // User declarations __fastcall TForm1(TComponent* Owner); //----- below are my defination -----// virtual __fastcall ~TForm1(); bool POWER; bool TVAV; bool VUP; bool MAIL; int CHANNEL; int VOLUME; int SHortDispCnt; int MouseDownCnt; //communication: int ReceCnt; //接收中的指针 int ReceLength; //接收合法串的长度 int ReceByteNum; //sum of all receive from start int SendByteNum; bool bSendEnd; bool bConnected; char port_num[10]; int baudrate; int parity; int bitsize; //7 or 8 int stopbitsize; //always 1 int IntervalWaitChar; int IntervalWaitRece; Tserial_event* My_serial; int ReceWaitCnt; int CharWaitCnt; int LedDlyCnt; // unsigned char ComStatus; unsigned char ReceBuff[100]; void Init_Rece(); void RByte_DEAL(); void SendModeSW(); void DispToHex(unsigned char* Ibuff,int lenH,unsigned char* Obuff); void ReceOperation0(Tserial_event *com_arg); void ReceOperation (unsigned char RByte); void BeginSend(unsigned char*SBuff,int SLength); int ConvertToHEX(unsigned char* InBuff,unsigned char* OutBuff); //------- int DataFmt; //0=文本;1=键值; 2=遥控码 unsigned char CustomCode[3]; unsigned char InpDefault; unsigned char InpMin; unsigned char InpMax; unsigned char IICAddr; }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif