OpenCPN Partial API docs
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 <wx/string.h>
32 
33 #include "model/route.h"
34 #include "model/comm_n0183_output.h"
35 
36 /* Wrapped interface from higher level objects */
37 int Garmin_GPS_Init(const wxString &port_name);
38 int Garmin_GPS_Open(wxString &port_name);
39 int Garmin_GPS_PVT_On(wxString &port_name);
40 int Garmin_GPS_PVT_Off(wxString &port_name);
41 int Garmin_GPS_GetPVT(void *pvt);
42 void Garmin_GPS_ClosePortVerify(void);
43 
44 wxString Garmin_GPS_GetSaveString();
45 
46 int Garmin_GPS_SendWaypoints(const wxString &port_name, RoutePointList *wplist);
47 int Garmin_GPS_SendRoute(const wxString &port_name, Route *pr,
48  N0183DlgCtx dlg_ctx);
49 
50 wxString GetLastGarminError(void);
51 
52 int Garmin_USB_On(void);
53 int Garmin_USB_Off(void);
54 
55 #endif /* garmin_wrapper_h */
Definition: route.h:75