Guido Ottaviani / Mbed 2 deprecated LeonardoMbos

Dependencies:   mbos Watchdog TextLCD mbed ConfigFile

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers generate.h Source File

generate.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: generate.h 4 2007-08-27 13:11:03Z xtimor $
00008  *
00009  */
00010 
00011 #ifndef __NMEA_GENERATE_H__
00012 #define __NMEA_GENERATE_H__
00013 
00014 #include "sentence.h "
00015 
00016 #ifdef  __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 int     nmea_generate(
00021         char *buff, int buff_sz,    /* buffer */
00022         const nmeaINFO *info,       /* source info */
00023         int generate_mask           /* mask of sentence`s (e.g. GPGGA | GPGSA) */
00024         );
00025 
00026 int     nmea_gen_GPGGA(char *buff, int buff_sz, nmeaGPGGA *pack);
00027 int     nmea_gen_GPGSA(char *buff, int buff_sz, nmeaGPGSA *pack);
00028 int     nmea_gen_GPGSV(char *buff, int buff_sz, nmeaGPGSV *pack);
00029 int     nmea_gen_GPRMC(char *buff, int buff_sz, nmeaGPRMC *pack);
00030 int     nmea_gen_GPVTG(char *buff, int buff_sz, nmeaGPVTG *pack);
00031 
00032 void    nmea_info2GPGGA(const nmeaINFO *info, nmeaGPGGA *pack);
00033 void    nmea_info2GPGSA(const nmeaINFO *info, nmeaGPGSA *pack);
00034 void    nmea_info2GPRMC(const nmeaINFO *info, nmeaGPRMC *pack);
00035 void    nmea_info2GPVTG(const nmeaINFO *info, nmeaGPVTG *pack);
00036 
00037 int     nmea_gsv_npack(int sat_count);
00038 void    nmea_info2GPGSV(const nmeaINFO *info, nmeaGPGSV *pack, int pack_idx);
00039 
00040 #ifdef  __cplusplus
00041 }
00042 #endif
00043 
00044 #endif /* __NMEA_GENERATE_H__ */