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

📄 pcm3780_diintfrm.h

📁 16 relay output channels and 16 isolated digital input channels LED indicators to show activated
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef PCM3780_DIINTFRMH
#define PCM3780_DIINTFRMH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include "..\..\..\..\include\driver.h"
#include "EventThread.h"
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TGroupBox *GroupBox1;
        TLabel *labDeviceName;
        TButton *btnSelectDev;
        TGroupBox *GroupBox2;
        TGroupBox *GroupBox3;
        TListView *lsvInt;
        TButton *btnDisable;
        TButton *btnExit;
        TLabel *Label2;
        TComboBox *cmbPort;
        TLabel *Label3;
        TEdit *Edit1;
        TLabel *Label4;
        TButton *btnScan;
        TButton *btnStop;
        TEdit *txtData;
        TTimer *tmrDIScan;
        TTimer *tmrDIInt;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall btnExitClick(TObject *Sender);
        void __fastcall btnScanClick(TObject *Sender);
        void __fastcall tmrDIScanTimer(TObject *Sender);
        void __fastcall btnStopClick(TObject *Sender);
        void __fastcall btnSelectDevClick(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
        void __fastcall lsvIntChange(TObject *Sender, TListItem *Item,
          TItemChange Change);
        void __fastcall btnDisableClick(TObject *Sender);
        void __fastcall tmrDIIntTimer(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);

        DWORD m_dwBoardID;
        USHORT m_usMaxChanNum;
        LONG   m_lDriverHandle;
        DWORD  m_dwErrCde;
        char   m_ErrMsg[80];
        ULONG  m_ulDeviceNum;
        DEVFEATURES     m_DevFeatures;          // structure for device features
        PT_DeviceGetFeatures  m_ptDevFeatures;  // Devfeatures table
        TEventThread*    m_EventThread;         // Check event
        DWORD  m_dwEventChan;                   // bit n: 0: disable, 1: enable
        DWORD  m_dwEventCount[24];
        DWORD  m_dwStartTime;
        DWORD  m_dwCurrentTime;
        void RealeaseSrc();
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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