DAS  3.1.6 - 18/09/2017
WSC.H
Go to the documentation of this file.
1 /*
2 ** wsc.h
3 **
4 ** Use for both Win16 & Win32.
5 ** For Win32 compilers supporting the "declspec" keyword.
6 */
7 
8 
9 #ifdef STATIC_LIBRARY
10  #define DLL_IMPORT_EXPORT
11 #else
12  #ifdef WIN32
13  #ifdef DLL_SOURCE_CODE
14  #define DLL_IMPORT_EXPORT __declspec(dllexport) __stdcall
15  #else
16  #define DLL_IMPORT_EXPORT __declspec(dllimport) __stdcall
17  #endif
18  #else
19  #define DLL_IMPORT_EXPORT FAR PASCAL
20  #endif
21 #endif
22 
23 #ifdef __cplusplus
24  #define NoMangle extern "C"
25 #else
26  #define NoMangle
27 #endif
28 
29 NoMangle int DLL_IMPORT_EXPORT SioBaud(int,unsigned);
36 NoMangle int DLL_IMPORT_EXPORT SioDTR(int,char);
37 NoMangle int DLL_IMPORT_EXPORT SioFlow(int,char);
40 NoMangle int DLL_IMPORT_EXPORT SioGets(int,LPSTR,unsigned);
41 NoMangle int DLL_IMPORT_EXPORT SioParms(int,int,int,int);
42 NoMangle int DLL_IMPORT_EXPORT SioPutc(int,char);
43 NoMangle int DLL_IMPORT_EXPORT SioPuts(int,LPSTR,unsigned);
45 NoMangle int DLL_IMPORT_EXPORT SioReset(int,int,int);
47 NoMangle int DLL_IMPORT_EXPORT SioRTS(int,char);
50 NoMangle int DLL_IMPORT_EXPORT SioStatus(int,unsigned);
55 #ifdef WIN32
56 NoMangle int DLL_IMPORT_EXPORT SioWinError(LPSTR,int);
57 #endif
58 
59 #define COM1 0
60 #define COM2 1
61 #define COM3 2
62 #define COM4 3
63 #define COM5 4
64 #define COM6 5
65 #define COM7 6
66 #define COM8 7
67 #define COM9 8
68 #define COM10 9
69 #define COM11 10
70 #define COM12 11
71 #define COM13 12
72 #define COM14 13
73 #define COM15 14
74 #define COM16 15
75 
76 /* Parity Codes */
77 
78 #define NoParity 0
79 #define OddParity 1
80 #define EvenParity 2
81 #define MarkParity 3
82 #define SpaceParity 4
83 
84 /* Stop Bit Codes */
85 
86 #define OneStopBit 0
87 #define TwoStopBits 2
88 
89 /* Word Length Codes */
90 
91 #define WordLength5 5
92 #define WordLength6 6
93 #define WordLength7 7
94 #define WordLength8 8
95 
96 /* return codes */
97 
98 #define WSC_NO_DATA (-100)
99 #define WSC_RANGE (-101)
100 #define WSC_ABORTED (-102)
101 #define WSC_WIN32ERR (-103)
102 #define WSC_EXPIRED (-104)
103 #define IE_BADID (-1)
104 #define IE_OPEN (-2)
105 #define IE_NOPEN (-3)
106 #define IE_MEMORY (-4)
107 #define IE_DEFAULT (-5)
108 #define IE_HARDWARE (-10)
109 #define IE_BYTESIZE (-11)
110 #define IE_BAUDRATE (-12)
111 
112 /* baud codes */
113 
114 #define Baud110 0
115 #define Baud300 1
116 #define Baud1200 2
117 #define Baud2400 3
118 #define Baud4800 4
119 #define Baud9600 5
120 #define Baud19200 6
121 #define Baud38400 7
122 #define Baud57600 8
123 #define Baud115200 9
124 
125 /* SioGetError masks */
126 
127 #define WSC_RXOVER 0x0001
128 #define WSC_OVERRUN 0x0002
129 #define WSC_PARITY 0x0004
130 #define WSC_FRAME 0x0008
131 #define WSC_BREAK 0x0010
132 #define WSC_TXFULL 0x0100
133 
134 /* Line Commands */
135 
136 #define SET_LINE 'S'
137 #define CLEAR_LINE 'C'
138 #define READ_LINE 'R'
139 
140 /* BREAK Commands */
141 
142 #define ASSERT_BREAK 'A'
143 #define CANCEL_BREAK 'C'
144 #define DETECT_BREAK 'D'
NoMangle int DLL_IMPORT_EXPORT SioGets(int, LPSTR, unsigned)
NoMangle int DLL_IMPORT_EXPORT SioBrkSig(int, char)
NoMangle int DLL_IMPORT_EXPORT SioDCD(int)
#define NoMangle
Definition: WSC.H:26
NoMangle int DLL_IMPORT_EXPORT SioDebug(int)
NoMangle int DLL_IMPORT_EXPORT SioPuts(int, LPSTR, unsigned)
#define DLL_IMPORT_EXPORT
Definition: WSC.H:19
NoMangle int DLL_IMPORT_EXPORT SioGetc(int)
NoMangle int DLL_IMPORT_EXPORT SioDone(int)
NoMangle int DLL_IMPORT_EXPORT SioTxQue(int)
NoMangle int DLL_IMPORT_EXPORT SioReset(int, int, int)
NoMangle int DLL_IMPORT_EXPORT SioRI(int)
NoMangle DWORD DLL_IMPORT_EXPORT SioTimer(void)
NoMangle int DLL_IMPORT_EXPORT SioPutc(int, char)
NoMangle int DLL_IMPORT_EXPORT SioCTS(int)
NoMangle int DLL_IMPORT_EXPORT SioParms(int, int, int, int)
NoMangle int DLL_IMPORT_EXPORT SioUnGetc(int, char)
NoMangle int DLL_IMPORT_EXPORT SioStatus(int, unsigned)
NoMangle int DLL_IMPORT_EXPORT SioDTR(int, char)
#define DWORD
Definition: DSCUD.H:75
NoMangle int DLL_IMPORT_EXPORT SioRxQue(int)
NoMangle int DLL_IMPORT_EXPORT SioRead(int, int)
NoMangle int DLL_IMPORT_EXPORT SioTxClear(int)
NoMangle int DLL_IMPORT_EXPORT SioBaud(int, unsigned)
NoMangle int DLL_IMPORT_EXPORT SioFlow(int, char)
NoMangle int DLL_IMPORT_EXPORT SioInfo(char)
NoMangle int DLL_IMPORT_EXPORT SioDSR(int)
NoMangle int DLL_IMPORT_EXPORT SioRTS(int, char)
NoMangle int DLL_IMPORT_EXPORT SioRxClear(int)
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:44:09 for DAS - Rel. 3.1.6 - 18/09/2017.