File: serial.h

package info (click to toggle)
lirc 0.7.1pre2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,852 kB
  • ctags: 2,924
  • sloc: ansic: 31,205; sh: 12,021; makefile: 631
file content (28 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*      $Id: serial.h,v 5.3 2005/01/22 10:40:42 lirc Exp $      */

/****************************************************************************
 ** serial.c ****************************************************************
 ****************************************************************************
 *
 * common routines for hardware that uses the standard serial port driver
 * 
 * Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de>
 *
 */

#ifndef _SERIAL_H
#define _SERIAL_H

int tty_reset(int fd);
int tty_setrtscts(int fd,int enable);
int tty_setbaud(int fd,int baud);
int tty_setcsize(int fd,int csize);
int tty_create_lock(char *name);
int tty_delete_lock(void);
int tty_set(int fd,int rts,int dtr);
int tty_clear(int fd,int rts,int dtr);
int tty_write(int fd,char byte);
int tty_read(int fd,char *byte);
int tty_write_echo(int fd,char byte);

#endif