]> cloudbase.mooo.com Git - z180-stamp-cpm3.git/blame - cbios/termios.inc
Extended drive table for use with DRIVE.COM, a dynamic drive re-assignment utility.
[z180-stamp-cpm3.git] / cbios / termios.inc
CommitLineData
947c5868
L
1; tcflag_t c_iflag; /* input mode flags */\r
2IGNBRK equ 00000001B ;Ignore BREAK condition on input.\r
3BRKINT equ 00000010B\r
4IGNPAR equ 00000100B ;Ignore framing errors and parity errors.\r
5PARMRK equ 00001000B ;Prefix a character with a parity error or framing error with FFH 00H.\r
6INPCK equ 00010000B ;Enable input parity checking.\r
7ISTRIP equ 00100000B ;Strip off eighth bit.\r
8IXON equ 01000000B ;Enable XON/XOFF flow control on output.\r
9IXANY equ 10000000B ;Typing any character will restart stopped output.\r
10IXOFF equ 00000000B ;Enable XON/XOFF flow control on input.\r
11\r
12; tcflag_t c_cflag; /* control mode flags */\r
13CBAUD equ 0x1F ;Baud speed mask\r
14 B0 equ 0x00 ;hang up\r
15 B50 equ 0x11\r
16 B75 equ 0x12\r
17 B110 equ 0x13\r
18 B134 equ 0x14\r
19 B150 equ 0x05\r
20 B300 equ 0x06\r
21 B600 equ 0x07\r
22 B1200 equ 0x08\r
23 B1800 equ 0x09\r
24 B2400 equ 0x0A\r
25 B3600 equ 0x0B\r
26 B4800 equ 0x0C\r
27 B7200 equ 0x0D\r
28 B9600 equ 0x0E\r
29 B19200 equ 0x0F\r
30 B28800 equ 0x01\r
31 B38400 equ 0x02\r
32 B57600 equ 0x03\r
33 B115200 equ 0x04\r
34 B144000 equ 0x14\r
35 B192000 equ 0x16\r
36 B288000 equ 0x17\r
37CSIZE equ 00000000B ;Character size mask.\r
38 CS7 equ 00000000B ;\r
39 CS8 equ 00000000B ;\r
40CSTOPB equ 00000000B ;Set two stop bits, rather than one.\r
41CREAD equ 00000000B ;Enable receiver.\r
42PARENB equ 00000000B ;Enable parity generation on output and parity checking for input.\r
43PARODD equ 00000000B ;If set, then parity for input and output is odd.\r
44CLOCAL equ 00000000B ;Ignore modem control lines.\r
45CRTS_IFLOW equ 00000000B ;RTS flow control of input.\r
46CCTS_OFLOW equ 00000000B ;CTS flow control of output.\r
47\r
48; tcflag_t c_lflag; /* local mode flags */\r
49ECHO equ 00000001B\r
50\r
51\r
52; tcflow() and TCXONC use these */\r
53TCOOFF equ 0\r
54TCOON equ 1\r
55TCIOFF equ 2\r
56TCION equ 3\r
57; tcflush() and TCFLSH use these */\r
58TCIFLUSH equ 0\r
59TCOFLUSH equ 1\r
60TCIOFLUSH equ 2\r
61; tcsetattr uses these */\r
62TCSANOW equ 0\r
63TCSADRAIN equ 1\r
64TCSAFLUSH equ 2\r