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

📄 mcstruct.h

📁 美国Delta Tau公司PMAC多轴运动控制卡的VC++示例程序
💻 H
字号:

/*
 * mcstruct.h
 *
 * 32-bit Motion Control Device Driver
 *
 * This header describes structures used in the interface between the
 * kernel driver and the user-mode dll.
HISTORY

07Jun99 JET move DPRREADBUFFER, etc. to common.h
*/

#ifndef _MCSTRUCT_
  #define _MCSTRUCT_

// Buffer limits
  #define MAX_BUSBUFFER       256


/* --- pmac configuration buffer layout --------------------------------- */

typedef struct _CONFIG_INFO {
    ULONG ulSize;   /* size of struct including size field */
    BYTE ulData[1]; /* (ulSize - sizeof(ULONG)) bytes of data */
} CONFIG_INFO, *PCONFIG_INFO;

/* --- pmac dpram buffer layout ----------------------------------------- */

typedef struct _MEMINITBUFFER {
    HANDLE  hProcess; // process handle
    PVOID   pAddress; // pointer to base of virtual ram
} MEMINITBUFFER, * PMEMINITBUFFER;

/* --- pmac interrupt buffer layout ------------------------------------- */
typedef struct _INTRBUFFER {
    PCH     lpData;          // buffer data area
    ULONG   dwBufferLength;  // length of buffer
    DWORD   dwInterruptType; // not used by kernel interface
} INTRBUFFER, * PINTRBUFFER;

#endif //_MCSTRUCT_

⌨️ 快捷键说明

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