aboutsummaryrefslogtreecommitdiff
path: root/apps/gps/nmealib/nmea/tok.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gps/nmealib/nmea/tok.h')
-rw-r--r--apps/gps/nmealib/nmea/tok.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/apps/gps/nmealib/nmea/tok.h b/apps/gps/nmealib/nmea/tok.h
new file mode 100644
index 000000000..8f948dd2d
--- /dev/null
+++ b/apps/gps/nmealib/nmea/tok.h
@@ -0,0 +1,31 @@
+/*
+ *
+ * NMEA library
+ * URL: http://nmea.sourceforge.net
+ * Author: Tim (xtimor@gmail.com)
+ * Licence: http://www.gnu.org/licenses/lgpl.html
+ * $Id: tok.h 4 2007-08-27 13:11:03Z xtimor $
+ *
+ */
+
+#ifndef __NMEA_TOK_H__
+#define __NMEA_TOK_H__
+
+#include "config.h"
+#include <string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int nmea_calc_crc(const char *buff, int buff_sz);
+int nmea_atoi(const char *str, int str_sz, int radix);
+float nmea_atof(const char *str, int str_sz);
+int nmea_printf(char *buff, int buff_sz, const char *format, ...);
+int nmea_scanf(const char *buff, int buff_sz, const char *format, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __NMEA_TOK_H__ */