home *** CD-ROM | disk | FTP | other *** search
- /*==================================================================== */
- /* Rob Hamerling - Marklin Interface driver for DOS. */
- /* */
- /* Header file 'MKLAPI.H' */
- /* */
- /* Function definitions for OS/2 and DOS-versions of Marklin Interface */
- /* driver. To be included in all programs using one of these drivers. */
- /* */
- /* Designed to be used with: - IBM C/2 compiler (version 1.1) */
- /* - MicroSoft C-compiler (version 6.00a +) */
- /* - IBM C Set/2 compiler (OS/2 2.0: 32-bits) */
- /* - and other compatible (ANSI) compilers */
- /* */
- /* Copyright (c) Rob Hamerling, 1991,93 */
- /* All Rights Reserved. */
- /* ==================================================================== */
-
- /* Functions Declarations */
-
- void mklclose(void); /* close interface */
- int mklflush(void); /* await output complete */
- unsigned short int mklgetsn(short int); /* read sensor word */
- int mklgo(short int); /* GO and opt. (re-)start poll */
- long int mklmsecs(void); /* get precise time (DOS only) */
- int mklopen(short int, short int); /* init. communications */
- void mklpoll(short int); /* start/stop polling */
- int mklpurge(void); /* purge output buffer */
- int mklputc(unsigned short int); /* transmit 1 or 2 chars */
- void mklsleep(short int); /* pause (number of msecs) */
- void mklsound(short int, short int); /* DosBeep equivalent */
- long int mklstats(short int); /* get statistics counter */
- int mklstop(void); /* transmit STOP and block INT */
- long int mkltime(void); /* get time ('tick' precision) */
- void mkltrace(int); /* start/stop INT trace MKLAPI */
-
- /* Macro Declarations */
-
- #define mklput1c(p) mklputc( (int)(p) & 0x00FF) /* send 1 ch. */
- #define mklput2c(p,q) mklputc(((int)(q)<<8) | (p)) /* send 2 ch. */
-
-