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

📄 bus.h

📁 美国Delta Tau公司PMAC多轴运动控制卡的VC++示例程序
💻 H
字号:
/***************************************************************************
  (C) Copyright DELTA TAU DATA SYSTEMS Inc., 1992

  Title:    bus.h

  Version:  1.00

  Date:   12/11/1992

  Author(s):  Dennis Smith, Allen Segall

  Header file for PMAC bus communications.

  Note(s):

----------------------------------------------------------------------------

  Change log:

    Date       Rev   Who      Description
  --------- ----- ----- --------------------------------------------

***************************************************************************/

#ifndef _BUS_H
  #define _BUS_H

// Functions --------------------------------------------------------------
  #ifdef __cplusplus
extern "C" {
  #endif

  BOOL  CALLBACK PmacBUSReadReady( DWORD dwDevice );
  int   CALLBACK PmacBUSSendCharA( DWORD dwDevice, CHAR outch );
  int   CALLBACK PmacBUSSendCharW( DWORD dwDevice, WCHAR outch );
  int   CALLBACK PmacBUSSendLineA( DWORD dwDevice, PCHAR outstr );
  int   CALLBACK PmacBUSSendLineW( DWORD dwDevice, PWCHAR outstr );
  int   CALLBACK PmacBUSGetLineA( DWORD dwDevice, PCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetLineW( DWORD dwDevice, PWCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetBufferA( DWORD dwDevice, PCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetBufferW( DWORD dwDevice, PWCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetResponseA( DWORD dwDevice, PCHAR s, UINT maxchar, PCHAR outstr );
  int   CALLBACK PmacBUSGetResponseW( DWORD dwDevice, PWCHAR s, UINT maxchar, PWCHAR outstr );
  int   CALLBACK PmacBUSGetControlResponseA( DWORD dwDevice, PCHAR s, UINT maxchar, CHAR outchar );
  int   CALLBACK PmacBUSGetControlResponseW( DWORD dwDevice, PWCHAR s, UINT maxchar, WCHAR outchar );
  void  CALLBACK PmacBUSFlush( DWORD dwDevice );
  void  CALLBACK PmacBUSSendCommandA( DWORD dwDevice, PCHAR outchar );
  void  CALLBACK PmacBUSSendCommandW( DWORD dwDevice, PWCHAR outstr );

  int  CALLBACK Outp( DWORD dwDevice, BYTE offset, BYTE ch );
  BYTE CALLBACK Inp( DWORD dwDevice, BYTE offset );

  #ifdef __cplusplus
}
  #endif

  #ifdef UNICODE
    #define PmacBUSSendChar PmacBUSSendCharW
    #define PmacBUSSendLine PmacBUSSendLineW
    #define PmacBUSGetLine PmacBUSGetLineW
    #define PmacBUSBuffer PmacBUSGetBufferW
    #define PmacBUSGetResponse PmacBUSGetResponseW
    #define PmacBUSGetControlResponse PmacBUSGetControlResponseW
    #define PmacBUSSendCommand PmacBUSSendCommandW
  #else
    #define PmacBUSSendChar PmacBUSSendCharA
    #define PmacBUSSendLine PmacBUSSendLineA
    #define PmacBUSBuffer PmacBUSGetBufferA
    #define PmacBUSGetLine PmacBUSGetLineA
    #define PmacBUSGetResponse PmacBUSGetResponseA
    #define PmacBUSGetControlResponse PmacBUSGetControlResponseA
    #define PmacBUSSendCommand PmacBUSSendCommandA
  #endif // !UNICODE

#endif

⌨️ 快捷键说明

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