This commit was generated by cvs2svn to compensate for changes in r158,
[gnokii.git] / include / protocol / at.h
1 /*
2
3   G N O K I I
4
5   A Linux/Unix toolset and driver for Nokia mobile phones.
6
7   Released under the terms of the GNU GPL, see file COPYING for more details.
8
9   Header file for the various functions, definitions etc. used to implement
10   the handset interface.  See AT-6110.c for more details.
11
12 */
13
14 #ifndef __AT_h
15 #define __AT_h
16
17 #include "gsm-api.h"
18
19 #define AT_MAX_RECEIVE_LENGTH 2000
20 #define AT_MAX_CONTENT_LENGTH 2000
21
22 /* Global variables */
23 extern GSM_Protocol    AT_Functions;
24
25 /* States for receive code. */
26
27 GSM_Error AT_Initialise(char *port_device, char *initlength,
28                           GSM_ConnectionType connection,
29                           void (*rlp_callback)(RLP_F96Frame *frame));
30
31 int AT_SendMessage(u16 message_length, u8 message_type, u8 *buffer);
32 int AT_SendFrame(u16 message_length, u8 message_type, u8 *buffer);
33 void AT_Terminate(void);
34 void AT_RX_StateMachine(unsigned char rx_byte);
35 bool AT_WritePhone (u16 length, u8 *buffer);
36
37 #endif /* __AT_h */