/* $Id: serial.h,v 5.4 2006/11/22 21:28:39 lirc Exp $ */ /**************************************************************************** ** serial.c **************************************************************** **************************************************************************** * * common routines for hardware that uses the standard serial port driver * * Copyright (C) 1999 Christoph Bartelmus * */ #ifndef _SERIAL_H #define _SERIAL_H int tty_reset(int fd); int tty_setrtscts(int fd,int enable); int tty_setdtr(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