⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit1.~h

📁 SPI读写
💻 ~H
字号:
//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <ToolWin.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
  TLabel *Label1;
  TPanel *Panel6;
  TSpeedButton *SpeedButton2;
  TPanel *Panel5;
  TStatusBar *StatusBar1;
  TTimer *Timer1;
        TTimer *TimerRec;
  TMemo *MSGLIST;
  TButton *Button1;
  TRadioGroup *RadioGroup1;
  TSpeedButton *Button3;
    TEdit *Edit_path;
    TOpenDialog *OpenDialog1;
    TSpeedButton *SpeedButton1;
    TLabel *Label16;
    TProgressBar *ProgressBar1;
    TRadioGroup *RG_filetype;
    TRadioGroup *rg_op_type;
    TEdit *Edit_SIZE;
  void __fastcall SpeedButton2Click(TObject *Sender);
  void __fastcall FormShow(TObject *Sender);
  void __fastcall FormCreate(TObject *Sender);
  void __fastcall RadioGroup1Click(TObject *Sender);
        void __fastcall Button3Click(TObject *Sender);
        void __fastcall TimerRecTimer(TObject *Sender);
  void __fastcall Button1Click(TObject *Sender);
    void __fastcall SpeedButton1Click(TObject *Sender);
private:	// User declarations
public:		// User declarations
        TLabel *lab;
        TShape *Pl;
        int isign,iDown,iX,iY;
        float xbl,ybl;
        int iComPort;
        HANDLE OpenPort(int iPortNum);
        void Close_RS232(HANDLE hHandle);
        int  OldDay;
        bool exitflag;

        HANDLE handCom;
        BOOL Change_RS232_State(HANDLE hHandle, DWORD dwBaudRate, BYTE byParity) ;
        DWORD macid;
        AnsiString reInformation;
        int   GetYcount;
        char * RecevieData();
        int  sendonefile(char *filename);
        int  getfilelen(char *filename);
        bool WriteBUF(BYTE buf[]);
        AnsiString Getsubstr(AnsiString str,int beginpos);
        unsigned int SendOneBinFile();

  __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -