LIRC libraries
LinuxInfraredRemoteControl
|
Common routines for hw that uses the standard serial port driver. More...
Go to the source code of this file.
Functions | |
int | tty_reset (int fd) |
Set the cfmakeraw termio options. More... | |
int | tty_setrtscts (int fd, int enable) |
Set/clear CTS control line. More... | |
int | tty_setdtr (int fd, int enable) |
Set/clear DTR control line. More... | |
int | tty_setbaud (int fd, int baud) |
Set the speed a. More... | |
int | tty_setcsize (int fd, int csize) |
Set the character size. More... | |
int | tty_create_lock (const char *name) |
Creates a lock file of the type /var/local/LCK. More... | |
int | tty_delete_lock (void) |
Delete any legacy lock(s) owned by this process. More... | |
int | tty_set (int fd, int rts, int dtr) |
Set RTS and DTR control lines. More... | |
int | tty_clear (int fd, int rts, int dtr) |
Clear RTS and DTR control lines. More... | |
int | tty_write (int fd, char byte) |
Write a single byte to serial device. More... | |
int | tty_read (int fd, char *byte) |
Read a single byte from serial device. More... | |
int | tty_write_echo (int fd, char byte) |
Write a single byte and check the echo from remote party. More... | |
Common routines for hw that uses the standard serial port driver.
Here is create_lock and delete_lock which manages the legacy, serial lock files. The other functions are wrappers for the termio(7) IOCTL commands.
Definition in file serial.h.