ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
|
Data Structures | |
struct | Gps_Time |
struct | Gps_Data |
Typedefs | |
typedef struct Gps_Time | GPS_TIME |
typedef struct Gps_Data | GPS_DATA |
Functions | |
INT32 | MX_RTU_GPS_Start (UINT8 activeAntenna) |
INT32 | MX_RTU_GPS_Stop (void) |
void | MX_RTU_GPS_Get_Info (GPS_DATA *gpsData) |
Sample Code:
gps_info.c
This function starts the GPS function of cellular modem
[in] | activeAntenna | 0:passive antenna, 1:active antenna |
INT32 MX_RTU_GPS_Stop | ( | void | ) |
This function stops the GPS function of cellular modem
void MX_RTU_GPS_Get_Info | ( | GPS_DATA * | gpsData | ) |
After starting the GPS function, you can use this function to retrieve GPS info.
[out] | gpsData | The buffer stores the current GPS information |