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

📄 private.h

📁 美国Delta Tau公司PMAC多轴运动控制卡的VC++示例程序
💻 H
字号:
/*
 * private.h
 *
 * 32-bit Motion Control Device Driver
 * User-mode support library - private definitions
 */
#ifndef _PRIVATE_H
  #define _PRIVATE_H

/*
 * function codes that the calling thread can ask the worker thread to
 * perform
 */

typedef enum _MCFUNC { //  arg                 result
                       //  ---     ------
    InterruptTerm,     //  <null>    <null>
    InvalidFunction
} MCFUNC, *PMCFUNC;

/* we send this many interrupt request to the kernel at once to queue */

//  #define ALL_INTERRUPTS    8   // total available ints on pmac/starter set
//  #define INTERRUPT_THRESHOLD 3 // queue not less than these many ints


/*
 * the worker thread starts execution at this function
 */
DWORD MC_ThreadInit( DWORD );

/*
 * process a user request that needs to be handled on the
 * worker thread
 *
 * It returns the result of the operation in pResult, and returns
 * TRUE if the worker thread loop should terminate.
 *
 * This function will normally be called from the main
 * worker-thread event processing loop. However, it must be
 * called directly by the entrypoint functions if they
 * discover they are running on the worker thread (eg from a callback).
 * If this doesn't happen, we will enter deadlock with the worker thread
 * waiting for itself to signal an event.
 */
//BOOL MC_ProcessFunction(PUSER_HANDLE vh, MCFUNC Function, DWORD Param, LPDWORD pResult);

#endif

⌨️ 快捷键说明

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