home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / MKLAPI09.ZIP / MARKLIN.H < prev    next >
Text File  |  1993-03-01  |  2KB  |  44 lines

  1. /*====================================================================
  2.   Rob Hamerling - Marklin Interface driver for DOS.
  3.  
  4.   Header file 'MARKLIN.H'
  5.  
  6.   Function definitions for OS/2 and DOS-versions of Marklin Interface driver.
  7.   To be included in all programs using one of these drivers.
  8.  
  9.   Designed to be used with: -  IBM C/2 compiler (version 1.1)
  10.                             -  MicroSoft C-compiler (version 6.00a +)
  11.                             -  IBM C Set/2 compiler (OS/2 2.0: 32-bits)
  12.                             -  and other compatible (ANSI) compilers
  13.  
  14.   Copyright (c) Rob Hamerling, 1991,92
  15.   All Rights Reserved.
  16.   ==================================================================== */
  17.  
  18. /* Functions Declarations */
  19.  
  20. void         mklclose(void);            /* close interface             */
  21. int          mklflush(void);            /* await output complete       */
  22. unsigned short int mklgetsn(short int); /* read sensor word            */
  23. int          mklgo(short int);          /* GO and opt. (re-)start poll */
  24. long int     mklmsecs(void);            /* get precise time (DOS only) */
  25. void         mklopen(short int, short int); /* init. communications    */
  26. void         mklpoll(short int);        /* start/stop polling          */
  27. int          mklpurge(void);            /* purge output buffer         */
  28. int          mklputc(unsigned short int);  /* transmit 1 or 2 chars    */
  29. void         mklsleep(void);            /* release timeslice           */
  30. long int     mklstats(short int);       /* get statistics counter      */
  31. int          mklstop(void);             /* transmit STOP and block INT */
  32. long int     mkltime(void);             /* get time ('tick' precision) */
  33. void         mkltrace(int);             /* start/stop INT trace MKLAPI */
  34.  
  35. /* External Data Declarations */
  36.  
  37. /* extern unsigned long int mkltime;       REPLACED BY FUNCTION        */
  38.  
  39. /* Macro Declarations */
  40.  
  41. #define mklput1c(p)    mklputc( (int)(p)     & 0x00FF)  /* send 1 ch.  */
  42. #define mklput2c(p,q)  mklputc(((int)(q)<<8) | (p))     /* send 2 ch.  */
  43.  
  44.