summaryrefslogtreecommitdiffstats
path: root/gatchat/gatsyntax.h
diff options
context:
space:
mode:
authorDenis Kenzior <denis.kenzior@intel.com>2009-09-04 13:25:30 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-09-04 20:37:48 -0500
commit740312f8fb7525d2a2f9363dc4634aa3052edd68 (patch)
treec89dfc19414875cb4a79985a6545d88f12c79a5a /gatchat/gatsyntax.h
parentf84a37bb001ca2ca29128e3a8f1edf2dfeca46c0 (diff)
downloadofono-740312f8fb7525d2a2f9363dc4634aa3052edd68.tar.bz2
Add GSM Permissive parser
Diffstat (limited to 'gatchat/gatsyntax.h')
-rw-r--r--gatchat/gatsyntax.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gatchat/gatsyntax.h b/gatchat/gatsyntax.h
index 57edeade..d0d9254b 100644
--- a/gatchat/gatsyntax.h
+++ b/gatchat/gatsyntax.h
@@ -63,8 +63,20 @@ struct _GAtSyntax {
GAtSyntax *g_at_syntax_new_full(GAtSyntaxFeedFunc feed,
GAtSyntaxSetHintFunc hint,
int initial_state);
+
+/* This syntax implements very strict checking of 27.007 standard, which means
+ * it might not work with a majority of modems. However, it does handle echo
+ * properly and can be used to detect a modem's deviations from the relevant
+ * standards.
+ */
GAtSyntax *g_at_syntax_new_gsmv1();
+/* This syntax implements an extremely lax parser that can handle a variety
+ * of modems. Unfortunately it does not deal with echo at all, so echo must
+ * be explicitly turned off before using the parser
+ */
+GAtSyntax *g_at_syntax_new_gsm_permissive();
+
GAtSyntax *g_at_syntax_ref(GAtSyntax *syntax);
void g_at_syntax_unref(GAtSyntax *syntax);