This commit was manufactured by cvs2svn to create branch 'decode'.
[gnokii.git] / include / protocol / at.h
diff --git a/include/protocol/at.h b/include/protocol/at.h
new file mode 100644 (file)
index 0000000..054e2ea
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+
+  G N O K I I
+
+  A Linux/Unix toolset and driver for Nokia mobile phones.
+
+  Released under the terms of the GNU GPL, see file COPYING for more details.
+
+  Header file for the various functions, definitions etc. used to implement
+  the handset interface.  See AT-6110.c for more details.
+
+*/
+
+#ifndef __AT_h
+#define __AT_h
+
+#include "gsm-api.h"
+
+#define AT_MAX_RECEIVE_LENGTH 2000
+#define AT_MAX_CONTENT_LENGTH 2000
+
+/* Global variables */
+extern GSM_Protocol    AT_Functions;
+
+/* States for receive code. */
+
+GSM_Error AT_Initialise(char *port_device, char *initlength,
+                          GSM_ConnectionType connection,
+                          void (*rlp_callback)(RLP_F96Frame *frame));
+
+int AT_SendMessage(u16 message_length, u8 message_type, u8 *buffer);
+int AT_SendFrame(u16 message_length, u8 message_type, u8 *buffer);
+void AT_Terminate(void);
+void AT_RX_StateMachine(unsigned char rx_byte);
+bool AT_WritePhone (u16 length, u8 *buffer);
+
+#endif /* __AT_h */