Gammu internals  1.38.0
ser_djg.h
Go to the documentation of this file.
1 /* Some sources from SVAsync (c) 1996, 1997, Samuel Vincent
2  * 7337 Carioca Ct, Rohnert Park, Ca 94928
3  * "you may freely use it in your programs without paying me anything"
4  */
5 
6 #ifdef DJGPP
7 #ifndef djgppserial_h
8 #define djgppserial_h
9 
10 typedef struct {
11  int hPhone;
12  int Speed;
13  unsigned int Control;
14  gboolean Parity;
16 
17 /* Defines for Com Port Paramaters, the second paramater to SVAsyncSet() */
18 #define BITS_8 0x03
19 #define BITS_7 0x02
20 #define STOP_1 0x00
21 #define STOP_2 0x04
22 #define EVEN_PARITY 0x18
23 #define ODD_PARITY 0x08
24 #define NO_PARITY 0x00
25 
26 /* Defines for SVAsyncHand() */
27 #define DTR 0x01
28 #define RTS 0x02
29 #define USER 0x04
30 #define LOOPBACK 0x10
31 
32 /* Defines for SVAsyncStat() */
33 #define D_CTS 0x0100
34 #define D_DSR 0x0200
35 #define D_RI 0x0400
36 #define D_DCD 0x0800
37 #define CTS 0x1000
38 #define DSR 0x2000
39 #define RI 0x4000
40 #define DCD 0x8000
41 #define PARITY 0x0004
42 #define THREMPTY 0x0020
43 #define BREAKDET 0x1000
44 
45 #endif
46 #endif
47 
48 /* How should editor hadle tabs in this file? Add editor commands here.
49  * vim: noexpandtab sw=8 ts=8 sts=8:
50  */
int gboolean
Definition: gammu-types.h:23