home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 307_01 / comx.h < prev    next >
Text File  |  1990-03-20  |  1KB  |  40 lines

  1. /*
  2. HEADER:     ;
  3. TITLE:        PC com port driver equates;
  4. VERSION:    1.0;
  5.  
  6. DESCRIPTION:    "Contains manifest constants used to access COMX device
  7.         driver.";
  8.  
  9. SYSTEM:     MS-DOS v2 or later;
  10. FILENAME:    COMX.H;
  11.  
  12. SEE-ALSO:    COMX.C, RS232.C, TE.C;
  13. AUTHORS:    Hugh Daschbach;
  14. COMPILERS:    Microsoft v5.0,v5.1;
  15. */
  16. /*----------------------------------------------------------------------*/
  17. /* comx.h: MS-DOS communication driver equates
  18.  */
  19.  
  20. #define INIT_232    0    /* initialize port            */
  21. #define PUTC_232    1    /* put character            */
  22. #define GETC_232    2    /* get character            */
  23. #define STAT_232    3    /* fetch status             */
  24. #define WRITE_232    4    /* write string             */
  25. #define READ_232    5    /* read string                */
  26. #define ICOUNT_232    6    /* fetch input character count        */
  27. #define OCOUNT_232    7    /* fetch output buffer available    */
  28. #define SETPROT_232    8    /* set protocol             */
  29. #define SETSPEED_232    9    /* set line speed (bits/sec/100)    */
  30.                 /* 3, 12, 24, 48, 96, 192, 384 supported */
  31.  
  32.                 /* protocols are ORable bit flags    */
  33. #define PROT_NONE    0    /* no protocol                */
  34. #define PROT_XIN    1    /* transmit xoff/xon when input fills    */
  35. #define PROT_XOUT    2    /* obey xoff/xon when transmitting data */
  36.  
  37. #if !defined(num_entries)    /* number of entries in an array    */
  38. #define num_entries(x) (sizeof(x) / sizeof(x[0]))
  39. #endif
  40.