/* $Id$ G N O K I I A Linux/Unix toolset and driver for Nokia mobile phones. Copyright (C) 1999, 2000 Hugh Blemings & Pavel Janík ml. Released under the terms of the GNU GPL, see file COPYING for more details. Header file device access code. $Log$ Revision 1.1.1.1 2001/11/25 21:59:19 short :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001 Revision 1.10 2001/08/20 23:27:37 pkot Add hardware shakehand to the link layer (Manfred Jonsson) Revision 1.9 2001/06/28 00:28:45 pkot Small docs updates (Pawel Kot) */ #ifndef __device_h #define __device_h #include #include "misc.h" #include "gsm-common.h" int device_getfd(void); int device_open(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake, GSM_ConnectionType device_type); void device_close(void); void device_reset(void); void device_setdtrrts(int __dtr, int __rts); void device_changespeed(int __speed); size_t device_read(__ptr_t __buf, size_t __nbytes); size_t device_write(__const __ptr_t __buf, size_t __n); int device_select(struct timeval *timeout); #endif /* __device_h */