OpenCPN Partial API docs
Loading...
Searching...
No Matches
garmin_wrapper.h
1/*
2 Garmin Jeeps Interface Wrapper.
3
4 Copyright (C) 2010 David S Register
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA
19
20 */
21
22#ifndef garmin_wrapper_h
23#define garmin_wrapper_h
24
25#include <wx/wxprec.h>
26
27#ifndef WX_PRECOMP
28#include <wx/wx.h>
29#endif // precompiled header
30
31#include "navutil.h"
32
33/* Wrapped interface from higher level objects */
34int Garmin_GPS_Init(const wxString &port_name);
35int Garmin_GPS_Open(wxString &port_name);
36int Garmin_GPS_PVT_On(wxString &port_name);
37int Garmin_GPS_PVT_Off(wxString &port_name);
38int Garmin_GPS_GetPVT(void *pvt);
39void Garmin_GPS_ClosePortVerify(void);
40
41wxString Garmin_GPS_GetSaveString();
42
43int Garmin_GPS_SendWaypoints(const wxString &port_name, RoutePointList *wplist);
44int Garmin_GPS_SendRoute(const wxString &port_name, Route *pr,
45 wxGauge *pProgress);
46
47wxString GetLastGarminError(void);
48
49int Garmin_USB_On(void);
50int Garmin_USB_Off(void);
51
52#endif /* garmin_wrapper_h */
Definition: route.h:70