Loc api v02 support for QMI_LOC rev 2.17

changes to suuport pedometer and motion data control API

Change-Id: I56c87adaa1f717c76bf1ff6eb2d195c92acbd38d
This commit is contained in:
Nitin Singh 2012-11-01 14:34:36 -07:00
parent 353911d007
commit 5f45c04c89
5 changed files with 11780 additions and 10970 deletions

View file

@ -159,7 +159,17 @@ static locClientEventIndTableStructT locClientEventIndTable[]= {
//Geofence Breach event
{ QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_IND_V02,
sizeof(qmiLocEventGeofenceBreachIndMsgT_v02),
QMI_LOC_EVENT_MASK_GEOFENCE_BREACH_NOTIFICATION_V02}
QMI_LOC_EVENT_MASK_GEOFENCE_BREACH_NOTIFICATION_V02},
//Pedometer Control event
{ QMI_LOC_EVENT_PEDOMETER_CONTROL_IND_V02,
sizeof(qmiLocEventPedometerControlIndMsgT_v02),
QMI_LOC_EVENT_MASK_PEDOMETER_CONTROL_V02 },
//Motion Data Control event
{ QMI_LOC_EVENT_MOTION_DATA_CONTROL_IND_V02,
sizeof(qmiLocEventMotionDataControlIndMsgT_v02),
QMI_LOC_EVENT_MASK_MOTION_DATA_CONTROL_V02 }
};
/* table to relate the respInd Id with its size */
@ -384,7 +394,7 @@ static locClientRespIndTableStructT locClientRespIndTable[]= {
//Inject GSM Cell Info
{ QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02,
sizeof(qmiLocInjectNetworkInitiatedMessageIndMsgT_v02)},
sizeof(qmiLocInjectGSMCellInfoIndMsgT_v02)},
//Inject Network Initiated Message
{ QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02,
@ -392,7 +402,11 @@ static locClientRespIndTableStructT locClientRespIndTable[]= {
//WWAN Out of Service Notification
{ QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02,
sizeof(qmiLocWWANOutOfServiceNotificationIndMsgT_v02)}
sizeof(qmiLocWWANOutOfServiceNotificationIndMsgT_v02)},
//Pedomete Report
{ QMI_LOC_PEDOMETER_REPORT_IND_V02,
sizeof(qmiLocPedometerReportIndMsgT_v02)}
};
@ -824,6 +838,20 @@ static bool locClientHandleIndication(
break;
}
case QMI_LOC_EVENT_PEDOMETER_CONTROL_IND_V02 :
{
//locClientHandlePedometerControlInd(user_handle, msg_id, ind_buf, ind_buf_len);
status = true;
break;
}
case QMI_LOC_EVENT_MOTION_DATA_CONTROL_IND_V02:
{
//locClientHandleMotionDataControlInd(user_handle, msg_id, ind_buf, ind_buf_len);
status = true;
break;
}
//-------------------------------------------------------------------------
// handle the response indications
@ -995,6 +1023,12 @@ static bool locClientHandleIndication(
break;
}
case QMI_LOC_PEDOMETER_REPORT_IND_V02:
{
status = true;
break;
}
// for indications that only have a "status" field
case QMI_LOC_NI_USER_RESPONSE_IND_V02:
case QMI_LOC_INJECT_UTC_TIME_IND_V02:
@ -1534,6 +1568,7 @@ static bool validateRequest(
*pOutLen = sizeof(qmiLocGetBestAvailablePositionReqMsgT_v02);
break;
}
case QMI_LOC_INJECT_MOTION_DATA_REQ_V02:
{
*pOutLen = sizeof(qmiLocInjectMotionDataReqMsgT_v02);
@ -1558,6 +1593,11 @@ static bool validateRequest(
break;
}
case QMI_LOC_PEDOMETER_REPORT_REQ_V02:
{
*pOutLen = sizeof(qmiLocPedometerReportReqMsgT_v02);
break;
}
// ALL requests with no payload
case QMI_LOC_GET_SERVICE_REVISION_REQ_V02:

View file

@ -600,6 +600,16 @@ typedef union
QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_REQ_V02 */
const void *pWWANOutOfServiceNotificationReq;
const qmiLocPedometerReportReqMsgT_v02 *pPedometerReportReq;
/**< Send pedometer data to the location engine. If the request is
accepted by the service, the client receives the following
indication containing a response:
QMI_LOC_PEDOMETER_REPORT_IND_V02
To send this request, set the reqId field in locClientSendReq() to
QMI_LOC_PEDOMETER_REPORT_REQ_V02 */
}locClientReqUnionType;
@ -750,6 +760,18 @@ typedef union
The eventIndId field in the event indication callback is set to
QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_IND_V02. @newpagetable */
const qmiLocEventPedometerControlIndMsgT_v02* pPedometerControlEvent;
/**< Sent by the engine to recommend how pedometer data is sent to the
location engine.
The eventIndId field in the event indication callback is set to
QMI_LOC_EVENT_PEDOMETER_CONTROL_IND_V02. @newpagetable */
const qmiLocEventMotionDataControlIndMsgT_v02* pMotionDataControlEvent;
/**< Sent by the engine to recommend how motion data is sent to the
location engine.
The eventIndId field in the event indication callback is set to
QMI_LOC_EVENT_MOTION_DATA_CONTROL_IND_V02. @newpagetable */
}locClientEventIndUnionType;
@ -1124,6 +1146,12 @@ typedef union
The respIndId field in the response indication callback is set to
QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02. */
const qmiLocPedometerReportIndMsgT_v02* pPedometerReportInd;
/**< Response to the QMI_LOC_PEDOMETER_REPORT_REQ_V02 request.
The respIndId field in the response indication callback is set to
QMI_LOC_PEDOMETER_REPORT_IND_V02. */
}locClientRespIndUnionType;
/** @} */ /* end_addtogroup data_types */

View file

@ -209,6 +209,26 @@ static loc_name_val_s_type loc_v02_event_name[] =
NAME_VAL(QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02),
NAME_VAL(QMI_LOC_GET_BEST_AVAILABLE_POSITION_RESP_V02),
NAME_VAL(QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02),
NAME_VAL(QMI_LOC_INJECT_MOTION_DATA_REQ_V02),
NAME_VAL(QMI_LOC_INJECT_MOTION_DATA_RESP_V02),
NAME_VAL(QMI_LOC_INJECT_MOTION_DATA_IND_V02),
NAME_VAL(QMI_LOC_GET_NI_GEOFENCE_ID_LIST_REQ_V02),
NAME_VAL(QMI_LOC_GET_NI_GEOFENCE_ID_LIST_RESP_V02),
NAME_VAL(QMI_LOC_GET_NI_GEOFENCE_ID_LIST_IND_V02),
NAME_VAL(QMI_LOC_INJECT_GSM_CELL_INFO_REQ_V02),
NAME_VAL(QMI_LOC_INJECT_GSM_CELL_INFO_RESP_V02),
NAME_VAL(QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02),
NAME_VAL(QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_REQ_V02),
NAME_VAL(QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_RESP_V02),
NAME_VAL(QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02),
NAME_VAL(QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_REQ_V02),
NAME_VAL(QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_RESP_V02),
NAME_VAL(QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02),
NAME_VAL(QMI_LOC_EVENT_PEDOMETER_CONTROL_IND_V02),
NAME_VAL(QMI_LOC_EVENT_MOTION_DATA_CONTROL_IND_V02),
NAME_VAL(QMI_LOC_PEDOMETER_REPORT_REQ_V02),
NAME_VAL(QMI_LOC_PEDOMETER_REPORT_RESP_V02),
NAME_VAL(QMI_LOC_PEDOMETER_REPORT_IND_V02)
};
static int loc_v02_event_num = sizeof(loc_v02_event_name) / sizeof(loc_name_val_s_type);

View file

@ -26,20 +26,12 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
L O C A T I O N _ S E R V I C E _ V 0 2 . C
GENERAL DESCRIPTION
This is the file which defines the loc service Data structures.
*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/
/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
*THIS IS AN AUTO GENERATED FILE. DO NOT ALTER IN ANY WAY
*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/
/* This file was generated with Tool version 5.5
It was generated on: Thu Sep 27 2012
/* This file was generated with Tool version 5.6
It was generated on: Fri Oct 26 2012
From IDL File: location_service_v02.idl */
#include "stdint.h"
@ -620,6 +612,39 @@ static const uint8_t qmiLocGSMCellIdStructT_data_v02[] = {
QMI_IDL_FLAG_END_VALUE
};
static const uint8_t qmiLocEmergencyNotificationStructT_data_v02[] = {
QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
QMI_IDL_OFFSET8(qmiLocEmergencyNotificationStructT_v02, eslpUrl),
QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02,
QMI_IDL_FLAG_END_VALUE
};
static const uint8_t qmiLocSensorTemperatureSampleStructT_data_v02[] = {
QMI_IDL_GENERIC_2_BYTE,
QMI_IDL_OFFSET8(qmiLocSensorTemperatureSampleStructT_v02, timeOffset),
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSensorTemperatureSampleStructT_v02, temperature),
QMI_IDL_FLAG_END_VALUE
};
static const uint8_t qmiLocSensorTemperatureSampleListStructT_data_v02[] = {
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSensorTemperatureSampleListStructT_v02, timeSource),
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSensorTemperatureSampleListStructT_v02, timeOfFirstSample),
QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET8(qmiLocSensorTemperatureSampleListStructT_v02, temperatureData),
QMI_LOC_SENSOR_DATA_MAX_SAMPLES_V02,
QMI_IDL_OFFSET8(qmiLocSensorTemperatureSampleListStructT_v02, temperatureData) - QMI_IDL_OFFSET8(qmiLocSensorTemperatureSampleListStructT_v02, temperatureData_len),
36, 0,
QMI_IDL_FLAG_END_VALUE
};
/*Message Definitions*/
static const uint8_t qmiLocGenRespMsgT_data_v02[] = {
QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
@ -888,11 +913,17 @@ static const uint8_t qmiLocEventNiNotifyVerifyReqIndMsgT_data_v02[] = {
QMI_IDL_OFFSET16ARRAY(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiVxServiceInteractionInd),
14, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplVer2ExtInd) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplVer2ExtInd_valid)),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplVer2ExtInd) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplVer2ExtInd_valid)),
0x14,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET16ARRAY(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplVer2ExtInd),
15, 0
15, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, suplEmergencyNotification) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, suplEmergencyNotification_valid)),
0x15,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET16ARRAY(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, suplEmergencyNotification),
35, 0
};
static const uint8_t qmiLocEventInjectTimeReqIndMsgT_data_v02[] = {
@ -969,10 +1000,22 @@ static const uint8_t qmiLocEventSensorStreamingReadyStatusIndMsgT_data_v02[] = {
QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, accelReady),
21, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroReady) - QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroReady_valid)),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroReady) - QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroReady_valid)),
0x11,
QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroReady),
21, 0,
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, accelTemperatureReady) - QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, accelTemperatureReady_valid)),
0x12,
QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, accelTemperatureReady),
21, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroTemperatureReady) - QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroTemperatureReady_valid)),
0x13,
QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, gyroTemperatureReady),
21, 0
};
@ -1134,11 +1177,17 @@ static const uint8_t qmiLocNiUserRespReqMsgT_data_v02[] = {
QMI_IDL_OFFSET16ARRAY(qmiLocNiUserRespReqMsgT_v02, NiVxServiceInteractionPayload),
14, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiSuplVer2ExtPayload) - QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiSuplVer2ExtPayload_valid)),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiSuplVer2ExtPayload) - QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiSuplVer2ExtPayload_valid)),
0x14,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET16ARRAY(qmiLocNiUserRespReqMsgT_v02, NiSuplVer2ExtPayload),
15, 0
15, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, suplEmergencyNotification) - QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, suplEmergencyNotification_valid)),
0x15,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET16ARRAY(qmiLocNiUserRespReqMsgT_v02, suplEmergencyNotification),
35, 0
};
static const uint8_t qmiLocNiUserRespIndMsgT_data_v02[] = {
@ -1689,11 +1738,33 @@ static const uint8_t qmiLocInjectSensorDataReqMsgT_data_v02[] = {
QMI_IDL_OFFSET8(qmiLocInjectSensorDataReqMsgT_v02, threeAxisAccelData),
30, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroData_valid)),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroData_valid)),
0x12,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET16ARRAY(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroData),
30, 0
30, 0,
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisAccelDataTimeSource) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisAccelDataTimeSource_valid)),
0x13,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET16ARRAY(qmiLocInjectSensorDataReqMsgT_v02, threeAxisAccelDataTimeSource),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroDataTimeSource) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroDataTimeSource_valid)),
0x14,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET16ARRAY(qmiLocInjectSensorDataReqMsgT_v02, threeAxisGyroDataTimeSource),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, accelTemperatureData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, accelTemperatureData_valid)),
0x15,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET16ARRAY(qmiLocInjectSensorDataReqMsgT_v02, accelTemperatureData),
37, 0,
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, gyroTemperatureData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, gyroTemperatureData_valid)),
0x16,
QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
QMI_IDL_OFFSET16ARRAY(qmiLocInjectSensorDataReqMsgT_v02, gyroTemperatureData),
37, 0
};
static const uint8_t qmiLocInjectSensorDataIndMsgT_data_v02[] = {
@ -1711,10 +1782,20 @@ static const uint8_t qmiLocInjectSensorDataIndMsgT_data_v02[] = {
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisAccelSamplesAccepted),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisGyroSamplesAccepted) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisGyroSamplesAccepted_valid)),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisGyroSamplesAccepted) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisGyroSamplesAccepted_valid)),
0x12,
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisGyroSamplesAccepted)
QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisGyroSamplesAccepted),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, accelTemperatureSamplesAccepted) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, accelTemperatureSamplesAccepted_valid)),
0x13,
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, accelTemperatureSamplesAccepted),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, gyroTemperatureSamplesAccepted) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, gyroTemperatureSamplesAccepted_valid)),
0x14,
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, gyroTemperatureSamplesAccepted)
};
static const uint8_t qmiLocInjectTimeSyncDataReqMsgT_data_v02[] = {
@ -1852,10 +1933,25 @@ static const uint8_t qmiLocSetProtocolConfigParametersReqMsgT_data_v02[] = {
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppConfig),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, assistedGlonassProtocolMask) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, assistedGlonassProtocolMask_valid)),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, assistedGlonassProtocolMask) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, assistedGlonassProtocolMask_valid)),
0x14,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, assistedGlonassProtocolMask)
QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, assistedGlonassProtocolMask),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplHashAlgo) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplHashAlgo_valid)),
0x15,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplHashAlgo),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplTlsVersion) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplTlsVersion_valid)),
0x16,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplTlsVersion),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, emergencyProtocol) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, emergencyProtocol_valid)),
0x17,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, emergencyProtocol)
};
static const uint8_t qmiLocSetProtocolConfigParametersIndMsgT_data_v02[] = {
@ -1900,10 +1996,25 @@ static const uint8_t qmiLocGetProtocolConfigParametersIndMsgT_data_v02[] = {
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppConfig),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, assistedGlonassProtocolMask) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, assistedGlonassProtocolMask_valid)),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, assistedGlonassProtocolMask) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, assistedGlonassProtocolMask_valid)),
0x14,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, assistedGlonassProtocolMask)
QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, assistedGlonassProtocolMask),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplHashAlgo) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplHashAlgo_valid)),
0x15,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplHashAlgo),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplTlsVersion) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplTlsVersion_valid)),
0x16,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplTlsVersion),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, emergencyProtocol) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, emergencyProtocol_valid)),
0x17,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, emergencyProtocol)
};
static const uint8_t qmiLocSetSensorControlConfigReqMsgT_data_v02[] = {
@ -2600,6 +2711,67 @@ static const uint8_t qmiLocWWANOutOfServiceNotificationIndMsgT_data_v02[] = {
QMI_IDL_OFFSET8(qmiLocWWANOutOfServiceNotificationIndMsgT_v02, status)
};
static const uint8_t qmiLocEventPedometerControlIndMsgT_data_v02[] = {
0x01,
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocEventPedometerControlIndMsgT_v02, requestPedometerData),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPedometerControlIndMsgT_v02, resetStepCount) - QMI_IDL_OFFSET8(qmiLocEventPedometerControlIndMsgT_v02, resetStepCount_valid)),
0x10,
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocEventPedometerControlIndMsgT_v02, resetStepCount),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPedometerControlIndMsgT_v02, stepCountThreshold) - QMI_IDL_OFFSET8(qmiLocEventPedometerControlIndMsgT_v02, stepCountThreshold_valid)),
0x11,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocEventPedometerControlIndMsgT_v02, stepCountThreshold)
};
static const uint8_t qmiLocEventMotionDataControlIndMsgT_data_v02[] = {
QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocEventMotionDataControlIndMsgT_v02, requestMotionData)
};
static const uint8_t qmiLocPedometerReportReqMsgT_data_v02[] = {
0x01,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, timeSource),
0x02,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, timestamp),
0x03,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, timeInterval),
0x04,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepCount),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepConfidence) - QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepConfidence_valid)),
0x10,
QMI_IDL_GENERIC_1_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepConfidence),
QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepCountUncertainty) - QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepCountUncertainty_valid)),
0x11,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepCountUncertainty),
QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepRate) - QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepRate_valid)),
0x12,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportReqMsgT_v02, stepRate)
};
static const uint8_t qmiLocPedometerReportIndMsgT_data_v02[] = {
QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
QMI_IDL_GENERIC_4_BYTE,
QMI_IDL_OFFSET8(qmiLocPedometerReportIndMsgT_v02, status)
};
/* Type Table */
static const qmi_idl_type_table_entry loc_type_table_v02[] = {
{sizeof(qmiLocApplicationIdStructT_v02), qmiLocApplicationIdStructT_data_v02},
@ -2636,7 +2808,10 @@ static const qmi_idl_type_table_entry loc_type_table_v02[] = {
{sizeof(qmiLocApnProfilesStructT_v02), qmiLocApnProfilesStructT_data_v02},
{sizeof(qmiLocCircularGeofenceArgsStructT_v02), qmiLocCircularGeofenceArgsStructT_data_v02},
{sizeof(qmiLocMotionDataStructT_v02), qmiLocMotionDataStructT_data_v02},
{sizeof(qmiLocGSMCellIdStructT_v02), qmiLocGSMCellIdStructT_data_v02}
{sizeof(qmiLocGSMCellIdStructT_v02), qmiLocGSMCellIdStructT_data_v02},
{sizeof(qmiLocEmergencyNotificationStructT_v02), qmiLocEmergencyNotificationStructT_data_v02},
{sizeof(qmiLocSensorTemperatureSampleStructT_v02), qmiLocSensorTemperatureSampleStructT_data_v02},
{sizeof(qmiLocSensorTemperatureSampleListStructT_v02), qmiLocSensorTemperatureSampleListStructT_data_v02}
};
/* Message Table */
@ -2774,7 +2949,11 @@ static const qmi_idl_message_table_entry loc_message_table_v02[] = {
{sizeof(qmiLocInjectNetworkInitiatedMessageReqMsgT_v02), qmiLocInjectNetworkInitiatedMessageReqMsgT_data_v02},
{sizeof(qmiLocInjectNetworkInitiatedMessageIndMsgT_v02), qmiLocInjectNetworkInitiatedMessageIndMsgT_data_v02},
{0, 0},
{sizeof(qmiLocWWANOutOfServiceNotificationIndMsgT_v02), qmiLocWWANOutOfServiceNotificationIndMsgT_data_v02}
{sizeof(qmiLocWWANOutOfServiceNotificationIndMsgT_v02), qmiLocWWANOutOfServiceNotificationIndMsgT_data_v02},
{sizeof(qmiLocEventPedometerControlIndMsgT_v02), qmiLocEventPedometerControlIndMsgT_data_v02},
{sizeof(qmiLocEventMotionDataControlIndMsgT_v02), qmiLocEventMotionDataControlIndMsgT_data_v02},
{sizeof(qmiLocPedometerReportReqMsgT_v02), qmiLocPedometerReportReqMsgT_data_v02},
{sizeof(qmiLocPedometerReportIndMsgT_v02), qmiLocPedometerReportIndMsgT_data_v02}
};
/* Predefine the Type Table Object */
@ -2802,7 +2981,7 @@ static const qmi_idl_service_message_table_entry loc_service_command_messages_v0
{QMI_LOC_STOP_REQ_V02, TYPE16(0, 4), 4},
{QMI_LOC_GET_SERVICE_REVISION_REQ_V02, TYPE16(0, 22), 0},
{QMI_LOC_GET_FIX_CRITERIA_REQ_V02, TYPE16(0, 24), 0},
{QMI_LOC_NI_USER_RESPONSE_REQ_V02, TYPE16(0, 26), 1086},
{QMI_LOC_NI_USER_RESPONSE_REQ_V02, TYPE16(0, 26), 1345},
{QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02, TYPE16(0, 28), 1053},
{QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_REQ_V02, TYPE16(0, 30), 0},
{QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_REQ_V02, TYPE16(0, 32), 0},
@ -2827,14 +3006,14 @@ static const qmi_idl_service_message_table_entry loc_service_command_messages_v0
{QMI_LOC_SET_OPERATION_MODE_REQ_V02, TYPE16(0, 70), 7},
{QMI_LOC_GET_OPERATION_MODE_REQ_V02, TYPE16(0, 72), 0},
{QMI_LOC_SET_SPI_STATUS_REQ_V02, TYPE16(0, 74), 8},
{QMI_LOC_INJECT_SENSOR_DATA_REQ_V02, TYPE16(0, 76), 1425},
{QMI_LOC_INJECT_SENSOR_DATA_REQ_V02, TYPE16(0, 76), 2063},
{QMI_LOC_INJECT_TIME_SYNC_DATA_REQ_V02, TYPE16(0, 78), 21},
{QMI_LOC_SET_CRADLE_MOUNT_CONFIG_REQ_V02, TYPE16(0, 82), 11},
{QMI_LOC_GET_CRADLE_MOUNT_CONFIG_REQ_V02, TYPE16(0, 80), 0},
{QMI_LOC_SET_EXTERNAL_POWER_CONFIG_REQ_V02, TYPE16(0, 86), 7},
{QMI_LOC_GET_EXTERNAL_POWER_CONFIG_REQ_V02, TYPE16(0, 84), 0},
{QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02, TYPE16(0, 88), 129},
{QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02, TYPE16(0, 90), 32},
{QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02, TYPE16(0, 90), 53},
{QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02, TYPE16(0, 92), 11},
{QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02, TYPE16(0, 94), 7},
{QMI_LOC_GET_SENSOR_CONTROL_CONFIG_REQ_V02, TYPE16(0, 96), 0},
@ -2855,7 +3034,8 @@ static const qmi_idl_service_message_table_entry loc_service_command_messages_v0
{QMI_LOC_GET_NI_GEOFENCE_ID_LIST_REQ_V02, TYPE16(0, 126), 7},
{QMI_LOC_INJECT_GSM_CELL_INFO_REQ_V02, TYPE16(0, 128), 23},
{QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_REQ_V02, TYPE16(0, 130), 1036},
{QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_REQ_V02, TYPE16(0, 132), 0}
{QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_REQ_V02, TYPE16(0, 132), 0},
{QMI_LOC_PEDOMETER_REPORT_REQ_V02, TYPE16(0, 136), 46}
};
static const qmi_idl_service_message_table_entry loc_service_response_messages_v02[] = {
@ -2918,21 +3098,22 @@ static const qmi_idl_service_message_table_entry loc_service_response_messages_v
{QMI_LOC_GET_NI_GEOFENCE_ID_LIST_RESP_V02, TYPE16(0, 0), 7},
{QMI_LOC_INJECT_GSM_CELL_INFO_RESP_V02, TYPE16(0, 0), 7},
{QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_RESP_V02, TYPE16(0, 0), 7},
{QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_RESP_V02, TYPE16(0, 0), 7}
{QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_RESP_V02, TYPE16(0, 0), 7},
{QMI_LOC_PEDOMETER_REPORT_RESP_V02, TYPE16(0, 0), 7}
};
static const qmi_idl_service_message_table_entry loc_service_indication_messages_v02[] = {
{QMI_LOC_EVENT_POSITION_REPORT_IND_V02, TYPE16(0, 5), 388},
{QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02, TYPE16(0, 6), 2248},
{QMI_LOC_EVENT_NMEA_IND_V02, TYPE16(0, 7), 203},
{QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02, TYPE16(0, 8), 1079},
{QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02, TYPE16(0, 8), 1338},
{QMI_LOC_EVENT_INJECT_TIME_REQ_IND_V02, TYPE16(0, 9), 776},
{QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_IND_V02, TYPE16(0, 10), 783},
{QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02, TYPE16(0, 11), 40},
{QMI_LOC_EVENT_ENGINE_STATE_IND_V02, TYPE16(0, 12), 7},
{QMI_LOC_EVENT_FIX_SESSION_STATE_IND_V02, TYPE16(0, 13), 11},
{QMI_LOC_EVENT_WIFI_REQ_IND_V02, TYPE16(0, 14), 12},
{QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_IND_V02, TYPE16(0, 15), 16},
{QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_IND_V02, TYPE16(0, 15), 32},
{QMI_LOC_EVENT_TIME_SYNC_REQ_IND_V02, TYPE16(0, 16), 7},
{QMI_LOC_EVENT_SET_SPI_STREAMING_REPORT_IND_V02, TYPE16(0, 17), 4},
{QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02, TYPE16(0, 18), 21},
@ -2963,7 +3144,7 @@ static const qmi_idl_service_message_table_entry loc_service_indication_messages
{QMI_LOC_SET_OPERATION_MODE_IND_V02, TYPE16(0, 71), 7},
{QMI_LOC_GET_OPERATION_MODE_IND_V02, TYPE16(0, 73), 14},
{QMI_LOC_SET_SPI_STATUS_IND_V02, TYPE16(0, 75), 7},
{QMI_LOC_INJECT_SENSOR_DATA_IND_V02, TYPE16(0, 77), 22},
{QMI_LOC_INJECT_SENSOR_DATA_IND_V02, TYPE16(0, 77), 30},
{QMI_LOC_INJECT_TIME_SYNC_DATA_IND_V02, TYPE16(0, 79), 7},
{QMI_LOC_SET_CRADLE_MOUNT_CONFIG_IND_V02, TYPE16(0, 83), 7},
{QMI_LOC_GET_CRADLE_MOUNT_CONFIG_IND_V02, TYPE16(0, 81), 18},
@ -2971,7 +3152,7 @@ static const qmi_idl_service_message_table_entry loc_service_indication_messages
{QMI_LOC_GET_EXTERNAL_POWER_CONFIG_IND_V02, TYPE16(0, 85), 14},
{QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02, TYPE16(0, 89), 7},
{QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02, TYPE16(0, 91), 18},
{QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02, TYPE16(0, 93), 39},
{QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02, TYPE16(0, 93), 60},
{QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02, TYPE16(0, 95), 7},
{QMI_LOC_GET_SENSOR_CONTROL_CONFIG_IND_V02, TYPE16(0, 97), 14},
{QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02, TYPE16(0, 99), 14},
@ -2994,7 +3175,10 @@ static const qmi_idl_service_message_table_entry loc_service_indication_messages
{QMI_LOC_GET_NI_GEOFENCE_ID_LIST_IND_V02, TYPE16(0, 127), 82},
{QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02, TYPE16(0, 129), 7},
{QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02, TYPE16(0, 131), 7},
{QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02, TYPE16(0, 133), 7}
{QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02, TYPE16(0, 133), 7},
{QMI_LOC_EVENT_PEDOMETER_CONTROL_IND_V02, TYPE16(0, 134), 15},
{QMI_LOC_EVENT_MOTION_DATA_CONTROL_IND_V02, TYPE16(0, 135), 4},
{QMI_LOC_PEDOMETER_REPORT_IND_V02, TYPE16(0, 137), 7}
};
/*Service Object*/
@ -3008,7 +3192,7 @@ struct qmi_idl_service_object loc_qmi_idl_service_object_v02 = {
sizeof(loc_service_indication_messages_v02)/sizeof(qmi_idl_service_message_table_entry) },
{ loc_service_command_messages_v02, loc_service_response_messages_v02, loc_service_indication_messages_v02},
&loc_qmi_idl_type_table_object_v02,
0x10,
0x11,
NULL
};

File diff suppressed because it is too large Load diff