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, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef garmin_wrapper_h
21#define garmin_wrapper_h
22
23#include <wx/wxprec.h>
24
25#ifndef WX_PRECOMP
26#include <wx/wx.h>
27#endif // precompiled header
28
29#include <wx/string.h>
30
31#include "model/route.h"
33
34/* Wrapped interface from higher level objects */
35int Garmin_GPS_Init(const wxString &port_name);
36int Garmin_GPS_Open(wxString &port_name);
37int Garmin_GPS_PVT_On(wxString &port_name);
38int Garmin_GPS_PVT_Off(wxString &port_name);
39int Garmin_GPS_GetPVT(void *pvt);
40void Garmin_GPS_ClosePortVerify(void);
41
42wxString Garmin_GPS_GetSaveString();
43
44int Garmin_GPS_SendWaypoints(const wxString &port_name, RoutePointList *wplist);
45int Garmin_GPS_SendRoute(const wxString &port_name, Route *pr,
46 N0183DlgCtx dlg_ctx);
47
48wxString GetLastGarminError(void);
49
50int Garmin_USB_On(void);
51int Garmin_USB_Off(void);
52
53#endif /* garmin_wrapper_h */
Represents a navigational route in the navigation system.
Definition route.h:99
NMEA Data Multiplexer Object.
Route abstraction.