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