Tizen RT Libs&Environment  v1.0 D5
termios.h File Reference

Termios APIs. More...

#include <tinyara/config.h>
#include <sys/types.h>
#include <stdint.h>
Include dependency graph for termios.h:

Go to the source code of this file.

Data Structures

struct  termios
 Structure of termios. More...
 

Macros

#define BRKINT   (1 << 0) /* Bit 0: Signal interrupt on break */
 
#define ICRNL   (1 << 1) /* Bit 1: Map CR to NL on input */
 
#define IGNBRK   (1 << 2) /* Bit 2: Ignore break condition */
 
#define IGNCR   (1 << 3) /* Bit 3: Ignore CR */
 
#define IGNPAR   (1 << 4) /* Bit 4: Ignore characters with parity errors */
 
#define INLCR   (1 << 5) /* Bit 5: Map NL to CR on input */
 
#define INPCK   (1 << 6) /* Bit 6: Enable input parity check */
 
#define ISTRIP   (1 << 7) /* Bit 7: Strip character */
 
#define IUCLC   (1 << 8) /* Bit 8: Map upper-case to lower-case on input (LEGACY) */
 
#define IXANY   (1 << 9) /* Bit 9: Enable any character to restart output */
 
#define IXOFF   (1 << 10) /* Bit 10: Enable start/stop input control */
 
#define IXON   (1 << 11) /* Bit 11: Enable start/stop output control */
 
#define PARMRK   (1 << 12) /* Bit 12: Mark parity errors */
 
#define OPOST   (1 << 0) /* Bit 0: Post-process output */
 
#define OLCUC   (1 << 1) /* Bit 1: Map lower-case to upper-case on output (LEGACY) */
 
#define ONLCR   (1 << 2) /* Bit 2: Map NL to CR-NL on output */
 
#define OCRNL   (1 << 3) /* Bit 3: Map CR to NL on output */
 
#define ONOCR   (1 << 4) /* Bit 4: No CR output at column 0 */
 
#define ONLRET   (1 << 5) /* Bit 5: NL performs CR function */
 
#define OFILL   (1 << 6) /* Bit 6: Use fill characters for delay */
 
#define NLDLY   (1 << 7) /* Bit 7: Select newline delays: */
 
#define NL0   (0 << 7) /* Newline character type 0 */
 
#define NL1   (1 << 7) /* Newline character type 1 */
 
#define CRDLY   (3 << 8) /* Bits 8-9: Select carriage-return delays: */
 
#define CR0   (0 << 8) /* Carriage-return delay type 0 */
 
#define CR1   (1 << 8) /* Carriage-return delay type 1 */
 
#define CR2   (2 << 8) /* Carriage-return delay type 2 */
 
#define CR3   (3 << 8) /* Carriage-return delay type 3 */
 
#define TABDLY   (3 << 10) /* Bit 10-11: Select horizontal-tab delays: */
 
#define TAB0   (0 << 10) /* Horizontal-tab delay type 0 */
 
#define TAB1   (1 << 10) /* Horizontal-tab delay type 1 */
 
#define TAB2   (2 << 10) /* Horizontal-tab delay type 2 */
 
#define TAB3   (3 << 10) /* Expand tabs to spaces */
 
#define BSDLY   (1 << 12) /* Bit 12: Select backspace delays: */
 
#define BS0   (0 << 12) /* Backspace-delay type 0 */
 
#define BS1   (1 << 12) /* Backspace-delay type 1 */
 
#define VTDLY   (1 << 13) /* Bit 13: Select vertical-tab delays: */
 
#define VT0   (0 << 13) /* Vertical-tab delay type 0 */
 
#define VT1   (1 << 13) /* Vertical-tab delay type 1 */
 
#define FFDLY   (1 << 14) /* Bit 14: Select form-feed delays: */
 
#define FF0   (0 << 14) /* Form-feed delay type 0 */
 
#define FF1   (1 << 14) /* Form-feed delay type 1 */
 
#define CSIZE   (3 << 0) /* Bits 0-1: Character size: */
 
#define CS5   (0 << 0) /* 5 bits */
 
#define CS6   (1 << 0) /* 6 bits */
 
#define CS7   (2 << 0) /* 7 bits */
 
#define CS8   (3 << 0) /* 8 bits */
 
#define CSTOPB   (1 << 2) /* Bit 2: Send two stop bits, else one */
 
#define CREAD   (1 << 3) /* Bit 3: Enable receiver */
 
#define PARENB   (1 << 4) /* Bit 4: Parity enable */
 
#define PARODD   (1 << 5) /* Bit 5: Odd parity, else even */
 
#define HUPCL   (1 << 6) /* Bit 6: Hang up on last close */
 
#define CLOCAL   (1 << 7) /* Bit 7: Ignore modem status lines */
 
#define CCTS_OFLOW   (1 << 8) /* Bit 8: CTS flow control of output */
 
#define CRTSCTS   CCTS_OFLOW
 
#define CRTS_IFLOW   (1 << 9) /* Bit 9: RTS flow control of input */
 
#define ECHO   (1 << 0) /* Bit 0: Enable echo */
 
#define ECHOE   (1 << 1) /* Bit 1: Echo erase character as error-correcting backspace */
 
#define ECHOK   (1 << 2) /* Bit 2: Echo KILL */
 
#define ECHONL   (1 << 3) /* Bit 3: Echo NL */
 
#define ICANON   (1 << 4) /* Bit 4: Canonical input (erase and kill processing) */
 
#define IEXTEN   (1 << 5) /* Bit 5: Enable extended input character processing */
 
#define ISIG   (1 << 6) /* Bit 6: Enable signals */
 
#define NOFLSH   (1 << 7) /* Bit 7: Disable flush after interrupt or quit */
 
#define TOSTOP   (1 << 8) /* Bit 8: Send SIGTTOU for background output */
 
#define XCASE   (1 << 9) /* Bit 9: Canonical upper/lower presentation (LEGACY) */
 
#define VEOF   0 /* Bit 0: EOF character (canonical mode) */
 
#define VMIN   VEOF /* Bit 0: MIN value (Non-canonical mode) */
 
#define VEOL   1 /* Bit 1: EOL character (canonical mode) */
 
#define VTIME   VEOL /* Bit 1: TIME value (Non-canonical mode) */
 
#define VERASE   2 /* Bit 2: ERASE character (canonical mode) */
 
#define VINTR   3 /* Bit 3: INTR character */
 
#define VKILL   4 /* Bit 4: KILL character (canonical mode) */
 
#define VQUIT   5 /* Bit 5: QUIT character */
 
#define VSTART   6 /* Bit 6: START character */
 
#define VSTOP   7 /* Bit 7: STOP character */
 
#define VSUSP   8 /* Bit 8: SUSP character */
 
#define NCCS   9 /* Bit 9: Size of the array c_cc for control characters */
 
#define B0   0 /* Hang up */
 
#define B50   50 /* 50 baud */
 
#define B75   75 /* 75 baud */
 
#define B110   110 /* 110 baud */
 
#define B134   134 /* 134.5 baud */
 
#define B150   150 /* 150 baud */
 
#define B200   200 /* 200 baud */
 
#define B300   300 /* 300 baud */
 
#define B600   600 /* 600 baud */
 
#define B1200   1200 /* 1,200 baud */
 
#define B1800   1800 /* 1,800 baud */
 
#define B2400   2400 /* 2,400 baud */
 
#define B4800   4800 /* 4,800 baud */
 
#define B9600   9600 /* 9,600 baud */
 
#define B19200   19200 /* 19,200 baud */
 
#define B38400   38400 /* 38,400 baud */
 
#define B57600   57600 /* 57,600 baud */
 
#define B115200   115200 /* 115,200 baud */
 
#define B128000   128000 /* 128,000 baud */
 
#define B230400   230400 /* 230,400 baud */
 
#define B256000   256000 /* 256,000 baud */
 
#define B460800   460800 /* 460,800 baud */
 
#define B500000   500000 /* 500,000 baud */
 
#define B576000   576000 /* 576,000 baud */
 
#define B921600   921600 /* 921,600 baud */
 
#define B1000000   1000000 /* 1,000,000 baud */
 
#define B1152000   1152000 /* 1,152,000 baud */
 
#define B1500000   1500000 /* 1,500,000 baud */
 
#define B2000000   2000000 /* 2,000,000 baud */
 
#define B2500000   2500000 /* 2,500,000 baud */
 
#define B3000000   3000000 /* 3,000,000 baud */
 
#define TCSANOW   0 /* Change attributes immediately */
 
#define TCSADRAIN   1 /* Change attributes when output has drained */
 
#define TCSAFLUSH   2 /* Change attributes when output has drained; also flush pending input */
 
#define TCIFLUSH   0 /* Flush pending input. Flush untransmitted output */
 
#define TCIOFLUSH   1 /* Flush both pending input and untransmitted output */
 
#define TCOFLUSH   2 /* Flush untransmitted output */
 
#define TCIOFF   0 /* Transmit a STOP character, intended to suspend input data */
 
#define TCION   1 /* Transmit a START character, intended to restart input data */
 
#define TCOOFF   2 /* Suspend output */
 
#define TCOON   3 /* Restart output */
 
#define EXTERN   extern
 

Typedefs

typedef uint32_t speed_t
 
typedef uint16_t tcflag_t
 
typedef int cc_t
 

Functions

int tcgetattr (int fd, FAR struct termios *termiosp)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
int tcsetattr (int fd, int options, FAR const struct termios *termiosp)
 POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 

Detailed Description

Termios APIs.

Definition in file termios.h.

Macro Definition Documentation

#define B0   0 /* Hang up */

Definition at line 178 of file termios.h.

#define B1000000   1000000 /* 1,000,000 baud */

Definition at line 204 of file termios.h.

#define B110   110 /* 110 baud */

Definition at line 181 of file termios.h.

#define B115200   115200 /* 115,200 baud */

Definition at line 196 of file termios.h.

#define B1152000   1152000 /* 1,152,000 baud */

Definition at line 205 of file termios.h.

#define B1200   1200 /* 1,200 baud */

Definition at line 187 of file termios.h.

#define B128000   128000 /* 128,000 baud */

Definition at line 197 of file termios.h.

#define B134   134 /* 134.5 baud */

Definition at line 182 of file termios.h.

#define B150   150 /* 150 baud */

Definition at line 183 of file termios.h.

#define B1500000   1500000 /* 1,500,000 baud */

Definition at line 206 of file termios.h.

#define B1800   1800 /* 1,800 baud */

Definition at line 188 of file termios.h.

#define B19200   19200 /* 19,200 baud */

Definition at line 192 of file termios.h.

#define B200   200 /* 200 baud */

Definition at line 184 of file termios.h.

#define B2000000   2000000 /* 2,000,000 baud */

Definition at line 207 of file termios.h.

#define B230400   230400 /* 230,400 baud */

Definition at line 198 of file termios.h.

#define B2400   2400 /* 2,400 baud */

Definition at line 189 of file termios.h.

#define B2500000   2500000 /* 2,500,000 baud */

Definition at line 208 of file termios.h.

#define B256000   256000 /* 256,000 baud */

Definition at line 199 of file termios.h.

#define B300   300 /* 300 baud */

Definition at line 185 of file termios.h.

#define B3000000   3000000 /* 3,000,000 baud */

Definition at line 209 of file termios.h.

#define B38400   38400 /* 38,400 baud */

Definition at line 193 of file termios.h.

#define B460800   460800 /* 460,800 baud */

Definition at line 200 of file termios.h.

#define B4800   4800 /* 4,800 baud */

Definition at line 190 of file termios.h.

#define B50   50 /* 50 baud */

Definition at line 179 of file termios.h.

#define B500000   500000 /* 500,000 baud */

Definition at line 201 of file termios.h.

#define B57600   57600 /* 57,600 baud */

Definition at line 195 of file termios.h.

#define B576000   576000 /* 576,000 baud */

Definition at line 202 of file termios.h.

#define B600   600 /* 600 baud */

Definition at line 186 of file termios.h.

#define B75   75 /* 75 baud */

Definition at line 180 of file termios.h.

#define B921600   921600 /* 921,600 baud */

Definition at line 203 of file termios.h.

#define B9600   9600 /* 9,600 baud */

Definition at line 191 of file termios.h.

#define BRKINT   (1 << 0) /* Bit 0: Signal interrupt on break */

Definition at line 77 of file termios.h.

#define BS0   (0 << 12) /* Backspace-delay type 0 */

Definition at line 114 of file termios.h.

#define BS1   (1 << 12) /* Backspace-delay type 1 */

Definition at line 115 of file termios.h.

#define BSDLY   (1 << 12) /* Bit 12: Select backspace delays: */

Definition at line 113 of file termios.h.

#define CCTS_OFLOW   (1 << 8) /* Bit 8: CTS flow control of output */

Definition at line 136 of file termios.h.

#define CLOCAL   (1 << 7) /* Bit 7: Ignore modem status lines */

Definition at line 135 of file termios.h.

#define CR0   (0 << 8) /* Carriage-return delay type 0 */

Definition at line 104 of file termios.h.

#define CR1   (1 << 8) /* Carriage-return delay type 1 */

Definition at line 105 of file termios.h.

#define CR2   (2 << 8) /* Carriage-return delay type 2 */

Definition at line 106 of file termios.h.

#define CR3   (3 << 8) /* Carriage-return delay type 3 */

Definition at line 107 of file termios.h.

#define CRDLY   (3 << 8) /* Bits 8-9: Select carriage-return delays: */

Definition at line 103 of file termios.h.

#define CREAD   (1 << 3) /* Bit 3: Enable receiver */

Definition at line 131 of file termios.h.

#define CRTS_IFLOW   (1 << 9) /* Bit 9: RTS flow control of input */

Definition at line 138 of file termios.h.

#define CRTSCTS   CCTS_OFLOW

Definition at line 137 of file termios.h.

#define CS5   (0 << 0) /* 5 bits */

Definition at line 126 of file termios.h.

#define CS6   (1 << 0) /* 6 bits */

Definition at line 127 of file termios.h.

#define CS7   (2 << 0) /* 7 bits */

Definition at line 128 of file termios.h.

#define CS8   (3 << 0) /* 8 bits */

Definition at line 129 of file termios.h.

#define CSIZE   (3 << 0) /* Bits 0-1: Character size: */

Definition at line 125 of file termios.h.

#define CSTOPB   (1 << 2) /* Bit 2: Send two stop bits, else one */

Definition at line 130 of file termios.h.

#define ECHO   (1 << 0) /* Bit 0: Enable echo */

Definition at line 142 of file termios.h.

#define ECHOE   (1 << 1) /* Bit 1: Echo erase character as error-correcting backspace */

Definition at line 143 of file termios.h.

#define ECHOK   (1 << 2) /* Bit 2: Echo KILL */

Definition at line 144 of file termios.h.

#define ECHONL   (1 << 3) /* Bit 3: Echo NL */

Definition at line 145 of file termios.h.

#define EXTERN   extern

Definition at line 274 of file termios.h.

#define FF0   (0 << 14) /* Form-feed delay type 0 */

Definition at line 120 of file termios.h.

#define FF1   (1 << 14) /* Form-feed delay type 1 */

Definition at line 121 of file termios.h.

#define FFDLY   (1 << 14) /* Bit 14: Select form-feed delays: */

Definition at line 119 of file termios.h.

#define HUPCL   (1 << 6) /* Bit 6: Hang up on last close */

Definition at line 134 of file termios.h.

#define ICANON   (1 << 4) /* Bit 4: Canonical input (erase and kill processing) */

Definition at line 146 of file termios.h.

#define ICRNL   (1 << 1) /* Bit 1: Map CR to NL on input */

Definition at line 78 of file termios.h.

#define IEXTEN   (1 << 5) /* Bit 5: Enable extended input character processing */

Definition at line 147 of file termios.h.

#define IGNBRK   (1 << 2) /* Bit 2: Ignore break condition */

Definition at line 79 of file termios.h.

#define IGNCR   (1 << 3) /* Bit 3: Ignore CR */

Definition at line 80 of file termios.h.

#define IGNPAR   (1 << 4) /* Bit 4: Ignore characters with parity errors */

Definition at line 81 of file termios.h.

#define INLCR   (1 << 5) /* Bit 5: Map NL to CR on input */

Definition at line 82 of file termios.h.

#define INPCK   (1 << 6) /* Bit 6: Enable input parity check */

Definition at line 83 of file termios.h.

#define ISIG   (1 << 6) /* Bit 6: Enable signals */

Definition at line 148 of file termios.h.

#define ISTRIP   (1 << 7) /* Bit 7: Strip character */

Definition at line 84 of file termios.h.

#define IUCLC   (1 << 8) /* Bit 8: Map upper-case to lower-case on input (LEGACY) */

Definition at line 85 of file termios.h.

#define IXANY   (1 << 9) /* Bit 9: Enable any character to restart output */

Definition at line 86 of file termios.h.

#define IXOFF   (1 << 10) /* Bit 10: Enable start/stop input control */

Definition at line 87 of file termios.h.

#define IXON   (1 << 11) /* Bit 11: Enable start/stop output control */

Definition at line 88 of file termios.h.

#define NCCS   9 /* Bit 9: Size of the array c_cc for control characters */

Definition at line 166 of file termios.h.

#define NL0   (0 << 7) /* Newline character type 0 */

Definition at line 101 of file termios.h.

#define NL1   (1 << 7) /* Newline character type 1 */

Definition at line 102 of file termios.h.

#define NLDLY   (1 << 7) /* Bit 7: Select newline delays: */

Definition at line 100 of file termios.h.

#define NOFLSH   (1 << 7) /* Bit 7: Disable flush after interrupt or quit */

Definition at line 149 of file termios.h.

#define OCRNL   (1 << 3) /* Bit 3: Map CR to NL on output */

Definition at line 96 of file termios.h.

#define OFILL   (1 << 6) /* Bit 6: Use fill characters for delay */

Definition at line 99 of file termios.h.

#define OLCUC   (1 << 1) /* Bit 1: Map lower-case to upper-case on output (LEGACY) */

Definition at line 94 of file termios.h.

#define ONLCR   (1 << 2) /* Bit 2: Map NL to CR-NL on output */

Definition at line 95 of file termios.h.

#define ONLRET   (1 << 5) /* Bit 5: NL performs CR function */

Definition at line 98 of file termios.h.

#define ONOCR   (1 << 4) /* Bit 4: No CR output at column 0 */

Definition at line 97 of file termios.h.

#define OPOST   (1 << 0) /* Bit 0: Post-process output */

Definition at line 93 of file termios.h.

#define PARENB   (1 << 4) /* Bit 4: Parity enable */

Definition at line 132 of file termios.h.

#define PARMRK   (1 << 12) /* Bit 12: Mark parity errors */

Definition at line 89 of file termios.h.

#define PARODD   (1 << 5) /* Bit 5: Odd parity, else even */

Definition at line 133 of file termios.h.

#define TAB0   (0 << 10) /* Horizontal-tab delay type 0 */

Definition at line 109 of file termios.h.

#define TAB1   (1 << 10) /* Horizontal-tab delay type 1 */

Definition at line 110 of file termios.h.

#define TAB2   (2 << 10) /* Horizontal-tab delay type 2 */

Definition at line 111 of file termios.h.

#define TAB3   (3 << 10) /* Expand tabs to spaces */

Definition at line 112 of file termios.h.

#define TABDLY   (3 << 10) /* Bit 10-11: Select horizontal-tab delays: */

Definition at line 108 of file termios.h.

#define TCIFLUSH   0 /* Flush pending input. Flush untransmitted output */

Definition at line 219 of file termios.h.

#define TCIOFF   0 /* Transmit a STOP character, intended to suspend input data */

Definition at line 225 of file termios.h.

#define TCIOFLUSH   1 /* Flush both pending input and untransmitted output */

Definition at line 220 of file termios.h.

#define TCION   1 /* Transmit a START character, intended to restart input data */

Definition at line 226 of file termios.h.

#define TCOFLUSH   2 /* Flush untransmitted output */

Definition at line 221 of file termios.h.

#define TCOOFF   2 /* Suspend output */

Definition at line 227 of file termios.h.

#define TCOON   3 /* Restart output */

Definition at line 228 of file termios.h.

#define TCSADRAIN   1 /* Change attributes when output has drained */

Definition at line 214 of file termios.h.

#define TCSAFLUSH   2 /* Change attributes when output has drained; also flush pending input */

Definition at line 215 of file termios.h.

#define TCSANOW   0 /* Change attributes immediately */

Definition at line 213 of file termios.h.

#define TOSTOP   (1 << 8) /* Bit 8: Send SIGTTOU for background output */

Definition at line 150 of file termios.h.

#define VEOF   0 /* Bit 0: EOF character (canonical mode) */

Definition at line 155 of file termios.h.

#define VEOL   1 /* Bit 1: EOL character (canonical mode) */

Definition at line 157 of file termios.h.

#define VERASE   2 /* Bit 2: ERASE character (canonical mode) */

Definition at line 159 of file termios.h.

#define VINTR   3 /* Bit 3: INTR character */

Definition at line 160 of file termios.h.

#define VKILL   4 /* Bit 4: KILL character (canonical mode) */

Definition at line 161 of file termios.h.

#define VMIN   VEOF /* Bit 0: MIN value (Non-canonical mode) */

Definition at line 156 of file termios.h.

#define VQUIT   5 /* Bit 5: QUIT character */

Definition at line 162 of file termios.h.

#define VSTART   6 /* Bit 6: START character */

Definition at line 163 of file termios.h.

#define VSTOP   7 /* Bit 7: STOP character */

Definition at line 164 of file termios.h.

#define VSUSP   8 /* Bit 8: SUSP character */

Definition at line 165 of file termios.h.

#define VT0   (0 << 13) /* Vertical-tab delay type 0 */

Definition at line 117 of file termios.h.

#define VT1   (1 << 13) /* Vertical-tab delay type 1 */

Definition at line 118 of file termios.h.

#define VTDLY   (1 << 13) /* Bit 13: Select vertical-tab delays: */

Definition at line 116 of file termios.h.

#define VTIME   VEOL /* Bit 1: TIME value (Non-canonical mode) */

Definition at line 158 of file termios.h.

#define XCASE   (1 << 9) /* Bit 9: Canonical upper/lower presentation (LEGACY) */

Definition at line 151 of file termios.h.

Typedef Documentation

typedef int cc_t

Definition at line 241 of file termios.h.

typedef uint32_t speed_t

Definition at line 236 of file termios.h.

typedef uint16_t tcflag_t

Definition at line 240 of file termios.h.