亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pmacu.h

?? 美國Delta Tau公司PMAC多軸運動控制卡的VC++示例程序
?? H
?? 第 1 頁 / 共 2 頁
字號:

  HWND   hWnd; // Window handle of app for use w/ messages boxes

  /////////////////////////////////
  // ADDED for the NEW PmacServer and not used by the
  // PComm32.dll or OLD PmacServer, !Do not remove these from
  // the end of the structure
#ifndef _PMACSERVER
  UINT   dummy1;
  HANDLE dummy2;
  HANDLE dummy3;
  BOOL   dummy4;
#else
  // Interrupt Stuff & inter-thread sync data
  UINT   uiINTRThreadId;
  HANDLE hINTRThread;
  HANDLE hINTRCompleteEvent;
  BOOL   bINTRTerminateThread;
#endif

} USER_HANDLE, *PUSER_HANDLE;


///////////////////////////////////////////////////////////////////////////////
// Global
///////////////////////////////////////////////////////////////////////////////
typedef struct _GLOBAL_HANDLE
{
  
  DWORD dwSize;       // Keep track of structure size
  BOOL  bInitialized; // Indicates that the global memory has been setup

  CHAR   version[VERSION_BUFFER_SIZE]; // store version string
  CHAR   date[DATE_BUFFER_SIZE];       // store date string
  CHAR   errorstr[80];                 // stored last error string
  PMACDEVICETYPE PmacType;             // 0 = DT_PMAC, 1 = DT_TURBO
  PMACFIRMWARETYPE PmacFirmware;
  DWORD  cpu_type;
  BOOL   bIsTurbo;

  LOCATIONTYPE Location; // PCBUS, SERIALPORT
  DWORD  dwEnum;         // Location Enumeration

  DWORD  dwMaxMotors;    // Maximum motors on PMAC, 32 if turbo else 8
  DWORD  dwMaxIMPQVars;  // Maximum IMPQ Vars on PMAC, 8191 if turbo else 1023
                         // BUS
  short  BUSCommError;   // BUS ascii comm error current value

  // LT_COM - SERIAL
  DCB           dcb;
  COMMTIMEOUTS  cto;
  DWORD         SERCommError;
  DWORD         SERPort;
  DWORD         SERBaudrate;
  UCHAR         SERParity;
  BOOL          SERCTSOutput;
  DWORD         SERRTSControl;

  // Status storage
  DWORD         DPRbuf_start;       // PMAC/TURBO DPR Start Address
  BOOL          bDPRInitialized;    // DPR has been initialized
  USHORT        DPRAsciiActive;     // DPR ASCII comm is currently active

  DWORD         DPRRealtActive;     // DPR foreground active
  DWORD         DPRRealtPeriod;     // DPR foreground update period in msec
  UINT          DPRNumMotors;       // number of motor/coords (i59) or masked

  DWORD         DPRAutoActive;      // DPR Automatic functions may need to be disabled for USB

  DWORD         DPRBackgActive;     // DPR background active
  DWORD         DPRBackgPeriod;     // DPR background update period in msec
  DWORD         EnableInterrupts;   // Enables Interrupts for PCI cards

  USHORT        DPRBackgvActive;    // DPR Background variable data buffer active
  USHORT        DPRCpanelActive;    // DPR control panel active
  USHORT        DPRRotaryActive;    // DPR Binary rotary buffer active
  struct realt  DPRRTBuffer;           // real time buffer        (ofs = 0x00D,size = 516)
  struct realtTURBO DPRRTBufferTurbo;  // Turbo real time buffer  (ofs = 0x068,size = 1556)
  struct backg  DPRBGBuffer;           // background buffer       (ofs = 0x228,size = 1028)
  struct backgTURBO DPRBGBufferTurbo;  // Turbo background buffer (ofs = 0x674,size = 1704)

  short         DPRCommError;       // DPR ascii comm error current value
  DWORD         i10;                // current i10 parameter
  double        posscale[32 ];      // current ix08 * 32 scale factor
  double        velscale[32 ];      // current ix09 * 32 scale factor

  USHORT        DPRRotSize[16];     // Size of DPRAM binary rotary 1 & 2
  USHORT        DPRBGVBnum_usrs;
  USHORT        DPRBGVBmulti_user_mode;
  DWORD         DPRVarStart;        // Start of DPR var & end of DPR buffers

  BOOL  CanUsePlcc;            // indicates can use compiled plc
  BOOL  WantUsePlcc;           // Want to compile PLC
  BOOL  Downloading;           // indicates download thread working
  BOOL  bootstrap_mode;        // In bootstrap mode
  DWORD linkfile[MAXLINKS];    // PLCC PMAC Link addresses
  DWORD plccbuffer;            // PLCC Program Scheduler Start Addresses
  DWORD plccret;               // PLCC Program RET
  DWORD plccstart;             // PLCC Program Start
  DWORD plccjmp;               // PLCC Program Scheduler Start


  // Gather stuff
  double ulGatherSampleTime;                    // Sample gather time in msec
  UINT   uGatherPeriod;                         // I19 number servo cycles per sample
  DWORD  dwGatherMask;                          // I20 (determines #sources & types)
  DWORD  dwGatherMask2;
  UINT   uGatherSources;                        // Number of sources gathered
  UINT   uGatherSamples;                        // Number of samples gathered
  UINT   uGatherSampleLen;                      // Number 24-bit words per sample
  BOOL   bGatherEnabled[MAXGATHERS2];           // Sources enabled
  char   szGatherAdr[MAXGATHERS2 ][MAXADRLEN ]; // Types and addresses of gathers
  UINT   uGatherSize[MAXGATHERS2];              // Size of gather type in 24bit words

  // Real gather stuff
  int    hRTGatherHandle;             // Handle to var background
  UINT   uRTGatherSources;            // Number of sources gathered
  UINT   uRTGatherSamples;            // Number of samples in gather array
  ULONG  ulRTGatherAdr[MAXRTGATHERS]; // Array of var buf gather sources

  // Mutex handle makes multi threading safe even from serial port
  //HANDLE hMutex;

  // Timeout values and counts
  DWORD  dwBaseTimeoutCount;

  DWORD  dwDPRRTimeoutCount;
  DWORD  dwDPRRTimeout;
  DWORD  dwDPRBKTimeoutCount;
  DWORD  dwDPRBKTimeout;
  DWORD  dwDPRCharTimeoutCount;
  DWORD  dwDPRCharTimeout;
  DWORD  dwDPRFlushTimeoutCount;
  DWORD  dwDPRFlushTimeout;
  DWORD  dwBUSCharTimeoutCount;
  DWORD  dwBUSCharTimeout;
  DWORD  dwSERFlushTimeout;
  DWORD  dwSERFlushTimeoutCount;
  DWORD  dwSERCharTimeout;
  DWORD  dwSERCharTimeoutCount;

  SOCKET initialSocket;
  DWORD  initialPID;
  WSAPROTOCOL_INFO ProtocolInfo;
  DWORD  dwUserCount;

  /////////////////////////////////
  // ADDED for the NEW PmacServer and not used by the
  // PComm32.dll or OLD PmacServer, !Do not remove these from
  // the end of the structure
#ifndef _PMACSERVER
#else
#endif

} GLOBAL_HANDLE, *PGLOBAL_HANDLE;

  #ifdef __cplusplus
}
  #endif

  #if defined( _DRIVER ) // DLL Include +++++++++++++++++++++++++++
                         // // debug macros
                         //  #if defined(DBG) || defined(_DEBUG)
                         //    void dbgPrintf(CHAR szFormat, ...);
                         //    extern int vcuDebugLevel;
                         //
                         //    #define dprintf(_x_)      dbgPrintf _x_
                         //    #define dprintf1(_x_)     if (vcuDebugLevel >= 1) dbgPrintf _x_
                         //    #define dprintf2(_x_)     if (vcuDebugLevel >= 2) dbgPrintf _x_
                         //    #define dprintf3(_x_)     if (vcuDebugLevel >= 3) dbgPrintf _x_
                         //    #define dprintf4(_x_)     if (vcuDebugLevel >= 4) dbgPrintf _x_
                         //  #else
                         //    #define dprintf(_x_)
                         //    #define dprintf1(_x_)
                         //    #define dprintf2(_x_)
                         //    #define dprintf3(_x_)
                         //    #define dprintf4(_x_)
                         // #endif

    #define WAIT_2SEC 2000 // Mutex object wait period of 2 sec.
    #define WAIT_5SEC 5000 // Mutex object wait period of 5 sec.
    #define TIMEOUT_COUNT_TIME    500


    #include <CRTDBG.H>
    #include <devioctl.h>
    #include <assert.h>
    #include "mcstruct.h"
    #include "mioctl.h"
    #include "registry.h"
    #include "bintoken.h"
    #include "cmplc56k.h"
    #include "pmacerr.h"
#ifndef _PMACSERVER
    #include "dprrealt.h"
    #include "dprbkg.h"
    #include "bus.h"
    #include "serial.h"
    #include "dprotlib.h"
    #include "cmplclib.h"
    #include "download.h"
    #include "utildt.h"
    #include "lips.h"
    #include "macro.h"
    #include "dialog.h"
#endif

// Global externals
typedef struct tagGlobalData
{
  DWORD         dwSize;
  DWORD         dwUserCount; // Count uf users

  REG_ACCESS    RegistryAccess[MAX_MOTION_DEVICES + 1]; // registry access global
  CONFIG_LOCATION cfg[MAX_MOTION_DEVICES];              // Configuration values from registry
  GLOBAL_HANDLE gh[MAX_MOTION_DEVICES + 1];             // driver access handle

  HMODULE       hLangModule;

  char USResponse[MAX_MOTION_DEVICES + 1][USRESPONSE_SIZE];// Unsolicited response buffer
  DWORD         usr_next_in[MAX_MOTION_DEVICES + 1];
  DWORD         usr_next_out[MAX_MOTION_DEVICES + 1];

  char ChangeMonitor[MAX_MOTION_DEVICES + 1][IVARCHANGEMONITOR_SIZE];// Used for monitoring I-Variable Mod's by apps
  DWORD         cm_next_in[MAX_MOTION_DEVICES + 1];
  DWORD         cm_next_out[MAX_MOTION_DEVICES + 1];

  HANDLE        hServerPID ;
  DWORD         dwServerPID;
  BOOL          My_g_bDPRThreadRunning;
} GLOBAL_DATA, *PGLOBAL_DATA;

extern USER_HANDLE   vh[MAX_MOTION_DEVICES + 1 ]; // driver access handle
extern PGLOBAL_DATA  pGlobalData;
extern OSVERSIONINFO OsInfo;                      // Operating system information

  #ifdef __cplusplus
extern "C" {
  #endif


  #ifdef __cplusplus
}
  #endif

  #else // Application include +++++++++++++++++++++++++++++++++++++++++++++++++

    #include "Include\mioctl.h"
    #include <mmsystem.h>
    #include "Include\common.h"
    #include "Include\bus.h"
    #include "Include\dpr.h"
    #include "Include\serial.h"
    #include "Include\intr.h"
    #include "Include\dprotlib.h"
    #include "Include\dprbkg.h"
    #include "Include\cmplclib.h"
    #include "Include\pmacerr.h"
    #include "Include\download.h"
    #include "Include\utildt.h"
    #include "Include\gather.h"
    #include "Include\lips.h"
    #include "Include\macro.h"

  #ifdef __cplusplus
extern "C" {
  #endif

extern HANDLE *ghLangModule;
extern USER_HANDLE   vh[MAX_MOTION_DEVICES + 1 ]; // driver access handle
extern GLOBAL_HANDLE gh[MAX_MOTION_DEVICES + 1 ]; // device access handle

  #ifdef __cplusplus
}
  #endif

  #endif


#endif //_PMACU_H_

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久香蕉国产线看观看99| 日韩av电影免费观看高清完整版 | 91久久香蕉国产日韩欧美9色| 欧美日韩精品一区视频| 国产精品青草综合久久久久99| 五月天网站亚洲| 91免费国产在线观看| 久久精品亚洲精品国产欧美kt∨| 亚洲电影第三页| 97久久久精品综合88久久| 亚洲国产一二三| 成人黄页毛片网站| 欧美日韩国产影片| 日本亚洲天堂网| 成人avav影音| 久久九九99视频| 久久国产乱子精品免费女| 在线亚洲精品福利网址导航| 国产精品乱码一区二区三区软件 | 一区精品在线播放| 久久99精品国产麻豆婷婷洗澡| 色八戒一区二区三区| 亚洲欧美综合色| 99久久久精品免费观看国产蜜| 国产亚洲成年网址在线观看| 久久成人免费日本黄色| 91精品国产高清一区二区三区蜜臀| 一区二区三区 在线观看视频| 91网址在线看| 亚洲精选视频免费看| 91色综合久久久久婷婷| 一区二区三区国产| 欧美日韩在线三级| 亚洲国产精品天堂| 欧美精品九九99久久| 婷婷久久综合九色综合伊人色| 欧美视频你懂的| 偷拍与自拍一区| 日韩欧美国产精品一区| 美日韩一级片在线观看| 亚洲精品在线三区| 国产成人8x视频一区二区 | 欧美成人vr18sexvr| 麻豆91免费观看| 国产亚洲欧美日韩日本| 国产a精品视频| 亚洲日本在线视频观看| 日本丶国产丶欧美色综合| 亚洲成人福利片| 欧美一区二区三区在线看| 黄一区二区三区| 国产精品午夜免费| 欧美综合亚洲图片综合区| 亚洲成在线观看| 色综合视频在线观看| 日韩av中文在线观看| 粉嫩av亚洲一区二区图片| 国产精品区一区二区三区 | 精品伊人久久久久7777人| 2020国产精品自拍| 91免费看视频| 首页国产丝袜综合| 欧美国产精品劲爆| 欧美日韩视频专区在线播放| 国产一区二区三区在线观看免费视频 | 亚洲日本一区二区| 91精品国产一区二区人妖| 国产成人免费xxxxxxxx| 一区二区三区美女| 欧美xxxx在线观看| 欧美在线免费观看视频| 国产麻豆一精品一av一免费| 一区二区三区资源| 久久久久久久电影| 欧美高清一级片在线| 成人永久aaa| 免费观看91视频大全| 亚洲欧美精品午睡沙发| 日韩精品中文字幕在线一区| 色视频成人在线观看免| 国产米奇在线777精品观看| 一区二区在线电影| 国产精品狼人久久影院观看方式| 欧美人牲a欧美精品| av一二三不卡影片| 国产精品夜夜嗨| 久久精品国产77777蜜臀| 亚洲一区二区三区自拍| 国产日韩在线不卡| 精品久久久久久久久久久久久久久久久 | 99久久久久免费精品国产| 精品一区二区在线看| 五月天亚洲婷婷| 一区二区三区成人| 亚洲天堂久久久久久久| 国产目拍亚洲精品99久久精品| 欧美一级二级三级蜜桃| 欧美日韩电影在线播放| 在线亚洲精品福利网址导航| gogo大胆日本视频一区| 激情综合五月婷婷| 日本伊人色综合网| 午夜久久久影院| 亚洲成av人片一区二区三区| 亚洲嫩草精品久久| 亚洲欧洲日韩av| 最新国产成人在线观看| 欧美国产成人精品| 亚洲国产精品v| 国产精品久久久久影院色老大| 日本一区二区三区在线不卡| 久久一留热品黄| xf在线a精品一区二区视频网站| 555夜色666亚洲国产免| 欧美精品国产精品| 欧美高清视频一二三区 | 欧美日韩黄视频| 欧美群妇大交群的观看方式| 欧美少妇bbb| 欧美视频一区二区在线观看| 欧美午夜精品一区二区三区| 欧美日韩在线综合| 日韩亚洲欧美成人一区| 日韩视频一区二区| www亚洲一区| 中文字幕欧美区| 亚洲精选一二三| 日韩成人免费看| 国产一区二区在线看| 成人av资源在线| 日本韩国一区二区三区视频| 欧美人动与zoxxxx乱| 精品欧美久久久| 中文子幕无线码一区tr| 亚洲精品亚洲人成人网在线播放| 亚洲一区免费视频| 午夜不卡av在线| 国产乱子伦一区二区三区国色天香| 国产精品性做久久久久久| 91麻豆产精品久久久久久| 欧美三级乱人伦电影| 精品理论电影在线| 中文字幕亚洲区| 亚洲成av人**亚洲成av**| 激情图片小说一区| 91丨九色丨国产丨porny| 欧美系列亚洲系列| 精品国产123| 一区二区欧美视频| 国产一区二区中文字幕| 欧美性猛交一区二区三区精品| 日韩免费看网站| 日韩毛片一二三区| 久久91精品久久久久久秒播| 99久久精品国产麻豆演员表| 制服丝袜日韩国产| 中文字幕一区二区三区在线观看 | 亚洲欧美偷拍卡通变态| 美国十次了思思久久精品导航| 91亚洲永久精品| 精品国产不卡一区二区三区| 一区二区三区波多野结衣在线观看 | 亚洲h在线观看| 国产成人av电影在线| 欧美放荡的少妇| 亚洲日本一区二区三区| 国产剧情av麻豆香蕉精品| 欧美日韩国产小视频在线观看| 国产精品五月天| 国产在线视频一区二区| 欧美精品亚洲二区| 亚洲视频狠狠干| 国产精品一区免费视频| 欧美一区二区日韩一区二区| 中文字幕亚洲视频| 高清国产一区二区三区| 欧美一级黄色录像| 天天综合天天综合色| 91高清在线观看| 中文字幕一区二区三区av| 国产高清精品网站| 精品国产伦一区二区三区观看方式 | 日日夜夜一区二区| 欧洲国产伦久久久久久久| 日韩一区中文字幕| 成人av资源网站| 国产精品乱码久久久久久| 国产精品一区在线观看你懂的| 欧美成人一区二区| 美美哒免费高清在线观看视频一区二区| 日本高清视频一区二区| 国产精品成人免费在线| 成人免费精品视频| 一区在线中文字幕| 91丨九色丨蝌蚪丨老版| 亚洲精品一卡二卡| 日本精品免费观看高清观看| 一区二区三区日韩精品视频| 91成人网在线| 亚洲线精品一区二区三区|