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 /****************************************************************************
3  ** serial.c ****************************************************************
4  ****************************************************************************
5  *
6  * common routines for hardware that uses the standard serial port driver
7  * @ingroup private_api
8  *
9  * Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de>
10  *
11  */
12 
28 #ifndef _SERIAL_H
29 #define _SERIAL_H
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
41 int tty_reset(int fd);
42 
49 int tty_setrtscts(int fd, int enable);
50 
58 int tty_setdtr(int fd, int enable);
59 
68 int tty_setbaud(int fd, int baud);
69 
77 int tty_setcsize(int fd, int csize);
78 
86 int tty_create_lock(const char* name);
87 
93 int tty_delete_lock(void);
94 
103 int tty_set(int fd, int rts, int dtr);
104 
113 int tty_clear(int fd, int rts, int dtr);
114 
122 int tty_write(int fd, char byte);
123 
131 int tty_read(int fd, char* byte);
132 
133 
143 int tty_write_echo(int fd, char byte);
144 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif
int tty_setrtscts(int fd, int enable)
Definition: serial.c:67
int tty_setdtr(int fd, int enable)
Definition: serial.c:89
int tty_delete_lock(void)
Definition: serial.c:452
int tty_reset(int fd)
Definition: serial.c:49
int tty_create_lock(const char *name)
Definition: serial.c:304
int tty_write(int fd, char byte)
Definition: serial.c:548
int tty_clear(int fd, int rts, int dtr)
Definition: serial.c:534
int tty_setcsize(int fd, int csize)
Definition: serial.c:261
int tty_write_echo(int fd, char byte)
Definition: serial.c:594
int tty_read(int fd, char *byte)
Definition: serial.c:566
int tty_setbaud(int fd, int baud)
Definition: serial.c:117
int tty_set(int fd, int rts, int dtr)
Definition: serial.c:520