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