![]() |
Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
|
Go to the source code of this file.
Data Structures | |
| struct | termios |
| struct | winsize |
Typedefs | |
| typedef unsigned char | cc_t |
| typedef unsigned int | speed_t |
| typedef unsigned int | tcflag_t |
Functions | |
| int | tcgetattr (int fd, struct termios *termios_p) |
| Read the settings of the terminal a descriptor refers to. More... | |
| int | tcsetattr (int fd, int actions, const struct termios *termios_p) |
| Replace the settings of the terminal a descriptor refers to. More... | |
The knobs of the line discipline, see drivers/periph/uart.c
| int tcgetattr | ( | int | fd, |
| struct termios * | termios_p | ||
| ) |
Read the settings of the terminal a descriptor refers to.
| fd | The file descriptor to provide. |
| termios_p | The buffer for returning the settings. |
| int | 0 on success and -1 on error, with the reason left in errno. |
| int tcsetattr | ( | int | fd, |
| int | actions, | ||
| const struct termios * | termios_p | ||
| ) |
Replace the settings of the terminal a descriptor refers to.
| fd | The file descriptor to provide. |
| actions | When the change takes effect. Tenok does not buffer, so every one of them takes effect at once. |
| termios_p | The settings to apply. |
| int | 0 on success and -1 on error, with the reason left in errno. |