forked from GPSBabel/gpsbabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gpscom.h
47 lines (33 loc) · 2.32 KB
/
gpscom.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef gpscom_h
#define gpscom_h
#include "gps.h"
#include <ctime>
int32 GPS_Command_Off(const char* port);
time_t GPS_Command_Get_Time(const char* port);
int32 GPS_Command_Send_Time(const char* port, time_t Time);
int32 GPS_Command_Get_Position(const char* port, double* lat, double* lon);
int32 GPS_Command_Send_Position(const char* port, double lat, double lon);
int32 GPS_Command_Pvt_On(const char* port, gpsdevh** fd);
int32 GPS_Command_Pvt_Off(const char* port, gpsdevh** fd);
int32 GPS_Command_Pvt_Get(gpsdevh** fd, GPS_PPvt_Data* pvt);
int32 GPS_Command_Get_Almanac(const char* port, GPS_PAlmanac** alm);
int32 GPS_Command_Send_Almanac(const char* port, GPS_PAlmanac* alm, int32 n);
int32 GPS_Command_Get_Track(const char* port, GPS_PTrack** trk, int (*cb)(int, struct GPS_SWay**));
int32 GPS_Command_Send_Track(const char* port, GPS_PTrack* trk, int32 n, int eraset);
int32 GPS_Command_Get_Waypoint(const char* port, GPS_PWay** way,int (*cb)(int, struct GPS_SWay**));
int32 GPS_Command_Send_Waypoint(const char* port, GPS_PWay* way, int32 n, int (*cb)(struct GPS_SWay**));
int32 GPS_Command_Get_Proximity(const char* port, GPS_PWay** way);
int32 GPS_Command_Send_Proximity(const char* port, GPS_PWay* way, int32 n);
int32 GPS_Command_Get_Route(const char* port, GPS_PWay** way);
int32 GPS_Command_Send_Route(const char* port, GPS_PWay* way, int32 n);
int32 GPS_Command_Get_Lap(const char* port, GPS_PLap** lap, int (*cb)(int, struct GPS_SWay**));
int32 GPS_Command_Send_Course(const char* port, GPS_PCourse* crs, GPS_PCourse_Lap* clp,
GPS_PTrack* trk, GPS_PCourse_Point* cpt,
int32 n_crs, int32 n_clp, int32 n_trk, int32 n_cpt);
int32 GPS_Command_Send_Track_As_Course(const char* port, GPS_PTrack* trk, int32 n_trk,
GPS_PWay* wpt, int32 n_wpt, int eraset);
int32 GPS_Command_Get_Workout(const char* port, void** lap, int (*cb)(int, struct GPS_SWay**));
int32 GPS_Command_Get_Fitness_User_Profile(const char* port, void** lap, int (*cb)(int, struct GPS_SWay**));
int32 GPS_Command_Get_Workout_Limits(const char* port, void** lap, int (*cb)(int, struct GPS_SWay**));
int32 GPS_Command_Get_Course_Limits(const char* port, void** lap, int (*cb)(int, struct GPS_SWay**));
#endif