libmcm  1.4.0
A client library for Moxa Connection Management
mcm-gps.h
Go to the documentation of this file.
1 
7 #ifndef _MCM_GPS_H_
8 #define _MCM_GPS_H_
9 
20 int mcm_gps_control(char *interfaceName, int enabled);
21 
30 int mcm_gps_get_state(char *interfaceName);
31 
40 int mcm_gps_get_capability(char *interfaceName);
41 
42 enum {
43  GPS_STATE_UNKNOWN = -1,
44  GPS_STATE_DISABLED = 0,
45  GPS_STATE_ENABLED = 1,
46 };
47 
48 enum {
49  GPS_CAPAILITY_UNKNOWN = -1,
50  GPS_CAPAILITY_NOSUPPORT = 0,
51  GPS_CAPAILITY_SUPPORT = 1,
52 };
53 #endif
bool enabled
Definition: mcm-base-info.h:0
int mcm_gps_control(char *interfaceName, int enabled)
A helper function to enable/disable GPS.
Definition: mcm-gps.c:16
int mcm_gps_get_capability(char *interfaceName)
A helper function to get GPS capability.
Definition: mcm-gps.c:107
int mcm_gps_get_state(char *interfaceName)
A helper function to get GPS state.
Definition: mcm-gps.c:59