LinuxQMISDK-Lite  SLQS04.00.23
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
loc.h File Reference

Go to the source code of this file.

Data Structures

struct  loc_LocApplicationInfo
 
struct  loc_SV
 
struct  loc_SVInfo
 
struct  loc_GnssData
 
struct  loc_CellDb
 
struct  loc_ClkInfo
 
struct  loc_BdsSV
 
struct  loc_BdsSVInfo
 
struct  pack_loc_EventRegister_t
 
struct  unpack_loc_EventRegister_t
 
struct  pack_loc_SetExtPowerState_t
 
struct  unpack_loc_SetExtPowerState_t
 
struct  pack_loc_Start_t
 
struct  unpack_loc_Start_t
 
struct  pack_loc_Stop_t
 
struct  unpack_loc_Stop_t
 
struct  pack_loc_SetOperationMode_t
 
struct  unpack_loc_SetOperationMode_t
 
struct  pack_loc_Delete_Assist_Data_t
 
struct  unpack_loc_Delete_Assist_Data_t
 
struct  loc_precisionDilution
 
struct  loc_sensorDataUsage
 
struct  loc_svUsedforFix
 
struct  loc_gpsTime
 
struct  unpack_loc_PositionRpt_Ind_t
 
struct  unpack_loc_EngineState_Ind_t
 
struct  unpack_loc_SetExtPowerConfig_Ind_t
 
struct  unpack_loc_SLQSLOCGetBestAvailPos_t
 
struct  pack_loc_SLQSLOCGetBestAvailPos_t
 
struct  unpack_loc_BestAvailPos_Ind_t
 
struct  unpack_loc_SetOperationMode_Ind_t
 
struct  unpack_loc_DeleteAssistData_Ind_t
 
struct  loc_satelliteInfo
 
struct  unpack_loc_GnssSvInfo_Ind_t
 
struct  pack_loc_SLQSLOCInjectUTCTime_t
 
struct  altSrcInfo_t
 
struct  pack_loc_SLQSLOCInjectPosition_t
 
struct  pack_loc_SLQSLOCSetCradleMountConfig_t
 
struct  sensorData_t
 
struct  tempData_t
 
struct  pack_loc_SLQSLOCInjectSensorData_t
 
struct  unpack_loc_EventNMEA_Ind_t
 
struct  pack_loc_SLQSLOCGetServer_t
 
struct  loc_IPv4Info
 
struct  loc_IPv6Info
 
struct  loc_urlAddr
 
struct  unpack_loc_GetServer_Ind_t
 
struct  unpack_loc_CradleMountCallback_Ind_t
 
struct  unpack_loc_EventTimeSyncCallback_Ind_t
 
struct  unpack_loc_InjectTimeSyncDataCallback_Ind_t
 
struct  unpack_loc_InjectSensorDataCallback_Ind_t
 
struct  loc_accelAcceptReady
 
struct  loc_gyroAcceptReady
 
struct  loc_accelTempAcceptReady
 
struct  loc_gyroTempAcceptReady
 
struct  unpack_loc_SensorStreamingCallback_Ind_t
 
struct  unpack_loc_InjectUTCTimeCallback_Ind_t
 
struct  unpack_loc_InjectPositionCallback_Ind_t
 
struct  loc_IPv4Config
 
struct  loc_IPv6Config
 
struct  loc_URLAddrInfo
 
struct  pack_loc_SLQSLOCSetServer_t
 
struct  unpack_loc_SetServer_Ind_t
 
struct  unpack_loc_SLQSLOCGetOpMode_t
 
struct  unpack_loc_GetOpMode_Ind_t
 

Macros

#define LOC_UINT8_MAX_STRING_SZ   255
 
#define LOCEVENTMASKPOSITIONREPORT   0x00000001
 
#define LOCEVENTMASKGNSSSVINFO   0x00000002
 
#define LOCEVENTMASKNMEA   0x00000004
 
#define LOCEVENTMASKNINOTIFYVERIFYREQ   0x00000008
 
#define LOCEVENTMASKINJECTTIMEREQ   0x00000010
 
#define LOCEVENTMASKINJECTPREDICTEDORBITSREQ   0x00000020
 
#define LOCEVENTMASKINJECTPOSITIONREQ   0x00000040
 
#define LOCEVENTMASKENGINESTATE   0x00000080
 
#define LOCEVENTMASKFIXSESSIONSTATE   0x00000100
 
#define LOCEVENTMASKWIFIREQ   0x00000200
 
#define LOCEVENTMASKSENSORSTREAMINGREADYSTATUS   0x00000400
 
#define LOCEVENTMASKTIMESYNCREQ   0x00000800
 
#define LOCEVENTMASKSETSPISTREAMINGREPORT   0x00001000
 
#define LOCEVENTMASKLOCATIONSERVERCONNECTIONREQ   0x00002000
 
#define LOCEVENTMASKNIGEOFENCENOTIFICATION   0x00004000
 
#define LOCEVENTMASKGEOFENCEGENALERT   0x00008000
 
#define LOCEVENTMASKGEOFENCEBREACHNOTIFICATION   0x00010000
 
#define LOCEVENTMASKPEDOMETERCONTROL   0x00020000
 
#define LOCEVENTMASKMOTIONDATACONTROL   0x00040000
 
#define LOCEVENTMASKBATCHFULLNOTIFICATION   0x00080000
 
#define LOCEVENTMASKLIVEBATCHEDPOSITIONREPORT   0x00100000
 
#define LOCEVENTMASKINJECTWIFIAPDATAREQ   0x00200000
 
#define LOCEVENTMASKGEOFENCEBATCHBREACHNOTIFICATION   0x00400000
 
#define LOCEVENTMASKVEHICLEDATAREADYSTATUS   0x00800000
 
#define LOCEVENTMASKGNSSMEASUREMENTREPORT   0x01000000
 
#define LOCEVENTMASKINVALIDVALUE   0xFFFFFFFF
 
#define MAX_SENSOR_DATA_LEN   64
 
#define MAX_TEMP_DATA_LEN   64
 
#define MAX_LOC_NMEA_STR_LEN   201
 

Typedefs

typedef
unpack_loc_Delete_Assist_Data_t 
unpack_loc_DeleteAssistData_t
 
typedef unpack_result_t unpack_loc_SLQSLOCInjectUTCTime_t
 
typedef unpack_result_t unpack_loc_SLQSLOCInjectPosition_t
 
typedef unpack_result_t unpack_loc_SLQSLOCSetCradleMountConfig_t
 
typedef unpack_result_t unpack_loc_SLQSLOCInjectSensorData_t
 
typedef unpack_result_t unpack_loc_SLQSLOCGetServer_t
 

Enumerations

enum  {
  eQMI_LOC_SESS_STATUS_SUCCESS =0,
  eQMI_LOC_SESS_STATUS_IN_PROGRESS =1,
  eQMI_LOC_SESS_STATUS_FAILURE =2,
  eQMI_LOC_SESS_STATUS_TIMEOUT =3
}
 

Functions

int pack_loc_EventRegister (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_EventRegister_t *reqArg)
 
int unpack_loc_EventRegister (uint8_t *pResp, uint16_t respLen, unpack_loc_EventRegister_t *pOutput)
 
int pack_loc_SetExtPowerState (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SetExtPowerState_t *reqArg)
 
int unpack_loc_SetExtPowerState (uint8_t *pResp, uint16_t respLen, unpack_loc_SetExtPowerState_t *pOutput)
 
int pack_loc_Start (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_Start_t *reqArg)
 
int unpack_loc_Start (uint8_t *pResp, uint16_t respLen, unpack_loc_Start_t *pOutput)
 
int pack_loc_Stop (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_Stop_t *reqArg)
 
int unpack_loc_Stop (uint8_t *pResp, uint16_t respLen, unpack_loc_Stop_t *pOutput)
 
int pack_loc_SetOperationMode (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SetOperationMode_t *reqArg)
 
int unpack_loc_SetOperationMode (uint8_t *pResp, uint16_t respLen, unpack_loc_SetOperationMode_t *pOutput)
 
int pack_loc_DeleteAssistData (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_Delete_Assist_Data_t *reqArg)
 
int unpack_loc_DeleteAssistData (uint8_t *pResp, uint16_t respLen, unpack_loc_Delete_Assist_Data_t *pOutput)
 
int unpack_loc_PositionRpt_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_PositionRpt_Ind_t *pOutput)
 
int unpack_loc_EngineState_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_EngineState_Ind_t *pOutput)
 
int unpack_loc_SetExtPowerConfig_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_SetExtPowerConfig_Ind_t *pOutput)
 
int pack_loc_SLQSLOCGetBestAvailPos (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SLQSLOCGetBestAvailPos_t *reqArg)
 
int unpack_loc_SLQSLOCGetBestAvailPos (uint8_t *pResp, uint16_t respLen, unpack_loc_SLQSLOCGetBestAvailPos_t *pOutput)
 
int unpack_loc_BestAvailPos_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_BestAvailPos_Ind_t *pOutput)
 
int unpack_loc_SetOperationMode_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_SetOperationMode_Ind_t *pOutput)
 
int unpack_loc_DeleteAssistData_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_DeleteAssistData_Ind_t *pOutput)
 
int unpack_loc_GnssSvInfo_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_GnssSvInfo_Ind_t *pOutput)
 
int pack_loc_SLQSLOCInjectUTCTime (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SLQSLOCInjectUTCTime_t *reqArg)
 
int unpack_loc_SLQSLOCInjectUTCTime (uint8_t *pResp, uint16_t respLen, unpack_loc_SLQSLOCInjectUTCTime_t *pOutput)
 
int pack_loc_SLQSLOCInjectPosition (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SLQSLOCInjectPosition_t *reqArg)
 
int unpack_loc_SLQSLOCInjectPosition (uint8_t *pResp, uint16_t respLen, unpack_loc_SLQSLOCInjectPosition_t *pOutput)
 
int pack_loc_SLQSLOCSetCradleMountConfig (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SLQSLOCSetCradleMountConfig_t *reqArg)
 
int unpack_loc_SLQSLOCSetCradleMountConfig (uint8_t *pResp, uint16_t respLen, unpack_loc_SLQSLOCSetCradleMountConfig_t *pOutput)
 
int pack_loc_SLQSLOCInjectSensorData (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SLQSLOCInjectSensorData_t *reqArg)
 
int unpack_loc_SLQSLOCInjectSensorData (uint8_t *pResp, uint16_t respLen, unpack_loc_SLQSLOCInjectSensorData_t *pOutput)
 
int unpack_loc_EventNMEA_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_EventNMEA_Ind_t *pOutput)
 
int pack_loc_SLQSLOCGetServer (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SLQSLOCGetServer_t *reqArg)
 
int unpack_loc_SLQSLOCGetServer (uint8_t *pResp, uint16_t respLen, unpack_loc_SLQSLOCGetServer_t *pOutput)
 
int unpack_loc_GetServer_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_GetServer_Ind_t *pOutput)
 
int unpack_loc_CradleMountCallback_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_CradleMountCallback_Ind_t *pOutput)
 
int unpack_loc_EventTimeSyncCallback_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_EventTimeSyncCallback_Ind_t *pOutput)
 
int unpack_loc_InjectTimeSyncDataCallback_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_InjectTimeSyncDataCallback_Ind_t *pOutput)
 
int unpack_loc_InjectSensorDataCallback_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_InjectSensorDataCallback_Ind_t *pOutput)
 
int unpack_loc_SensorStreamingCallback_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_SensorStreamingCallback_Ind_t *pOutput)
 
int unpack_loc_InjectUTCTimeCallback_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_InjectUTCTimeCallback_Ind_t *pOutput)
 
int unpack_loc_InjectPositionCallback_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_InjectPositionCallback_Ind_t *pOutput)
 
int pack_loc_SLQSLOCSetServer (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_loc_SLQSLOCSetServer_t *reqArg)
 
int unpack_loc_SLQSLOCSetServer (uint8_t *pResp, uint16_t respLen)
 
int unpack_loc_SetServer_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_SetServer_Ind_t *pOutput)
 
int pack_loc_SLQSLOCGetOpMode (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, void *reqArg)
 
int unpack_loc_SLQSLOCGetOpMode (uint8_t *pResp, uint16_t respLen, unpack_loc_SLQSLOCGetOpMode_t *pOutput)
 
int unpack_loc_GetOpMode_Ind (uint8_t *pResp, uint16_t respLen, unpack_loc_GetOpMode_Ind_t *pOutput)
 

Macro Definition Documentation

#define LOC_UINT8_MAX_STRING_SZ   255
#define LOCEVENTMASKBATCHFULLNOTIFICATION   0x00080000

The control point must enable this mask to receive notification when a batch is full. The location engine sends this event to notify of Batch Full for ongoing batching session.

#define LOCEVENTMASKENGINESTATE   0x00000080

The control point must enable this mask to receive engine state report event indications.

#define LOCEVENTMASKFIXSESSIONSTATE   0x00000100

The control point must enable this mask to receive fix session status report event indications.

#define LOCEVENTMASKGEOFENCEBATCHBREACHNOTIFICATION   0x00400000

The control point must enable this mask to receive notifications when a Geofence is breached. These events are generated when a UE enters or leaves the perimeter of a Geofence. This breach notification is for multiple Geofences. Breaches from multiple Geofences are all batched and sent in the same notification.

#define LOCEVENTMASKGEOFENCEBREACHNOTIFICATION   0x00010000

The control point must enable this mask to receive notifications when a Geofence is breached. These events are generated when a UE enters or leaves the perimeter of a Geofence. This breach report is for a single Geofence.

#define LOCEVENTMASKGEOFENCEGENALERT   0x00008000

The control point must enable this mask to receive Geofence alerts. These alerts are generated to inform the client of the changes that may affect a Geofence, for example, if GPS is turned off or if the network is unavailable.

#define LOCEVENTMASKGNSSMEASUREMENTREPORT   0x01000000

The control point must enable this mask to receive system clock and satellite measurement report events (system clock, SV time, Doppler, etc.). Reports are generated only for the GNSS satellite constellations that are enabled using QMI_LOC_SET_GNSS_ CONSTELL_REPORT_CONFIG(Not yet supported).

#define LOCEVENTMASKGNSSSVINFO   0x00000002

The control point must enable this mask to receive satellite report event indications. These reports are sent at a 1 Hz rate.

#define LOCEVENTMASKINJECTPOSITIONREQ   0x00000040

The control point must enable this mask to receive position injection request event indications.

#define LOCEVENTMASKINJECTPREDICTEDORBITSREQ   0x00000020

The control point must enable this mask to receive predicted orbits request event indications.

#define LOCEVENTMASKINJECTTIMEREQ   0x00000010

The control point must enable this mask to receive time injection request event indications.

#define LOCEVENTMASKINJECTWIFIAPDATAREQ   0x00200000

The control point must enable this mask to receive Wi-Fi Access Point (AP) data inject request event indications.

#define LOCEVENTMASKINVALIDVALUE   0xFFFFFFFF

Invalid Event Mask

#define LOCEVENTMASKLIVEBATCHEDPOSITIONREPORT   0x00100000

The control point must enable this mask to receive position report indications along with an ongoing batching session. The location engine sends this event to notify the batched position report while a batching session is ongoing.

#define LOCEVENTMASKLOCATIONSERVERCONNECTIONREQ   0x00002000

The control point must enable this mask to receive location server requests. These requests are generated when the service wishes to establish a connection with a location server.

#define LOCEVENTMASKMOTIONDATACONTROL   0x00040000

The control point must enable this mask to register for motion data control requests from the location engine. The location engine sends this event to control the injection of motion data.

#define LOCEVENTMASKNIGEOFENCENOTIFICATION   0x00004000

The control point must enable this mask to receive notifications related to network-initiated Geofences. These events notify the client when a network-initiated Geofence is added, deleted, or edited.

#define LOCEVENTMASKNINOTIFYVERIFYREQ   0x00000008

The control point must enable this mask to receive NI Notify/Verify request event indications.

#define LOCEVENTMASKNMEA   0x00000004

The control point must enable this mask to receive NMEA reports for position and satellites in view. The report is at a 1 Hz rate.

#define LOCEVENTMASKPEDOMETERCONTROL   0x00020000

The control point must enable this mask to register for pedometer control requests from the location engine. The location engine sends this event to control the injection of pedometer reports.

#define LOCEVENTMASKPOSITIONREPORT   0x00000001

The control point must enable this mask to receive position report event indications.

#define LOCEVENTMASKSENSORSTREAMINGREADYSTATUS   0x00000400

The control point must enable this mask to receive notifications from the location engine indicating its readiness to accept data from the sensors (accelerometer, gyroscope, etc.).

#define LOCEVENTMASKSETSPISTREAMINGREPORT   0x00001000

The control point must enable this mask to receive Stationary Position Indicator (SPI) streaming report indications.

#define LOCEVENTMASKTIMESYNCREQ   0x00000800

The control point must enable this mask to receive time sync requests from the GPS engine. Time sync enables the GPS engine to synchronize its clock with the sensor processor's clock.

#define LOCEVENTMASKVEHICLEDATAREADYSTATUS   0x00800000

The control point must enable this mask to receive notifications from the location engine indicating its readiness to accept vehicle data (vehicle accelerometer, vehicle angular rate, vehicle odometry, etc.).

#define LOCEVENTMASKWIFIREQ   0x00000200

The control point must enable this mask to receive Wi-Fi position request event indications.

#define MAX_LOC_NMEA_STR_LEN   201
#define MAX_SENSOR_DATA_LEN   64
#define MAX_TEMP_DATA_LEN   64

Typedef Documentation

Enumeration Type Documentation

anonymous enum
Enumerator
eQMI_LOC_SESS_STATUS_SUCCESS 
eQMI_LOC_SESS_STATUS_IN_PROGRESS 
eQMI_LOC_SESS_STATUS_FAILURE 
eQMI_LOC_SESS_STATUS_TIMEOUT 

Function Documentation

int pack_loc_DeleteAssistData ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_Delete_Assist_Data_t reqArg 
)

Delete Assistant Data pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_EventRegister ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_EventRegister_t reqArg 
)

Event Register pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SetExtPowerState ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SetExtPowerState_t reqArg 
)

Set Ext Power State pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SetOperationMode ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SetOperationMode_t reqArg 
)

Set Operation Mode pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCGetBestAvailPos ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SLQSLOCGetBestAvailPos_t reqArg 
)

Get Best Avail position pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCGetOpMode ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
void *  reqArg 
)

Pack Get Operation mode.

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCGetServer ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SLQSLOCGetServer_t reqArg 
)

Pack get server.

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
Note
The request is acknowledged through the response, but the SUCCESS/FAILURE status is sent through unpack_loc_GetServer_Ind callback If successful, the callback also contains the A-GPS server address.
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCInjectPosition ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SLQSLOCInjectPosition_t reqArg 
)

Pack inject position.

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCInjectSensorData ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SLQSLOCInjectSensorData_t reqArg 
)

Pack inject sensor data.

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCInjectUTCTime ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SLQSLOCInjectUTCTime_t reqArg 
)

Pack inject UTC time.

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCSetCradleMountConfig ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SLQSLOCSetCradleMountConfig_t reqArg 
)

Pack set cradle mount configure.

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_SLQSLOCSetServer ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_SLQSLOCSetServer_t reqArg 
)

Pack Set server.

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
Note
If multiple types of addresses are specified in the request, the IPv4 address takes precedence over the IPv6 address and the IPv6 address takes precedence over the URL address.The request is acknowledged through the response, but the SUCCESS/FAILURE status is sent through unpack_loc_SetServer_Ind callback
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_Start ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_Start_t reqArg 
)

LOC Start pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int pack_loc_Stop ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_loc_Stop_t reqArg 
)

Loc Stop pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_BestAvailPos_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_BestAvailPos_Ind_t pOutput 
)

Loc Best Avial position Indication unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_CradleMountCallback_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_CradleMountCallback_Ind_t pOutput 
)

Unpack the Cradle Mount Indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_DeleteAssistData ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_Delete_Assist_Data_t pOutput 
)

Delete Assistant Data unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_DeleteAssistData_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_DeleteAssistData_Ind_t pOutput 
)

Unpack the status of delete the location engine assistance data

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_EngineState_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_EngineState_Ind_t pOutput 
)

Loc Engine State Indication unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_EventNMEA_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_EventNMEA_Ind_t pOutput 
)

Unpack the NMEA Event Indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_EventRegister ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_EventRegister_t pOutput 
)

Event Register unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_EventTimeSyncCallback_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_EventTimeSyncCallback_Ind_t pOutput 
)

Unpack the Event Time Sync indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_GetOpMode_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_GetOpMode_Ind_t pOutput 
)

Unpack the Set Server Indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_GetServer_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_GetServer_Ind_t pOutput 
)

Unpack the Get Server Indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_GnssSvInfo_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_GnssSvInfo_Ind_t pOutput 
)

Unpack the GNSS SV Info Indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_InjectPositionCallback_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_InjectPositionCallback_Ind_t pOutput 
)

Unpack the Inject position indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_InjectSensorDataCallback_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_InjectSensorDataCallback_Ind_t pOutput 
)

Unpack the inject sensor data indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_InjectTimeSyncDataCallback_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_InjectTimeSyncDataCallback_Ind_t pOutput 
)

Unpack the inject time sync data indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_InjectUTCTimeCallback_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_InjectUTCTimeCallback_Ind_t pOutput 
)

Unpack the Inject UTC time indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_PositionRpt_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_PositionRpt_Ind_t pOutput 
)

Loc Position Report Indication unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SensorStreamingCallback_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SensorStreamingCallback_Ind_t pOutput 
)

Unpack the Sensor streaming status indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SetExtPowerConfig_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SetExtPowerConfig_Ind_t pOutput 
)

Loc Set External Power Configure Indication unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SetExtPowerState ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SetExtPowerState_t pOutput 
)

Set Ext Power State unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SetOperationMode ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SetOperationMode_t pOutput 
)

Set Operation Mode unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SetOperationMode_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SetOperationMode_Ind_t pOutput 
)

Unpack the engine to use the specified operation mode.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SetServer_Ind ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SetServer_Ind_t pOutput 
)

Unpack the Set Server Indication.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCGetBestAvailPos ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SLQSLOCGetBestAvailPos_t pOutput 
)

Get Best Avail position unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCGetOpMode ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SLQSLOCGetOpMode_t pOutput 
)

Get Operation mode unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCGetServer ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SLQSLOCGetServer_t pOutput 
)

Unpack get server.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputresponse unpacked
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCInjectPosition ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SLQSLOCInjectPosition_t pOutput 
)

Unpack inject position.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputresponse unpacked
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCInjectSensorData ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SLQSLOCInjectSensorData_t pOutput 
)

Unpack inject sensor data.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputresponse unpacked
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCInjectUTCTime ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SLQSLOCInjectUTCTime_t pOutput 
)

Unpack inject UTC time.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputresponse unpacked
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCSetCradleMountConfig ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_SLQSLOCSetCradleMountConfig_t pOutput 
)

Unpack set cradle mount configure.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputresponse unpacked
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_SLQSLOCSetServer ( uint8_t *  pResp,
uint16_t  respLen 
)

Unpack set server.

Parameters
[in]pRespqmi response
[in]respLenqmi response length
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_Start ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_Start_t pOutput 
)

Loc Start unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values
int unpack_loc_Stop ( uint8_t *  pResp,
uint16_t  respLen,
unpack_loc_Stop_t pOutput 
)

Loc Stop unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
Returns
eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
See Also
See qmerrno.h for eQCWWAN_xxx error values

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved