]>
Commit | Line | Data |
---|---|---|
1 | ; tcflag_t c_iflag; /* input mode flags */\r | |
2 | IGNBRK equ 00000001B ;Ignore BREAK condition on input.\r | |
3 | BRKINT equ 00000010B\r | |
4 | IGNPAR equ 00000100B ;Ignore framing errors and parity errors.\r | |
5 | PARMRK equ 00001000B ;Prefix a character with a parity error or framing error with FFH 00H.\r | |
6 | INPCK equ 00010000B ;Enable input parity checking.\r | |
7 | ISTRIP equ 00100000B ;Strip off eighth bit.\r | |
8 | IXON equ 01000000B ;Enable XON/XOFF flow control on output.\r | |
9 | IXANY equ 10000000B ;Typing any character will restart stopped output.\r | |
10 | IXOFF equ 00000000B ;Enable XON/XOFF flow control on input.\r | |
11 | \r | |
12 | ; tcflag_t c_cflag; /* control mode flags */\r | |
13 | CBAUD 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 | |
37 | CSIZE equ 00000000B ;Character size mask.\r | |
38 | CS7 equ 00000000B ;\r | |
39 | CS8 equ 00000000B ;\r | |
40 | CSTOPB equ 00000000B ;Set two stop bits, rather than one.\r | |
41 | CREAD equ 00000000B ;Enable receiver.\r | |
42 | PARENB equ 00000000B ;Enable parity generation on output and parity checking for input.\r | |
43 | PARODD equ 00000000B ;If set, then parity for input and output is odd.\r | |
44 | CLOCAL equ 00000000B ;Ignore modem control lines.\r | |
45 | CRTS_IFLOW equ 00000000B ;RTS flow control of input.\r | |
46 | CCTS_OFLOW equ 00000000B ;CTS flow control of output.\r | |
47 | \r | |
48 | ; tcflag_t c_lflag; /* local mode flags */\r | |
49 | ECHO equ 00000001B\r | |
50 | \r | |
51 | \r | |
52 | ; tcflow() and TCXONC use these */\r | |
53 | TCOOFF equ 0\r | |
54 | TCOON equ 1\r | |
55 | TCIOFF equ 2\r | |
56 | TCION equ 3\r | |
57 | ; tcflush() and TCFLSH use these */\r | |
58 | TCIFLUSH equ 0\r | |
59 | TCOFLUSH equ 1\r | |
60 | TCIOFLUSH equ 2\r | |
61 | ; tcsetattr uses these */\r | |
62 | TCSANOW equ 0\r | |
63 | TCSADRAIN equ 1\r | |
64 | TCSAFLUSH equ 2\r |