1 /* BEGIN INCLUDE FILE: mowsedefs.h */
 2 
 3 /* HISTORY COMMENTS:
 4   1) change(86-01-01,Flegel), approve(87-07-13,MCR7580),
 5      audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072):
 6      Created.
 7   2) change(88-01-26,Flegel), approve(88-02-29,MCR7853),
 8      audit(88-03-10,Nakaska):
 9      Moved in option definitions from MOWSE.C
10   3) change(88-06-17,Lee), approve(88-07-18,MCR7936), audit(88-08-10,Flegel):
11      Added definitions for Mark and Space parity values
12                                                    END HISTORY COMMENTS */
13 
14 /* FUNCTION
15 
16 Define the necessary initialization and miscellaneous values required by MOWSE.
17 */
18 
19 #define ACK          6
20 #define NAK          21
21 
22 /* Baud rates */
23 
24 #define B110         0
25 #define B150         1
26 #define B300         2
27 #define B600         3
28 #define B1200        4
29 #define B2400        5
30 #define B4800        6
31 #define B9600        7
32 
33 /* Parity */
34 
35 #define NO_PARITY    0
36 #define ODD_PARITY   1
37 #define EVEN_PARITY  3
38 #define MARK_PARITY  5
39 #define SPACE_PARITY 7
40 #define NO_PAR       0
41 #define ODD_PAR      1
42 #define EVEN_PAR     3
43 #define MARK_PAR     5
44 #define SPAC_PAR     7
45 
46 /* Stop Bits */
47 
48 #define STOP1        0
49 #define STOP2        1
50 
51 /* Data Bits */
52 
53 #define DATA7        2
54 #define DATA8        3
55 
56 /* Default communications setup: <B9600,even_parity,stop1,data7> */
57 
58 #define DEFAULT_COMM ((B9600<<5)|(EVEN_PARITY<<3)|(STOP1<<2)|(DATA7))
59 #define DEF_COMM     ((B9600<<5)|(EVEN_PAR<<3)|(STOP1<<2)|(DATA7))
60 
61 
62 /* Common constant values */
63 
64 #define T            1
65 #define TRUE         1
66 #define F            0
67 #define FALSE        0
68 #define ADD_CONTROL  32
69 
70 /* Buffer constants */
71 
72 #define BUFSIZE      4096              /* General buffer size */
73 #define TBUFSIZE     4096              /* Terminal buffer size */
74 #define PBUFSIZE     520               /* Packet buffer size */
75 #define DATA_SIZE    121               /* Packet data size */
76 
77 /* ASCII Codes */
78 
79 #define BS           8
80 #define TAB          9
81 #define LF           10
82 #define CR           13
83 #define ESC          27
84 #define CTL_RSB      29
85 
86 /* Startup option parameters */
87 
88 #define OPTION_B            0x001       /* B parameter option */
89 #define OPTION_C            0x002       /* C   */
90 #define OPTION_D            0x004       /* D   */
91 #define OPTION_I            0x018       /* I   */
92 #define OPTION_P            0x010       /* P   */
93 #define OPTION_S            0x020       /* S   */
94 #define OPTION_GX           0x040       /* G X */
95 #define OPTION_GR           0x080       /* G R */
96 #define OPTION_GP           0x100       /* G P */
97 #define OPTION_H            0x200       /* H   */
98 
99 /* END INCLUDE FILE mowsedefs.h */