LIRC libraries
LinuxInfraredRemoteControl
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
serial.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** serial.c ****************************************************************
3 ****************************************************************************
4 *
5 * common routines for hardware that uses the standard serial port driver
6 * @ingroup private_api
7 *
8 * Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de>
9 *
10 */
11 
27 #ifndef _SERIAL_H
28 #define _SERIAL_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
40 int tty_reset(int fd);
41 
48 int tty_setrtscts(int fd, int enable);
49 
57 int tty_setdtr(int fd, int enable);
58 
67 int tty_setbaud(int fd, int baud);
68 
76 int tty_setcsize(int fd, int csize);
77 
84 int tty_create_lock(const char* name);
85 
91 int tty_delete_lock(void);
92 
101 int tty_set(int fd, int rts, int dtr);
102 
111 int tty_clear(int fd, int rts, int dtr);
112 
120 int tty_write(int fd, char byte);
121 
129 int tty_read(int fd, char* byte);
130 
131 
141 int tty_write_echo(int fd, char byte);
142 
145 #ifdef __cplusplus
146 }
147 #endif
148 
149 #endif
int tty_setrtscts(int fd, int enable)
Definition: serial.c:67
int tty_setdtr(int fd, int enable)
Definition: serial.c:88
int tty_delete_lock(void)
Definition: serial.c:440
int tty_reset(int fd)
Definition: serial.c:49
int tty_create_lock(const char *name)
Definition: serial.c:297
int tty_write(int fd, char byte)
Definition: serial.c:536
int tty_clear(int fd, int rts, int dtr)
Definition: serial.c:522
int tty_setcsize(int fd, int csize)
Definition: serial.c:260
int tty_write_echo(int fd, char byte)
Definition: serial.c:574
int tty_read(int fd, char *byte)
Definition: serial.c:554
int tty_setbaud(int fd, int baud)
Definition: serial.c:115
int tty_set(int fd, int rts, int dtr)
Definition: serial.c:508