Guido Ottaviani / Mbed 2 deprecated LeonardoMbos

Dependencies:   mbos Watchdog TextLCD mbed ConfigFile

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers context.h Source File

context.h

00001 /*
00002  *
00003  * NMEA library
00004  * URL: http://nmea.sourceforge.net
00005  * Author: Tim (xtimor@gmail.com)
00006  * Licence: http://www.gnu.org/licenses/lgpl.html
00007  * $Id: context.h 4 2007-08-27 13:11:03Z xtimor $
00008  *
00009  */
00010 
00011 #ifndef __NMEA_CONTEXT_H__
00012 #define __NMEA_CONTEXT_H__
00013 
00014 #include "config.h"
00015 
00016 #define NMEA_DEF_PARSEBUFF  (1024)
00017 #define NMEA_MIN_PARSEBUFF  (256)
00018 
00019 #ifdef  __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 typedef void (*nmeaTraceFunc)(const char *str, int str_size);
00024 typedef void (*nmeaErrorFunc)(const char *str, int str_size);
00025 
00026 typedef struct _nmeaPROPERTY
00027 {
00028     nmeaTraceFunc   trace_func;
00029     nmeaErrorFunc   error_func;
00030     int             parse_buff_size;
00031 
00032 } nmeaPROPERTY;
00033 
00034 nmeaPROPERTY * nmea_property();
00035 
00036 void nmea_trace(const char *str, ...);
00037 void nmea_trace_buff(const char *buff, int buff_size);
00038 void nmea_error(const char *str, ...);
00039 
00040 #ifdef  __cplusplus
00041 }
00042 #endif
00043 
00044 #endif /* __NMEA_CONTEXT_H__ */