home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / maj / 680 / comlib.h next >
C/C++ Source or Header  |  1994-03-14  |  1KB  |  55 lines

  1. /*
  2. ** comlib.h
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #ifndef COMLIB_H
  9. #define COMLIB_H
  10.  
  11. #define CO_COM1         0x0000
  12. #define CO_COM2         0x0001
  13. #define CO_COM3         0x0002
  14. #define CO_COM4         0x0003
  15. #define CO_NOPARITY     0x0000
  16. #define CO_ODDPARITY    0x0008
  17. #define CO_EVENPARITY   0x0018
  18. #define CO_DATA7        0x0002
  19. #define CO_DATA8        0x0003
  20. #define CO_STOP1        0x0000
  21. #define CO_STOP2        0x0004
  22. #define CO_BAUD300      0x0180
  23. #define CO_BAUD1200     0x0060
  24. #define CO_BAUD2400     0x0030
  25. #define CO_BAUD4800     0x0018
  26. #define CO_BAUD9600     0x000C
  27. #define CO_BAUD19200    0x0006
  28. #define CO_BAUD38400    0x0003
  29. #define CO_BAUD57600    0x0002
  30. #define CO_BAUD115200   0x0001
  31. #define CO_IRQDEFAULT   0x0000
  32. #define CO_IRQ2         0x0002
  33. #define CO_IRQ3         0x0003
  34. #define CO_IRQ4         0x0004
  35. #define CO_IRQ5         0x0005
  36.  
  37. extern int _PL_comtimeout;
  38. extern int _PL_comoverflow;
  39.  
  40. #define comgettimeout() (_PL_comtimeout)
  41. #define comsettimeout(_x) (_PL_comtimeout = (_x))
  42.  
  43. int  comclose(void);
  44. int  comflush(void);
  45. int  comgetc(char *);
  46. int  comgets(char *,int);
  47. int  comloc(void);
  48. int  comopen(int,int,int,int,int,int);
  49. int  computc(char);
  50. int  computs(char *);
  51. int  comread(char *,int);
  52. int  comwrite(char *,int);
  53.  
  54. #endif
  55.