2015-11-08 01:57:02 +00:00
|
|
|
|
2016-03-20 23:23:09 +00:00
|
|
|
/* dwgpsnmea.h - For reading NMEA sentences over serial port */
|
2015-11-08 01:57:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef DWGPSNMEA_H
|
|
|
|
#define DWGPSNMEA_H 1
|
|
|
|
|
|
|
|
#include "dwgps.h" /* for dwfix_t */
|
|
|
|
#include "config.h"
|
2016-03-20 23:23:09 +00:00
|
|
|
#include "serial_port.h" /* for MYFDTYPE */
|
2015-11-08 01:57:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
int dwgpsnmea_init (struct misc_config_s *pconfig, int debug);
|
|
|
|
|
2016-03-20 23:23:09 +00:00
|
|
|
MYFDTYPE dwgpsnmea_get_fd(char *wp_port_name, int speed);
|
|
|
|
|
2015-11-08 01:57:02 +00:00
|
|
|
void dwgpsnmea_term (void);
|
|
|
|
|
|
|
|
|
|
|
|
dwfix_t dwgpsnmea_gprmc (char *sentence, int quiet, double *odlat, double *odlon, float *oknots, float *ocourse);
|
|
|
|
|
|
|
|
dwfix_t dwgpsnmea_gpgga (char *sentence, int quiet, double *odlat, double *odlon, float *oalt, int *onsat);
|
|
|
|
|
2016-03-20 23:23:09 +00:00
|
|
|
|
2015-11-08 01:57:02 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* end dwgpsnmea.h */
|
|
|
|
|
|
|
|
|
|
|
|
|