home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 August / Chip_1999-08_cd.bin / sharewar / wscmclib / WSC32.CC < prev    next >
C/C++ Source or Header  |  1999-06-01  |  3KB  |  94 lines

  1. ***[ WSC32 Declarations (WSC Ver 2.4) for Visual dBase 7.0] ***
  2. #define COM1   0
  3. #define COM2   1
  4. #define COM3   2
  5. #define COM4   3
  6. #define COM5   4
  7. #define COM6   5
  8. #define COM7   6
  9. #define COM8   7
  10. #define COM9   8
  11. #define COM10  9
  12. #define COM11 10
  13. #define COM12 11
  14. #define COM13 12
  15. #define COM14 13
  16. #define COM15 14
  17. #define COM16 15
  18. #define COM17 16
  19. #define COM18 17
  20. #define COM19 18
  21. #define COM20 19
  22. * Parity Codes
  23. #define NoParity 0
  24. #define OddParity  1
  25. #define EvenParity 2
  26. #define MarkParity 3
  27. #define SpaceParity 4
  28. * Stop Bit Codes
  29. #define OneStopBit  0
  30. #define TwoStopBits 2
  31. * Word Length Codes
  32. #define WordLength5  5
  33. #define WordLength6  6
  34. #define WordLength7  7
  35. #define WordLength8  8
  36. * return codes
  37. #define WSC_NO_DATA   -100
  38. #define WSC_RANGE     -101
  39. #define WSC_ABORTED   -102
  40. #define WSC_WIN32ERR  -103
  41. #define WSC_EXPIRED   -104
  42. #define IE_BADID      -1
  43. #define IE_OPEN       -2
  44. #define IE_NOPEN      -3
  45. #define IE_MEMORY     -4
  46. #define IE_DEFAULT    -5
  47. #define IE_HARDWARE   -10
  48. #define IE_BYTESIZE   -11
  49. #define IE_BAUDRATE   -12
  50. * baud codes
  51. #define Baud110    0
  52. #define Baud300    1
  53. #define Baud1200   2
  54. #define Baud2400   3
  55. #define Baud4800   4
  56. #define Baud9600   5
  57. #define Baud19200  6
  58. #define Baud38400  7
  59. #define Baud57600  8
  60. #define Baud115200 9
  61. * SioGetError masks
  62. #define WSC_RXOVER   1
  63. #define WSC_OVERRUN  2
  64. #define WSC_PARITY   4
  65. #define WSC_FRAME    8
  66. #define WSC_BREAK    16
  67. #define WSC_TXFULL   256
  68. * WSC Functions
  69. extern CLONG SioBaud(CLONG,CLONG) WSC32.DLL 
  70. extern CLONG SioCTS(CLONG) WSC32.DLL
  71. extern CLONG SioDCD(CLONG) WSC32.DLL 
  72. extern CLONG SioDebug(CLONG) WSC32.DLL 
  73. extern CLONG SioDone(CLONG) WSC32.DLL 
  74. extern CLONG SioDSR(CLONG) WSC32.DLL 
  75. extern CLONG SioDTR(CLONG,CLONG) WSC32.DLL
  76. extern CLONG SioEvent(CLONG,CLONG) WSC32.DLL
  77. extern CLONG SioFlow(CLONG,CLONG) WSC32.DLL
  78. extern CLONG SioInfo(CLONG) WSC32.DLL
  79. extern CLONG SioGetc(CLONG) WSC32.DLL 
  80. extern CLONG SioParms(CLONG,CLONG,CLONG) WSC32.DLL 
  81. extern CLONG SioPutc(CLONG,CLONG) WSC32.DLL
  82. extern CLONG SioRead(CLONG,CLONG) WSC32.DLL
  83. extern CLONG SioReset(CLONG,CLONG,CLONG) WSC32.DLL
  84. extern CLONG SioRI(CLONG) WSC32.DLL 
  85. extern CLONG SioRTS(CLONG,CLONG) WSC32.DLL
  86. extern CLONG SioRxClear(CLONG) WSC32.DLL 
  87. extern CLONG SioRxQue(CLONG) WSC32.DLL 
  88. extern CLONG SioStatus(CLONG,CLONG) WSC32.DLL
  89. extern CLONG SioTxClear(CLONG) WSC32.DLL
  90. extern CLONG SioTxQue(CLONG) WSC32.DLL
  91. extern CLONG SioUnGetc(CLONG,CLONG) WSC32.DLL
  92. extern CLONG SioWinError(CSTRING,CLONG) WSC32.DLL
  93. ***[ End of WSC32 Declarations ]***
  94.