Found in "gnokii-working" directory, some November-patches version
[gnokii.git] / include / device.h
1 /*
2
3   $Id$
4
5   G N O K I I
6
7   A Linux/Unix toolset and driver for Nokia mobile phones.
8
9   Copyright (C) 1999, 2000 Hugh Blemings & Pavel Janík ml.
10
11   Released under the terms of the GNU GPL, see file COPYING for more details.
12
13   Header file device access code.
14
15   $Log$
16   Revision 1.1.1.1  2001/11/25 21:59:19  short
17   :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
18
19   Revision 1.10  2001/08/20 23:27:37  pkot
20   Add hardware shakehand to the link layer (Manfred Jonsson)
21
22   Revision 1.9  2001/06/28 00:28:45  pkot
23   Small docs updates (Pawel Kot)
24
25
26 */
27
28 #ifndef __device_h
29 #define __device_h
30
31 #include <unistd.h>
32 #include "misc.h"
33 #include "gsm-common.h"
34
35 int device_getfd(void);
36
37 int device_open(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake, GSM_ConnectionType device_type);
38 void device_close(void);
39 void device_reset(void);
40
41 void device_setdtrrts(int __dtr, int __rts);
42 void device_changespeed(int __speed);
43
44 size_t device_read(__ptr_t __buf, size_t __nbytes);
45 size_t device_write(__const __ptr_t __buf, size_t __n);
46
47 int device_select(struct timeval *timeout);
48
49 #endif  /* __device_h */