Location: | /usr/include/bits/termios.h |
c_iflag | input mode flags | 32 bit | +0 | |
c_oflag | output mode flags | 32 bit | +4 | |
c_cflag | control mode flags | 32 bit | +8 | |
c_lflag | local mode flags | 32 bit | +12 | |
c_line | line discipline | 8 bit | +16 | |
c_cc[NCCS] | control characters | 8 bit | +17 | |
c_ispeed | input speed | 32 bit | +18 | |
c_ospeed | output speed | 32 bit | +22 | |
-------- | ||||
208 bit | = 26 bytes |
bit | hex | decimal | c++ name | Description | |
1 | 0x1 | 1 | IGNBRK | ignore BREAK | |
2 | 0x2 | 2 | BRKINT | interup signal on BREAK | |
3 | 0x4 | 4 | IGNPAR | ignore parity | |
4 | 0x8 | 8 | PARMRK | ||
5 | 0x10 | 16 | INPCK | ||
6 | 0x20 | 32 | ISTRIP | ||
7 | 0x40 | 64 | INLCR | ||
8 | 0x80 | 128 | IGNCR | ||
9 | 0x100 | 256 | ICRNL | ||
10 | 0x200 | 512 | IUCLC | ||
11 | 0x400 | 1024 | IXON | ||
12 | 0x800 | 2048 | IXANY | ||
13 | 0x1000 | 4096 | IXOFF | ||
14 | 0x2000 | 8192 | IMAXBEL |
bit | hex | decimal | c++ name | Description | |
1 | 0x1 | 1 | OPOST | ||
2 | 0x2 | 2 | OLCUC | ||
3 | 0x4 | 4 | ONLCR | ||
4 | 0x8 | 8 | OCRNL | ||
5 | 0x10 | 16 | ONOCR | ||
6 | 0x20 | 32 | ONLRET | ||
7 | 0x40 | 64 | OFILL | ||
8 | 0x80 | 128 | OFDEL | ||
9 | 0x100 | 256 | NLDLY=NL1 | ||
10 | 0x200 | 512 | CR1(+CR2=CRDLY) | ||
11 | 0x400 | 1024 | CR2(+CR1=CRDLY) | ||
12 | 0x800 | 2048 | TAB1(+TAB2=TABDLY) | ||
13 | 0x1000 | 4096 | TAB2(+TAB1=TABDLY) | ||
14 | 0x2000 | 8192 | BSDLY=BS1 | ||
15 | 0x4000 | 16384 | VTDLY=VT1 | ||
16 | 0x8000 | 32768 | FFDLY=FF1 |
bit | hex | decimal | c++ name | Description | |
0..3 | 0x0 | 0 | B0 | ||
0..3 | 0x1 | 1 | B50 | ||
0..3 | 0x2 | 2 | B75 | ||
0..3 | 0x3 | 3 | B110 | ||
0..3 | 0x4 | 4 | B134 | ||
0..3 | 0x5 | 5 | B150 | ||
0..3 | 0x6 | 6 | B200 | ||
0..3 | 0x7 | 7 | B300 | ||
0..3 | 0x8 | 8 | B600 | ||
0..3 | 0x9 | 9 | B1200 | ||
0..3 | 0xa | 10 | B1800 | ||
0..3 | 0xb | 11 | B2400 | ||
0..3 | 0xc | 12 | B4800 | ||
0..3 | 0xd | 13 | B9600 | ||
0..3 | 0xe | 14 | B19200 | ||
0..3 | 0xf | 15 | B38400 | ||
4 | 0x10 | 16 | CS6(+CS7=CS8=CSIZE) | ||
5 | 0x20 | 32 | CS7(+CS6=CS8=CSIZE) | ||
6 | 0x40 | 64 | CSTOPB | ||
7 | 0x80 | 128 | CREAD | ||
8 | 0x100 | 256 | PARENB | ||
9 | 0x200 | 512 | PARODD | ||
10 | 0x400 | 1024 | HUPCL | ||
11 | 0x800 | 2048 | CLOCAL | ||
12..15 | 0x1000 | 4096 | CBAUDEX | ||
12..15 | 0x1001 | 4097 | B57600 | ||
12..15 | 0x1002 | 4098 | B115200 | ||
12..15 | 0x1003 | 4099 | B230400 | ||
12..15 | 0x1004 | 4100 | B460800 | ||
12..15 | 0x1005 | 4101 | B500000 | ||
12..15 | 0x1006 | 4102 | B576000 | ||
12..15 | 0x1007 | 4103 | B921600 | ||
12..15 | 0x1008 | 4104 | B1000000 | ||
12..15 | 0x1009 | 4105 | B1152000 | ||
12..15 | 0x100a | 4106 | B1500000 | ||
12..15 | 0x100b | 4107 | B2000000 | ||
12..15 | 0x100c | 4108 | B2500000 | ||
12..15 | 0x100d | 4109 | B3000000 | ||
12..15 | 0x100e | 4110 | B3500000 | ||
12..15 | 0x100f | 4111 | B4000000 | ||
29 | 0x10000000 | 268435456 | CLOCAL |
bit | hex | decimal | c++ name | Description | |
1 | 0x1 | 1 | ISIG | generate signal on input | |
2 | 0x2 | 2 | ICANON | canon input | |
3 | 0x4 | 4 | XCASE | ||
4 | 0x8 | 8 | ECHO | print input | |
5 | 0x10 | 16 | ECHOE | ||
6 | 0x20 | 32 | ECHOK | ||
7 | 0x40 | 64 | ECHONL | ||
8 | 0x80 | 128 | NOFLSH | do not delete input buffer | |
9 | 0x100 | 256 | TOSTOP | ||
10 | 0x200 | 512 | ECHOCTL | ||
11 | 0x400 | 1024 | ECHOPRT | ||
12 | 0x800 | 2048 | ECHOKE | ||
13 | 0x1000 | 4096 | FLUSHO | delete output buffer | |
14 | 0x2000 | 8192 | PENDIN | ||
15 | 0x4000 | 16384 | IEXTEN | extended input |
bit | hex | decimal | c++ name | Description | |
0..3 | 0x0 | 0 | N_TTY | ||
0..3 | 0x1 | 1 | N_SLIP | ||
0..3 | 0x2 | 2 | N_MOUSE | ||
0..3 | 0x3 | 3 | N_PPP | ||
0..3 | 0x4 | 4 | N_STRIP | ||
0..3 | 0x5 | 5 | N_AX25 | ||
0..3 | 0x6 | 6 | N_X25 | X.25 async | |
0..3 | 0x7 | 7 | N_6PACK | ||
0..3 | 0x8 | 8 | N_MASC | Reserved for Mobitex module | |
0..3 | 0x9 | 9 | N_R3964 | Reserved for Simatic R3964 module | |
0..3 | 0xa | 10 | N_PROFIBUS_FDL | Reserved for Profibus | |
0..3 | 0xb | 11 | N_IRDA | Linux IR - http://irda.sourceforge.net | |
0..3 | 0xc | 12 | N_SMSBLOCK | SMS block mode - for talking to GSM data cards about SMS messages | |
0..3 | 0xd | 13 | N_HDLC | synchronous HDLC | |
0..3 | 0xe | 14 | N_SYNC_PPP | synchronous PPP | |
0..3 | 0xf | 15 | N_HCI | Bluetooth HCI UART |
bit | hex | decimal | c++ name | Description | |
0..4 | 0x0 | 0 | VINTR | ||
0..4 | 0x1 | 1 | VQUIT | ||
0..4 | 0x2 | 2 | VERASE | ||
0..4 | 0x3 | 3 | VKILL | ||
0..4 | 0x4 | 4 | VEOF | ||
0..4 | 0x5 | 5 | VTIME | ||
0..4 | 0x6 | 6 | VMIN | ||
0..4 | 0x7 | 7 | VSWTC | ||
0..4 | 0x8 | 8 | VSTART | ||
0..4 | 0x9 | 9 | VSTOP | ||
0..4 | 0xA | 10 | VSUSP | ||
0..4 | 0xB | 11 | VEOL | ||
0..4 | 0xC | 12 | VREPRINT | ||
0..4 | 0xD | 13 | VDISCARD | ||
0..4 | 0xE | 14 | VWERASE | ||
0..4 | 0xF | 15 | VLNEXT | ||
0..4 | 0x10 | 16 | VEOL2 |