Linux SDK (lite-qmi)  MBPL_SDK_R25_ENG3
qaGobiApiLoc.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright: © 2011-2015 Sierra Wireless, Inc. all rights reserved
11  */
12 #ifndef __GOBI_API_LOC_H__
13 #define __GOBI_API_LOC_H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #define MAX_SENSOR_DATA_LEN 64
20 #define MAX_TEMP_DATA_LEN 64
21 #define MAX_URL_ADDR_STR_LEN 256
22 
181 typedef struct
182 {
183  ULONGLONG eventRegister;
185 
201 typedef struct
202 {
203  ULONG extPowerState;
205 
238 {
239  BYTE applicationProvider_len;
240  CHAR *pAplicationProvider;
241  BYTE applicationName_len;
242  CHAR *pAppName;
243  BYTE applicationVersion_valid;
244  BYTE applicationVersion_len;
245  CHAR *pApplicationVersion;
246 };
247 
248 
270 {
271  ULONG powerMode;
272  ULONG timeBetweenMeasurement;
273 };
274 
367 typedef struct
368 {
369  BYTE sessionId;
370  ULONG *pFixRecurrence;
371  ULONG *pHorizontalAccuracyLevel;
372  ULONG *pIntermediateReportState;
373  ULONG *pMinInterval;
374  struct LocApplicationInfo *pApplicationInfo;
375  ULONG *pConfigAltitudeAssumed;
376  ULONG *pMinIntermediatePositionReportInterval;
377  ULONG *pPositionReportTimeout;
378  BYTE *pSharePosition;
379  BYTE *pReportGnssOnlyPosition;
380  struct LocGNSSPowerMode *pGNSSPowerMode;
381 } LocStartReq;
382 
392 typedef struct
393 {
394  BYTE sessionId;
395 }LocStopReq;
396 
397 
398 
430 typedef struct
431 {
432  WORD id;
433  ULONG system;
434  BYTE mask;
435 }SV;
436 
437 
454 typedef struct
455 {
456  BYTE len;
457  SV *pSV;
458 }SVInfo;
459 
522 typedef struct
523 {
524  ULONGLONG mask;
525 }GnssData;
526 
547 typedef struct
548 {
549  ULONG mask;
550 }CellDb;
551 
599 typedef struct
600 {
601  ULONG mask;
602 }ClkInfo;
603 
620 typedef struct
621 {
622  WORD id;
623  BYTE mask;
624 }BdsSV;
625 
640 typedef struct
641 {
642  BYTE len;
643  BdsSV *pSV;
644 }BdsSVInfo;
645 
646 
647 
675 typedef struct
676 {
677  SVInfo *pSVInfo;
678  GnssData *pGnssData;
679  CellDb *pCellDb;
680  ClkInfo *pClkInfo;
681  BdsSVInfo *pBdsSVInfo;
683 
734 typedef struct
735 {
736  BYTE function;
737  BOOL function_reported;
738  BYTE fix_type;
739  BOOL fix_type_reported;
740  BYTE max_time;
741  BOOL max_time_reported;
742  ULONG max_dist;
743  BOOL max_dist_reported;
744  ULONG fix_rate;
745  BOOL fix_rate_reported;
747 
798 typedef struct
799 {
800  BYTE function;
801  BOOL set_function;
802  BYTE fix_type;
803  BOOL set_fix_type;
804  BYTE max_time;
805  BOOL set_max_time;
806  ULONG max_dist;
807  BOOL set_max_dist;
808  ULONG fix_rate;
809  BOOL set_fix_rate;
811 
850 typedef struct
851 {
852  ULONG source;
853  ULONG linkage;
854  ULONG coverage;
856 
1020 typedef struct
1021 {
1022  ULONGLONG *pLatitude;
1023  ULONGLONG *pLongitude;
1024  ULONG *pHorUncCircular;
1025  BYTE *pHorConfidence;
1026  ULONG *pHorReliability;
1027  ULONG *pAltitudeWrtEllipsoid;
1028  ULONG *pAltitudeWrtMeanSeaLevel;
1029  ULONG *pVertUnc;
1030  BYTE *pVertConfidence;
1031  ULONG *pVertReliability;
1032  altitudeSrcInfo *pAltitudeSrcInfo;
1033  ULONGLONG *pTimestampUtc;
1034  ULONG *pTimestampAge;
1035  ULONG *pPositionSrc;
1036  ULONG *pRawHorUncCircular;
1037  BYTE *pRawHorConfidence;
1039 
1058 typedef struct
1059 {
1060  ULONG state;
1061  BYTE *pConfidence;
1063 
1110 typedef struct
1111 {
1112  ULONG timeOfFirstSample ;
1113  BYTE flags;
1114  BYTE sensorDataLen;
1115  WORD timeOffset[MAX_SENSOR_DATA_LEN];
1116  ULONG xAxis[MAX_SENSOR_DATA_LEN];
1117  ULONG yAxis[MAX_SENSOR_DATA_LEN];
1118  ULONG zAxis[MAX_SENSOR_DATA_LEN];
1119 }sensorData;
1120 
1153 typedef struct
1154 {
1155  ULONG timeSource;
1156  ULONG timeOfFirstSample;
1157  BYTE temperatureDataLen;
1158  WORD timeOffset[MAX_TEMP_DATA_LEN];
1159  ULONG temperature[MAX_TEMP_DATA_LEN];
1161 
1212 typedef struct
1213 {
1214  ULONG *pOpaqueIdentifier;
1215  sensorData *pAcceleroData;
1216  sensorData *pGyroData;
1217  ULONG *pAcceleroTimeSrc;
1218  ULONG *pGyroTimeSrc;
1219  tempratureData *pAcceleroTempData;
1220  tempratureData *pGyroTempData;
1222 
1246 typedef struct
1247 {
1248  ULONG serverType;
1249  BYTE *pServerAddrTypeMask;
1250 } LocGetServerReq;
1251 
1263 typedef struct
1264 {
1265  ULONG IPv4Addr;
1266  WORD IPv4Port;
1267 }IPv4Config;
1268 
1282 typedef struct
1283 {
1284  WORD IPv6Addr[8];
1285  ULONG IPv6Port;
1286 }IPv6Config;
1287 
1298 typedef struct
1299 {
1300  CHAR urlAddr[256];
1301 }URLAddrInfo;
1302 
1328 typedef struct
1329 {
1330  ULONG serverType;
1331  IPv4Config *pIPv4Config;
1332  IPv6Config *pIPv6Config;
1333  URLAddrInfo *pURLAddr;
1334 } LocSetServerReq;
1335 
1351 {
1352  BYTE serverUrl_len;
1353  CHAR serverUrl[MAX_URL_ADDR_STR_LEN];
1354 };
1355 
1374 typedef struct
1375 {
1376  uint8_t suplCertId;
1377  uint16_t suplCertData_len;
1378  uint8_t *pSuplCertData;
1379 
1381 
1382 #ifdef __cplusplus
1383 } /* extern "C" { */
1384 #endif
1385 
1386 #endif /* __GOBI_API_LOC_H__ */
#define MAX_TEMP_DATA_LEN
Definition: loc.h:240
Definition: qaGobiApiLoc.h:181
Definition: qaGobiApiLoc.h:850
Definition: qaGobiApiLoc.h:201
Definition: qaGobiApiQos.h:264
Definition: qaGobiApiLoc.h:1263
Definition: qaGobiApiQos.h:222
Definition: qaGobiApiLoc.h:1282
Definition: qaGobiApiLoc.h:1110
Definition: qaGobiApiLoc.h:1020
Definition: qaGobiApiLoc.h:1374
Definition: qaGobiApiLoc.h:599
Definition: qaGobiApiLoc.h:522
Definition: qaGobiApiLoc.h:1058
Definition: qaGobiApiLoc.h:734
Definition: qaGobiApiLoc.h:430
Definition: qaGobiApiCbk.h:8131
Definition: qaGobiApiLoc.h:1153
Definition: qaGobiApiLoc.h:1212
Definition: qaGobiApiLoc.h:1246
Definition: qaGobiApiLoc.h:392
#define MAX_SENSOR_DATA_LEN
Definition: loc.h:238
Definition: qaGobiApiLoc.h:620
Definition: qaGobiApiLoc.h:1298
Definition: qaGobiApiLoc.h:1350
Definition: qaGobiApiLoc.h:367
Definition: qaGobiApiLoc.h:1328
Definition: qaGobiApiLoc.h:675
Definition: qaGobiApiLoc.h:798
Definition: qaGobiApiLoc.h:640
Definition: qaGobiApiLoc.h:237
Definition: qaGobiApiLoc.h:454
Definition: qaGobiApiLoc.h:269
Definition: qaGobiApiLoc.h:547