| ioPAC RTU Controllers C/C++ Sample Code Programming Guide

- Main Page
- Modules
- Data Structures
- Files

Data Structures | Typedefs | Functions
GPS
Library » Cellular

## 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)

## Detailed Description

Sample Code:
gps_info.c

## Typedef Documentation

typedef struct Gps_Time GPS_TIME

typedef struct Gps_Data GPS_DATA

## Function Documentation

INT32 MX_RTU_GPS_Start | ( | UINT8 | activeAntenna | ) |

This function starts the GPS function of cellular modem

Parameters

  [in] | activeAntenna | 0:passive antenna, 1:active antenna

Returns
  Please refer to MODEM_ERR_CODE . On success, MODEM_ERR_OK is returned.

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.

Parameters

  [out] | gpsData | The buffer stores the current GPS information