7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Released under the terms of the GNU GPL, see file COPYING for more details.
11 Header file for AT emulator code.
15 #ifndef __data_at_emulator_h
16 #define __data_at_emulator_h
19 bool ATEM_Initialise(int read_fd, int write_fd, char *model, char *port);
20 void ATEM_HandleIncomingData(char *buffer, int length);
21 void ATEM_ModemResult(int code);
22 void ATEM_CallPassup(char c);
24 /* Global variables */
25 extern bool ATEM_Initialised;
27 /* Definition of modem result codes - these are returned to "terminal"
28 numerically or as a string depending on the setting of S12 */
30 /* FIX ME - Numeric values for everything except OK and ERROR
31 are guesses as I've not got an AT reference handy. HAB */
35 #define MR_NOCARRIER (5)
36 #define MR_CARRIER (2)
37 #define MR_CONNECT (3)
40 /* All defines and prototypes from here down are specific to
41 the at-emulator code and so are #ifdef out if __at_emulator_c isn't
43 #ifdef __data_at_emulator_c
46 #define MAX_CMD_BUFFERS (2)
47 #define CMD_BUFFER_LENGTH (100)
49 /* Definition of some special Registers of AT-Emulator, pinched in
50 part from ISDN driver in Linux kernel */
61 #define REG_RESPNUM 12
77 #define MAX_MODEM_REGISTERS 20
79 /* Message format definitions */
82 #define INTERACT_MODE 2
84 #endif /* __data_at_emulator_c */
86 #endif /* __data_at_emulator_h */