le_gnss_common.h File Reference

#include "legato.h"

Go to the source code of this file.

Macros

#define LE_GNSS_SUPL_SERVER_URL_MAX_LEN   256
 
#define LE_GNSS_SUPL_SERVER_URL_MAX_BYTES   257
 
#define LE_GNSS_SUPL_CERTIFICATE_MAX_LEN   2000
 
#define LE_GNSS_SUPL_CERTIFICATE_MAX_BYTES   2001
 
#define LE_GNSS_SV_INFO_MAX_LEN   80
 
#define LE_GNSS_NMEA_SENTENCES_MAX   32505855
 
#define LE_GNSS_MIN_ELEVATION_MAX_DEGREE   90
 
#define LE_GNSS_PRN_OFFSET_GPS   0
 
#define LE_GNSS_PRN_OFFSET_SBAS   87
 
#define LE_GNSS_PRN_OFFSET_GLONASS   -64
 
#define LE_GNSS_PRN_OFFSET_GALILEO   -300
 
#define LE_GNSS_PRN_OFFSET_BEIDOU   -200
 
#define LE_GNSS_PRN_OFFSET_QZSS   0
 
#define LE_GNSS_CONSTELLATION_GPS   0x1
 North American satellite navigation system. More...
 
#define LE_GNSS_CONSTELLATION_GLONASS   0x2
 Russian satellite navigation system.
 
#define LE_GNSS_CONSTELLATION_BEIDOU   0x4
 Chinese satellite navigation system.
 
#define LE_GNSS_CONSTELLATION_GALILEO   0x8
 European Union satellite navigation system.
 
#define LE_GNSS_CONSTELLATION_SBAS   0x10
 
#define LE_GNSS_CONSTELLATION_QZSS   0x20
 Japanese satellite navigation system.
 
#define LE_GNSS_NMEA_MASK_GPGGA   0x1
 
#define LE_GNSS_NMEA_MASK_GPGSA   0x2
 
#define LE_GNSS_NMEA_MASK_GPGSV   0x4
 
#define LE_GNSS_NMEA_MASK_GPRMC   0x8
 
#define LE_GNSS_NMEA_MASK_GPVTG   0x10
 
#define LE_GNSS_NMEA_MASK_GLGSV   0x20
 
#define LE_GNSS_NMEA_MASK_GNGNS   0x40
 
#define LE_GNSS_NMEA_MASK_GNGSA   0x80
 
#define LE_GNSS_NMEA_MASK_GAGGA   0x100
 
#define LE_GNSS_NMEA_MASK_GAGSA   0x200
 
#define LE_GNSS_NMEA_MASK_GAGSV   0x400
 
#define LE_GNSS_NMEA_MASK_GARMC   0x800
 
#define LE_GNSS_NMEA_MASK_GAVTG   0x1000
 
#define LE_GNSS_NMEA_MASK_PSTIS   0x2000
 
#define LE_GNSS_NMEA_MASK_REMOVED   0x4000
 
#define LE_GNSS_NMEA_MASK_PTYPE   0x8000
 
#define LE_GNSS_NMEA_MASK_GPGRS   0x10000
 
#define LE_GNSS_NMEA_MASK_GPGLL   0x20000
 
#define LE_GNSS_NMEA_MASK_DEBUG   0x40000
 
#define LE_GNSS_NMEA_MASK_GPDTM   0x80000
 
#define LE_GNSS_NMEA_MASK_GAGNS   0x100000
 
#define LE_GNSS_NMEA_MASK_GPGNS   0x200000
 
#define LE_GNSS_NMEA_MASK_GPGST   0x400000
 
#define LE_GNSS_NMEA_MASK_GPZDA   0x800000
 
#define LE_GNSS_NMEA_MASK_PSIDX   0x1000000
 

Typedefs

typedef struct le_gnss_Sample * le_gnss_SampleRef_t
 
typedef uint32_t le_gnss_ConstellationBitMask_t
 
typedef uint32_t le_gnss_NmeaBitMask_t
 
typedef struct le_gnss_PositionHandler * le_gnss_PositionHandlerRef_t
 
typedef void(* le_gnss_PositionHandlerFunc_t) (le_gnss_SampleRef_t positionSampleRef, void *contextPtr)
 

Enumerations

enum  le_gnss_State_t {
  LE_GNSS_STATE_UNINITIALIZED = 0, LE_GNSS_STATE_READY = 1, LE_GNSS_STATE_ACTIVE = 2, LE_GNSS_STATE_DISABLED = 3,
  LE_GNSS_STATE_MAX = 4
}
 
enum  le_gnss_FixState_t { LE_GNSS_STATE_FIX_NO_POS = 0, LE_GNSS_STATE_FIX_2D = 1, LE_GNSS_STATE_FIX_3D = 2, LE_GNSS_STATE_FIX_ESTIMATED = 3 }
 
enum  le_gnss_Resolution_t {
  LE_GNSS_RES_ZERO_DECIMAL = 0, LE_GNSS_RES_ONE_DECIMAL = 1, LE_GNSS_RES_TWO_DECIMAL = 2, LE_GNSS_RES_THREE_DECIMAL = 3,
  LE_GNSS_RES_UNKNOWN = 4
}
 
enum  le_gnss_DataType_t { LE_GNSS_DATA_VACCURACY = 0, LE_GNSS_DATA_VSPEEDACCURACY = 1, LE_GNSS_DATA_HSPEEDACCURACY = 2, LE_GNSS_DATA_UNKNOWN = 3 }
 
enum  le_gnss_SbasConstellationCategory_t {
  LE_GNSS_SBAS_EGNOS = 0, LE_GNSS_SBAS_WAAS = 1, LE_GNSS_SBAS_GAGAN = 2, LE_GNSS_SBAS_MSAS = 3,
  LE_GNSS_SBAS_SDCM = 4, LE_GNSS_SBAS_UNKNOWN = 5
}
 
enum  le_gnss_Constellation_t {
  LE_GNSS_SV_CONSTELLATION_UNDEFINED = 0, LE_GNSS_SV_CONSTELLATION_GPS = 1, LE_GNSS_SV_CONSTELLATION_SBAS = 2, LE_GNSS_SV_CONSTELLATION_GLONASS = 3,
  LE_GNSS_SV_CONSTELLATION_GALILEO = 4, LE_GNSS_SV_CONSTELLATION_BEIDOU = 5, LE_GNSS_SV_CONSTELLATION_QZSS = 6, LE_GNSS_SV_CONSTELLATION_MAX = 7
}
 
enum  le_gnss_AssistedMode_t { LE_GNSS_STANDALONE_MODE = 0, LE_GNSS_MS_BASED_MODE = 1, LE_GNSS_MS_ASSISTED_MODE = 2 }
 
enum  le_gnss_DopType_t {
  LE_GNSS_PDOP = 0, LE_GNSS_HDOP = 1, LE_GNSS_VDOP = 2, LE_GNSS_GDOP = 3,
  LE_GNSS_TDOP = 4, LE_GNSS_DOP_LAST = 5
}
 
enum  le_gnss_ConstellationArea_t { LE_GNSS_UNSET_AREA = 0, LE_GNSS_WORLDWIDE_AREA = 1, LE_GNSS_OUTSIDE_US_AREA = 2 }
 
enum  le_gnss_CoordinateSystem_t { LE_GNSS_COORDINATE_SYSTEM_WGS84 = 0, LE_GNSS_COORDINATE_SYSTEM_PZ90 = 1, LE_GNSS_COORDINATE_SYSTEM_MAX = 2 }
 
enum  le_gnss_LocationDataType_t { LE_GNSS_POS_LATITUDE = 0, LE_GNSS_POS_LONGITUDE = 1, LE_GNSS_POS_ALTITUDE = 2, LE_GNSS_POS_MAX = 3 }
 
enum  le_gnss_StartMode_t {
  LE_GNSS_HOT_START = 0, LE_GNSS_WARM_START = 1, LE_GNSS_COLD_START = 2, LE_GNSS_FACTORY_START = 3,
  LE_GNSS_UNKNOWN_START = 4
}
 

Detailed Description

Type definitions for le_gnss.