pds: implement "PDS Set/Get AGPS Config"
This commit is contained in:
parent
db0c2a54a8
commit
e050c27185
|
@ -339,6 +339,70 @@
|
||||||
"format" : "guint32" } ] } ],
|
"format" : "guint32" } ] } ],
|
||||||
"output" : [ { "common-ref" : "Operation Result" } ] },
|
"output" : [ { "common-ref" : "Operation Result" } ] },
|
||||||
|
|
||||||
|
// *********************************************************************************
|
||||||
|
{ "name" : "Get AGPS Config",
|
||||||
|
"type" : "Message",
|
||||||
|
"service" : "PDS",
|
||||||
|
"id" : "0x002E",
|
||||||
|
"version" : "1.0",
|
||||||
|
"input" : [ { "name" : "Network Mode",
|
||||||
|
"id" : "0x12",
|
||||||
|
"mandatory" : "no",
|
||||||
|
"type" : "TLV",
|
||||||
|
"format" : "guint8",
|
||||||
|
"public-format" : "QmiPdsNetworkMode" } ],
|
||||||
|
"output" : [ { "common-ref" : "Operation Result" },
|
||||||
|
{ "name" : "Location Server Address",
|
||||||
|
"id" : "0x10",
|
||||||
|
"mandatory" : "no",
|
||||||
|
"type" : "TLV",
|
||||||
|
"format" : "sequence",
|
||||||
|
"contents" : [ { "name" : "IP",
|
||||||
|
"format" : "guint32",
|
||||||
|
"endian" : "little" },
|
||||||
|
{ "name" : "Port",
|
||||||
|
"format" : "guint32" } ],
|
||||||
|
"prerequisites" : [ { "common-ref" : "Success" } ] },
|
||||||
|
{ "name" : "Location Server URL",
|
||||||
|
"id" : "0x11",
|
||||||
|
"mandatory" : "no",
|
||||||
|
"type" : "TLV",
|
||||||
|
"format" : "array",
|
||||||
|
"size-prefix-format" : "guint8",
|
||||||
|
"array-element" : { "format" : "guint8" },
|
||||||
|
"prerequisites" : [ { "common-ref" : "Success" } ] } ] },
|
||||||
|
|
||||||
|
// *********************************************************************************
|
||||||
|
{ "name" : "Set AGPS Config",
|
||||||
|
"type" : "Message",
|
||||||
|
"service" : "PDS",
|
||||||
|
"id" : "0x002F",
|
||||||
|
"version" : "1.0",
|
||||||
|
"input" : [ { "name" : "Location Server Address",
|
||||||
|
"id" : "0x10",
|
||||||
|
"mandatory" : "no",
|
||||||
|
"type" : "TLV",
|
||||||
|
"format" : "sequence",
|
||||||
|
"contents" : [ { "name" : "IP",
|
||||||
|
"format" : "guint32",
|
||||||
|
"format" : "guint32" },
|
||||||
|
{ "name" : "Port",
|
||||||
|
"format" : "guint32" } ] },
|
||||||
|
{ "name" : "Location Server URL",
|
||||||
|
"id" : "0x11",
|
||||||
|
"mandatory" : "no",
|
||||||
|
"type" : "TLV",
|
||||||
|
"format" : "array",
|
||||||
|
"size-prefix-format" : "guint8",
|
||||||
|
"array-element" : { "format" : "guint8" } },
|
||||||
|
{ "name" : "Network Mode",
|
||||||
|
"id" : "0x14",
|
||||||
|
"mandatory" : "no",
|
||||||
|
"type" : "TLV",
|
||||||
|
"format" : "guint8",
|
||||||
|
"public-format" : "QmiPdsNetworkMode" } ],
|
||||||
|
"output" : [ { "common-ref" : "Operation Result" } ] },
|
||||||
|
|
||||||
// *********************************************************************************
|
// *********************************************************************************
|
||||||
{ "name" : "Get Auto Tracking State",
|
{ "name" : "Get Auto Tracking State",
|
||||||
"type" : "Message",
|
"type" : "Message",
|
||||||
|
|
|
@ -644,29 +644,34 @@ QmiPdsPositionSessionStatus
|
||||||
QmiPdsDataValid
|
QmiPdsDataValid
|
||||||
QmiPdsTrackingSessionState
|
QmiPdsTrackingSessionState
|
||||||
QmiPdsOperatingMode
|
QmiPdsOperatingMode
|
||||||
|
QmiPdsNetworkMode
|
||||||
<SUBSECTION Methods>
|
<SUBSECTION Methods>
|
||||||
qmi_pds_operation_mode_get_string
|
qmi_pds_operation_mode_get_string
|
||||||
qmi_pds_position_session_status_get_string
|
qmi_pds_position_session_status_get_string
|
||||||
qmi_pds_data_valid_build_string_from_mask
|
qmi_pds_data_valid_build_string_from_mask
|
||||||
qmi_pds_tracking_session_state_get_string
|
qmi_pds_tracking_session_state_get_string
|
||||||
qmi_pds_operating_mode_get_string
|
qmi_pds_operating_mode_get_string
|
||||||
|
qmi_pds_network_mode_get_string
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
qmi_pds_operation_mode_build_string_from_mask
|
qmi_pds_operation_mode_build_string_from_mask
|
||||||
qmi_pds_position_session_status_build_string_from_mask
|
qmi_pds_position_session_status_build_string_from_mask
|
||||||
qmi_pds_data_valid_get_string
|
qmi_pds_data_valid_get_string
|
||||||
qmi_pds_tracking_session_state_build_string_from_mask
|
qmi_pds_tracking_session_state_build_string_from_mask
|
||||||
qmi_pds_operating_mode_build_string_from_mask
|
qmi_pds_operating_mode_build_string_from_mask
|
||||||
|
qmi_pds_network_mode_build_string_from_mask
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
QMI_TYPE_PDS_DATA_VALID
|
QMI_TYPE_PDS_DATA_VALID
|
||||||
QMI_TYPE_PDS_OPERATION_MODE
|
QMI_TYPE_PDS_OPERATION_MODE
|
||||||
QMI_TYPE_PDS_POSITION_SESSION_STATUS
|
QMI_TYPE_PDS_POSITION_SESSION_STATUS
|
||||||
QMI_TYPE_PDS_TRACKING_SESSION_STATE
|
QMI_TYPE_PDS_TRACKING_SESSION_STATE
|
||||||
QMI_TYPE_PDS_OPERATING_MODE
|
QMI_TYPE_PDS_OPERATING_MODE
|
||||||
|
QMI_TYPE_PDS_NETWORK_MODE
|
||||||
qmi_pds_data_valid_get_type
|
qmi_pds_data_valid_get_type
|
||||||
qmi_pds_operation_mode_get_type
|
qmi_pds_operation_mode_get_type
|
||||||
qmi_pds_position_session_status_get_type
|
qmi_pds_position_session_status_get_type
|
||||||
qmi_pds_tracking_session_state_get_type
|
qmi_pds_tracking_session_state_get_type
|
||||||
qmi_pds_operating_mode_get_type
|
qmi_pds_operating_mode_get_type
|
||||||
|
qmi_pds_network_mode_get_type
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
|
|
|
@ -210,6 +210,8 @@
|
||||||
<xi:include href="xml/qmi-message-pds-set-auto-tracking-state.xml"/>
|
<xi:include href="xml/qmi-message-pds-set-auto-tracking-state.xml"/>
|
||||||
<xi:include href="xml/qmi-message-pds-get-default-tracking-session.xml"/>
|
<xi:include href="xml/qmi-message-pds-get-default-tracking-session.xml"/>
|
||||||
<xi:include href="xml/qmi-message-pds-set-default-tracking-session.xml"/>
|
<xi:include href="xml/qmi-message-pds-set-default-tracking-session.xml"/>
|
||||||
|
<xi:include href="xml/qmi-message-pds-get-agps-config.xml"/>
|
||||||
|
<xi:include href="xml/qmi-message-pds-set-agps-config.xml"/>
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
|
|
@ -168,4 +168,19 @@ typedef enum {
|
||||||
QMI_PDS_OPERATING_MODE_MS_ASSISTED = 2,
|
QMI_PDS_OPERATING_MODE_MS_ASSISTED = 2,
|
||||||
} QmiPdsOperatingMode;
|
} QmiPdsOperatingMode;
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/* Helper enums for the 'QMI PDS Get AGPS Config' request/response */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* QmiPdsNetworkMode:
|
||||||
|
* @QMI_PDS_NETWORK_MODE_UMTS: UMTS.
|
||||||
|
* @QMI_PDS_NETWORK_MODE_CDMA: CDMA.
|
||||||
|
*
|
||||||
|
* Network mode used during the A-GPS setup.
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
QMI_PDS_NETWORK_MODE_UMTS = 0,
|
||||||
|
QMI_PDS_NETWORK_MODE_CDMA = 1,
|
||||||
|
} QmiPdsNetworkMode;
|
||||||
|
|
||||||
#endif /* _LIBQMI_GLIB_QMI_ENUMS_PDS_H_ */
|
#endif /* _LIBQMI_GLIB_QMI_ENUMS_PDS_H_ */
|
||||||
|
|
Loading…
Reference in New Issue