5 A Linux/Unix toolset and driver for Nokia mobile phones.
7 Released under the terms of the GNU GPL, see file COPYING for more details.
9 Header file device access code.
18 /* Maximum length of device name for serial port */
19 #define GSM_MAX_DEVICE_NAME_LENGTH (100)
21 /* Type of connection. Now we support serial connection with FBUS cable and
22 IR (only with 61x0 models) and MBUS (61x0, 640, 6160) */
24 GCT_FBUS, /* FBUS connection. */
26 GCT_Infrared, /* FBUS over direct infrared connection - 61xx. */
27 GCT_Irda, /* FBUS over Irda sockets - 7110, 6210, etc. */
29 GCT_DLR3, /* FBUS over DLR3 cable */
30 GCT_Tekram, /* FBUS over direct infrared connection (Tekram device) - 61xx. */
31 GCT_AT, /* AT commands */
32 GCT_Default /* Old style module */
40 size_t device_write(__const __ptr_t __buf, size_t __n);
42 size_t device_write(const __ptr_t __buf, size_t __n);
45 void device_close(void);
47 void device_setdtrrts(int __dtr, int __rts);
48 void device_changespeed(int __speed);
51 extern char PortDevice[GSM_MAX_DEVICE_NAME_LENGTH];
53 bool StartConnection (char *port_device, bool with_odd_parity, GSM_ConnectionType con);
55 #endif /* __device_h */