diff --git a/dataservices/Android.mk b/dataservices/Android.mk
deleted file mode 100644
index 5053e7d..0000000
--- a/dataservices/Android.mk
+++ /dev/null
@@ -1 +0,0 @@
-include $(call all-subdir-makefiles)
diff --git a/dataservices/Makefile.am b/dataservices/Makefile.am
deleted file mode 100755
index f2ad6f9..0000000
--- a/dataservices/Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
-# Makefile.am - Automake script for Data-opensource
-#
-
-ACLOCAL_AMFLAGS = -I m4
-AUTOMAKE_OPTIONS = foreign
-SUBDIRS = rmnetctl/src rmnetctl/cli
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = data-oss.pc
-EXTRA_DIST = $(pkgconfig_DATA)
-
diff --git a/dataservices/configure.ac b/dataservices/configure.ac
deleted file mode 100644
index b6901ee..0000000
--- a/dataservices/configure.ac
+++ /dev/null
@@ -1,51 +0,0 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-AC_PREREQ([2.65])
-AC_INIT([data-oss], [1.0.0])
-AM_INIT_AUTOMAKE
-AC_OUTPUT(Makefile rmnetctl/src/Makefile rmnetctl/cli/Makefile data-oss.pc)
-AC_CONFIG_SRCDIR([rmnetctl/src/librmnetctl.c])
-#AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_MACRO_DIR([m4])
-
-# Checks for programs.
-AC_PROG_CC
-AC_PROG_LIBTOOL
-PKG_PROG_PKG_CONFIG
-
-# Checks for libraries.
-AC_ARG_WITH(sanitized-headers,
- AS_HELP_STRING([--with-sanitized-headers=DIR],
- [Specify the location of the sanitized Linux headers]),
- [CPPFLAGS="$CPPFLAGS -idirafter $withval"])
-
-AC_ARG_WITH([glib],
- AC_HELP_STRING([--with-glib],
- [enable glib, building HLOS systems which use glib]))
-
-if (test "x${with_glib}" = "xyes"); then
- AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib])
- PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes,
- AC_MSG_ERROR(GThread >= 2.16 is required))
- PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes,
- AC_MSG_ERROR(GLib >= 2.16 is required))
- GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
- GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
- AC_SUBST(GLIB_CFLAGS)
- AC_SUBST(GLIB_LIBS)
-fi
-
-AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes")
-
-# Checks for header files.
-AC_CHECK_HEADERS([sys/socket.h stdint.h linux/netlink.h string.h stdio.h unistd.h stdlib.h linux/rmnet_data.h])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_TYPE_OFF_T
-
-# Checks for library functions.
-AC_FUNC_MALLOC
-
-#AC_FUNC_MMAP
-#AC_CHECK_FUNCS([memset malloc sendto recvfrom ])
-AC_OUTPUT
diff --git a/dataservices/data-oss.pc.in b/dataservices/data-oss.pc.in
deleted file mode 100644
index 7c268df..0000000
--- a/dataservices/data-oss.pc.in
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: data-oss
-Description: Data Opensource Components
-Version: @VERSION@
-Libs: -L${libdir} -lrmnetctl
-Cflags: -I${includedir}/data-oss
diff --git a/dataservices/datatop/Android.mk b/dataservices/datatop/Android.mk
deleted file mode 100644
index 8338432..0000000
--- a/dataservices/datatop/Android.mk
+++ /dev/null
@@ -1,2 +0,0 @@
-include $(call all-subdir-makefiles)
-
diff --git a/dataservices/datatop/Makefile.am b/dataservices/datatop/Makefile.am
deleted file mode 100644
index 15ea2b3..0000000
--- a/dataservices/datatop/Makefile.am
+++ /dev/null
@@ -1,3 +0,0 @@
-AUTOMAKE_OPTIONS = foreign
-
-SUBDIRS = src
diff --git a/dataservices/datatop/autogen.sh b/dataservices/datatop/autogen.sh
deleted file mode 100644
index 7141954..0000000
--- a/dataservices/datatop/autogen.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-# Copyright (c) 2015, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-ACLOCAL=`which aclocal`
-AUTOCONF=`which autoconf`
-AUTOMAKE=`which automake`
-
-if [ ! -x "$ACLOCAL" ]; then
- echo "Missing 'aclocal'; not in path. Make sure it is installed!"
- exit -1
-fi
-
-if [ ! -x "$AUTOCONF" ]; then
- echo "Missing 'autoconf'; not in path. Make sure it is installed!"
- exit -1
-fi
-
-if [ ! -x "$AUTOMAKE" ]; then
- echo "Missing 'automake'; not in path. Make sure it is installed!"
- exit -1
-fi
-
-$ACLOCAL
-$AUTOCONF
-$AUTOMAKE -a
diff --git a/dataservices/datatop/configure.ac b/dataservices/datatop/configure.ac
deleted file mode 100644
index b9f9abf..0000000
--- a/dataservices/datatop/configure.ac
+++ /dev/null
@@ -1,56 +0,0 @@
-# -*- Autoconf -*-
-
-# Copyright (c) 2015, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ([2.68])
-AC_INIT([Data Top], [1.0.4], [harouth@codeaurora.org])
-AC_CONFIG_SRCDIR([src/datatop.c])
-#AC_CONFIG_HEADERS([src/config.h])
-AC_CONFIG_FILES([Makefile
- src/Makefile])
-
-# Checks for programs.
-AC_PROG_CC
-
-# Checks for libraries.
-
-# Checks for header files.
-AC_CHECK_HEADERS([stdlib.h string.h])
-
-# Checks for typedefs, structures, and compiler characteristics.
-
-# Checks for library functions.
-AC_FUNC_MALLOC
-
-
-#### Generate Makefile Data
-AM_INIT_AUTOMAKE([datatop], [1.0.4])
-
-AC_OUTPUT
diff --git a/dataservices/datatop/src/Android.mk b/dataservices/datatop/src/Android.mk
deleted file mode 100644
index f61e654..0000000
--- a/dataservices/datatop/src/Android.mk
+++ /dev/null
@@ -1,33 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := datatop.c
-LOCAL_SRC_FILES += datatop_cpu_stats_poll.c
-LOCAL_SRC_FILES += datatop_dev_poll.c
-LOCAL_SRC_FILES += datatop_dual_line_poll.c
-LOCAL_SRC_FILES += datatop_fileops.c
-LOCAL_SRC_FILES += datatop_gen_poll.c
-LOCAL_SRC_FILES += datatop_helpers.c
-LOCAL_SRC_FILES += datatop_linked_list.c
-LOCAL_SRC_FILES += datatop_meminfo_file_poll.c
-LOCAL_SRC_FILES += datatop_opt.c
-LOCAL_SRC_FILES += datatop_single_line_poll.c
-LOCAL_SRC_FILES += datatop_stat_poll.c
-LOCAL_SRC_FILES += datatop_str.c
-LOCAL_SRC_FILES += datatop_sys_snap.c
-LOCAL_SRC_FILES += datatop_value_only_poll.c
-LOCAL_SRC_FILES += datatop_ip_table_poll.c
-
-LOCAL_CFLAGS := -Wall -Wextra -Werror -pedantic -std=c99
-LOCAL_CFLAGS += -DVERSION="\"1.0.4"\"
-LOCAL_CFLAGS += -DHAVE_STRL_FUNCTIONS
-LOCAL_CFLAGS += -D _BSD_SOURCE
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)
-
-LOCAL_CLANG := true
-LOCAL_MODULE := datatop
-LOCAL_MODULE_TAGS := optional
-
-include $(BUILD_EXECUTABLE)
diff --git a/dataservices/datatop/src/Makefile.am b/dataservices/datatop/src/Makefile.am
deleted file mode 100644
index 8ac8014..0000000
--- a/dataservices/datatop/src/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-## Makefile.am for main application
-
-CFLAGS := -std=c99 # Target c99 for portability
-CFLAGS += -Wall -Wextra -Werror -pedantic # Strict code quality enforcement
-CFLAGS += -g -D _BSD_SOURCE # Enable debugging and BSD time functions
-
-bin_PROGRAMS = datatop
-datatop_SOURCES := datatop.c
-datatop_SOURCES += datatop_fileops.c
-datatop_SOURCES += datatop_dual_line_poll.c
-datatop_SOURCES += datatop_single_line_poll.c
-datatop_SOURCES += datatop_meminfo_file_poll.c
-datatop_SOURCES += datatop_dev_poll.c
-datatop_SOURCES += datatop_stat_poll.c
-datatop_SOURCES += datatop_value_only_poll.c
-datatop_SOURCES += datatop_str.c
-datatop_SOURCES += datatop_cpu_stats_poll.c
-datatop_SOURCES += datatop_helpers.c
-datatop_SOURCES += datatop_linked_list.c
-datatop_SOURCES += datatop_opt.c
-datatop_SOURCES += datatop_gen_poll.c
-datatop_SOURCES += datatop_sys_snap.c
-datatop_SOURCES += datatop_ip_table_poll.c
diff --git a/dataservices/datatop/src/datatop.c b/dataservices/datatop/src/datatop.c
deleted file mode 100644
index fba26e1..0000000
--- a/dataservices/datatop/src/datatop.c
+++ /dev/null
@@ -1,300 +0,0 @@
-/************************************************************************
-Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
-* @file datatop.c
-* @brief Executes commands for application.
-*
-* Contains the main() function where program executes. Calls appropriate
-* methods based on user's CLI commands. Executes parsing function to
-* determine necessary output and handles errors which may arise during the
-* parse. Initiliazes files for data collection. Will call functions designed
-* to poll and print the data in understandable format.
-*/
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_linked_list.h"
-#include "datatop_opt.h"
-#include "datatop_fileops.h"
-#include "datatop_polling.h"
-#include "datatop_gen_poll.h"
-
-struct dtop_linked_list *first_dpg_list;
-struct cli_opts usr_cl_opts;
-
-/**
- * @brief Prints the datapoint names and values to the terminal.
- *
- * @param dpg_list A pointer to the first node of a linked list which
- * contains all data_point_gatherer structs to print.
- */
-void dtop_print_terminal(struct dtop_linked_list *dpg_list)
-{
- struct dtop_linked_list *curr_ptr = dpg_list;
- struct dtop_data_point_gatherer *dpset;
-
- while (curr_ptr) {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- dtop_print_dpg(dpset);
- curr_ptr = curr_ptr->next_ptr;
- }
-}
-
-/**
- * @brief Polls the data periodically and prints to file specified by the user.
- *
- * Polls the data as often as specified by the user in their CLI arguments
- * and outputs the data to a file also specified in CLI arguments. Then prints
- * a snapshot of delta(dp_value) to the terminal.
- *
- * @param dpg_list A pointer to the first node of a linked list which contains
- * all data_point_gatherer structs to poll and print.
- * @param fw A pointer to the file which will be printed to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-int dtop_poll_periodically(struct dtop_linked_list *dpg_list, FILE *fw)
-{
- struct timeval tv, timeout;
- fd_set rfds;
- time_t curtime, endtime;
- int inp, quit = 0;
- struct dtop_linked_list *curr_ptr = dpg_list;
- struct dtop_data_point_gatherer *dpset;
- struct timeval ftime, itime, polltime;
-
- gettimeofday(&tv, NULL);
- curtime = tv.tv_sec;
- endtime = tv.tv_sec + usr_cl_opts.poll_time;
-
- /* print all of our datapoint names as column headers in csv format */
- if (fprintf(fw, "\"Time\",") < 0)
- return FILE_ERROR;
-
- while (curr_ptr) {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- if (dtop_print_dpg_names_csv(dpset, fw) == FILE_ERROR)
- return FILE_ERROR;
- curr_ptr = curr_ptr->next_ptr;
- }
- if (fprintf(fw, "\n") < 0)
- return FILE_ERROR;
-
- dtop_print_interactive_opts();
- gettimeofday(&itime, NULL);
- /* periodically poll the datapoints and print in csv format */
- while (curtime < endtime
- || usr_cl_opts.poll_time == POLL_NOT_SPECIFIED) {
- FD_ZERO(&rfds);
- FD_SET(0, &rfds);
- timeout.tv_sec = usr_cl_opts.poll_per;
- timeout.tv_usec = 0;
- //ftime is right before timeout calculations for most acurate calculations
- gettimeofday(&ftime, NULL);
- timersub(&ftime, &itime, &polltime);
- timersub(&timeout,&polltime, &timeout);
- inp = select(1, &rfds, NULL, NULL, &timeout);
- gettimeofday(&itime, NULL);
- if (inp) {
- char s[4];
- scanf("%s", s);
- if (strcmp(s, "quit") == 0
- || strcmp(s, "q") == 0) {
- quit = QUIT;
- break;
- }
- if (strcmp(s, "i") == 0) {
- dtop_print_snapshot_diff(first_dpg_list);
- dtop_reset_dp_initial_values(first_dpg_list);
- }
- if (strcmp(s, "l") == 0)
- dtop_print_snapshot_diff(first_dpg_list);
- }
- gettimeofday(&tv, NULL);
- curtime = tv.tv_sec;
- dtop_poll(dpg_list);
- printf("Polled at %ld.%06ld\n", tv.tv_sec, tv.tv_usec);
- if (dtop_print_time_at_poll(fw) == FILE_ERROR)
- return FILE_ERROR;
- if (dtop_write_pollingdata_csv(dpg_list, fw) == FILE_ERROR)
- return FILE_ERROR;
- }
-
- if (quit != QUIT)
- dtop_print_snapshot_diff(dpg_list);
- return FILE_SUCCESS;
-}
-
-static void dtop_set_niceness(int niceness)
-{
- int pid, rc;
- pid = getpid();
- printf("Requesting nice %d\n", niceness);
- rc = setpriority(PRIO_PROCESS, pid, niceness);
- if (rc != 0)
- fprintf(stderr, "Error setting priority [%d]\n", errno);
-
- rc = getpriority(PRIO_PROCESS, pid);
- printf("Running with nice %d.\n", rc);
-}
-
-int main(int argc, char **argv)
-{
- int parse_status;
- pthread_t tid;
- printf("DataTop - Version %s\n", VERSION);
- printf("(c)2014-2015 Linux Foundation\n");
-
- dtop_load_default_options(&usr_cl_opts);
-
- parse_status = dtop_parse_cli_opts(&usr_cl_opts, argc, argv);
- switch (parse_status) {
- case PARSE_SUCCESS:
- dtop_set_niceness(usr_cl_opts.priority);
- break;
-
- case PARSE_FORCE_EXIT:
- exit(EXIT_SUCCESS);
- break;
-
- case PARSE_FAILURE:
- default:
- printf("Failed to parse command line arguments.\n");
- exit(EXIT_FAILURE);
- break;
- }
-
- if (usr_cl_opts.iptables_rules_routes == OPT_CHOSE) {
- if (!usr_cl_opts.out_dir) {
- printf("Please provide an out directory.\n");
- exit(EXIT_FAILURE);
- }
- }
-
- dtop_dual_line_init("/proc/net/netstat");
- dtop_dual_line_init("/proc/net/snmp");
- dtop_single_line_init("/proc/net/snmp6");
- dtop_gen_init("/proc/sys/net/");
- dtop_gen_init("/sys/module/rmnet_data/parameters/");
- dtop_gen_init("/sys/class/net/rmnet_mhi0/statistics/");
- dtop_gen_init("/sys/class/net/usb_rmnet0/statistics/");
- dtop_gen_init("/sys/class/net/rmnet_ipa0/statistics/");
- dtop_meminfo_init();
- dtop_dev_init();
- dtop_stat_init();
- dtop_cpu_stats_init();
- dtop_gen_init("/sys/kernel/debug/clk/bimc_clk/");
- dtop_gen_init("/sys/kernel/debug/clk/snoc_clk/");
- dtop_gen_init("/sys/kernel/debug/clk/pnoc_clk/");
-
- if (usr_cl_opts.iptables_rules_routes == OPT_CHOSE) {
- printf("Datatop IP Tables, rules, routes\n");
- dtop_ip_table_init(usr_cl_opts.out_dir);
- if(0 != pthread_create(&tid, NULL, &dtop_ip_table_start_poll, NULL)) {
- printf("Unable to create capture_ip_tables_rules_routes thread\n");
- }
- }
-
- if (usr_cl_opts.print_cl == OPT_CHOSE) {
- dtop_poll(first_dpg_list);
- dtop_print_terminal(first_dpg_list);
- }
-
- if (usr_cl_opts.print_csv == OPT_CHOSE) {
- FILE *to_file = NULL;
- if ((dtop_open_writing_file(usr_cl_opts.file_name,
- &to_file)) == VALID) {
- printf("\nData being polled for %ld seconds.\n",
- usr_cl_opts.poll_time);
- if (dtop_poll_periodically(first_dpg_list, to_file)
- == FILE_ERROR) {
- fprintf(stderr, "err=%d: %s\n", errno,
- strerror(errno));
- dtop_close_file(to_file);
- deconstruct_dpgs(first_dpg_list);
- dtop_rem_linked_list(first_dpg_list);
- exit(EXIT_FAILURE);
- }
- dtop_close_file(to_file);
- } else {
- printf("File Can Not Be Opened\n");
- exit(EXIT_FAILURE);
- }
- }
-
- if (usr_cl_opts.snapshot_file) {
- if (dtop_print_system_snapshot(usr_cl_opts.snapshot_file)
- == FILE_ERROR) {
- fprintf(stderr, "err=%d: %s\n", errno,
- strerror(errno));
- deconstruct_dpgs(first_dpg_list);
- dtop_rem_linked_list(first_dpg_list);
- exit(EXIT_FAILURE);
- }
- }
-
- if (usr_cl_opts.print_cl == OPT_NOT_CHOSE &&
- usr_cl_opts.print_csv == OPT_NOT_CHOSE) {
- if ((!usr_cl_opts.snapshot_file)
- || usr_cl_opts.poll_time_selected == POLL_TIME_SELECTED) {
- printf("\nData will now be polled for %ld seconds.\n",
- usr_cl_opts.poll_time);
- dtop_poll(first_dpg_list);
- sleep(usr_cl_opts.poll_time);
- dtop_poll(first_dpg_list);
- dtop_print_snapshot_diff(first_dpg_list);
- }
- }
-
- deconstruct_dpgs(first_dpg_list);
- dtop_rem_linked_list(first_dpg_list);
- return 0;
-}
-
-/**
- * @brief Adds each dpg as a node to a linked list.
- *
- * Called when a dpg is initialized.
- *
- * @param dpg A pointer to a data_point_gatherer struct which is to be added to the linked list.
- */
-void dtop_register(struct dtop_data_point_gatherer *dpg)
-{
- if (dpg)
- first_dpg_list = dtop_add_linked_list(dpg, first_dpg_list);
-}
diff --git a/dataservices/datatop/src/datatop_cpu_stats_poll.c b/dataservices/datatop/src/datatop_cpu_stats_poll.c
deleted file mode 100644
index 275ddd8..0000000
--- a/dataservices/datatop/src/datatop_cpu_stats_poll.c
+++ /dev/null
@@ -1,182 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_cpu_stats_poll.c
- * @brief Calls dtop_value_only_init for necessary cpu datapoints.
- *
- * File contains methods for determing number of cpu's online and calling
- * correct initialization function to gather scaling_cur_freq data point
- * for each cpu along with each cpu's online status.
- */
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-#include "datatop_polling.h"
-
-#define DTOP_GEN_SIZE 8192
-#define DTOP_GEN_LINE (DTOP_GEN_SIZE>>2)
-#define NO_CPUS_ONLINE -1
-
-/**
- * @brief Searches /sys/devices/system/cpu/ directory to get find number of CPUs.
- *
- * @return Number of CPUs found in directory.
- */
-static int dtop_cpu_search(void)
-{
- DIR *dp;
- struct dirent *entry;
- struct stat s;
- int cpu_amt;
- char cwd[1024];
-
- if (!getcwd(cwd, sizeof(cwd))) {
- fprintf(stderr, "Failed to get current working dir\n");
- return -1;
- }
-
- dp = opendir("/sys/devices/system/cpu/");
- if (dp == NULL) {
- fprintf(stderr, "err=%d: %s\n", errno, strerror(errno));
- fprintf(stderr, "Cannot open directory: %s\n",
- "/sys/devices/system/cpu/");
- return NO_CPUS_ONLINE;
- }
-
- chdir("/sys/devices/system/cpu/");
- cpu_amt = 0;
- while ((entry = readdir(dp))) {
- if (stat(entry->d_name, &s)) {
- printf("stat err=%d: %s\n", errno, strerror(errno));
- return NO_CPUS_ONLINE;
- }
-
- if (entry->d_name[0] == 'c' &&
- entry->d_name[1] == 'p' &&
- entry->d_name[2] == 'u' &&
- (isdigit(entry->d_name[3]))) {
-
- cpu_amt++;
- }
- }
-
- closedir(dp);
- chdir(cwd);
- return cpu_amt;
-}
-
-/**
- * @brief Creates a dpg designed for CPU online and CPU scaling_cur_freq stats.
- *
- * @param name Name of file dpg represents.
- */
-static void construct_cpu_stat_dpg(char *name)
-{
- char *file = malloc(strlen(name) + 1);
- struct dtop_data_point *dp =
- malloc(sizeof(struct dtop_data_point));
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
-
- strlcpy(file, name, strlen(name) + 1);
-
- dp[0].type = DTOP_ULONG;
- dp[0].name = malloc(5);
- strlcpy(dp[0].name, "", 5);
- dp[0].prefix = NULL;
- dp[0].data.d_ulong = 0;
- dp[0].initial_data.d_ulong = 0;
- dp[0].skip = DO_NOT_SKIP;
- dp[0].initial_data_populated = NOT_POPULATED;
-
- dpg->prefix = file;
- dpg->file = file;
- dpg->poll = dtop_value_only_poll;
- dpg->data_points = dp;
- dpg->data_points_len = 1;
- dpg->deconstruct = dtop_value_only_dpg_deconstructor;
-
- dtop_register(dpg);
-}
-
-/**
- * @brief Calls dpg constructor for necessary CPU stat files.
- *
- * Creates file names based on number of CPUs found and calls the
- * dpg constructor for them.
- *
- * @param file Directory where the CPUs are found.
- * @param add String which is concatenated onto file and represents
- * the path after a CPU directory is entered.
- * @param cpu_amt Amount of CPUs found on device.
- */
-static void cpu_poll_helper(char *file, char *add, int cpu_amt)
-{
- int i;
- for (i = 0; i < cpu_amt; i++) {
- char *cpu_num = malloc(5);
- char *newfile;
- int nf_len;
- snprintf(cpu_num, 5, "%d", i);
- nf_len = strlen(file) + strlen(add) + strlen(cpu_num) + 2;
- newfile = malloc(nf_len);
- strlcpy(newfile, file, nf_len);
- strlcat(newfile, cpu_num, nf_len);
- strlcat(newfile, add, nf_len);
- free(cpu_num);
- construct_cpu_stat_dpg(newfile);
- free(newfile);
- }
-}
-
-/**
- * @brief Calls necessary functions for CPU stat dpgs.
- */
-void dtop_cpu_stats_init(void)
-{
- int cpu_amt;
- char *file = "/sys/devices/system/cpu/cpu";
- char *add = "/cpufreq/scaling_cur_freq";
-
- cpu_amt = dtop_cpu_search();
- cpu_poll_helper(file, add, cpu_amt);
- add = "/online";
- cpu_poll_helper(file, add, cpu_amt);
-}
diff --git a/dataservices/datatop/src/datatop_dev_poll.c b/dataservices/datatop/src/datatop_dev_poll.c
deleted file mode 100644
index 0dcab1e..0000000
--- a/dataservices/datatop/src/datatop_dev_poll.c
+++ /dev/null
@@ -1,320 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_dev_poll.c
- * @brief Adds ability for data collection from /proc/net/dev
- *
- * File contains methods for searching and polling data from
- * "/proc/net/dev"
- */
-
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-
-#define DTOP_DEV_SIZE 8192
-#define DTOP_DEV_LINE (DTOP_DEV_SIZE>>2)
-
-/**
-* @struct dtop_dev_vars
-* @brief Struct used to hold necessary variables for /proc/net/dev dpg
-*
-* @var dtop_dev_vars::line
-* Array of strings where necessary dp names and values are held.
-* @var dtop_dev_vars::line_count
-* Number of lines the file is that the dpg represents.
-*/
-struct dtop_dev_vars {
- char **line;
- int line_count;
-};
-
-/**
- * @brief Parses lines with data in "/proc/net/dev"
- *
- * @param line1 Line to parse to find datapoint names and values.
- * @param len1 Length of line1.
- * @param index Index in the dictionary the key (name) is added to.
- * @param dict Dictionary the keys and values are added to.
- */
-static void dt_dev_parse(char *line1, int len1,
- int index, struct dt_procdict *dict)
-{
- int i, start = 0;
- int j, k, n;
- i = 0;
- while (line1[i] == ' ' || line1[i] == ' ')
- i++;
- dict->key[index] = &line1[i];
- for (i = 0; i < len1; i++) {
- if (line1[i] == ':') {
- line1[i+1] = 0;
- start = i+2;
- break;
- }
- }
-
- k = 0;
- for (j = start; j < len1; j++) {
- if (line1[j] != ' ' && line1[j] != ' ') {
- dict->val[k] = &line1[j];
- n = j;
- while (line1[n] != ' ' && line1[n] != ' ')
- n++;
- if (n < len1)
- line1[n] = 0;
- j = n;
- k++;
- }
- }
-}
-
-/**
- * @brief Stores the data collected from "/proc/net/dev"
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_dev_poll(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int *line_len = malloc(sizeof(int) *
- ((struct dtop_dev_vars *)
- (dpg->priv))->line_count);
- int read;
- struct dt_procdict *dict = malloc(sizeof(struct dt_procdict)
- *((struct dtop_dev_vars *)
- (dpg->priv))->line_count-2);
- int j, n, sum;
- int index = 0;
- int dp = 0;
-
- read = dt_read_file(dpg->file, &data, DTOP_DEV_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < ((struct dtop_dev_vars *)
- (dpg->priv))->line_count; n++) {
- line_len[n] = dt_read_line(((struct dtop_dev_vars *)
- (dpg->priv))->line[n],
- DTOP_DEV_LINE, data,
- DTOP_DEV_SIZE, sum);
- if (n <= (((struct dtop_dev_vars *)
- (dpg->priv))->line_count - 1)) {
- sum += (line_len[n] + 1);
- }
-
- }
-
- for (n = 2; n < ((struct dtop_dev_vars *)
- (dpg->priv))->line_count; n++) {
- dt_dev_parse(((struct dtop_dev_vars *)
- (dpg->priv))->line[n], line_len[n],
- index, &dict[index]);
- index++;
- }
-
-
- /* Assigns the dp value to the dp struct */
- for (n = 2; n < ((struct dtop_dev_vars *)
- (dpg->priv))->line_count; n++) {
- for (j = 0; j < 16; j++) {
- dtop_store_dp(&(dpg->data_points[dp]),
- dict[n-2].val[j]);
- dp++;
- }
- }
-
- dt_free(&data);
- free(line_len);
- free(dict);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated "/proc/net/dev" dpg.
- *
- * Frees the memory of the dpg along with it's data_points
- * and other malloc'd memory no longer needed.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-static void dtop_dev_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset)
-{
- int i, j, dp;
- dp = 0;
- for (j = 0; j < ((((struct dtop_dev_vars *)
- (dpset->priv))->line_count)-2); j++) {
- for (i = 0; i < 16; i++) {
- free(dpset->data_points[dp].prefix);
- dp++;
- }
- }
- free(dpset->data_points);
- for (i = 0; i < ((struct dtop_dev_vars *)
- (dpset->priv))->line_count; i++)
- free(((struct dtop_dev_vars *)(dpset->priv))->line[i]);
- free(((struct dtop_dev_vars *)(dpset->priv))->line);
- free(((struct dtop_dev_vars *)(dpset->priv)));
- free(dpset);
-}
-
-/**
- * @brief Creates a dpg for "/proc/net/dev" file
- *
- * Dynamically allocates memory for dpg which is then added to a linked list
- * via the dtop_register(dpg) function call.
- *
- * @param data_points dtop_data_point struct that dpg points to.
- * @param storage dtop_dev_vars struct that holds relevant dpg variables.
- */
-static void construct_dev_file_dpg(struct dtop_dev_vars *storage,
- int dp_count, struct dtop_data_point *data_points)
-{
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
-
- dpg->prefix = "/proc/net/dev";
- dpg->file = "/proc/net/dev";
- dpg->poll = dtop_dev_poll;
- dpg->data_points = data_points;
- dpg->priv = (struct dtop_dev_vars *)storage;
- dpg->data_points_len = dp_count;
- dpg->deconstruct = dtop_dev_dpg_deconstructor;
-
- dtop_register(dpg);
-}
-
-/**
- * @brief Scans "/proc/net/dev in order to autodetect dps.
- *
- * Searches through "/proc/net/dev" file for all available data
- * points to create as dp structs.
- *
- * @param name This is the file name "/proc/net/dev" passed in by dtop_dev_init
- * @param storage dtop_dev_vars struct where relevant variables are stored.
- */
-int dtop_dev_search(char *name, struct dtop_dev_vars *storage)
-{
- int i, n, sum;
- char *data;
- int *line_len = malloc(sizeof(int) * storage->line_count);
- int read;
- struct dt_procdict dict;
- struct dt_procdict dev_dict;
- struct dtop_data_point *data_points = malloc
- (sizeof(struct dtop_data_point) * 16 * (storage->line_count-2));
- int dp_count = (16 * (storage->line_count - 2));
- int index = 0;
- int dp = 0;
-
- storage->line = malloc(storage->line_count * sizeof(*storage->line));
-
- for (i = 0; i < storage->line_count; i++)
- storage->line[i] = malloc(sizeof(char) * DTOP_DEV_LINE);
-
- dev_dict.val[0] = "bytes";
- dev_dict.val[1] = "packets";
- dev_dict.val[2] = "errs";
- dev_dict.val[3] = "drop";
- dev_dict.val[4] = "fifo";
- dev_dict.val[5] = "frame";
- dev_dict.val[6] = "compressed";
- dev_dict.val[7] = "multicast";
- dev_dict.val[8] = "bytes";
- dev_dict.val[9] = "packets";
- dev_dict.val[10] = "errs";
- dev_dict.val[11] = "drop";
- dev_dict.val[12] = "fifo";
- dev_dict.val[13] = "colls";
- dev_dict.val[14] = "carrier";
- dev_dict.val[15] = "compressed";
-
- read = dt_read_file(name, &data, DTOP_DEV_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < storage->line_count; n++) {
- line_len[n] = dt_read_line(storage->line[n],
- DTOP_DEV_LINE, data,
- DTOP_DEV_SIZE, sum);
- if (n < (storage->line_count - 1))
- sum += (line_len[n] + 1);
- }
-
- construct_dev_file_dpg(storage, dp_count, data_points);
-
- for (n = 2; n < storage->line_count; n++) {
- dt_dev_parse(storage->line[n], line_len[n], index, &dict);
- index++;
- }
-
- for (n = 2; n < storage->line_count; n++) {
- for (i = 0; i < 16; i++) {
- char *pref = malloc(30 * sizeof(char));
- data_points[dp].skip = 0;
- data_points[dp].initial_data_populated = NOT_POPULATED;
- if (i < 8)
- strlcpy(pref, "Receive:", 30 * sizeof(char));
- else if (i >= 8)
- strlcpy(pref, "Transmit:", 30 * sizeof(char));
- strlcat(pref, dev_dict.val[i], 30 * sizeof(char));
- data_points[dp].prefix = pref;
- data_points[dp].name = dict.key[n-2];
- data_points[dp].type = DTOP_ULONG;
- dp++;
- }
- index++;
- }
-
- free(line_len);
- dt_free(&data);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Calls dtop_search for "/proc/net/dev" file.
- */
-void dtop_dev_init(void)
-{
- struct dtop_dev_vars *storage = malloc
- (sizeof(struct dtop_dev_vars));
- storage->line_count = dtop_get_file_line_amount("/proc/net/dev");
- dtop_dev_search("/proc/net/dev", storage);
-}
diff --git a/dataservices/datatop/src/datatop_dual_line_poll.c b/dataservices/datatop/src/datatop_dual_line_poll.c
deleted file mode 100644
index 8ada0c1..0000000
--- a/dataservices/datatop/src/datatop_dual_line_poll.c
+++ /dev/null
@@ -1,319 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_dual_line_poll.c
- * @brief Adds ability for data collection from dual line files.
- *
- * File contains methods for searching and polling data from
- * dual line files, meaning the first line contains the dp names
- * while the second line contains the corresponding values.
- */
-
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-
-#define DTOP_DUAL_SIZE 8192
-#define DTOP_DUAL_LINE (DTOP_DUAL_SIZE>>2)
-
-/**
-* @struct dtop_dual_line_vars
-* @brief Struct used to hold necessary variables for dual_line_file dpgs.
-*
-* @var dtop_dual_line_vars::line
-* Array of strings where necessary dp names and values are held.
-* @var dtop_dual_line_vars::line2
-* Array of strings where necessary dp names and values are held.
-* @var dtop_dual_line_vars::line_count
-* Number of lines the file is that the dpg represents.
-*/
-struct dtop_dual_line_vars {
- char **line;
- char **line2;
- int line_count;
-};
-
-/**
- * @brief Stores the data collected from a dual_line file.
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_dual_line_poll(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int *line_len = malloc(sizeof(int) *
- ((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count);
- int *line_len2 = malloc(sizeof(int) *
- ((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count);
- int read;
-
- struct dt_procdict *dict = malloc(sizeof(struct dt_procdict)
- * (((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count/2));
- struct dt_procdict *prefix_dict = malloc(sizeof(struct dt_procdict)
- * (((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count/2));
- int i, j, k, n, sum, sum2;
-
- read = dt_read_file(dpg->file, &data, DTOP_DUAL_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- sum2 = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < ((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count; n++) {
- line_len[n] = dt_read_line(((struct dtop_dual_line_vars *)
- (dpg->priv))->line[n],
- DTOP_DUAL_LINE, data,
- DTOP_DUAL_SIZE, sum);
- line_len2[n] = dt_read_line(((struct dtop_dual_line_vars *)
- (dpg->priv))->line2[n],
- DTOP_DUAL_LINE, data,
- DTOP_DUAL_SIZE, sum2);
- if (n <= (((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count-2)) {
- sum += (line_len[n] + 1);
- sum2 += (line_len2[n] + 1);
- }
-
- }
-
- /* Stores dp names and values in dictionary */
- for (i = 0; i < (((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count/2); i++)
- dt_parse_proc_dictionary(((struct dtop_dual_line_vars *)
- (dpg->priv))->line[2*i],
- line_len[2*i],
- ((struct dtop_dual_line_vars *)
- (dpg->priv))->line[(2*i)+1],
- line_len[(2*i)+1],
- &dict[i]);
-
- /* Stores dp prefices in dictionary */
- for (i = 0; i < (((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count/2); i++)
- dt_parse_for_prefix(((struct dtop_dual_line_vars *)
- (dpg->priv))->line2[2*i], line_len2[2*i],
- &prefix_dict[i]);
-
- /* Assigns a dp value to each dp struct */
- for (k = 0; k < (((struct dtop_dual_line_vars *)
- (dpg->priv))->line_count/2); k++) {
- for (j = 0; j < dpg->data_points_len; j++) {
- i = dt_find_dict_idx(dpg->data_points[j].name,
- &dict[k]);
- if (i >= 0 && i < dict[k].max &&
- (strcmp(dpg->data_points[j].prefix,
- prefix_dict[k].val[i]) == 0))
-
- dtop_store_dp(&(dpg->data_points[j]),
- dict[k].val[i]);
- }
- }
-
- dt_free(&data);
- free(line_len);
- free(line_len2);
- free(dict);
- free(prefix_dict);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated dual_line_file dpgs.
- *
- * Frees the memory of the dpg along with it's data_points
- * and other malloc'd memory no longer needed.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-static void dtop_dual_line_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset)
-{
- int i;
- free(dpset->data_points);
- for (i = 0; i < ((struct dtop_dual_line_vars *)
- (dpset->priv))->line_count; i++) {
- free(((struct dtop_dual_line_vars *)(dpset->priv))->line[i]);
- free(((struct dtop_dual_line_vars *)(dpset->priv))->line2[i]);
- }
- free(((struct dtop_dual_line_vars *)(dpset->priv))->line);
- free(((struct dtop_dual_line_vars *)(dpset->priv))->line2);
- free(((struct dtop_dual_line_vars *)(dpset->priv)));
- free(dpset);
-}
-
-/**
- * @brief Creates a dpg for a dual_line file.
- *
- * Dynamically allocates memory for dpg which is then added to a linked list
- * via the dtop_register(dpg) function call.
- *
- * @param name Name of file dpg represents.
- * @param data_points dtop_data_point struct that dpg points to.
- * @param storage dtop_dual_line_vars struct that hold relevant dpg variables.
- * @param dp_count Number of datapoints in dtop_data_point struct array.
- */
-static void construct_dual_line_file_dpg(char *name, struct dtop_data_point
- *data_points, struct dtop_dual_line_vars *storage, int dp_count)
-{
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
- dpg->prefix = name;
- dpg->file = name;
- dpg->poll = dtop_dual_line_poll;
- dpg->data_points = data_points;
- dpg->priv = (struct dtop_dual_line_vars *)storage;
- dpg->data_points_len = dp_count;
- dpg->deconstruct = dtop_dual_line_dpg_deconstructor;
-
- dtop_register(dpg);
-}
-
-/**
- * @brief Scans a dual_line file for all datapoints and creats dps.
- *
- * Searches through a dual_line file (Key on one line with value on next line)
- * for all available data points to create as dp structs.
- *
- * @param name Name of file.
- * @param storage dtop_dual_line_vars struct where relevant variables are stored.
- */
-int dtop_dual_line_search(char *name, struct dtop_dual_line_vars *storage)
-{
- int i, j, k, n, sum, sum2;
- char *data;
- int *line_len = malloc(sizeof(int) * storage->line_count);
- int *line_len2 = malloc(sizeof(int) * storage->line_count);
- int read;
- struct dt_procdict *dict, *prefix_dict;
- struct dtop_data_point *data_points;
- int dp_count = 0;
-
- storage->line = malloc(storage->line_count * sizeof(*storage->line));
- storage->line2 = malloc(storage->line_count * sizeof(*storage->line2));
- for (i = 0; i < storage->line_count; i++) {
- storage->line[i] = malloc(sizeof(char) * DTOP_DUAL_LINE);
- storage->line2[i] = malloc(sizeof(char) * DTOP_DUAL_LINE);
- }
- dict = malloc(sizeof(struct dt_procdict) * (storage->line_count/2));
- prefix_dict = malloc(sizeof(struct dt_procdict)
- * (storage->line_count/2));
-
- read = dt_read_file(name, &data, DTOP_DUAL_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- sum2 = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < storage->line_count; n++) {
- line_len[n] = dt_read_line(storage->line[n],
- DTOP_DUAL_LINE, data,
- DTOP_DUAL_SIZE, sum);
- line_len2[n] = dt_read_line(storage->line2[n],
- DTOP_DUAL_LINE, data,
- DTOP_DUAL_SIZE, sum2);
- if (n <= (storage->line_count-2)) {
- sum += (line_len[n] + 1);
- sum2 += (line_len2[n] + 1);
- }
-
- }
-
- /* Stores dp names and prefixes in dictionaries */
- for (i = 0; i < (storage->line_count/2); i++)
- dt_parse_proc_dictionary(storage->line[2*i], line_len[2*i],
- storage->line[(2*i)+1], line_len[(2*i)+1], &dict[i]);
-
- for (i = 0; i < (storage->line_count/2); i++)
- dt_parse_for_prefix(storage->line2[2*i], line_len2[2*i],
- &prefix_dict[i]);
-
- /* Finds how many data points were gathered from the file */
- for (j = 0; j < (storage->line_count/2); j++) {
- for (i = 0; i < dict[j].max; i++)
- dp_count++;
- }
-
- data_points = malloc(dp_count * sizeof(struct dtop_data_point));
-
- k = 0;
- /* Creates a dtop_data_point struct for each dp found in the file */
- for (j = 0; j < (storage->line_count/2); j++)
- for (i = 0; i < dict[j].max; i++) {
- if (dict[j].val[i][0] == '-')
- data_points[k].type = DTOP_LONG;
- else
- data_points[k].type = DTOP_ULONG;
- data_points[k].name = dict[j].key[i];
- data_points[k].prefix = prefix_dict[j].val[i];
- data_points[k].skip = DO_NOT_SKIP;
- data_points[k].initial_data_populated = NOT_POPULATED;
- k++;
- }
-
- /* Calls dpg constructor, dpg will point to the dp struct */
- construct_dual_line_file_dpg(name, data_points, storage, dp_count);
-
- free(line_len);
- free(line_len2);
- free(dict);
- free(prefix_dict);
- dt_free(&data);
-
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Calls dtop_search for a file with dual line pairs.
- */
-void dtop_dual_line_init(char *name)
-{
- struct dtop_dual_line_vars *storage = malloc
- (sizeof(struct dtop_dual_line_vars));
- storage->line_count = dtop_get_file_line_amount(name);
-
- if (storage->line_count%2 != 0) {
- printf("Dual line file, %s, contains error.\n", name);
- printf("Data will not be collected from %s\n", name);
- return;
- }
- dtop_dual_line_search(name, storage);
-}
diff --git a/dataservices/datatop/src/datatop_fileops.c b/dataservices/datatop/src/datatop_fileops.c
deleted file mode 100644
index 9ff06b5..0000000
--- a/dataservices/datatop/src/datatop_fileops.c
+++ /dev/null
@@ -1,202 +0,0 @@
-/************************************************************************
-Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_fileops.c
- * @brief Declares functions for reading and writing to files.
- *
- * Declares functions called when reading from files which data is collected.
- * Also contains methods to handle files which will be written to.
- */
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_linked_list.h"
-#include "datatop_opt.h"
-#include "datatop_fileops.h"
-
-/**
- * @brief Reads the lines from files which we are collecting data from.
- *
- * @param file File which is read from
- * @param buffer Pointer to buffer where data will be read. The buffer is allocated
- * in dt_read_file() and passed back to the caller. Caller should
- * free this when done.
- * @param len Maximum amount of data which should be read from the file.
- * @return Number of bytes of data placed in *buffer.
- */
-int dt_read_file(const char *file, char **buffer, int len)
-{
- int read;
- FILE *fp;
-
- *buffer = (char *)malloc(len);
- if (!(*buffer)) {
- fprintf(stderr, "%s(): malloc(%d) failed\n", __func__, len);
- return 0;
- }
-
- fp = fopen(file, "r");
- if (!fp) {
- fprintf(stderr, "%s(): Failed to open %s: ", __func__, file);
- fprintf(stderr, "Error: %s\n", strerror(errno));
- free(*buffer);
- *buffer = 0;
- return 0;
- }
- read = fread(*buffer, sizeof(char), len, fp);
- fclose(fp);
-
- return read;
-}
-
-/**
- * @brief Deallocates memory no longer being used.
- *
- * @param buffer Buffer to be deallocated.
- */
-void dt_free(char **buffer)
-{
- free(*buffer);
- *buffer = 0;
-}
-
-/**
- * @brief Checks for access to a file for writing.
- *
- * @param fw File to check access of.
- * @return INVALID - File already exists or write access denied.
- * @return VALID - File does not exist and can be written to.
- */
-int dtop_check_writefile_access(char *fw)
-{
- if (!access(fw, F_OK)) {
- printf("File specified already exists\n");
- return INVALID;
- }
-
- if (!access(fw, W_OK)) {
- printf("Permission to write to specified file denied\n");
- return INVALID;
- }
-
- return VALID;
-}
-
-/**
- * @brief Checks for the presence of a dir.
- *
- * @param fw Dir to check the presence
- * @return INVALID - Out dir doesn't exist.
- * @return VALID - Out dir exist and can be written to.
- */
-int dtop_check_out_dir_presence(char *fw)
-{
- if (access(fw, F_OK)) {
- printf("Out dir not present\n");
- return INVALID;
- }
-
- return VALID;
-}
-
-/**
- * @brief Creates a directory
- *
- * @param New directory full path.
- * @return INVALID - Out dir doesn't exist or write access denied.
- * @return VALID - Out dir exist and can be written to.
- */
-int dtop_create_dir(char *full_path)
-{
- if (!mkdir(full_path, 0755)) {
- printf("Unable to create dir: %s, errno: %d\n", full_path, errno);
- return INVALID;
- }
-
- return VALID;
-}
-
-/**
- * @brief Opens file and handles possible errors.
- *
- * @param fw File path to be opened.
- * @param to_file Pointer to the *file that is opened.
- * @return VALID - File opened successfully.
- * @return INVALID - File could not be opened.
- */
-int dtop_open_writing_file(char *fw, FILE **to_file)
-{
- *to_file = fopen(fw, "w");
- if (*to_file) {
- return VALID;
- } else {
- fprintf(stderr, "Value of errno: %d\n", errno);
- fprintf(stderr, "Error opening file: %s\n", strerror(errno));
- fprintf(stderr, "Please try writing to a non-existent file\n");
- printf("See datatop -h for help\n");
- return INVALID;
- }
-}
-
-/**
- * @brief Closes a file if not a standard stream.
- *
- * @param fw File to be closed.
- */
-void dtop_close_file(FILE *fw)
-{
- if (fw != stdout && fw != stderr && fw != stdin)
- fclose(fw);
-}
-
-/**
- * @brief Helper function to find number of lines in dual_line file.
- *
- * @return Number of lines in a dual_line file.
- */
-int dtop_get_file_line_amount(char *name)
-{
- signed char rc = 0;
- int line_count = 0;
- FILE *file = fopen(name, "r");
- while (rc != EOF) {
- if (rc == '\n')
- line_count++;
- rc = fgetc(file);
- }
-
- fclose(file);
- return line_count;
-}
diff --git a/dataservices/datatop/src/datatop_fileops.h b/dataservices/datatop/src/datatop_fileops.h
deleted file mode 100644
index 9d60a41..0000000
--- a/dataservices/datatop/src/datatop_fileops.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/************************************************************************
-Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_fileops.h
- * @brief Declares functions held within datatop_fileops.h
- */
-
-#ifndef DATATOP_FILEOPS_H
-#define DATATOP_FILEOPS_H
-
-#include "datatop_interface.h"
-#include "datatop_linked_list.h"
-#include "datatop_opt.h"
-
-int dt_read_file(const char *file, char **buffer, int len);
-void dt_free(char **buffer);
-int dtop_check_writefile_access(char *fw);
-int dtop_check_out_dir_presence(char *fw);
-int dtop_create_dir(char *full_path);
-int dtop_open_writing_file(char *fw, FILE **to_file);
-void dtop_close_file(FILE *fw);
-int dtop_get_file_line_amount(char *file);
-#endif /* DATATOP_FILEOPS_H */
diff --git a/dataservices/datatop/src/datatop_gen_poll.c b/dataservices/datatop/src/datatop_gen_poll.c
deleted file mode 100644
index c3eb09d..0000000
--- a/dataservices/datatop/src/datatop_gen_poll.c
+++ /dev/null
@@ -1,280 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_gen_poll.c
- * @brief Contains functions which add ability to scan directories for data points.
- *
- * Contains functions that search through a directory and create dpg's for any
- * important data values found which can then be polled for data collection.
- */
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-#include "datatop_gen_poll.h"
-
-#define DTOP_GEN_SIZE 8192
-#define DTOP_GEN_LINE (DTOP_GEN_SIZE>>2)
-
-/**
- * @brief Searches a file to find the number of data values it contains.
- *
- * @param dpg The struct which contains the file to search.
- * @return Number of datapoints found in the file.
- */
-static int get_number_of_values(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int read;
- char line[DTOP_GEN_LINE];
- int line_len;
- int i, num;
-
- read = dt_read_file(dpg->file, &data, DTOP_GEN_SIZE);
- line_len = dt_read_line(line, DTOP_GEN_LINE, data, DTOP_GEN_SIZE, 0);
-
- if (read == 0) {
- return 0;
- }
-
- if (line_len < 1) {
- dt_free(&data);
- return 0;
- }
-
- num = 1;
- for (i = 0; i < line_len; i++) {
- if ((line[i] == ' ' || line[i] == ','
- || line[i] == ' ') &&line[i+1] != 0)
- num++;
- }
-
- dt_free(&data);
- return num;
-}
-
-/**
- * @brief Stores the data collected from a dpg that was constructed during dtop_search.
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_gen_poll(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int read;
- char line[DTOP_GEN_LINE];
- int line_len;
- struct dt_procdict dict;
- int i;
-
- read = dt_read_file(dpg->file, &data, DTOP_GEN_SIZE);
- line_len = dt_read_line(line, DTOP_GEN_LINE, data, DTOP_GEN_SIZE, 0);
-
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- dt_single_line_parse(line, line_len, &dict);
-
- for (i = 0; i < dpg->data_points_len; i++) {
- if (dict.val[i][0] == '-')
- dpg->data_points[i].type = DTOP_LONG;
- dtop_store_dp(&(dpg->data_points[i]), dict.val[i]);
- }
-
- dt_free(&data);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated dpg's.
- *
- * Frees the memory of dpg variables and the dpg for all dynamically allocated
- * dpgs.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-static void dtop_gen_dpg_deconstructor(struct dtop_data_point_gatherer *dpset)
-{
- int i;
- for (i = 0; i < dpset->data_points_len; i++)
- free(dpset->data_points[i].name);
- free(dpset->data_points);
- free(dpset->file);
- free(dpset->prefix);
- free(dpset);
-}
-
-/**
- * @brief Creates a dpg and all necessary dp's corresponding to it.
- *
- * Dynamically allocates memory for dpg and dp structs which are then
- * created and added to a linked_list of dpgs through the dtop_register
- * function.
- *
- * @param dir Directory which file is located in, assigned to the dpg prefix.
- * @param name Name of file that dpg represents, assigned to a dp name.
- */
-static void dpg_construction(char *dir, char *name)
-{
- int num, i;
- int both_len = strlen(dir) + strlen(name) + 1;
- char *both = malloc(both_len);
- char *maindir;
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
- strlcpy(both, dir, both_len);
- strlcat(both, name, both_len);
- maindir = malloc(strlen(dir) + 1);
- strlcpy(maindir, dir, strlen(dir) + 1);
-
- dpg->prefix = maindir;
- dpg->file = both;
- dpg->poll = dtop_gen_poll;
- dpg->deconstruct = dtop_gen_dpg_deconstructor;
- num = get_number_of_values(dpg);
-
- if (num != 0) {
- struct dtop_data_point *dp = malloc
- (num * sizeof(struct dtop_data_point));
- for (i = 0; i < num; i++) {
- if (num == 1) {
- dp[i].name = malloc(strlen(name) + 1);
- strlcpy(dp[i].name, name, strlen(name) + 1);
- } else {
- char *add = malloc(7 * sizeof(char));
- char *newname;
- int nn_len, dpn_len;
- snprintf(add, 7 * sizeof(char), "[%d]:", i);
- nn_len = strlen(name) + strlen(add) + 1;
- newname = malloc(nn_len);
- strlcpy(newname, name, nn_len);
- strlcat(newname, add, nn_len);
- dpn_len = strlen(newname) + 1;
- dp[i].name = malloc(dpn_len);
- strlcpy(dp[i].name, newname, dpn_len);
- free(add);
- free(newname);
- }
- dp[i].prefix = NULL;
- dp[i].type = DTOP_ULONG;
- dp[i].skip = DO_NOT_SKIP;
- dp[i].initial_data_populated = NOT_POPULATED;
- }
-
- dpg->data_points = dp;
- dpg->data_points_len = num;
-
- dtop_register(dpg);
- } else {
- free(dpg->prefix);
- free(dpg->file);
- free(dpg);
- }
-}
-
-/**
- * @brief Scans a directory for all important datapoints to be collected.
- *
- * Recursively scans a directory and locates all files which data will be
- * collected from.
- *
- * @param dir Directory to search.
- */
-static int dtop_search(char *dir)
-{
- DIR *dp;
- struct dirent *entry;
- struct stat s;
- char cwd[1024];
-
- if (!getcwd(cwd, sizeof(cwd))) {
- fprintf(stderr, "Failed to get current working dir\n");
- return -1;
- }
-
- dp = opendir(dir);
- if (dp == NULL) {
- fprintf(stderr, "err=%d: %s\n", errno, strerror(errno));
- fprintf(stderr, "Cannot open directory: %s\n", dir);
- return DIR_FAILURE;
- }
-
- chdir(dir);
-
- while ((entry = readdir(dp))) {
- if (stat(entry->d_name, &s)) {
- printf("stat err=%d: %s\n", errno, strerror(errno));
- return DIR_FAILURE;
- }
-
- if (strcmp(".", entry->d_name) != 0 &&
- strcmp("..", entry->d_name) != 0 &&
- S_ISREG(s.st_mode)) {
-
- dpg_construction(dir, entry->d_name);
-
- } else if (strcmp(".", entry->d_name) != 0 &&
- strcmp("..", entry->d_name) != 0 &&
- S_ISDIR(s.st_mode)) {
- int nd_len = strlen(dir) + strlen(entry->d_name) + 2;
- char *newdir = malloc(nd_len);
- strlcpy(newdir, dir, nd_len);
- strlcat(newdir, entry->d_name, nd_len);
- strlcat(newdir, "/", nd_len);
- dtop_search(newdir);
- free(newdir);
- }
- }
-
- closedir(dp);
- chdir(cwd);
- return DIR_SUCCESS;
-}
-
-/**
- * @brief Calls dtop_search for any specified directory.
- *
- * @param dir Directory to search.
- */
-void dtop_gen_init(char *dir)
-{
- dtop_search(dir);
-}
diff --git a/dataservices/datatop/src/datatop_gen_poll.h b/dataservices/datatop/src/datatop_gen_poll.h
deleted file mode 100644
index 6baffc9..0000000
--- a/dataservices/datatop/src/datatop_gen_poll.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_gen_poll.h
- * @brief Declares functions held within datatop_gen_poll.c
- */
-
-#ifndef DATATOP_GEN_POLL_H
-#define DATATOP_GEN_POLL_H
-
-#define DIR_SUCCESS 0
-#define DIR_FAILURE 1
-
-void dtop_gen_init(char *dir);
-#endif /* DATATOP_GEN_POLL_H */
-
diff --git a/dataservices/datatop/src/datatop_helpers.c b/dataservices/datatop/src/datatop_helpers.c
deleted file mode 100644
index 325b824..0000000
--- a/dataservices/datatop/src/datatop_helpers.c
+++ /dev/null
@@ -1,478 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_helpers.c
- * @brief Contains functions which output data.
- *
- * Contains functions which are used for printing data to output streams.
- * Handles all formatting for data output. Also contains functions which
- * are responsible for data gathering and collection.
- */
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_linked_list.h"
-#include "datatop_fileops.h"
-
-/**
- * @brief Prints the name and prefix of a datapoint.
- *
- * @param dp Dp whose name and prefix is printed.
- * @param prefix Directory where dp is contained.
- * @param fw File to print the information to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-static int dtop_format_dp_names(struct dtop_data_point *dp, const char
- *prefix, FILE *fw)
-{
- if (dp->prefix) {
- if (fprintf(fw, "\"%s:%s:%s\",", prefix, dp->prefix,
- dp->name) < 0)
- return FILE_ERROR;
- } else {
- if (fprintf(fw, "\"%s::%s\",", prefix, dp->name) < 0)
- return FILE_ERROR;
- }
- return FILE_SUCCESS;
-}
-
-/**
- * @brief Prints the value of a datapoint.
- *
- * Checks the type of the value and will print it accordingly.
- *
- * @param dp Pointer to the data_point struct which holds the value that will
- * be printed.
- * @param fw File to print the information to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-static int dtop_format_dp_values(struct dtop_data_point *dp, FILE *fw)
-{
- switch (dp->type) {
- case DTOP_ULONG:
- if (fprintf(fw, "%"PRIu64, dp->data.d_ulong) < 0)
- return FILE_ERROR;
- break;
- case DTOP_LONG:
- if (fprintf(fw, "%"PRId64, dp->data.d_long) < 0)
- return FILE_ERROR;
- break;
- case DTOP_UINT:
- if (fprintf(fw, "%d", dp->data.d_uint) < 0)
- return FILE_ERROR;
- break;
- case DTOP_INT:
- if (fprintf(fw, "%u", dp->data.d_uint) < 0)
- return FILE_ERROR;
- break;
- case DTOP_UCHAR:
- if (fprintf(fw, "%c,", dp->data.d_uchar) < 0)
- return FILE_ERROR;
- if (fprintf(fw, "(0x%02X)", dp->data.d_uchar) < 0)
- return FILE_ERROR;
- break;
- case DTOP_CHAR:
- if (fprintf(fw, "%c,", dp->data.d_char) < 0)
- return FILE_ERROR;
- if (fprintf(fw, "(%d)", dp->data.d_char) < 0)
- return FILE_ERROR;
- break;
- case DTOP_STR:
- if (fprintf(fw, "\"%s\"", dp->data.d_str) < 0)
- return FILE_ERROR;
- break;
- default:
- if (fprintf(fw, "UNKNOWN_TYPE") < 0)
- return FILE_ERROR;
- break;
- }
- return FILE_SUCCESS;
-}
-
-/**
- * @brief Prints the name and prefix of a dp, formatted appropriately.
- *
- * @param dpset data_point_gatherer used to access dp directory.
- * @param dp data_point used to get datapoint prefix if available.
- */
-static void dtop_format_text_for_snapshot
- (struct dtop_data_point_gatherer *dpset, struct dtop_data_point dp)
-{
- printf("%s:", dpset->prefix);
- if (dp.prefix)
- printf("%s:", dp.prefix);
-
- printf("%s::", dp.name);
-}
-
-/**
- * @brief Prints a datapoint value to a specified csv file.
- *
- * @param dp Datapoint that holds the value to be printed.
- * @param fw File to print to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-static int dtop_print_dp_csv(struct dtop_data_point *dp, FILE *fw)
-{
- if (dtop_format_dp_values(dp, fw) == FILE_ERROR)
- return FILE_ERROR;
- if (fprintf(fw, ",") < 0)
- return FILE_ERROR;
- return FILE_SUCCESS;
-}
-
-/**
- * @brief Prints a datapoint value to the terminal.
- *
- * @param dp Holds the value to be printed print.
- * @param prefix Used to print prefix of the data_point.
- */
-static void dtop_print_dp(struct dtop_data_point *dp, const char *prefix)
-{
- dtop_format_dp_names(dp, prefix, stdout);
- printf(" ");
- dtop_format_dp_values(dp, stdout);
- printf("\n");
-}
-
-/**
- * @brief Finds delta(value) of a datapoint.
- *
- * Function accounts for different types that values may be.
- *
- * @param dpset Pointer to a data_point used as another parameter for printing.
- * @param dp Datapoint which contains the value to find the difference of.
- */
-static void dtop_handle_dp_type_for_snapshot(
- struct dtop_data_point_gatherer *dpset, struct dtop_data_point dp)
-{
- int64_t int64;
-
- switch (dp.type) {
- case DTOP_ULONG:
- default:
- /* This is less than ideal. Replace with 128-bit ops later */
- int64 = (int64_t)dp.data.d_ulong
- - (int64_t)dp.initial_data.d_ulong;
- if (int64 != 0) {
- dtop_format_text_for_snapshot(dpset, dp);
- printf("%"PRId64"\n", int64);
- }
- break;
-
- case DTOP_LONG:
- /* This is less than ideal. Replace with 128-bit ops later */
- int64 = (int64_t)dp.data.d_long
- - (int64_t)dp.initial_data.d_long;
- if (int64 != 0) {
- dtop_format_text_for_snapshot(dpset, dp);
- printf("%"PRId64"\n", int64);
- }
- break;
-
- case DTOP_UINT:
- int64 = (int64_t)dp.data.d_uint
- - (int64_t)dp.initial_data.d_uint;
- if (int64 != 0) {
- dtop_format_text_for_snapshot(dpset, dp);
- printf("%"PRId64"\n", int64);
- }
- break;
-
- case DTOP_INT:
- int64 = (int64_t)dp.data.d_int
- - (int64_t)dp.initial_data.d_int;
- if (int64 != 0) {
- dtop_format_text_for_snapshot(dpset, dp);
- printf("%"PRId64"\n", int64);
- }
- break;
- }
-}
-
-/**
- * @brief Calls the dtop_print_dp_csv function for each data_point a dpg has access to.
- *
- * @param dpg A data_point_gatherer struct that is iterated through for each datapoint.
- * @param fw File to print datapoint values to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-static int dtop_print_dpg_csv(struct dtop_data_point_gatherer *dpg, FILE *fw)
-{
- int i;
-
- for (i = 0; i < dpg->data_points_len; i++)
- if (dtop_print_dp_csv(&(dpg->data_points[i]), fw) == FILE_ERROR)
- return FILE_ERROR;
- return FILE_SUCCESS;
-}
-
-/**
- * @brief Calls the dtop_format_dp_names function for each data_point a dpg has access to.
- *
- * @param dpg A data_point_gatherer struct that is iterated through for each datapoint.
- * @param fw File to printg datapoint names and prefixes to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-int dtop_print_dpg_names_csv(struct dtop_data_point_gatherer *dpg, FILE *fw)
-{
- int i;
-
- for (i = 0; i < dpg->data_points_len; i++)
- if (dtop_format_dp_names(&(dpg->data_points[i]),
- dpg->prefix, fw) == FILE_ERROR)
- return FILE_ERROR;
-
- return FILE_SUCCESS;
-}
-
-/**
- * @brief Prints all dp values to a specified file.
- *
- * This function is responsible for the printing of all data_point values
- * to a specified file. It will iterate through the linked list which contains
- * all of the dpgs and will print each dp value, being sure to flush the buffer.
- *
- * @param dpg_list Pointer to first node of linked list which contains all dpgs.
- * @param fw File that data prints to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-int dtop_write_pollingdata_csv(struct dtop_linked_list *dpg_list, FILE *fw)
-{
- struct dtop_linked_list *curr_ptr = dpg_list;
- struct dtop_data_point_gatherer *dpset;
-
- while (curr_ptr) {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- if (dtop_print_dpg_csv(dpset, fw) == FILE_ERROR)
- return FILE_ERROR;
- curr_ptr = curr_ptr->next_ptr;
- fflush(fw);
- }
-
- if (fprintf(fw, "\n") < 0)
- return FILE_ERROR;
-
- return FILE_SUCCESS;
-}
-
-/**
- * @brief Calls the dtop_print_dp function for each data_point a dpg has access to.
- *
- * @param dpg A data_point_gatherer struct that is iterated through for each datapoint.
- */
-void dtop_print_dpg(struct dtop_data_point_gatherer *dpg)
-{
- int i;
- for (i = 0; i < dpg->data_points_len; i++)
- dtop_print_dp(&(dpg->data_points[i]), dpg->prefix);
-}
-
-/**
- * @brief Stores the values for the datapoints and populates the initial value.
- *
- * @param dp A datapoint whose value will be stored.
- * @param str Str used for sscanf function call to find value of dp.
- */
-void dtop_store_dp(struct dtop_data_point *dp, const char *str)
-{
- switch (dp->type) {
- case DTOP_ULONG:
- sscanf(str, "%"PRIu64, &(dp->data.d_ulong));
- if (dp->initial_data_populated == NOT_POPULATED) {
- dp->initial_data.d_ulong = dp->data.d_ulong;
- dp->initial_data_populated = POPULATED;
- }
- break;
- case DTOP_LONG:
- sscanf(str, "%"PRId64, &(dp->data.d_long));
- if (dp->initial_data_populated == NOT_POPULATED) {
- dp->initial_data.d_long = dp->data.d_long;
- dp->initial_data_populated = POPULATED;
- }
- break;
- case DTOP_UINT:
- sscanf(str, "%u", &(dp->data.d_uint));
- if (dp->initial_data_populated == NOT_POPULATED) {
- dp->initial_data.d_uint = dp->data.d_uint;
- dp->initial_data_populated = POPULATED;
- }
- break;
- case DTOP_INT:
- sscanf(str, "%d", &(dp->data.d_int));
- if (dp->initial_data_populated == NOT_POPULATED) {
- dp->initial_data.d_int = dp->data.d_int;
- dp->initial_data_populated = POPULATED;
- }
- break;
- case DTOP_UCHAR:
- sscanf(str, "%c", &(dp->data.d_uchar));
- if (dp->initial_data_populated == NOT_POPULATED) {
- dp->initial_data.d_uchar = dp->data.d_uchar;
- dp->initial_data_populated = POPULATED;
- }
- break;
- case DTOP_CHAR:
- sscanf(str, "%c", &(dp->data.d_char));
- if (dp->initial_data_populated == NOT_POPULATED) {
- dp->initial_data.d_char = dp->data.d_char;
- dp->initial_data_populated = POPULATED;
- }
- break;
- case DTOP_STR:
- sscanf(str, "%s", dp->data.d_str);
- if (dp->initial_data_populated == NOT_POPULATED) {
- memcpy(dp->initial_data.d_str, dp->data.d_str,
- DTOP_DP_MAX_STR_LEN);
- dp->initial_data_populated = POPULATED;
- }
- break;
- default:
- break;
- }
-}
-
-/**
- * @brief Responsible for calculating and printing current time to file.
- *
- * Prints the time since 1970, in Seconds and Milliseconds.
- *
- * @param fw File that time is printed to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-int dtop_print_time_at_poll(FILE *fw)
-{
- struct timeval tv;
- gettimeofday(&tv, NULL);
-
- if (fprintf(fw, "%10ld", tv.tv_sec) < 0)
- return FILE_ERROR;
-
- if (fprintf(fw, ".%06ld,", tv.tv_usec) < 0)
- return FILE_ERROR;
-
- return FILE_SUCCESS;
-}
-
-/**
- * @brief Polls all dp values and updates each value.
- *
- * @param dpg_list Pointer to first node of linked list which contains all dpgs.
- */
-void dtop_poll(struct dtop_linked_list *dpg_list)
-{
- struct dtop_linked_list *curr_ptr = dpg_list;
- struct dtop_data_point_gatherer *dpset;
-
- while (curr_ptr) {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- dpset->poll(dpset);
- curr_ptr = curr_ptr->next_ptr;
- }
-}
-
-/**
- * @brief Prints the delta(value) of all data_points to terminal.
- *
- * @param dpg_list Pointer to first node of linked list which contains all dpgs.
- */
-void dtop_print_snapshot_diff(struct dtop_linked_list *dpg_list)
-{
- int i;
-
- struct dtop_linked_list *curr_ptr = dpg_list;
- struct dtop_data_point_gatherer *dpset;
- printf("\n");
- printf("Change In Datapoint Values\n");
- printf("---------------------------\n");
- while (curr_ptr) {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- for (i = 0; i < dpset->data_points_len; i++)
- dtop_handle_dp_type_for_snapshot(dpset,
- dpset->data_points[i]);
- curr_ptr = curr_ptr->next_ptr;
- }
- printf("\n");
-}
-
-/**
- * @brief Resets the initial values of all data_points.
- *
- * @param dpg_list Pointer to first node of linked list which contains all dpgs.
- */
-void dtop_reset_dp_initial_values(struct dtop_linked_list *dpg_list)
-{
- int i;
-
- struct dtop_linked_list *curr_ptr = dpg_list;
- struct dtop_data_point_gatherer *dpset;
-
- while (curr_ptr) {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- for (i = 0; i < dpset->data_points_len; i++)
- dpset->data_points[i].initial_data_populated
- = NOT_POPULATED;
- curr_ptr = curr_ptr->next_ptr;
- }
-}
-
-/**
- * @brief Calls deconstructor method for all dpgs dynamically created.
- *
- * Checks to see if each dpg created has a deconstructor method. If not null,
- * function calls the appropiate deconstructor method to deallocate memory.
- *
- * @param dpg_list Pointer to first node of linked list which contains all dpgs.
- */
-void deconstruct_dpgs(struct dtop_linked_list *dpg_list)
-{
- struct dtop_linked_list *curr_ptr = dpg_list;
- struct dtop_data_point_gatherer *dpset;
-
- while (curr_ptr) {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- if (dpset->deconstruct)
- dpset->deconstruct(dpset);
- curr_ptr = curr_ptr->next_ptr;
- }
-}
diff --git a/dataservices/datatop/src/datatop_interface.h b/dataservices/datatop/src/datatop_interface.h
deleted file mode 100644
index 2928c26..0000000
--- a/dataservices/datatop/src/datatop_interface.h
+++ /dev/null
@@ -1,166 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_interface.h
- * @brief Declares functions held within datatop.c and datatop_helpers.c
- *
- * Declares functions which are held within datatop.c and datatop_helpers.c.
- * Also defines data structures used for storing data gathered during polling
- * such as datapoint names, values, and prefixes along with other valuable
- * information.
- */
-
-#ifndef DATATOP_INTERFACE_H
-#define DATATOP_INTERFACE_H
-
-#include
-#include "datatop_linked_list.h"
-
-#define DTOP_ULONG 0
-#define DTOP_LONG 1
-#define DTOP_UINT 2
-#define DTOP_INT 3
-#define DTOP_UCHAR 4
-#define DTOP_CHAR 5
-#define DTOP_STR 6
-
-#define FILE_ERROR -1
-#define FILE_SUCCESS 0
-#define SKIP 1
-#define DO_NOT_SKIP 0
-#define POPULATED 1
-#define NOT_POPULATED 0
-
-#define DTOP_POLL_OK 0
-#define DTOP_POLL_IO_ERR 1
-#define NOT_CHECKED 0
-
-#define QUIT 1
-
-#define DTOP_DP_MAX_STR_LEN 32
-
-#define DTOP_DP_HFILL .initial_data_populated = NOT_POPULATED, \
- .skip = 0
-
-/**
- * @struct dtop_data_union
- * @brief Provides the type for dp value.
- */
-union dtop_data_union {
- uint64_t d_ulong;
- int64_t d_long;
- uint32_t d_uint;
- int32_t d_int;
- uint8_t d_uchar;
- int8_t d_char;
- char d_str[DTOP_DP_MAX_STR_LEN];
-};
-
-/**
- * @struct dtop_data_point
- * @brief Individual datapoint in a file.
- *
- * @var dtop_data_point::name
- * Stores the datapoints name.
- * @var dtop_data_point::prefix
- * Stores the individual prefix for the dp.
- * @var dtop_data_point::type
- * Type dp value is, see definitions.
- * @var dtop_data_point::initial_data
- * Holds the initial value of the dp the first time it was polled.
- * @var dtop_data_point::initial_data_populated
- * Variable that is changed when initial_data is populated.
- * @var dtop_data_point::data
- * Value of the dp at the most recent poll.
- */
-struct dtop_data_point {
- char *name;
- char *prefix;
-
- /* Results of polling */
- char type;
- union dtop_data_union initial_data;
- char initial_data_populated;
- union dtop_data_union data;
-
- /* Skip on subsequent polls */
- char skip;
-};
-
-/**
- * @struct dtop_data_point_gatherer
- * @brief Struct used to hold data about a set of collected data.
- *
- * @var dtop_data_point_gatherer::prefix
- * Name of directory which data is collected from.
- * @var dtop_data_point_gatherer::file
- * File path that data is collected from.
- * @var dtop_data_point_gatherer::poll
- * Poll function takes a dtop_data_point_gatherer as parameter.
- * int equals, DTOP_POLL_IO_ERR - Poll of dpg unsuccessful, or
- * DTOP_POLL_OK - Poll of dpg successful.
- * @var dtop_data_point_gatherer::data_points
- * Pointer to a dtop_data_point struct (dp).
- * @var dtop_data_point_gatherer::data_points_len
- * Number of elements in the array of dp's the dpg accesses.
- */
-struct dtop_data_point_gatherer {
- char *prefix;
- char *file;
- int (*poll)(struct dtop_data_point_gatherer *dpg);
- void (*deconstruct)(struct dtop_data_point_gatherer *dpg);
-
- struct dtop_data_point *data_points;
- int data_points_len;
-
- /* Private data */
- void *priv;
-};
-
-void dtop_register(struct dtop_data_point_gatherer *dpg);
-void dtop_store_dp(struct dtop_data_point *dp, const char *str);
-void dtop_print_dpg(struct dtop_data_point_gatherer *dpg);
-void get_snapshot_diff(struct dtop_linked_list *dpg_list);
-void dtop_print_snapshot_diff(struct dtop_linked_list *dpg_list);
-void dtop_poll(struct dtop_linked_list *dpg_list);
-int dtop_print_time_at_poll(FILE *fw);
-int dtop_print_dpg_names_csv(struct dtop_data_point_gatherer *dpg, FILE *fw);
-int dtop_write_pollingdata_csv(struct dtop_linked_list *dpg_list, FILE *fw);
-void dtop_reset_dp_initial_values(struct dtop_linked_list *dpg_list);
-void deconstruct_dpgs(struct dtop_linked_list *dpg_list);
-int dtop_print_system_snapshot(char *file);
-
-
-#ifndef HAVE_STRL_FUNCTIONS
-#define strlcpy(X,Y,Z) strcpy(X,Y)
-#define strlcat(X,Y,Z) strcat(X,Y)
-#endif /* HAVE_STRL_FUNCTIONS */
-
-#endif /* DATATOP_INTERFACE_H */
diff --git a/dataservices/datatop/src/datatop_ip_table_poll.c b/dataservices/datatop/src/datatop_ip_table_poll.c
deleted file mode 100644
index 980eb4c..0000000
--- a/dataservices/datatop/src/datatop_ip_table_poll.c
+++ /dev/null
@@ -1,346 +0,0 @@
-/************************************************************************
-Copyright (c) 2016, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_ip_table_poll.c
- * @brief Adds ability for TP Tables, Rules and Routes data collection
- Unlike other polls, this is intended for running as a separate
- thread as it can cause delays of > 3sec per poll
- *
- */
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-#include "datatop_polling.h"
-
-#define DTOP_IPTRR_POLL_PERIOD 5.00
-
-/**
-* @struct dtop_ip_table_vars
-* @brief Struct used to hold necessary variables for /proc/stat dpg
-*
-* @var dtop_ip_table_vars::line
-* Array of strings where necessary dp names and values are held.
-* @var dtop_ip_table_vars::line_count
-* Number of lines the file is that the dpg represents.
-*/
-struct dtop_ip_table_vars {
- char *out_dir;
-}dtop_ip_table_storage;
-
-struct dtop_linked_list *ip_dpg_list = NULL;
-
-pthread_mutex_t dtop_ip_table_lock;
-
-/**
- * @brief Perform IP table command and store it in a file
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_ip_table_poll(struct dtop_data_point_gatherer *dpg)
-{
- FILE *fd;
- FILE *fo = (FILE *)dpg->file;
- char buf[1001];
-
- time_t rawtime;
- struct tm * timeinfo;
-
- if(fo == NULL)
- {
- fprintf(stderr, "Could not fopen: %s\n", dpg->file);
- return DTOP_POLL_IO_ERR;
- }
-
- time ( &rawtime );
- timeinfo = gmtime ( &rawtime );
-
- fprintf ( fo, "============\nStart: %s==========\n", asctime (timeinfo) );
- fflush(fo);
-
- /* redirect stderr to output file */
- dup2(fileno(fo), 2);
-
- fd = popen((char *)dpg->priv, "r");
- if(fd == NULL)
- {
- fprintf(stderr, "Could not popen: %s\n", (char *)dpg->priv);
- return DTOP_POLL_IO_ERR;
- }
-
- while(fgets(buf, 1000, fd) != NULL)
- {
- fputs(buf, fo);
- }
-
- fprintf ( fo, "============\nEnd: %s==========\n\n", asctime (timeinfo) );
- fflush(fo);
- pclose(fd);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated IP table dpg.
- *
- * Frees the memory of the dpg along with it's data_points
- * and other malloc'd memory no longer needed.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-static void dtop_ip_table_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset)
-{
- int i;
- free(dpset->prefix);
- if(dpset->file)
- {
- fclose((FILE *)dpset->file);
- }
-
- free(dpset);
-}
-
-/**
- * @brief Registers a new IP table dpg to the list.
- *
- * @param dpg Dpg to construct and allocate memory for.
- */
-void dtop_ip_table_register(struct dtop_data_point_gatherer *dpg)
-{
- if (dpg)
- ip_dpg_list = dtop_add_linked_list(dpg, ip_dpg_list);
-}
-
-/**
- * @brief Open the files for writing the output for each dpg.
- *
- * @param None
- */
-int dtop_ip_table_init_files()
-{
- struct dtop_data_point_gatherer *dpset;
- struct dtop_linked_list *curr_ptr = ip_dpg_list;
- FILE *fd;
-
- while(curr_ptr)
- {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- fd = fopen(dpset->prefix, "a+");
- if(!fd)
- {
- fprintf(stderr, "Could not fopen: %s\n", dpset->prefix);
- return DTOP_POLL_IO_ERR;
- }
- dpset->file = (char *)fd;
- curr_ptr = curr_ptr->next_ptr;
- }
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Perform cleanup of IP table dgp list at exit.
- *
- * @param None
- */
-void dtop_ip_table_poll_cleanup()
-{
- struct dtop_data_point_gatherer *dpset;
- struct dtop_linked_list *curr_ptr = ip_dpg_list;
-
- pthread_mutex_lock(&dtop_ip_table_lock);
- deconstruct_dpgs(ip_dpg_list);
- dtop_rem_linked_list(ip_dpg_list);
- pthread_mutex_unlock(&dtop_ip_table_lock);
-
-}
-
-/**
- * @brief The thread to poll for IP table data.
- *
- * @param arg ptr
- */
-void *dtop_ip_table_start_poll(void *arg)
-{
- time_t start_t, curr_t;
- double diff_t = 9999999.00; /* some high # > DTOP_IPTRR_POLL_PERIOD */
- int ret = DTOP_POLL_OK;
-
- if (pthread_mutex_init(&dtop_ip_table_lock, NULL) != 0)
- {
- printf("\n mutex init failed\n");
- return NULL;
- }
-
- atexit(dtop_ip_table_poll_cleanup);
-
- if(DTOP_POLL_OK != ( ret = dtop_ip_table_init_files()))
- {
- return NULL;
- }
-
- while(1)
- {
- struct dtop_linked_list *curr_ptr = ip_dpg_list;
- struct dtop_data_point_gatherer *dpset;
-
- pthread_mutex_lock(&dtop_ip_table_lock);
-
- if (diff_t >= DTOP_IPTRR_POLL_PERIOD)
- {
- printf("Poll for IP Tables, Rules & Routes\n");
- time(&start_t);
- while (curr_ptr)
- {
- dpset = (struct dtop_data_point_gatherer *) curr_ptr->data;
- dpset->poll(dpset);
- curr_ptr = curr_ptr->next_ptr;
- }
- }
- pthread_mutex_unlock(&dtop_ip_table_lock);
-
- /* sleep for 500 milliseconds */
- usleep(500 * 1000);
- time(&curr_t);
- diff_t = difftime(curr_t, start_t);
- }
- return NULL;
-}
-
-/**
- * @brief Creates a dpg for ip table command
- *
- * Dynamically allocates memory for dpg which is then added to a linked list
- * via the dtop_register(dpg) function call.
- *
- * @param data_points dtop_data_point struct that dpg points to.
- * @param storage dtop_ip_table_vars struct that holds relevant dpg variables.
- */
-/*static void construct_ip_table_dpg(struct dtop_data_point
- *data_points, struct dtop_ip_table_vars *command, int dp_count)
-*/
-static void construct_ip_table_dpg(char *command)
-{
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
- char *file_name = (char *)malloc(strlen(command)+ 1 + 1 + strlen(dtop_ip_table_storage.out_dir) + 4);
- int i, fname_start_ind;
-
- strcpy(file_name, dtop_ip_table_storage.out_dir);
- strcat(file_name, "/");
-
- fname_start_ind = strlen(file_name);
- strcat(file_name, command);
- strcat(file_name, ".txt");
-
- for(i=fname_start_ind; file_name[i]; i++)
- {
- if(file_name[i] == ' ')
- file_name[i] = '_';
- if(file_name[i] == '/')
- file_name[i] = '-';
- }
-
- dpg->prefix = file_name;
- dpg->poll = dtop_ip_table_poll;
- dpg->priv = (char *)command;
- dpg->file = NULL;
- dpg->deconstruct = dtop_ip_table_dpg_deconstructor;
-
- dtop_ip_table_register(dpg);
-}
-
-/*
- * @brief Scans "/proc/stat" in order to autodetect dps.
- *
- * Searches through "/proc/stat" file for all available data
- * points to create as dp structs.
- *
- * @param storage dtop_ip_table_vars struct where relevant variables are stored.
- */
-
-/**
- * @brief Calls dtop_search for "/proc/stat" file.
- */
-void dtop_ip_table_init(char *out_dir)
-{
- dtop_ip_table_storage.out_dir = out_dir;
- construct_ip_table_dpg("ip xfrm state show");
- construct_ip_table_dpg("ip xfrm policy show");
- construct_ip_table_dpg("ip addr");
- construct_ip_table_dpg("iptables -t raw -L -n -v");
- construct_ip_table_dpg("iptables -t mangle -L -n -v");
- construct_ip_table_dpg("iptables -L -n -v");
- construct_ip_table_dpg("iptables -t nat -L -n -v");
- construct_ip_table_dpg("ip6tables -t raw -L -n -v");
- construct_ip_table_dpg("ip6tables -t mangle -L -n -v");
- construct_ip_table_dpg("ip6tables -L -n -v");
- construct_ip_table_dpg("ip6tables -t nat -L -n -v");
- construct_ip_table_dpg("ip rule show");
- construct_ip_table_dpg("ip -6 rule show");
- construct_ip_table_dpg("ip route show table all");
- construct_ip_table_dpg("ip -6 route show table all");
- construct_ip_table_dpg("ip route show table rmnet_data0");
- construct_ip_table_dpg("ip route show table rmnet_data1");
- construct_ip_table_dpg("ip route show table rmnet_data2");
- construct_ip_table_dpg("ip route show table rmnet_data6");
- construct_ip_table_dpg("ip route show table rmnet_data7");
- construct_ip_table_dpg("ip route show table r_rmnet_data0");
- construct_ip_table_dpg("ip route show table r_rmnet_data1");
- construct_ip_table_dpg("ip route show table r_rmnet_data2");
- construct_ip_table_dpg("ip route show table r_rmnet_data6");
- construct_ip_table_dpg("ip route show table r_rmnet_data7");
- construct_ip_table_dpg("ip -6 route show table rmnet_data0");
- construct_ip_table_dpg("ip -6 route show table rmnet_data1");
- construct_ip_table_dpg("ip -6 route show table rmnet_data2");
- construct_ip_table_dpg("ip -6 route show table rmnet_data6");
- construct_ip_table_dpg("ip -6 route show table rmnet_data7");
- construct_ip_table_dpg("ip -6 route show table r_rmnet_data0");
- construct_ip_table_dpg("ip -6 route show table r_rmnet_data1");
- construct_ip_table_dpg("ip -6 route show table r_rmnet_data2");
- construct_ip_table_dpg("ip -6 route show table r_rmnet_data6");
- construct_ip_table_dpg("ip -6 route show table r_rmnet_data7");
- construct_ip_table_dpg("ip route show table wlan0");
- construct_ip_table_dpg("ip -6 route show table wlan0");
- construct_ip_table_dpg("ip route show table dummy0");
- construct_ip_table_dpg("ip -6 route show table dummy0");
- construct_ip_table_dpg("cat /proc/net/xfrm_stat");
- construct_ip_table_dpg("cat /proc/sys/net/ipv4/ip_forward");
- construct_ip_table_dpg("cat /proc/sys/net/ipv6/conf/all/forwarding");
-
- printf("Poll for IP Tables, Rules & Routes every 5 seconds\n");
-}
diff --git a/dataservices/datatop/src/datatop_linked_list.c b/dataservices/datatop/src/datatop_linked_list.c
deleted file mode 100644
index 7e5b632..0000000
--- a/dataservices/datatop/src/datatop_linked_list.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_linked_list.c
- * @brief Necessary linked_list functions created.
- *
- * Holds function which adds to or creates a linked list
- * used for storing dtop_data_point_gatherer's (dpg's).
- * Datapoints are stored in linked list for ability to
- * iteratively poll and print efficiently. Handles creation
- * and deletion of memory for linked list nodes.
- */
-
-#include
-#include
-#include
-
-#include "datatop_linked_list.h"
-
-/**
- * @brief Adds a node to the beginning of a linked list.
- *
- * @param data A void pointer which can hold any data in the node.
- * @param list The list that is added to.
- * @return Updated linked list struct.
- */
-struct dtop_linked_list *dtop_add_linked_list(void *data,
- struct dtop_linked_list *list)
-{
- struct dtop_linked_list *list_node;
- list_node = malloc(sizeof(struct dtop_linked_list));
-
- if (!list_node) {
- fprintf(stderr, "failed to allocate memory.\n");
- exit(EXIT_FAILURE);
- }
-
- list_node->data = data;
- list_node->next_ptr = list;
- list = list_node;
- return list;
-}
-
-/**
- * @brief Deletes a linked list.
- *
- * @param head_ptr Pointer to the first node in the linked list that is to be deleted.
- */
-void dtop_rem_linked_list(struct dtop_linked_list *head_ptr)
-{
- struct dtop_linked_list *tmp_ptr = NULL;
- while (head_ptr) {
- tmp_ptr = head_ptr;
- head_ptr = head_ptr->next_ptr;
- free(tmp_ptr);
- }
-}
diff --git a/dataservices/datatop/src/datatop_linked_list.h b/dataservices/datatop/src/datatop_linked_list.h
deleted file mode 100644
index 4386d02..0000000
--- a/dataservices/datatop/src/datatop_linked_list.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_linked_list.h
- * @brief Defines linked list struct and declares linked list methods.
- *
- * Defines linked list struct which can be used for any data
- * storage. Declares methods held within datatop_linked_list.c.
- */
-
-#ifndef DATATOP_LINKED_LIST_H
-#define DATATOP_LINKED_LIST_H
-
-/**
- * @struct dtop_linked_list
- * @brief Struct used to represent linked list node that stores a pointer with any type.
- *
- * @var dtop_linked_list::next_ptr
- * Pointer to next node in the list.
- * @var dtop_linked_list::data
- * Pointer to data the node stores.
- */
-struct dtop_linked_list {
- struct dtop_linked_list *next_ptr;
- void *data;
-};
-
-struct dtop_linked_list *dtop_add_linked_list(void *data,
- struct dtop_linked_list *list);
-void dtop_rem_linked_list(struct dtop_linked_list *head_ptr);
-#endif /* DATATOP_LINKED_LIST_H */
-
diff --git a/dataservices/datatop/src/datatop_meminfo_file_poll.c b/dataservices/datatop/src/datatop_meminfo_file_poll.c
deleted file mode 100644
index 078b825..0000000
--- a/dataservices/datatop/src/datatop_meminfo_file_poll.c
+++ /dev/null
@@ -1,282 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_meminfo_file_poll.c
- * @brief Adds ability for data collection from /proc/meminfo
- *
- * File contains methods for searching and polling data from
- * "/proc/meminfo"
- */
-
-#include
-#include
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-
-#define DTOP_MEM_SIZE 8192
-#define DTOP_MEM_LINE (DTOP_MEM_SIZE>>2)
-
-/**
-* @struct dtop_meminfo_vars
-* @brief Struct used to hold necessary variables for /proc/meminfo dpg
-*
-* @var dtop_meminfo_vars::line
-* Array of strings where necessary dp names and values are held.
-* @var dtop_meminfo_vars::line_count
-* Number of lines the file is that the dpg represents.
-*/
-struct dtop_meminfo_vars {
- char **line;
- int line_count;
-};
-
-/**
- * @brief Parses lines with data in "/proc/meminfo"
- *
- * @param line1 Line to parse to find datapoint names and values.
- * @param len1 Length of line1.
- * @param l Index in the dictionary the key/value pair is added to.
- * @param dict Dictionary the keys and values are added to.
- */
-int dt_meminfo_parse(char *line1, int len1,
- int l, struct dt_procdict *dict)
-{
- int i, k, n;
- if (len1 < 1)
- return 0;
-
- if (line1 == 0 || dict == 0)
- return 0;
-
- k = l;
- dict->key[k] = &line1[0];
- for (i = 0; i < len1 && k < DTOP_DICT_SIZE; i++) {
- if (line1[i] == ' ' || line1[i] == ' ') {
- line1[i] = 0;
- n = i+1;
- while (line1[n] == ' ' || line1[n] == ' ')
- n++;
- dict->val[k] = &line1[n];
- while (line1[n] != ' ')
- n++;
- line1[n] = 0;
- break;
- }
- }
- k++;
- dict->max = k;
- return k;
-}
-
-/**
- * @brief Stores the data collected from a "/proc/meminfo"
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_meminfo_poll(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int *line_len = malloc(sizeof(int) *
- ((struct dtop_meminfo_vars *)
- (dpg->priv))->line_count);
- int read;
- struct dt_procdict dict;
- int i, j, n, sum;
-
- read = dt_read_file(dpg->file, &data, DTOP_MEM_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < ((struct dtop_meminfo_vars *)
- (dpg->priv))->line_count; n++) {
- line_len[n] = dt_read_line(((struct dtop_meminfo_vars *)
- (dpg->priv))->line[n],
- DTOP_MEM_LINE, data,
- DTOP_MEM_SIZE, sum);
- if (n <= (((struct dtop_meminfo_vars *)
- (dpg->priv))->line_count - 1)) {
- sum += (line_len[n] + 1);
- }
-
- }
-
- /* Stores dp names and values in dictionary */
- for (i = 0; i < dpg->data_points_len; i++)
- dt_meminfo_parse(((struct dtop_meminfo_vars *)
- (dpg->priv))->line[i], line_len[i], i, &dict);
-
- /* Assigns the dp value to the dp struct */
- for (j = 0; j < dpg->data_points_len; j++) {
- i = dt_find_dict_idx(dpg->data_points[j].name, &dict);
- if (i >= 0 && i < dict.max) {
- sscanf(dict.val[i], "%" PRIu64,
- &(dpg->data_points[i].data.d_ulong));
- dpg->data_points[i].data.d_ulong *= 1024;
- if (dpg->data_points[i].
- initial_data_populated == NOT_POPULATED) {
- dpg->data_points[i].initial_data.d_ulong
- = dpg->data_points[i].data.d_ulong;
- dpg->data_points[i].initial_data_populated
- = POPULATED;
- }
- }
- }
-
- dt_free(&data);
- free(line_len);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated "/proc/meminfo" dpg.
- *
- * Frees the memory of the dpg along with it's data_points
- * and other malloc'd memory no longer needed.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-static void dtop_meminfo_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset)
-{
- int i;
- free(dpset->data_points);
- for (i = 0; i < ((struct dtop_meminfo_vars *)
- (dpset->priv))->line_count; i++)
- free(((struct dtop_meminfo_vars *)(dpset->priv))->line[i]);
- free(((struct dtop_meminfo_vars *)(dpset->priv))->line);
- free(((struct dtop_meminfo_vars *)(dpset->priv)));
- free(dpset);
-}
-
-/**
- * @brief Creates a dpg for "/proc/meminfo" file
- *
- * Dynamically allocates memory for dpg which is then added to a linked list
- * via the dtop_register(dpg) function call.
- *
- * @param data_points dtop_data_point struct that dpg points to.
- * @param storage dtop_meminfo_vars struct that holds relevant dpg variables.
- */
-static void construct_meminfo_file_dpg(struct dtop_data_point
- *data_points, struct dtop_meminfo_vars *storage)
-{
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
- dpg->prefix = "/proc/meminfo";
- dpg->file = "/proc/meminfo";
- dpg->poll = dtop_meminfo_poll;
- dpg->data_points = data_points;
- dpg->priv = (struct dtop_meminfo_vars *)storage;
- dpg->data_points_len = storage->line_count;
- dpg->deconstruct = dtop_meminfo_dpg_deconstructor;
-
- dtop_register(dpg);
-}
-
-/**
- * @brief Scans "/proc/meminfo in order to autodetect dps.
- *
- * Searches through "/proc/meminfo" file for all available data
- * points to create as dp structs.
- *
- * @param storage dtop_meminfo_vars struct where relevant variables are stored.
- */
-int dtop_meminfo_search(struct dtop_meminfo_vars *storage)
-{
- int i, k, n, sum;
- char *data;
- int *line_len = malloc(sizeof(int) * storage->line_count);
- int read;
- struct dt_procdict dict;
- struct dtop_data_point *data_points;
-
- storage->line = malloc(storage->line_count * sizeof(*storage->line));
-
- for (i = 0; i < storage->line_count; i++)
- storage->line[i] = malloc(sizeof(char) * DTOP_MEM_LINE);
-
- read = dt_read_file("/proc/meminfo", &data, DTOP_MEM_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < storage->line_count; n++) {
- line_len[n] = dt_read_line(storage->line[n],
- DTOP_MEM_LINE, data,
- DTOP_MEM_SIZE, sum);
- if (n < (storage->line_count - 1))
- sum += (line_len[n] + 1);
- }
-
- /* Stores dp names in dictionary */
- for (i = 0; i < (storage->line_count); i++)
- dt_parse_proc_same_line_key_and_val(storage->line[i],
- line_len[i], i, &dict);
-
- data_points = malloc
- (storage->line_count * sizeof(struct dtop_data_point));
-
- k = 0;
- /* Creates a dtop_data_point struct for each dp found in the file */
- for (i = 0; i < dict.max; i++) {
- data_points[i].name = dict.key[i];
- data_points[i].prefix = NULL;
- data_points[i].type = DTOP_ULONG;
- k++;
- }
-
- /* Calls dpg constructor, dpg will point to the dp struct */
- construct_meminfo_file_dpg(data_points, storage);
-
- free(line_len);
- dt_free(&data);
-
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Calls dtop_search for "/proc/meminfo" file.
- */
-void dtop_meminfo_init(void)
-{
- struct dtop_meminfo_vars *storage = malloc
- (sizeof(struct dtop_meminfo_vars));
- storage->line_count = dtop_get_file_line_amount("/proc/meminfo");
- dtop_meminfo_search(storage);
-}
diff --git a/dataservices/datatop/src/datatop_opt.c b/dataservices/datatop/src/datatop_opt.c
deleted file mode 100644
index b10f593..0000000
--- a/dataservices/datatop/src/datatop_opt.c
+++ /dev/null
@@ -1,215 +0,0 @@
-/************************************************************************
-Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_opt.c
- * @brief Adds getopt functionality for CLI commands.
- *
- * Contains method for getopt functionality used for parsing
- * the CLI arguments into executable commands. Handles
- * errors which arise when parsing.
- */
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "datatop_opt.h"
-#include "datatop_interface.h"
-#include "datatop_linked_list.h"
-#include "datatop_fileops.h"
-
-/**
- * @brief Populate the comand line options with sane defaults
- *
- * @param clopts Struct used to hold data regarding CLI arguments.
- */
-void dtop_load_default_options(struct cli_opts *clopts)
-{
- memset(clopts, 0, sizeof(struct cli_opts));
-
- clopts->priority = DEFAULT_NICE;
-}
-
-/**
- * @brief Parses all CLI commands for main() to execute.
- *
- * @param clopts Struct used to hold data regarding CLI arguments.
- * @param argc Parameter used to read CLI commands from.
- * @param argv Parameter used to read CLI arguments from.
- * @return PARSE_SUCCESS - CLI arguments read successfully,
- * @return PARSE_FAILURE - CLI arguments and/or input not valid.
- * @return PARSE_FORCE_EXIT - Exit immediately, print help options.
- */
-int dtop_parse_cli_opts(struct cli_opts *clopts, int argc, char **argv)
-{
- int option;
- time_t rawtime;
- struct tm * timeinfo;
- char timestamp[100];
-
- time ( &rawtime );
- timeinfo = gmtime ( &rawtime );
- strftime (timestamp, 100,"%F_%H-%M-%S",timeinfo);
-
- if (!clopts || !*argv) {
- printf("Internal Error: Null Pointer\n");
- goto error;
- }
-
- while ((option = getopt(argc, argv, "phri:t:w:o:s:n:")) != -1) {
- switch (option) {
- case 'p':
- clopts->print_cl = OPT_CHOSE;
- break;
-
- case 'h':
- dtop_print_help_opts();
- return PARSE_FORCE_EXIT;
- break;
-
- case 'n':
- clopts->priority = strtol(optarg, 0, 10);
- if (clopts->priority > 19 || clopts->priority < -20) {
- printf("Argument for -n is not valid. ");
- printf("Must be between -20 and 19.\n");
- goto error;
- }
- break;
-
- case 'i':
- clopts->poll_per = strtol(optarg, 0, 10);
- if (clopts->poll_per <= 0) {
- printf("Argument for -i is not valid. ");
- printf("Must be positive integer.\n");
- goto error;
- }
- break;
-
- case 't':
- clopts->poll_time = strtol(optarg, 0, 10);
- clopts->poll_time_selected = POLL_TIME_SELECTED;
- if (clopts->poll_time <= 0) {
- printf("Argument for -t is not valid. ");
- printf("Must be positive integer.\n");
- goto error;
- }
- break;
-
- case 'w':
- if (dtop_check_writefile_access(optarg) == VALID) {
- clopts->file_name = optarg;
- clopts->print_csv = OPT_CHOSE;
- } else {
- goto error;
- }
- break;
-
- case 'o':
- if (dtop_check_out_dir_presence(optarg) != VALID) {
- goto error;
- }
-
- if(strlen(optarg) + strlen(timestamp) > OUT_DIR_LEN_MAX) {
- printf("Out dir too long!");
- goto error;
- }
- strcpy(clopts->out_dir, optarg);
- strcat(clopts->out_dir, "/");
- strcat(clopts->out_dir, timestamp);
- if(dtop_create_dir(clopts->out_dir) != INVALID) {
- goto error;
- }
- break;
-
- case 's':
- if (dtop_check_writefile_access(optarg) == VALID)
- clopts->snapshot_file = optarg;
- else
- goto error;
- break;
-
- case 'r':
- clopts->iptables_rules_routes = OPT_CHOSE;
- break;
-
- case '?':
- default:
- goto error;
- }
- }
-
- if (clopts->poll_time == 0) {
- if (clopts->print_csv == 1)
- clopts->poll_time = POLL_NOT_SPECIFIED;
- else
- clopts->poll_time = POLL_TIME_DEFAULT;
- }
- if (clopts->poll_per == 0)
- clopts->poll_per = DEFAULT_POLL_INTERVAL;
-
- return PARSE_SUCCESS;
-
-error:
- printf("See datatop -h for help\n");
- return PARSE_FAILURE;
-}
-
-/**
- * @brief Prints the options the user has for the program to terminal.
- */
-void dtop_print_help_opts(void)
-{
- printf("The following datatop commands are:\n");
- printf("\t-p\t\t\tPrint output to terminal\n");
- printf("\t-i , seconds\t\tSpecify polling period\n");
- printf("\t-t , seconds\t\tSpecify polling duration\n");
- printf("\t-w , file name (.csv)\tWrite output to a file\n");
- printf("\t-s , file name\t\tPrint system snapshot to a file\n");
- printf("\t-n , nice value\t\tSet niceness (default 19)\n");
- printf("\t-r , \t\t\tCapture IPTables, Rules and Routes\n");
- printf("\t-o , out directory for -w options\t\tOut dir where the set of files are saved\n");
- printf("\t-h\t\t\tGet help\n");
-}
-
-
-/**
-* @brief Prints the interactive options the user can enter during runtime.
-*/
-void dtop_print_interactive_opts(void)
-{
- printf("The following interactive commands are:\n");
- printf("\tq | quit\tTerminate program at any time\n");
- printf("\ti\t\tPrint dp differences, reset initial dp values\n");
- printf("\tl\t\tPrint dp differences since last reset\n");
- printf("\n");
-}
diff --git a/dataservices/datatop/src/datatop_opt.h b/dataservices/datatop/src/datatop_opt.h
deleted file mode 100644
index a1ad288..0000000
--- a/dataservices/datatop/src/datatop_opt.h
+++ /dev/null
@@ -1,91 +0,0 @@
-/************************************************************************
-Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_opt.h
- * @brief Declares methods and defines struct used within datatop_opt.c
- *
- * Struct defined is used when parsing the CLI arguments.
- */
-
-#ifndef DATATOP_OPT_H
-#define DATATOP_OPT_H
-
-#define OPT_CHOSE 1
-#define OPT_NOT_CHOSE 0
-#define DEFAULT_POLL_INTERVAL 1
-#define POLL_NOT_SPECIFIED -1
-#define POLL_TIME_DEFAULT 30
-#define POLL_TIME_SELECTED 1
-#define PARSE_SUCCESS 0
-#define PARSE_FAILURE -1
-#define PARSE_FORCE_EXIT -2
-#define VALID 0
-#define INVALID -1
-#define DEFAULT_NICE 19 /* Lowest priority */
-#define OUT_DIR_LEN_MAX 150
-
-/**
- * @struct cli_opts
- * @brief Struct used to store arguments from CLI input.
- *
- * @var cli_opts::print_cl
- * Represents -p argument.
- * @var cli_opts::poll_per
- * Polling frequency argument.
- * @var cli_opts::poll_time
- * Polling duration argument.
- * @var cli_opts::cli_help
- * Represents -h argument.
- * @var cli_opts::file_name
- * File name argument.
- * @var cli_opts::print_csv
- * Represents -w argument.
- */
-struct cli_opts {
- int print_cl; /* -p option */
- long int poll_per; /* -i option */
- long int poll_time; /* -t option */
- int cli_help; /* -h option */
- char *file_name; /* -w option */
- char *snapshot_file; /* -s option */
- int iptables_rules_routes; /* -r option */
- char out_dir[OUT_DIR_LEN_MAX]; /* -o option */
- int print_csv;
- int poll_time_selected;
- int priority; /* -n option (niceness) */
-};
-
-int dtop_parse_cli_opts(struct cli_opts *clopts, int argc, char **argv);
-void dtop_print_help_opts(void);
-void dtop_print_interactive_opts(void);
-void dtop_load_default_options(struct cli_opts *clopts);
-
-#endif /* DATATOP_OPT_H */
-
diff --git a/dataservices/datatop/src/datatop_polling.h b/dataservices/datatop/src/datatop_polling.h
deleted file mode 100644
index 53d2c1b..0000000
--- a/dataservices/datatop/src/datatop_polling.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/************************************************************************
-Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_dual_line_poll.h
- * @brief Declares methods held in datatop_dual_line_poll.c
- */
-
-#ifndef DATATOP_DUAL_LINE_POLL_H
-#define DATATOP_DUAL_LINE_POLL_H
-
-void dtop_dual_line_init(char *name);
-void dtop_single_line_init(char *name);
-void dtop_value_only_init(char *name);
-void dtop_meminfo_init(void);
-void dtop_dev_init(void);
-void dtop_stat_init(void);
-void dtop_ip_table_init(char *out_dir);
-void *dtop_ip_table_start_poll(void * arg);
-void dtop_cpu_stats_init(void);
-int dtop_value_only_poll(struct dtop_data_point_gatherer *dpg);
-void dtop_value_only_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset);
-
-#endif /* DATATOP_DUAL_LINE_POLL_H */
diff --git a/dataservices/datatop/src/datatop_single_line_poll.c b/dataservices/datatop/src/datatop_single_line_poll.c
deleted file mode 100644
index a43036f..0000000
--- a/dataservices/datatop/src/datatop_single_line_poll.c
+++ /dev/null
@@ -1,243 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_single_line_poll.c
- * @brief Adds ability for data collection from single line files
- *
- * File contains methods for searching and polling data from
- * single line files, meaning a file with multiple lines, but each
- * line contains the name of the dp, followed by the value.
- */
-
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-
-#define DTOP_SINGLE_SIZE 8192
-#define DTOP_SINGLE_LINE (DTOP_SINGLE_SIZE>>2)
-
-/**
-* @struct dtop_single_line_vars
-* @brief Struct used to hold necessary variables for dual_line_file dpgs.
-*
-* @var dtop_single_line_vars::line
-* Array of strings where necessary dp names and values are held.
-* @var dtop_single_line_vars::line_count
-* Number of lines the file is that the dpg represents.
-*/
-struct dtop_single_line_vars {
- char **line;
- int line_count;
-};
-
-/**
- * @brief Stores the data collected from a single_line files.
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_single_line_poll(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int *line_len = malloc(sizeof(int) *
- ((struct dtop_single_line_vars *)
- (dpg->priv))->line_count);
- int read;
- struct dt_procdict dict;
- int i, j, n, sum;
-
- read = dt_read_file(dpg->file, &data, DTOP_SINGLE_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < ((struct dtop_single_line_vars *)
- (dpg->priv))->line_count; n++) {
- line_len[n] = dt_read_line(((struct dtop_single_line_vars *)
- (dpg->priv))->line[n],
- DTOP_SINGLE_LINE, data,
- DTOP_SINGLE_SIZE, sum);
- if (n <= (((struct dtop_single_line_vars *)
- (dpg->priv))->line_count - 1)) {
- sum += (line_len[n] + 1);
- }
-
- }
-
- /* Stores dp names and values in dictionary */
- for (i = 0; i < dpg->data_points_len; i++)
- dt_parse_proc_same_line_key_and_val((
- (struct dtop_single_line_vars *)
- (dpg->priv))->line[i], line_len[i], i, &dict);
-
- /* Assigns the dp value to the dp struct */
- for (j = 0; j < dpg->data_points_len; j++) {
- i = dt_find_dict_idx(dpg->data_points[j].name, &dict);
- if (i >= 0 && i < dict.max)
- dtop_store_dp(&(dpg->data_points[j]),
- dict.val[i]);
- }
-
- dt_free(&data);
- free(line_len);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated single_line_file dpgs.
- *
- * Frees the memory of the dpg along with it's data_points
- * and other malloc'd memory no longer needed.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-static void dtop_single_line_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset)
-{
- int i;
- free(dpset->data_points);
- for (i = 0; i < ((struct dtop_single_line_vars *)
- (dpset->priv))->line_count; i++)
- free(((struct dtop_single_line_vars *)(dpset->priv))->line[i]);
- free(((struct dtop_single_line_vars *)(dpset->priv))->line);
- free(((struct dtop_single_line_vars *)(dpset->priv)));
- free(dpset);
-}
-
-/**
- * @brief Creates a dpg for a single_line file.
- *
- * Dynamically allocates memory for dpg which is then added to a linked list
- * via the dtop_register(dpg) function call.
- *
- * @param name Name of file dpg represents.
- * @param data_points dtop_data_point struct that dpg points to.
- * @param storage dtop_single_line_vars struct that holds relevant dpg variables.
- */
-static void construct_single_line_file_dpg(char *name, struct dtop_data_point
- *data_points, struct dtop_single_line_vars *storage)
-{
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
- dpg->prefix = name;
- dpg->file = name;
- dpg->poll = dtop_single_line_poll;
- dpg->data_points = data_points;
- dpg->priv = (struct dtop_single_line_vars *)storage;
- dpg->data_points_len = storage->line_count;
- dpg->deconstruct = dtop_single_line_dpg_deconstructor;
-
- dtop_register(dpg);
-}
-
-/**
- * @brief Scans a single_line file for all datapoints and creats dps.
- *
- * Searches through a single_line file (Key followed by value on the
- * same line) for all available data points to create as dp structs.
- *
- * @param name Name of file.
- * @param storage dtop_single_line_vars struct where relevant variables are stored.
- */
-int dtop_single_line_search(char *name, struct dtop_single_line_vars *storage)
-{
- int i, k, n, sum;
- char *data;
- int *line_len = malloc(sizeof(int) * storage->line_count);
- int read;
- struct dt_procdict dict;
- struct dtop_data_point *data_points;
-
- storage->line = malloc(storage->line_count * sizeof(*storage->line));
-
- for (i = 0; i < storage->line_count; i++)
- storage->line[i] = malloc(sizeof(char) * DTOP_SINGLE_LINE);
-
- read = dt_read_file(name, &data, DTOP_SINGLE_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < storage->line_count; n++) {
- line_len[n] = dt_read_line(storage->line[n],
- DTOP_SINGLE_LINE, data,
- DTOP_SINGLE_SIZE, sum);
- if (n < (storage->line_count - 1))
- sum += (line_len[n] + 1);
- }
-
- /* Stores dp names and values in dictionary */
- for (i = 0; i < (storage->line_count); i++)
- dt_parse_proc_same_line_key_and_val(storage->line[i],
- line_len[i], i, &dict);
-
- data_points = malloc
- (storage->line_count * sizeof(struct dtop_data_point));
-
- k = 0;
- /* Creates a dtop_data_point struct for each dp found in the file */
- for (i = 0; i < dict.max; i++) {
- if (dict.val[i][0] == '-')
- data_points[k].type = DTOP_LONG;
- else
- data_points[k].type = DTOP_ULONG;
- data_points[i].name = dict.key[i];
- data_points[i].prefix = NULL;
- k++;
- }
-
- /* Calls dpg constructor, dpg will point to the dp struct */
- construct_single_line_file_dpg(name, data_points, storage);
-
- free(line_len);
- dt_free(&data);
-
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Calls dtop_search for a files with single line format.
- *
- * Single line format refers to a file, where each line contains
- * the name of a dp, followed by the value of a dp.
- */
-void dtop_single_line_init(char *name)
-{
- struct dtop_single_line_vars *storage = malloc
- (sizeof(struct dtop_single_line_vars));
- storage->line_count = dtop_get_file_line_amount(name);
- dtop_single_line_search(name, storage);
-}
diff --git a/dataservices/datatop/src/datatop_stat_poll.c b/dataservices/datatop/src/datatop_stat_poll.c
deleted file mode 100644
index 88320b5..0000000
--- a/dataservices/datatop/src/datatop_stat_poll.c
+++ /dev/null
@@ -1,319 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_stat_poll.c
- * @brief Adds ability for data collection from /proc/stat
- *
- * File contains methods for searching and polling data from
- * "/proc/stat"
- */
-
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-
-#define DTOP_STAT_SIZE 16384
-#define DTOP_STAT_LINE (DTOP_STAT_SIZE>>2)
-
-/**
-* @struct dtop_stat_vars
-* @brief Struct used to hold necessary variables for /proc/stat dpg
-*
-* @var dtop_stat_vars::line
-* Array of strings where necessary dp names and values are held.
-* @var dtop_stat_vars::line_count
-* Number of lines the file is that the dpg represents.
-*/
-struct dtop_stat_vars {
- char **line;
- int line_count;
-};
-
-/**
- * @brief Parses lines with data in "/proc/stat"
- *
- * @param line1 Line to parse to find datapoint names and values.
- * @param len1 Length of line1.
- * @param n_index Index in the dictionary the key (name) is added to.
- * @param v_index Index in the dictionary the value is added to.
- * @param dict Dictionary the keys and values are added to.
- */
-static int dt_stat_parse(char *line1, int len1,
- int n_index, int v_index, struct dt_procdict *dict)
-{
- int i, k, j, start = 0;
- if (len1 < 1)
- return 0;
-
- if (line1 == 0 || dict == 0)
- return 0;
-
- dict->key[n_index] = &line1[0];
- for (i = 0; i < len1; i++) {
- if (line1[i] == ' ') {
- line1[i] = 0;
- start = (i+1);
- break;
- }
- }
-
- k = v_index;
- for (i = start; i < len1 && k < DTOP_DICT_SIZE; i++) {
- if (line1[i] != ' ') {
- dict->val[k] = &line1[i];
- for (j = i; j < len1; j++) {
- if (line1[j] == ' ') {
- line1[j] = 0;
- break;
- }
- }
- i = j;
- k++;
- }
- }
-
- dict->max = k;
- return k;
-}
-
-/**
- * @brief Stores the data collected from "/proc/stat"
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_stat_poll(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int *line_len = malloc(sizeof(int) *
- ((struct dtop_stat_vars *)
- (dpg->priv))->line_count);
- int read;
- struct dt_procdict dict;
- int i, n, sum;
- int dp_count = 0;
-
- read = dt_read_file(dpg->file, &data, DTOP_STAT_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < ((struct dtop_stat_vars *)
- (dpg->priv))->line_count; n++) {
- line_len[n] = dt_read_line(((struct dtop_stat_vars *)
- (dpg->priv))->line[n],
- DTOP_STAT_LINE, data,
- DTOP_STAT_SIZE, sum);
- if (n <= (((struct dtop_stat_vars *)
- (dpg->priv))->line_count - 1)) {
- sum += (line_len[n] + 1);
- }
-
- }
-
- /* Stores dp names and values in dictionary */
- for (i = 0; i < ((struct dtop_stat_vars *)(dpg->priv))->line_count; i++)
- dp_count = dt_stat_parse(((struct dtop_stat_vars *)
- (dpg->priv))->line[i], line_len[i], i, dp_count, &dict);
-
- /* Assigns the dp value to the dp struct */
- for (n = 0; n < dp_count; n++) {
- dtop_store_dp(&(dpg->data_points[n]),
- dict.val[n]);
- }
-
- dt_free(&data);
- free(line_len);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated "/proc/stat" dpg.
- *
- * Frees the memory of the dpg along with it's data_points
- * and other malloc'd memory no longer needed.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-static void dtop_stat_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset)
-{
- int i;
- for (i = 0; i < dpset->data_points_len; i++)
- free(dpset->data_points[i].name);
- free(dpset->data_points);
- for (i = 0; i < ((struct dtop_stat_vars *)
- (dpset->priv))->line_count; i++)
- free(((struct dtop_stat_vars *)(dpset->priv))->line[i]);
- free(((struct dtop_stat_vars *)(dpset->priv))->line);
- free(((struct dtop_stat_vars *)(dpset->priv)));
-
- free(dpset);
-}
-
-/**
- * @brief Creates a dpg for "/proc/stat" file
- *
- * Dynamically allocates memory for dpg which is then added to a linked list
- * via the dtop_register(dpg) function call.
- *
- * @param data_points dtop_data_point struct that dpg points to.
- * @param storage dtop_stat_vars struct that holds relevant dpg variables.
- * @param dp_count Number of data_points in data_points array
- */
-static void construct_stat_file_dpg(struct dtop_data_point
- *data_points, struct dtop_stat_vars *storage, int dp_count)
-{
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
- dpg->prefix = "/proc/stat";
- dpg->file = "/proc/stat";
- dpg->poll = dtop_stat_poll;
- dpg->data_points = data_points;
- dpg->priv = (struct dtop_stat_vars *)storage;
- dpg->data_points_len = dp_count;
- dpg->deconstruct = dtop_stat_dpg_deconstructor;
-
- dtop_register(dpg);
-}
-
-/**
- * @brief Scans "/proc/stat" in order to autodetect dps.
- *
- * Searches through "/proc/stat" file for all available data
- * points to create as dp structs.
- *
- * @param storage dtop_stat_vars struct where relevant variables are stored.
- */
-int dtop_stat_search(struct dtop_stat_vars *storage)
-{
- int i, n, sum;
- char *data;
- int *line_len = malloc(sizeof(int) * storage->line_count);
- int read;
- struct dt_procdict dict;
- int dp_count = 0;
- int end;
- int *dp_per_line;
- struct dtop_data_point *data_points;
- int count = 0;
-
- storage->line = malloc(storage->line_count * sizeof(*storage->line));
-
- for (i = 0; i < storage->line_count; i++)
- storage->line[i] = malloc(sizeof(char) * DTOP_STAT_LINE);
-
- read = dt_read_file("/proc/stat", &data, DTOP_STAT_SIZE);
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- sum = 0;
- /* Assigns each line read from the file, a length */
- for (n = 0; n < storage->line_count; n++) {
- line_len[n] = dt_read_line(storage->line[n],
- DTOP_STAT_LINE, data,
- DTOP_STAT_SIZE, sum);
- if (n < (storage->line_count - 1))
- sum += (line_len[n] + 1);
- }
-
- dp_per_line = malloc(sizeof(int) * (storage->line_count));
- /* Stores dp names in dictionary */
-
- for (i = 0; i < (storage->line_count); i++) {
- end = dp_count;
- dp_count = dt_stat_parse(storage->line[i],
- line_len[i], i, dp_count, &dict);
- dp_per_line[i] = (dp_count - end);
- }
-
- data_points = malloc(dp_count * sizeof(struct dtop_data_point));
-
- for (i = 0; i < (storage->line_count); i++) {
- for (n = 0; n < dp_per_line[i]; n++) {
- if (dp_per_line[i] == 1) {
- int dk_len = strlen(dict.key[i]) + 1;
- int dp_len;
- char *newname = malloc(dk_len);
- strlcpy(newname, dict.key[i], dk_len);
- dp_len = strlen(newname) + 1;
- data_points[count].name = malloc(dp_len);
- strlcpy(data_points[count].name, newname,
- dp_len);
- free(newname);
- } else {
- char *add = malloc(15 * sizeof(char));
- char *newname;
- int nn_len, dpn_len;
- snprintf(add, 15 * sizeof(char), "[%d]:", n);
- nn_len = strlen(dict.key[i]) + strlen(add) + 1;
- newname = malloc(nn_len);
- strlcpy(newname, dict.key[i], nn_len);
- strlcat(newname, add, nn_len);
- dpn_len = strlen(newname) + 1;
- data_points[count].name = malloc(dpn_len);
- strlcpy(data_points[count].name, newname,
- dpn_len);
- free(newname);
- free(add);
- }
- data_points[count].prefix = NULL;
- data_points[count].type = DTOP_ULONG;
- data_points[count].initial_data_populated
- = NOT_POPULATED;
- data_points[count].skip = DO_NOT_SKIP;
- count++;
- }
- }
-
- /* Calls dpg constructor, dpg will point to the dp struct */
- construct_stat_file_dpg(data_points, storage, dp_count);
- free(dp_per_line);
- free(line_len);
- dt_free(&data);
-
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Calls dtop_search for "/proc/stat" file.
- */
-void dtop_stat_init(void)
-{
- struct dtop_stat_vars *storage = malloc
- (sizeof(struct dtop_stat_vars));
- storage->line_count = dtop_get_file_line_amount("/proc/stat");
- dtop_stat_search(storage);
-}
diff --git a/dataservices/datatop/src/datatop_str.c b/dataservices/datatop/src/datatop_str.c
deleted file mode 100644
index 3d25751..0000000
--- a/dataservices/datatop/src/datatop_str.c
+++ /dev/null
@@ -1,260 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_str.c
- * @brief Algorithms used for storing and polling data created.
- *
- * Methods created which store collected data from files in
- * dictionaries for many different file formats.
- */
-
-#include
-#include
-#include "datatop_str.h"
-
-/** @brief Reads an individual line from a file.
- *
- * Will read from buf2 until either a '\n' is reached, or the end of buf1
- * or buf2 is reached. The result is guaranteed to be null terminated.
- *
- * @param buf1 Destination buffer to store the read line.
- * @param len1 Size of destination buffer.
- * @param buf2 Source buffer to read lines from. Const, will not be
- * modified by this function.
- * @param len2 Size of the source buffer.
- * @param start Offset (in bytes) to start reading from source buffer.
- * @return Length of line (of chars).
- */
-int dt_read_line(char *buf1, int len1, const char *buf2, int len2, int start)
-{
- int i, j;
-
- if (len1 < 1 || len2 < 1 || start < 0 || start > len2)
- return 0;
-
- if (buf1 == 0 || buf2 == 0)
- return 0;
-
- i = 0;
- j = start;
-
- while ((i < (len1-1)) && (j < len2)) {
- buf1[i] = buf2[j];
- if (buf1[i] == '\n')
- break;
- i++;
- j++;
- }
- buf1[i] = 0;
- return i;
-}
-
-/**
- * @brief Parses files that have Names and Values on separate lines.
- *
- * Use this method to parse files that have names on one line, followed by
- * the corresponding values on the next line. Such as "/proc/net/netstat"
- *
- * @param line1 First line that is parsed to store the datapoint names as keys.
- * @param len1 Length of line1.
- * @param line2 Second line that is parsed to store the datapoint values as dictionary values.
- * @param len2 Length of line2.
- * @param dict Dictionary that keys and values are added to.
- * @return Number of key/val pairs in the dictionary.
- */
-int dt_parse_proc_dictionary(char *line1, int len1, char *line2,
- int len2, struct dt_procdict *dict)
-{
- int i, j, k;
-
- if (len1 < 1 || len2 < 1)
- return 0;
-
- if (line1 == 0 || line2 == 0 || dict == 0)
- return 0;
-
- k = 0;
- for (i = 0; i < len1 && k < DTOP_DICT_SIZE; i++) {
- if (line1[i] == ' ') {
- dict->key[k] = &line1[i+1];
- line1[i] = 0;
- k++;
- }
- }
- j = k;
-
- k = 0;
- for (i = 0; i < len2 && k < DTOP_DICT_SIZE; i++) {
- if (line2[i] == ' ') {
- dict->val[k] = &line2[i+1];
- line2[i] = 0;
- k++;
- }
- }
- if (j != k) {
- if (k < j)
- j = k;
- fprintf(stderr, "Warning, list index length mismatch\n");
- }
- dict->max = j;
- return j;
-}
-
-/**
- * @brief Parses line for prefixes for files that have individual data_point prefixes.
- *
- * Use this method for lines that have a prefix before data begins. Such as
- * "/proc/net/snmp"
- *
- * @param line1 Line to parse to find datapoint prefix.
- * @param len1 Length of line1.
- * @param dict Dictionary prefix is being added to.
- */
-void dt_parse_for_prefix(char *line1, int len1, struct dt_procdict *dict)
-{
- int i, j, k;
-
- if (len1 < 1)
- return;
-
- if (line1 == 0 || dict == 0)
- return;
-
- k = 0;
- for (i = 0; i < len1 && k < DTOP_DICT_SIZE; i++) {
- if (line1[i] == ' ') {
- dict->key[k] = &line1[i+1];
- line1[i] = 0;
- k++;
- }
- }
-
- for (j = 0; j < k; j++)
- dict->val[j] = &line1[0];
-
- for (j = 0; j < len1; j++) {
- if (line1[j] == ':')
- line1[j] = 0;
- }
-}
-
-/**
- * @brief Finds the dictionary index of a data_point name.
- *
- * @param str Name of data_point that is to be located in dict.
- * @param dict Dictionary to look through for dp name.
- * @return Dictionary index of name if found.
- * @return -1 if name not found in dictionary keys.
- */
-int dt_find_dict_idx(const char *str, struct dt_procdict *dict)
-{
- int i;
- if (str == 0 || dict == 0)
- return -1;
-
- for (i = 0; i < dict->max; i++) {
- if (dict->key[i] && !strcmp(str, dict->key[i]))
- return i;
- }
- return -1;
-}
-
-/**
- * @brief Parses files that have Names and Values on same line.
- *
- * Use this method to parse lines that have a dp name followed
- * by a dp value. Such as "/proc/net/snmp6"
- *
- * @param line1 Line to parse to find datapoint names and values.
- * @param len1 Length of line1.
- * @param l Index in the dictionary the key/val pair is added to.
- * @param dict Dictionary the keys and values are added to.
- * @return Number of key/val pairs in the dictionary.
- */
-int dt_parse_proc_same_line_key_and_val(char *line1, int len1,
- int l, struct dt_procdict *dict)
-{
- int i, k, n;
- if (len1 < 1)
- return 0;
-
- if (line1 == 0 || dict == 0)
- return 0;
-
- k = l;
- for (i = 0; i < len1 && k < DTOP_DICT_SIZE; i++) {
- if (line1[i] == ' ') {
- dict->key[k] = &line1[0];
- line1[i] = 0;
- for (n = i+1; n < len1; n++) {
- if (line1[n] != ' ') {
- dict->val[k] = &line1[n+1];
- break;
- }
- }
- break;
- }
- }
- k++;
- dict->max = k;
- return k;
-}
-
-/**
- * @brief Parses files that have a single line.
- *
- * Parses a single line file for csv, tab-separated, space-separated, and single
- * value formats and adds values to a dictionary. Such as
- * "/proc/sys/net/ipv4/ping_group_range"
- *
- * Use this method to parse lines that contain only values.
- *
- * @param line1 Line to parse.
- * @param len1 Length of line1.
- * @param dict Dictionary datapoints are added to.
- * @return Number of values dictionary holds.
- */
-int dt_single_line_parse(char *line1, int len1, struct dt_procdict *dict)
-{
- int i, k;
- k = 0;
- dict->val[k] = &line1[0];
- k++;
-
- for (i = 0; i < len1; i++) {
- if (line1[i] == ' ' || line1[i] == ',' || line1[i] == ' ') {
- line1[i] = 0;
- dict->val[k] = &line1[i+1];
- k++;
- }
- }
- dict->max = k;
- return k;
-}
diff --git a/dataservices/datatop/src/datatop_str.h b/dataservices/datatop/src/datatop_str.h
deleted file mode 100644
index 1f30370..0000000
--- a/dataservices/datatop/src/datatop_str.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_str.h
- * @brief Declares methods held in datatop_str.c and defines dictionary struct.
- */
-
-#ifndef DATATOP_STR_H
-#define DATATOP_STR_H
-
-#define DTOP_DICT_SIZE 2048
-
-/**
- * @struct dt_procdict
- * @brief Struct used to create dictionary for parsing purposes.
- *
- * @var dt_procdict::max
- * Number of key/val pairs in dictionary.
- * @var dt_procdict::key
- * Holds the key that is used to access the value.
- * @var dt_procdict::val
- * Value that the key accesses.
- */
-struct dt_procdict {
- int max;
- char *key[DTOP_DICT_SIZE];
- char *val[DTOP_DICT_SIZE];
-};
-
-int dt_read_line(char *buf1, int len1, const char *buf2, int len2, int start);
-
-int dt_parse_proc_dictionary(char *line1, int len1, char *line2, int len2,
- struct dt_procdict *dict);
-
-int dt_find_dict_idx(const char *str, struct dt_procdict *dict);
-
-int dt_parse_proc_same_line_key_and_val(char *line1, int len1, int l,
- struct dt_procdict *dict);
-
-void dt_parse_for_prefix(char *line1, int len1, struct dt_procdict *dict);
-
-int dt_single_line_parse(char *line1, int len1, struct dt_procdict *dict);
-#endif /* DATATOP_STR_H */
diff --git a/dataservices/datatop/src/datatop_sys_snap.c b/dataservices/datatop/src/datatop_sys_snap.c
deleted file mode 100644
index ee9ea95..0000000
--- a/dataservices/datatop/src/datatop_sys_snap.c
+++ /dev/null
@@ -1,199 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-#include "datatop_opt.h"
-
-#define DTOP_SNAP_SIZE 8192
-#define DTOP_SNAP_LINE (DTOP_SNAP_SIZE>>2)
-
-static int dtop_system_snapshot_helper_print(char *file, const char *str)
-{
- FILE *snap_file = fopen(file, "a");
-
- if (snap_file) {
- if (fprintf(snap_file, "%s", str) < 0) {
- fclose(snap_file);
- return FILE_ERROR;
- }
- } else {
- return FILE_ERROR;
- }
- fflush(snap_file);
- fclose(snap_file);
- return FILE_SUCCESS;
-}
-
-/**
- * @brief A helper function to dtop_print_system_snapshot.
- *
- * @param fw File that desired system data is printed to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-static int dtop_run_and_log(char *file, const char *c1, const char **args)
-{
- int i;
- pid_t child_pid;
-
- i = 0;
- dtop_system_snapshot_helper_print(file, "\n"
- "--------------------------------------------------------------\n"
- "Command: ");
- while(args[i] != 0) {
- dtop_system_snapshot_helper_print(file, args[i++]);
- dtop_system_snapshot_helper_print(file, " ");
- }
- dtop_system_snapshot_helper_print(file, "\n");
-
-
- child_pid = fork();
- if (child_pid == 0) {
- int fd = open(file, O_WRONLY | O_APPEND | O_CREAT,
- S_IRUSR | S_IWUSR);
- dup2(fd, STDOUT_FILENO);
- dup2(fd, STDERR_FILENO);
- close(fd);
- execvp(c1, (char * const *)args);
- printf("Failed to execute %s\n", c1);
- printf("errno=%d error=%s\n", errno, strerror(errno));
- close(STDOUT_FILENO);
- close(STDERR_FILENO);
- exit(0);
- } else if (child_pid < 0) {
- return FILE_ERROR;
- } else {
- int return_status;
- waitpid(child_pid, &return_status, 0);
-
- if (return_status != 0)
- return FILE_ERROR;
- }
-
- return FILE_SUCCESS;
-}
-
-
-
-/* IPv4 */
-const char *ip_addr_cmd[] = {"ip", "addr", 0};
-const char *ip_route_cmd[] = {"ip", "route", 0};
-const char *ip_route_all_tables_cmd[] = {"ip", "route", "show", "table", "all", 0};
-const char *ip_rule_cmd[] = {"ip", "rule", "show", 0};
-const char *ip_tables_cmd[] = {"iptables", "-L", "-n", "-v", 0};
-const char *ip_tables_nat_cmd[] = {"iptables", "-t", "nat", "-L", "-n", "-v", 0};
-const char *ip_tables_mangle_cmd[] = {"iptables", "-t", "mangle", "-L", "-n", "-v", 0};
-const char *ip_tables_raw_cmd[] = {"iptables", "-t", "raw", "-L", "-n", "-v", 0};
-
-/* IPv6 */
-const char *ip6_addr_cmd[] = {"ip", "-6", "addr", 0};
-const char *ip6_route_cmd[] = {"ip", "-6", "route", 0};
-const char *ip6_route_all_tables_cmd[] = {"ip", "-6", "route", "show", "table", "all", 0};
-const char *ip6_rule_cmd[] = {"ip", "-6", "rule", "show", 0};
-const char *ip6_tables_cmd[] = {"ip6tables", "-L", "-n", "-v", 0};
-const char *ip6_tables_nat_cmd[] = {"ip6tables", "-t", "nat", "-L", "-n", "-v", 0};
-const char *ip6_tables_mangle_cmd[] = {"ip6tables", "-t", "mangle", "-L", "-n", "-v", 0};
-const char *ip6_tables_raw_cmd[] = {"ip6tables", "-t", "raw", "-L", "-n", "-v", 0};
-
-/* Misc */
-const char *rps_config[] = {"cat", "/sys/class/net/rmnet_mhi0/queues/rx-0/rps_cpus", 0};
-const char *if_config[] = {"/data/busybox/busybox", "ifconfig", 0};
-const char *netcfg[] = {"netcfg", 0};
-const char *softnet_stat[] = {"cat", "/proc/net/softnet_stat", 0};
-
-/* XFRM logging */
-const char *xfrm_state[] = {"ip", "xfrm", "state", "show", 0};
-const char *xfrm_policy[] = {"ip", "xfrm", "policy", "show", 0};
-const char *xfrm_netstat[] = {"cat", "/proc/net/xfrm_stat", 0};
-
-#define DO_DTOP_RUN_AND_LOG(X) \
- dtop_run_and_log(file, X[0], X);
-/**
- * @brief Prints a System snapshot to a file specified by the user.
- *
- * @param fw File that system snapshot is printed to.
- * @return FILE_ERROR - Writing to file was unsuccessful.
- * @return FILE_SUCCESS - Writing to file was successful.
- */
-int dtop_print_system_snapshot(char *file)
-{
- dtop_system_snapshot_helper_print(file,
- "==============================================================\n"
- " System Data Snapshot - Captured with Data Top \n"
- " Version ");
- dtop_system_snapshot_helper_print(file, VERSION);
- dtop_system_snapshot_helper_print(file, "\n"
- "==============================================================\n"
- "\n");
-
- /* IPv4 */
- DO_DTOP_RUN_AND_LOG(ip_addr_cmd);
- DO_DTOP_RUN_AND_LOG(ip_route_cmd);
- DO_DTOP_RUN_AND_LOG(ip_route_all_tables_cmd);
- DO_DTOP_RUN_AND_LOG(ip_rule_cmd);
- DO_DTOP_RUN_AND_LOG(ip_tables_cmd);
- DO_DTOP_RUN_AND_LOG(ip_tables_nat_cmd);
- DO_DTOP_RUN_AND_LOG(ip_tables_mangle_cmd);
- DO_DTOP_RUN_AND_LOG(ip_tables_raw_cmd);
-
- /* IPv6 */
- DO_DTOP_RUN_AND_LOG(ip6_addr_cmd);
- DO_DTOP_RUN_AND_LOG(ip6_route_cmd);
- DO_DTOP_RUN_AND_LOG(ip6_route_all_tables_cmd);
- DO_DTOP_RUN_AND_LOG(ip6_rule_cmd);
- DO_DTOP_RUN_AND_LOG(ip6_tables_cmd);
- DO_DTOP_RUN_AND_LOG(ip6_tables_nat_cmd);
- DO_DTOP_RUN_AND_LOG(ip6_tables_mangle_cmd);
- DO_DTOP_RUN_AND_LOG(ip6_tables_raw_cmd);
-
- /* Misc */
- DO_DTOP_RUN_AND_LOG(rps_config);
- DO_DTOP_RUN_AND_LOG(if_config);
- DO_DTOP_RUN_AND_LOG(netcfg);
- DO_DTOP_RUN_AND_LOG(softnet_stat);
-
- /* XFRM logging */
- DO_DTOP_RUN_AND_LOG(xfrm_state);
- DO_DTOP_RUN_AND_LOG(xfrm_policy);
- DO_DTOP_RUN_AND_LOG(xfrm_netstat);
-
- return FILE_SUCCESS;
-}
diff --git a/dataservices/datatop/src/datatop_value_only_poll.c b/dataservices/datatop/src/datatop_value_only_poll.c
deleted file mode 100644
index bf6fc54..0000000
--- a/dataservices/datatop/src/datatop_value_only_poll.c
+++ /dev/null
@@ -1,201 +0,0 @@
-/************************************************************************
-Copyright (c) 2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-************************************************************************/
-
-/**
- * @file datatop_value_only_poll.c
- * @brief Adds ability for data collection from files with only values
- *
- * File contains methods for searching and polling data from
- * value_only files, meaning a file with a single line, containing
- * only values.
- */
-
-#include
-#include
-#include
-#include "datatop_interface.h"
-#include "datatop_fileops.h"
-#include "datatop_str.h"
-
-#define DTOP_SINGLE_SIZE 8192
-#define DTOP_SINGLE_LINE (DTOP_SINGLE_SIZE>>2)
-
-/**
- * @brief Stores the data collected from a value_only files.
- *
- * @param dpg Struct that polled data is added to.
- * @return DTOP_POLL_IO_ERR - Poll of dpg unsuccessful.
- * @return DTOP_POLL_OK - Poll of dpg successful.
- */
-int dtop_value_only_poll(struct dtop_data_point_gatherer *dpg)
-{
- char *data;
- int line_len;
- char line[DTOP_SINGLE_LINE];
- int read;
- struct dt_procdict dict;
- int j;
- FILE *check = fopen(dpg->file, "r");
- if (check) {
- fclose(check);
- read = dt_read_file(dpg->file, &data, DTOP_SINGLE_SIZE);
- } else {
- return DTOP_POLL_IO_ERR;
- }
-
- if (read == 0 || data == 0)
- return DTOP_POLL_IO_ERR;
-
- line_len = dt_read_line(line, DTOP_SINGLE_LINE, data,
- DTOP_SINGLE_SIZE, 0);
-
- /* Stores dp values in dictionary */
- dt_single_line_parse(line, line_len, &dict);
-
- /* Assigns the dp value to the dp struct */
- for (j = 0; j < dpg->data_points_len; j++)
- dtop_store_dp(&(dpg->data_points[j]), dict.val[j]);
-
- dt_free(&data);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Frees dynamically allocated single line dpg.
- *
- * Frees the memory of the dpg along with it's data_points
- * and other malloc'd memory no longer needed.
- *
- * @param dpg Dpg to deconstruct and deallocate memory for.
- */
-void dtop_value_only_dpg_deconstructor
- (struct dtop_data_point_gatherer *dpset)
-{
- int i;
- for (i = 0; i < dpset->data_points_len; i++)
- free(dpset->data_points[i].name);
- free(dpset->data_points);
- free(dpset->file);
- free(dpset);
-}
-
-/**
- * @brief Creates a dpg for a single line file.
- *
- * Dynamically allocates memory for dpg which is then added to a linked list
- * via the dtop_register(dpg) function call.
- *
- * @param name Name of file dpg represents.
- * @param data_points dtop_data_point struct that dpg points to.
- * @param dp_count Number of data_points in data_points array
- */
-static void construct_value_only_dpg(char *name, struct dtop_data_point
- *data_points, int dp_count)
-{
- struct dtop_data_point_gatherer *dpg = malloc
- (sizeof(struct dtop_data_point_gatherer));
- dpg->prefix = name;
- dpg->file = name;
- dpg->poll = dtop_value_only_poll;
- dpg->data_points = data_points;
- dpg->data_points_len = dp_count;
- dpg->deconstruct = dtop_value_only_dpg_deconstructor;
-
- dtop_register(dpg);
-}
-
-/**
- * @brief Scans a single line file in order to autodetect dps.
- *
- * Searches through a file that contains a single line and only
- * values in order to detect and create dp's/
- *
- * @param name Name of file to scan.
- */
-int dtop_value_only_search(char *name)
-{
- int i;
- char *data;
- char line[DTOP_SINGLE_LINE];
- int line_len;
- int read;
- struct dt_procdict dict;
- struct dtop_data_point *data_points;
-
-
- read = dt_read_file(name, &data, DTOP_SINGLE_SIZE);
- if (read == 0 || data == 0) {
- free(name);
- return DTOP_POLL_IO_ERR;
- }
-
- line_len = dt_read_line(line,
- DTOP_SINGLE_LINE, data,
- DTOP_SINGLE_SIZE, 0);
-
- /* Stores dp values in dictionary */
- dt_single_line_parse(line, line_len, &dict);
-
- data_points = malloc(dict.max * sizeof(struct dtop_data_point));
-
- /* Creates a dtop_data_point struct for each dp found in the file */
- for (i = 0; i < dict.max; i++) {
- char *newname = malloc(sizeof(10));
- if (dict.val[i][0] == '-')
- data_points[i].type = DTOP_LONG;
- else
- data_points[i].type = DTOP_ULONG;
- data_points[i].name = malloc(sizeof(10));
- if (dict.max > 1)
- snprintf(newname, sizeof(10), "[%d]:", i);
- else
- strlcpy(newname, "", sizeof(10));
- strlcpy(data_points[i].name, newname, sizeof(10));
- free(newname);
- data_points[i].prefix = NULL;
- data_points[i].skip = DO_NOT_SKIP;
- data_points[i].initial_data_populated = NOT_POPULATED;
- }
-
- /* Calls dpg constructor, dpg will point to the dp struct */
- construct_value_only_dpg(name, data_points, dict.max);
-
- dt_free(&data);
- return DTOP_POLL_OK;
-}
-
-/**
- * @brief Calls dtop_search for files with a single line and only values.
- */
-void dtop_value_only_init(char *name)
-{
- char *file = malloc(strlen(name) + 1);
- strlcpy(file, name, strlen(name) + 1);
- dtop_value_only_search(file);
-}
diff --git a/dataservices/rmnetctl/Android.mk b/dataservices/rmnetctl/Android.mk
deleted file mode 100644
index 8338432..0000000
--- a/dataservices/rmnetctl/Android.mk
+++ /dev/null
@@ -1,2 +0,0 @@
-include $(call all-subdir-makefiles)
-
diff --git a/dataservices/rmnetctl/cli/Android.mk b/dataservices/rmnetctl/cli/Android.mk
deleted file mode 100644
index 27281ff..0000000
--- a/dataservices/rmnetctl/cli/Android.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := rmnetcli.c
-LOCAL_CFLAGS := -Wall -Werror
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/../inc
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../src
-LOCAL_C_INCLUDES += $(LOCAL_PATH)
-
-LOCAL_MODULE := rmnetcli
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_SHARED_LIBRARIES := librmnetctl
-include $(BUILD_EXECUTABLE)
diff --git a/dataservices/rmnetctl/cli/Makefile.am b/dataservices/rmnetctl/cli/Makefile.am
deleted file mode 100644
index a17b79e..0000000
--- a/dataservices/rmnetctl/cli/Makefile.am
+++ /dev/null
@@ -1,9 +0,0 @@
-AM_CFLAGS = -Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs
-AM_CFLAGS += -I./../inc
-rmnetcli_SOURCES = rmnetcli.c
-bin_PROGRAMS = rmnetcli
-requiredlibs = ../src/librmnetctl.la
-rmnetcli_LDADD = $(requiredlibs)
-LOCAL_MODULE := librmnetctl
-LOCAL_PRELINK_MODULE := false
-include $(BUILD_SHARED_LIBRARY)
diff --git a/dataservices/rmnetctl/cli/rmnetcli.c b/dataservices/rmnetctl/cli/rmnetcli.c
deleted file mode 100644
index 2275ec2..0000000
--- a/dataservices/rmnetctl/cli/rmnetcli.c
+++ /dev/null
@@ -1,415 +0,0 @@
-/******************************************************************************
-
- R M N E T C L I . C
-
-Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-******************************************************************************/
-
-/******************************************************************************
-
- @file rmnetcli.c
- @brief command line interface to expose rmnet control API's
-
- DESCRIPTION
- File containing implementation of the command line interface to expose the
- rmnet control configuration .
-
-******************************************************************************/
-
-/*===========================================================================
- INCLUDE FILES
-===========================================================================*/
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "rmnetcli.h"
-#include "librmnetctl.h"
-
-#define RMNET_MAX_STR_LEN 16
-
-#define _RMNETCLI_CHECKNULL(X) do { if (!X) { \
-print_rmnet_api_status(RMNETCTL_INVALID_ARG, RMNETCTL_CFG_FAILURE_NO_COMMAND); \
- rmnetctl_cleanup(handle); \
- return RMNETCTL_INVALID_ARG; \
- } } while (0);
-#define _STRTOUI32(X) (uint32_t)strtoul(X, NULL, 0)
-#define _STRTOUI16(X) (uint16_t)strtoul(X, NULL, 0)
-#define _STRTOUI8(X) (uint8_t)strtoul(X, NULL, 0)
-#define _STRTOI32(X) (int32_t)strtol(X, NULL, 0)
-
-#define _5TABS "\n\t\t\t\t\t"
-#define _2TABS "\n\t\t"
-
-/*!
-* @brief Contains a list of error message from CLI
-*/
-char rmnetcfg_error_code_text
-[RMNETCFG_TOTAL_ERR_MSGS][RMNETCTL_ERR_MSG_SIZE] = {
- "Help option Specified",
- "ERROR: No\\Invalid command was specified\n",
- "ERROR: Could not allocate buffer for Egress device\n"
-};
-
-/*!
-* @brief Method to display the syntax for the commands
-* @details Displays the syntax and usage for the commands
-* @param void
-* @return void
-*/
-static void rmnet_api_usage(void)
-{
- printf("RmNet API Usage:\n\n");
- printf("rmnetcli help Displays this help\n");
- printf("\n");
- printf("rmnetcli assocnetdev Registers the RmNet");
- printf(_5TABS" data driver on a particular");
- printf(_5TABS" device.dev_name cannot");
- printf(_5TABS" be larger than 15");
- printf(_5TABS" characters. Returns");
- printf(_5TABS" the status code.\n\n");
- printf("rmnetcli unassocnetdev Unregisters the");
- printf(_5TABS" RmNet data driver on a particular");
- printf(_5TABS" device. dev_name cannot");
- printf(_5TABS" be larger than 15");
- printf(_5TABS" characters. Returns");
- printf(_5TABS" the status code.\n\n");
- printf("rmnetcli getnetdevassoc Get if the RmNet");
- printf(_5TABS" data driver is registered on");
- printf(_5TABS" a particular device.");
- printf(_5TABS" dev_name cannot be");
- printf(_5TABS" larger than 15");
- printf(_5TABS" characters. Returns 1");
- printf(_5TABS" if is registered and");
- printf(_5TABS" 0 if it is not");
- printf(_5TABS" registered\n\n");
- printf("rmnetcli setledf Sets the egress data");
- printf(_2TABS" format for a particular link.");
- printf(_2TABS" dev_name cannot be larger");
- printf(_2TABS" than 15 characters.");
- printf(_5TABS" Returns the status code\n\n");
- printf("rmnetcli getledf Gets the egress data");
- printf(_5TABS" format for a particular link.");
- printf(_5TABS" dev_name cannot be larger");
- printf(_5TABS" than 15. Returns the 4");
- printf(_5TABS" byte unsigned integer");
- printf(_5TABS" egress_flags\n\n");
- printf("rmnetcli setlidf Sets the ingress");
- printf(_2TABS" data format for a particular");
- printf(_2TABS" link. ingress_flags is 4");
- printf(_5TABS" byte unsigned integer.");
- printf(_5TABS" tail_spacing is a one.");
- printf(_5TABS" byte unsigned integer.");
- printf(_5TABS" dev_name cannot be");
- printf(_5TABS" larger than 15.");
- printf(_5TABS" characters. Returns");
- printf(_5TABS" the status code\n\n");
- printf("rmnetcli getlidf Gets the ingress");
- printf(_5TABS" data format for a particular");
- printf(_5TABS" link. dev_name cannot be");
- printf(_5TABS" larger than 15. Returns");
- printf(_5TABS" the 4 byte unsigned");
- printf(_5TABS" integer ingress_flags\n\n");
- printf("rmnetcli setlepc Sets the logical");
- printf(_2TABS" endpoint configuration for");
- printf(_2TABS" a particular link.");
- printf(_2TABS" logical_ep_id are 32bit");
- printf(_5TABS" integers from -1 to 31.");
- printf(_5TABS" rmnet_mode is a 1 byte");
- printf(_5TABS" unsigned integer of");
- printf(_5TABS" value none, vnd or");
- printf(_5TABS" bridged. dev_name");
- printf(_5TABS" and egress_dev_name");
- printf(_5TABS" cannot be larger");
- printf(_5TABS" than 15 characters");
- printf(_5TABS" Returns the status code\n\n");
- printf("rmnetcli unsetlepc Un-sets the logical");
- printf(_2TABS" endpoint configuration for");
- printf(_5TABS" a particular link.");
- printf(_5TABS" integers from -1 to 31.");
- printf(_5TABS" dev_name cannot be larger");
- printf(_5TABS" than 15 characters");
- printf(_5TABS" Returns the status code\n\n");
- printf("rmnetcli getlepc Sets the logical");
- printf(_2TABS" endpoint configuration for a");
- printf(_5TABS" particular link.");
- printf(_5TABS" logical_ep_id are 32bit");
- printf(_5TABS" integers from -1 to 31.");
- printf(_5TABS" Returns the rmnet_mode");
- printf(_5TABS" and egress_dev_name.");
- printf(_5TABS" rmnet_mode is a 1");
- printf(_5TABS" byte unsigned integer");
- printf(_5TABS" of value none, vnd or");
- printf(_5TABS" bridged. dev_name and");
- printf(_5TABS" egress_dev_name cannot be");
- printf(_5TABS" larger than 15 ");
- printf(_5TABS" characters. Returns the");
- printf(_5TABS" status code\n\n");
- printf("rmnetcli newvnd Creates a new");
- printf(_5TABS" virtual network device node.");
- printf(_5TABS" dev_id is an int");
- printf(_5TABS" less than 32. Returns");
- printf(_5TABS" the status code\n\n");
- printf("rmnetcli newvndprefix Creates");
- printf(_5TABS" virtual network device node.");
- printf(_5TABS" dev_id is an int");
- printf(_5TABS" less than 32. Prefix");
- printf(_5TABS" must be less than");
- printf(_5TABS" 15 chars. Returns");
- printf(_5TABS" the status code\n\n");
- printf("rmnetcli getvndname Get name of");
- printf(_5TABS" network device node from id\n\n");
- printf("rmnetcli freevnd Removes virtual");
- printf(_5TABS" network device node. dev_name");
- printf(_5TABS" cannot be larger than 15.");
- printf(_5TABS" Returns the status code\n\n");
- printf("rmnetcli addvnctcflow Add a modem flow");
- printf(_2TABS" handle - tc flow handle");
- printf(_2TABS" mapping for a virtual network");
- printf(_2TABS" device node\n\n");
- printf("rmnetcli delvnctcflow Delete a modem flow");
- printf(_2TABS" handle - tc flow handle");
- printf(_2TABS" mapping for a virtual network");
- printf(_2TABS" device node\n\n");
-}
-
-static void print_rmnetctl_lib_errors(uint16_t error_number)
-{
- if ((error_number > RMNETCTL_API_SUCCESS) &&
- (error_number < RMNETCTL_API_ERR_ENUM_LENGTH)) {
- printf("%s", rmnetctl_error_code_text[error_number]);
- }
- if ((error_number >= RMNETCFG_ERR_NUM_START) &&
- (error_number < RMNETCFG_ERR_NUM_START + RMNETCFG_TOTAL_ERR_MSGS)) {
- printf("%s", rmnetcfg_error_code_text
- [error_number - RMNETCFG_ERR_NUM_START]);
- if ((error_number == RMNETCTL_CFG_SUCCESS_HELP_COMMAND) ||
- (error_number == RMNETCTL_CFG_FAILURE_NO_COMMAND))
- rmnet_api_usage();
- }
-}
-
-/*!
-* @brief Method to check the error numbers generated from API calls
-* @details Displays the error messages based on each error code
-* @param error_number Error number returned from the API and the CLI
-* @return void
-*/
-static void print_rmnet_api_status(int return_code, uint16_t error_number)
-{
- if (return_code == RMNETCTL_SUCCESS)
- printf("SUCCESS\n");
- else if (return_code == RMNETCTL_LIB_ERR) {
- printf("LIBRARY ");
- print_rmnetctl_lib_errors(error_number);
- } else if (return_code == RMNETCTL_KERNEL_ERR)
- printf("KERNEL %s", rmnetctl_error_code_text[error_number]);
- else if (return_code == RMNETCTL_INVALID_ARG)
- printf("INVALID_ARG\n");
-}
-
-/*!
-* @brief Method to make the API calls
-* @details Checks for each type of parameter and calls the appropriate
-* function based on the number of parameters and parameter type
-* @param argc Number of arguments which vary based on the commands
-* @param argv Value of the arguments which vary based on the commands
-* @return RMNETCTL_SUCCESS if successful. Relevant data might be printed
-* based on the message type
-* @return RMNETCTL_LIB_ERR if there was a library error. Error code will be
-* printed
-* @return RMNETCTL_KERNEL_ERR if there was a error in the kernel. Error code will be
-* printed
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-
-static int rmnet_api_call(int argc, char *argv[])
-{
- struct rmnetctl_hndl_s *handle = NULL;
- uint16_t error_number = RMNETCTL_CFG_FAILURE_NO_COMMAND;
- int return_code = RMNETCTL_LIB_ERR;
- if ((!argc) || (!*argv)) {
- print_rmnet_api_status(RMNETCTL_LIB_ERR,
- RMNETCTL_CFG_FAILURE_NO_COMMAND);
- return RMNETCTL_LIB_ERR;
- }
- if (!strcmp(*argv, "help")) {
- print_rmnet_api_status(RMNETCTL_LIB_ERR,
- RMNETCTL_CFG_SUCCESS_HELP_COMMAND);
- return RMNETCTL_LIB_ERR;
- }
- return_code = rmnetctl_init(&handle, &error_number);
- if (return_code!= RMNETCTL_SUCCESS) {
- print_rmnet_api_status(return_code, error_number);
- return RMNETCTL_LIB_ERR;
- }
- error_number = RMNETCTL_CFG_FAILURE_NO_COMMAND;
- return_code = RMNETCTL_LIB_ERR;
- if (!strcmp(*argv, "assocnetdev")) {
- return_code = rmnet_associate_network_device(handle,
- argv[1], &error_number, RMNETCTL_DEVICE_ASSOCIATE);
- } else if (!strcmp(*argv, "unassocnetdev")) {
- return_code = rmnet_associate_network_device(handle,
- argv[1], &error_number, RMNETCTL_DEVICE_UNASSOCIATE);
- } else if (!strcmp(*argv, "getnetdevassoc")) {
- int register_status;
- return_code = rmnet_get_network_device_associated(handle,
- argv[1], ®ister_status, &error_number);
- if (return_code == RMNETCTL_SUCCESS)
- printf("register_status is %d\n", register_status);
- } else if (!strcmp(*argv, "getledf")) {
- uint32_t egress_flags;
- uint16_t agg_size, agg_count;
- return_code = rmnet_get_link_egress_data_format(handle,
- argv[1], &egress_flags, &agg_size, &agg_count, &error_number);
- if (return_code == RMNETCTL_SUCCESS) {
- printf("egress_flags is %u\n", egress_flags);
- printf("agg_size is %u\n", agg_size);
- printf("agg_count is %u\n", agg_count);
- }
- } else if (!strcmp(*argv, "getlidf")) {
- uint32_t ingress_flags;
- uint8_t tail_spacing;
- return_code = rmnet_get_link_ingress_data_format_tailspace(
- handle, argv[1], &ingress_flags, &tail_spacing, &error_number);
- if (return_code == RMNETCTL_SUCCESS) {
- printf("ingress_flags is %u\n", ingress_flags);
- printf("tail_spacing is %u\n", tail_spacing);
- }
- } else if (!strcmp(*argv, "newvndprefix")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- _RMNETCLI_CHECKNULL(argv[2]);
- return_code = rmnet_new_vnd_prefix(handle,
- _STRTOUI32(argv[1]), &error_number, RMNETCTL_NEW_VND, argv[2]);
- } else if (!strcmp(*argv, "newvnd")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- return_code = rmnet_new_vnd(handle,
- _STRTOUI32(argv[1]), &error_number, RMNETCTL_NEW_VND);
- } else if (!strcmp(*argv, "getvndname")) {
- char buffer[32];
- memset(buffer, 0, 32);
- _RMNETCLI_CHECKNULL(argv[1]);
- return_code = rmnet_get_vnd_name(handle, _STRTOUI32(argv[1]),
- &error_number, buffer, 32);
- if (return_code == RMNETCTL_SUCCESS) {
- printf("VND name: %s\n", buffer);
- }
- } else if (!strcmp(*argv, "freevnd")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- return_code = rmnet_new_vnd(handle,
- _STRTOUI32(argv[1]), &error_number, RMNETCTL_FREE_VND);
- } else if (!strcmp(*argv, "setlidf")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- _RMNETCLI_CHECKNULL(argv[2]);
- _RMNETCLI_CHECKNULL(argv[3]);
- return_code = rmnet_set_link_ingress_data_format_tailspace(
- handle, _STRTOUI32(argv[1]), _STRTOUI8(argv[2]), argv[3],
- &error_number);
- } else if (!strcmp(*argv, "delvnctcflow")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- _RMNETCLI_CHECKNULL(argv[2]);
- _RMNETCLI_CHECKNULL(argv[3]);
- return_code = rmnet_add_del_vnd_tc_flow(handle,
- _STRTOUI32(argv[1]), _STRTOUI32(argv[2]), _STRTOUI32(argv[3]),
- RMNETCTL_DEL_FLOW, &error_number);
- } else if (!strcmp(*argv, "getlepc")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- uint8_t rmnet_mode;
- char *egress_dev_name;
- egress_dev_name = NULL;
- egress_dev_name = (char *)malloc(RMNET_MAX_STR_LEN
- * sizeof(char));
- if (!egress_dev_name) {
- print_rmnet_api_status(RMNETCTL_LIB_ERR,
- RMNETCTL_CFG_FAILURE_EGRESS_DEV_NAME_NULL);
- rmnetctl_cleanup(handle);
- return RMNETCTL_LIB_ERR;
- }
- return_code = rmnet_get_logical_ep_config(handle,
- _STRTOI32(argv[1]), argv[2], &rmnet_mode,
- &egress_dev_name, RMNET_MAX_STR_LEN, &error_number);
- if (return_code == RMNETCTL_SUCCESS) {
- printf("rmnet_mode is %u\n", rmnet_mode);
- printf("egress_dev_name is %s\n", egress_dev_name);
- }
- free(egress_dev_name);
- } else if (!strcmp(*argv, "addvnctcflow")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- _RMNETCLI_CHECKNULL(argv[2]);
- _RMNETCLI_CHECKNULL(argv[3]);
- return_code = rmnet_add_del_vnd_tc_flow(handle,
- _STRTOUI32(argv[1]), _STRTOUI32(argv[2]), _STRTOUI32(argv[3]),
- RMNETCTL_ADD_FLOW, &error_number);
- } else if (!strcmp(*argv, "setledf")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- _RMNETCLI_CHECKNULL(argv[2]);
- _RMNETCLI_CHECKNULL(argv[3]);
- return_code = rmnet_set_link_egress_data_format(handle,
- _STRTOUI32(argv[1]), _STRTOUI16(argv[2]), _STRTOUI16(argv[3]),
- argv[4], &error_number);
- } else if (!strcmp(*argv, "setlepc")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- _RMNETCLI_CHECKNULL(argv[2]);
- return_code = rmnet_set_logical_ep_config(handle,
- _STRTOI32(argv[1]), _STRTOUI8(argv[2]), argv[3], argv[4],
- &error_number);
- } else if (!strcmp(*argv, "unsetlepc")) {
- _RMNETCLI_CHECKNULL(argv[1]);
- return_code = rmnet_unset_logical_ep_config(handle,
- _STRTOI32(argv[1]), argv[2], &error_number);
- }
- print_rmnet_api_status(return_code, error_number);
- rmnetctl_cleanup(handle);
- return return_code;
-}
-
-/*!
-* @brief Method which serves as en entry point to the rmnetcli function
-* @details Entry point for the RmNet Netlink API. This is the command line
-* interface for the RmNet API
-* @param argc Number of arguments which vary based on the commands
-* @param argv Value of the arguments which vary based on the commands
-* @return RMNETCTL_SUCCESS if successful. Relevant data might be printed
-* based on the message type
-* @return RMNETCTL_LIB_ERR if there was a library error. Error code will be
-* printed
-* @return RMNETCTL_KERNEL_ERR if there was a error in the kernel. Error code will be
-* printed
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int main(int argc, char *argv[])
-{
- argc--;
- argv++;
- return rmnet_api_call(argc, argv);
-}
diff --git a/dataservices/rmnetctl/cli/rmnetcli.h b/dataservices/rmnetctl/cli/rmnetcli.h
deleted file mode 100644
index 6375082..0000000
--- a/dataservices/rmnetctl/cli/rmnetcli.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/******************************************************************************
-
- R M N E T C L I . H
-
-Copyright (c) 2013, 2015 The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-******************************************************************************/
-
-/******************************************************************************
-
- @file rmnetcli.h
- @brief headers for the command line interface to expose rmnet control API's
-
- DESCRIPTION
- Header file containing definition for the command line interface to expose
- rmnet control API's
-
-******************************************************************************/
-
-#ifndef RMNETCLI_H
-#define RMNETCLI_H
-
-/* Print the help for the commands since the help flag was used. */
-#define RMNETCTL_CFG_SUCCESS_HELP_COMMAND 100
-/* No/invalid API call was specified. So return an error. */
-#define RMNETCTL_CFG_FAILURE_NO_COMMAND 101
-/* The buffer for egress device name was NULL */
-#define RMNETCTL_CFG_FAILURE_EGRESS_DEV_NAME_NULL 102
-
-/* This should always be the value of the starting element */
-#define RMNETCFG_ERR_NUM_START 100
-
-/* This should always be the total number of error message from CLI */
-#define RMNETCFG_TOTAL_ERR_MSGS 3
-
-#endif /* not defined RMNETCLI_H */
diff --git a/dataservices/rmnetctl/inc/librmnetctl.h b/dataservices/rmnetctl/inc/librmnetctl.h
deleted file mode 100644
index ff78011..0000000
--- a/dataservices/rmnetctl/inc/librmnetctl.h
+++ /dev/null
@@ -1,499 +0,0 @@
-/******************************************************************************
-
- L I B R M N E T C T L . H
-
-Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-******************************************************************************/
-
-/*!
-* @file librmnetctl.h
-* @brief rmnet control API's header file
-*/
-
-#ifndef LIBRMNETCTL_H
-#define LIBRMNETCTL_H
-
-/* RMNET API succeeded */
-#define RMNETCTL_SUCCESS 0
-/* RMNET API encountered an error while executing within the library. Check the
-* error code in this case */
-#define RMNETCTL_LIB_ERR 1
-/* RMNET API encountered an error while executing in the kernel. Check the
-* error code in this case */
-#define RMNETCTL_KERNEL_ERR 2
-/* RMNET API encountered an error because of invalid arguments*/
-#define RMNETCTL_INVALID_ARG 3
-
-/* Flag to associate a network device*/
-#define RMNETCTL_DEVICE_ASSOCIATE 1
-/* Flag to unassociate a network device*/
-#define RMNETCTL_DEVICE_UNASSOCIATE 0
-/* Flag to create a new virtual network device*/
-#define RMNETCTL_NEW_VND 1
-/* Flag to free a new virtual network device*/
-#define RMNETCTL_FREE_VND 0
-/* Flag to add a new flow*/
-#define RMNETCTL_ADD_FLOW 1
-/* Flag to delete an existing flow*/
-#define RMNETCTL_DEL_FLOW 0
-
-enum rmnetctl_error_codes_e {
- /* API succeeded. This should always be the first element. */
- RMNETCTL_API_SUCCESS = 0,
-
- RMNETCTL_API_FIRST_ERR = 1,
- /* API failed because not enough memory to create buffer to send
- * message */
- RMNETCTL_API_ERR_REQUEST_INVALID = RMNETCTL_API_FIRST_ERR,
- /* API failed because not enough memory to create buffer for the
- * response message */
- RMNETCTL_API_ERR_RESPONSE_INVALID = 2,
- /* API failed because could not send the message to kernel */
- RMNETCTL_API_ERR_MESSAGE_SEND = 3,
- /* API failed because could not receive message from the kernel */
- RMNETCTL_API_ERR_MESSAGE_RECEIVE = 4,
-
- RMNETCTL_INIT_FIRST_ERR = 5,
- /* Invalid process id. So return an error. */
- RMNETCTL_INIT_ERR_PROCESS_ID = RMNETCTL_INIT_FIRST_ERR,
- /* Invalid socket descriptor id. So return an error. */
- RMNETCTL_INIT_ERR_NETLINK_FD = 6,
- /* Could not bind the socket to the Netlink file descriptor */
- RMNETCTL_INIT_ERR_BIND = 7,
- /* Invalid user id. Only root has access to this function. (NA) */
- RMNETCTL_INIT_ERR_INVALID_USER = 8,
-
- RMNETCTL_API_SECOND_ERR = 9,
- /* API failed because the RmNet handle for the transaction was NULL */
- RMNETCTL_API_ERR_HNDL_INVALID = RMNETCTL_API_SECOND_ERR,
- /* API failed because the request buffer for the transaction was NULL */
- RMNETCTL_API_ERR_REQUEST_NULL = 10,
- /* API failed because the response buffer for the transaction was NULL*/
- RMNETCTL_API_ERR_RESPONSE_NULL = 11,
- /* API failed because the request and response type do not match*/
- RMNETCTL_API_ERR_MESSAGE_TYPE = 12,
- /* API failed because the return type is invalid */
- RMNETCTL_API_ERR_RETURN_TYPE = 13,
- /* API failed because the string was truncated */
- RMNETCTL_API_ERR_STRING_TRUNCATION = 14,
-
- /* These error are 1-to-1 with rmnet_data config errors in rmnet_data.h
- for each conversion.
- please keep the enums synced.
- */
- RMNETCTL_KERNEL_FIRST_ERR = 15,
- /* No error */
- RMNETCTL_KERNEL_ERROR_NO_ERR = RMNETCTL_KERNEL_FIRST_ERR,
- /* Invalid / unsupported message */
- RMNETCTL_KERNEL_ERR_UNKNOWN_MESSAGE = 16,
- /* Internal problem in the kernel module */
- RMNETCTL_KERNEL_ERR_INTERNAL = 17,
- /* Kernel is temporarily out of memory */
- RMNETCTL_KERNEL_ERR_OUT_OF_MEM = 18,
- /* Device already exists / Still in use */
- RMETNCTL_KERNEL_ERR_DEVICE_IN_USE = 19,
- /* Invalid request / Unsupported scenario */
- RMNETCTL_KERNEL_ERR_INVALID_REQUEST = 20,
- /* Device doesn't exist */
- RMNETCTL_KERNEL_ERR_NO_SUCH_DEVICE = 21,
- /* One or more of the arguments is invalid */
- RMNETCTL_KERNEL_ERR_BAD_ARGS = 22,
- /* Egress device is invalid */
- RMNETCTL_KERNEL_ERR_BAD_EGRESS_DEVICE = 23,
- /* TC handle is full */
- RMNETCTL_KERNEL_ERR_TC_HANDLE_FULL = 24,
-
- /* This should always be the last element */
- RMNETCTL_API_ERR_ENUM_LENGTH
-};
-
-#define RMNETCTL_ERR_MSG_SIZE 100
-
-/*!
-* @brief Contains a list of error message from API
-*/
-char rmnetctl_error_code_text
-[RMNETCTL_API_ERR_ENUM_LENGTH][RMNETCTL_ERR_MSG_SIZE] = {
- "ERROR: API succeeded\n",
- "ERROR: Unable to allocate the buffer to send message\n",
- "ERROR: Unable to allocate the buffer to receive message\n",
- "ERROR: Could not send the message to kernel\n",
- "ERROR: Unable to receive message from the kernel\n",
- "ERROR: Invalid process id\n",
- "ERROR: Invalid socket descriptor id\n",
- "ERROR: Could not bind to netlink socket\n",
- "ERROR: Only root can access this API\n",
- "ERROR: RmNet handle for the transaction was NULL\n",
- "ERROR: Request buffer for the transaction was NULL\n",
- "ERROR: Response buffer for the transaction was NULL\n",
- "ERROR: Request and response type do not match\n",
- "ERROR: Return type is invalid\n",
- "ERROR: String was truncated\n",
- /* Kernel errors */
- "ERROR: Kernel call succeeded\n",
- "ERROR: Invalid / Unsupported directive\n",
- "ERROR: Internal problem in the kernel module\n",
- "ERROR: The kernel is temporarily out of memory\n",
- "ERROR: Device already exists / Still in use\n",
- "ERROR: Invalid request / Unsupported scenario\n",
- "ERROR: Device doesn't exist\n",
- "ERROR: One or more of the arguments is invalid\n",
- "ERROR: Egress device is invalid\n",
- "ERROR: TC handle is full\n"
-};
-
-/*===========================================================================
- DEFINITIONS AND DECLARATIONS
-===========================================================================*/
-typedef struct rmnetctl_hndl_s rmnetctl_hndl_t;
-
-/*!
-* @brief Public API to initialize the RMNET control driver
-* @details Allocates memory for the RmNet handle. Creates and binds to a and
-* netlink socket if successful
-* @param **rmnetctl_hndl_t_val RmNet handle to be initialized
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnetctl_init(rmnetctl_hndl_t **hndl, uint16_t *error_code);
-
-/*!
-* @brief Public API to clean up the RmNeT control handle
-* @details Close the socket and free the RmNet handle
-* @param *rmnetctl_hndl_t_val RmNet handle to be initialized
-* @return void
-*/
-void rmnetctl_cleanup(rmnetctl_hndl_t *hndl);
-
-/*!
-* @brief Public API to register/unregister a RMNET driver on a particular device
-* @details Message type is RMNET_NETLINK_ASSOCIATE_NETWORK_DEVICE or
-* RMNET_NETLINK_UNASSOCIATE_NETWORK_DEVICE based on the flag for assoc_dev
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param dev_name Device on which to register the RmNet driver
-* @param error_code Status code of this operation
-* @param assoc_dev registers the device if RMNETCTL_DEVICE_ASSOCIATE or
-* unregisters the device if RMNETCTL_DEVICE_UNASSOCIATE
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_associate_network_device(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- uint16_t *error_code,
- uint8_t assoc_dev);
-
-/*!
-* @brief Public API to get if a RMNET driver is registered on a particular
-* device
-* @details Message type is RMNET_NETLINK_GET_NETWORK_DEVICE_ASSOCIATED.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param dev_name Device on which to check if the RmNet driver is registered
-* @param register_status 1 if RmNet data driver is registered on a particular
-* device, 0 if not
-* @param error_code Status code of this operation
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_get_network_device_associated(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- int *register_status,
- uint16_t *error_code);
-
-/*!
-* @brief Public API to set the egress data format for a particular link.
-* @details Message type is RMNET_NETLINK_SET_LINK_EGRESS_DATA_FORMAT.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param egress_flags Egress flags to be set on the device
-* @param agg_size Max size of aggregated packets
-* @param agg_count Number of packets to be aggregated
-* @param dev_name Device on which to set the egress data format
-* @param error_code Status code of this operation returned from the kernel
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_set_link_egress_data_format(rmnetctl_hndl_t *hndl,
- uint32_t egress_flags,
- uint16_t agg_size,
- uint16_t agg_count,
- const char *dev_name,
- uint16_t *error_code);
-
-/*!
-* @brief Public API to get the egress data format for a particular link.
-* @details Message type is RMNET_NETLINK_GET_LINK_EGRESS_DATA_FORMAT.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param dev_name Device on which to get the egress data format
-* @param egress_flags Egress flags from the device
-* @param agg_count Number of packets to be aggregated
-* @param error_code Status code of this operation returned from the kernel
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_get_link_egress_data_format(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- uint32_t *egress_flags,
- uint16_t *agg_size,
- uint16_t *agg_count,
- uint16_t *error_code);
-
-/*!
-* @brief Public API to set the ingress data format for a particular link.
-* @details Message type is RMNET_NETLINK_SET_LINK_INGRESS_DATA_FORMAT.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param ingress_flags Ingress flags from the device
-* @param tail_spacing Tail spacing needed for the packet
-* @param dev_name Device on which to set the ingress data format
-* @param error_code Status code of this operation returned from the kernel
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_set_link_ingress_data_format_tailspace(rmnetctl_hndl_t *hndl,
- uint32_t ingress_flags,
- uint8_t tail_spacing,
- const char *dev_name,
- uint16_t *error_code);
-
-/*!
-* @brief Public API to get the ingress data format for a particular link.
-* @details Message type is RMNET_NETLINK_GET_LINK_INGRESS_DATA_FORMAT.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param dev_name Device on which to get the ingress data format
-* @param ingress_flags Ingress flags from the device
-* @param tail_spacing Tail spacing needed for the packet
-* @param error_code Status code of this operation returned from the kernel
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_get_link_ingress_data_format_tailspace(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- uint32_t *ingress_flags,
- uint8_t *tail_spacing,
- uint16_t *error_code);
-
-inline int rmnet_set_link_ingress_data_format(rmnetctl_hndl_t *hndl,
- uint32_t ingress_flags,
- const char *dev_name,
- uint16_t *error_code)
-{
- return rmnet_set_link_ingress_data_format_tailspace(hndl,
- ingress_flags,
- 0,
- dev_name,
- error_code);
-}
-
-inline int rmnet_get_link_ingress_data_format(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- uint32_t *ingress_flags,
- uint16_t *error_code)
-{
- return rmnet_get_link_ingress_data_format_tailspace(hndl,
- dev_name,
- ingress_flags,
- 0,
- error_code);
-}
-
-/*!
-* @brief Public API to set the logical endpoint configuration for a
-* particular link.
-* @details Message type is RMNET_NETLINK_SET_LOGICAL_EP_CONFIG.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param logical_ep_id Logical end point id on which the configuration is to be
-* set
-* @param rmnet_mode RmNet mode to be set on the device
-* @param dev_name Device on which to set the logical end point configuration
-* @param egress_dev_name Egress Device if operating in bridge mode
-* @param error_code Status code of this operation returned from the kernel
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_set_logical_ep_config(rmnetctl_hndl_t *hndl,
- int32_t ep_id,
- uint8_t operating_mode,
- const char *dev_name,
- const char *next_dev,
- uint16_t *error_code);
-
-/*!
-* @brief Public API to un-set the logical endpoint configuration for a
-* particular link.
-* @details Message type is RMNET_NETLINK_UNSET_LOGICAL_EP_CONFIG.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param logical_ep_id Logical end point id on which the configuration is to be
-* un-set
-* @param dev_name Device on which to un-set the logical end point configuration
-* @param error_code Status code of this operation returned from the kernel
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_unset_logical_ep_config(rmnetctl_hndl_t *hndl,
- int32_t ep_id,
- const char *dev_name,
- uint16_t *error_code);
-/*!
-* @brief Public API to get the logical endpoint configuration for a
-* particular link.
-* @details Message type is RMNET_NETLINK_GET_LOGICAL_EP_CONFIG.
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param logical_ep_id Logical end point id from which to get the configuration
-* @param dev_name Device on which to get the logical end point configuration
-* @param rmnet_mode RmNet mode from the device
-* @param next_dev Egress Device name
-* @param next_dev_len Egress Device I/O string len
-* @param error_code Status code of this operation returned from the kernel
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_get_logical_ep_config(rmnetctl_hndl_t *hndl,
- int32_t ep_id,
- const char *dev_name,
- uint8_t *operating_mode,
- char **next_dev,
- uint32_t next_dev_len,
- uint16_t *error_code);
-
-/*!
-* @brief Public API to create a new virtual device node
-* @details Message type is RMNET_NETLINK_NEW_VND or
-* RMNETCTL_FREE_VND based on the flag for new_vnd
-* @param hndl RmNet handle for the Netlink message
-* @param id Node number to create the virtual network device node
-* @param error_code Status code of this operation returned from the kernel
-* @param new_vnd creates a new virtual network device if RMNETCTL_NEW_VND or
-* frees the device if RMNETCTL_FREE_VND
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_new_vnd(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint16_t *error_code,
- uint8_t new_vnd);
-
-/*!
- * @brief Public API to create a new virtual device node with a custom prefix
- * @details Message type is RMNET_NETLINK_NEW_VND or
- * RMNETCTL_FREE_VND based on the flag for new_vnd
- * @param hndl RmNet handle for the Netlink message
- * @param id Node number to create the virtual network device node
- * @param error_code Status code of this operation returned from the kernel
- * @param new_vnd creates a new virtual network device if RMNETCTL_NEW_VND or
- * frees the device if RMNETCTL_FREE_VND
- * @param prefix Prefix to be used when naming the network interface
- * @return RMNETCTL_SUCCESS if successful
- * @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
- * @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
- * Check error_code
- * @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
- */
-int rmnet_new_vnd_prefix(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint16_t *error_code,
- uint8_t new_vnd,
- const char *prefix);
-/*!
- * @brief API to get the ASCII name of a virtual network device from its ID
- * @param hndl RmNet handle for the Netlink message
- * @param id Node number to create the virtual network device node
- * @param error_code Status code of this operation returned from the kernel
- * @param buf Buffer to store ASCII representation of device name
- * @param buflen Length of the buffer
- * @param prefix Prefix to be used when naming the network interface
- * @return RMNETCTL_SUCCESS if successful
- * @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
- * @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
- * Check error_code
- * @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
- */
-
-int rmnet_get_vnd_name(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint16_t *error_code,
- char *buf,
- uint32_t buflen);
-
-/*!
-* @brief Public API to set or clear a flow
-* @details Message type is RMNET_NETLINK_ADD_VND_TC_FLOW or
-* RMNET_NETLINK_DEL_VND_TC_FLOW based on the flag for set_flow
-* @param *rmnetctl_hndl_t_val RmNet handle for the Netlink message
-* @param id Node number to set or clear the flow on the virtual network
-* device node
-* @param map_flow_id Flow handle of the modem
-* @param tc_flow_id Software flow handle
-* @param set_flow sets the flow if RMNET_NETLINK_SET_FLOW or
-* clears the flow if RMNET_NETLINK_CLEAR_FLOW
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-int rmnet_add_del_vnd_tc_flow(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint32_t map_flow_id,
- uint32_t tc_flow_id,
- uint8_t set_flow,
- uint16_t *error_code);
-
-#endif /* not defined LIBRMNETCTL_H */
-
diff --git a/dataservices/rmnetctl/inc/librmnetctl_hndl.h b/dataservices/rmnetctl/inc/librmnetctl_hndl.h
deleted file mode 100644
index 1a435ed..0000000
--- a/dataservices/rmnetctl/inc/librmnetctl_hndl.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/******************************************************************************
-
- L I B R M N E T C T L _ H N D L. H
-
-Copyright (c) 2013, 2015 The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-******************************************************************************/
-
-/*!
-* @file librmnetctl_hndl.h
-* @brief rmnet control API's handle file
-*/
-
-#ifndef LIBRMNETCTL_HNDL_H
-#define LIBRMNETCTL_HNDL_H
-
-/*===========================================================================
- DEFINITIONS AND DECLARATIONS
-===========================================================================*/
-
-/*!
-* @brief Structure for RMNET control handles. A rmnet hndl contains the caller
-* process id, the transaction id which is initialized to 0 for each new
-* initialized handle and the netlink file descriptor for this handle.
-* @var pid process id to be used for the netlink message
-* @var transaction_id message number for debugging
-* @var netlink_fd netlink file descriptor to be used
-* @var src_addr source socket address properties for this message
-* @var dest_addr destination socket address properties for this message
-*/
-
-struct rmnetctl_hndl_s {
- uint32_t pid;
- uint32_t transaction_id;
- int netlink_fd;
- struct sockaddr_nl src_addr, dest_addr;
-};
-
-#endif /* not defined LIBRMNETCTL_HNDL_H */
-
diff --git a/dataservices/rmnetctl/src/Android.mk b/dataservices/rmnetctl/src/Android.mk
deleted file mode 100644
index aba56ea..0000000
--- a/dataservices/rmnetctl/src/Android.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_COPY_HEADERS_TO := dataservices/rmnetctl
-LOCAL_COPY_HEADERS := ../inc/librmnetctl.h
-
-LOCAL_SRC_FILES := librmnetctl.c
-LOCAL_CFLAGS := -Wall -Werror
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/../inc
-LOCAL_C_INCLUDES += $(LOCAL_PATH)
-ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
-LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
-LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
-endif
-
-LOCAL_CLANG := true
-LOCAL_MODULE := librmnetctl
-LOCAL_MODULE_TAGS := optional
-LOCAL_PRELINK_MODULE := false
-
-include $(BUILD_SHARED_LIBRARY)
diff --git a/dataservices/rmnetctl/src/Makefile.am b/dataservices/rmnetctl/src/Makefile.am
deleted file mode 100644
index 5f4ff95..0000000
--- a/dataservices/rmnetctl/src/Makefile.am
+++ /dev/null
@@ -1,16 +0,0 @@
-AM_CFLAGS = -Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs
-AM_CFLAGS += -I./../inc
-
-librmnetctl_la_C = @C@
-librmnetctl_la_SOURCES = librmnetctl.c
-
-common_CFLAGS = -DUSE_GLIB @GLIB_CFLAGS@
-common_LDFLAGS = -lpthread -lrt @GLIB_LIBS@
-
-librmnetctl_la_CFLAGS := $(AM_CFLAGS) $(common_CFLAGS)
-librmnetctl_la_LDFLAGS := -shared $(common_LDFLAGS)
-
-library_includedir = $(pkgincludedir)
-library_include_HEADERS = ./../inc/librmnetctl.h
-
-lib_LTLIBRARIES = librmnetctl.la
diff --git a/dataservices/rmnetctl/src/librmnetctl.c b/dataservices/rmnetctl/src/librmnetctl.c
deleted file mode 100644
index 95f0510..0000000
--- a/dataservices/rmnetctl/src/librmnetctl.c
+++ /dev/null
@@ -1,896 +0,0 @@
-/******************************************************************************
-
- L I B R M N E T C T L . C
-
-Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-******************************************************************************/
-
-/*!
-* @file librmnetctl.c
-* @brief rmnet control API's implementation file
-*/
-
-/*===========================================================================
- INCLUDE FILES
-===========================================================================*/
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "librmnetctl_hndl.h"
-#include "librmnetctl.h"
-
-#ifdef USE_GLIB
-#include
-#define strlcpy g_strlcpy
-#endif
-
-#define RMNETCTL_SOCK_FLAG 0
-#define ROOT_USER_ID 0
-#define MIN_VALID_PROCESS_ID 0
-#define MIN_VALID_SOCKET_FD 0
-#define KERNEL_PROCESS_ID 0
-#define UNICAST 0
-#define MAX_BUF_SIZE sizeof(struct nlmsghdr) + sizeof(struct rmnet_nl_msg_s)
-#define INGRESS_FLAGS_MASK (RMNET_INGRESS_FIX_ETHERNET | \
- RMNET_INGRESS_FORMAT_MAP | \
- RMNET_INGRESS_FORMAT_DEAGGREGATION | \
- RMNET_INGRESS_FORMAT_DEMUXING | \
- RMNET_INGRESS_FORMAT_MAP_COMMANDS | \
- RMNET_INGRESS_FORMAT_MAP_CKSUMV3 | \
- RMNET_INGRESS_FORMAT_MAP_CKSUMV4)
-#define EGRESS_FLAGS_MASK (RMNET_EGRESS_FORMAT__RESERVED__ | \
- RMNET_EGRESS_FORMAT_MAP | \
- RMNET_EGRESS_FORMAT_AGGREGATION | \
- RMNET_EGRESS_FORMAT_MUXING | \
- RMNET_EGRESS_FORMAT_MAP_CKSUMV3 | \
- RMNET_EGRESS_FORMAT_MAP_CKSUMV4)
-
-#define min(a, b) (((a) < (b)) ? (a) : (b))
-/*===========================================================================
- LOCAL FUNCTION DEFINITIONS
-===========================================================================*/
-/*!
-* @brief Synchronous method to send and receive messages to and from the kernel
-* using netlink sockets
-* @details Increments the transaction id for each message sent to the kernel.
-* Sends the netlink message to the kernel and receives the response from the
-* kernel.
-* @param *hndl RmNet handle for this transaction
-* @param request Message to be sent to the kernel
-* @param response Message received from the kernel
-* @return RMNETCTL_API_SUCCESS if successfully able to send and receive message
-* from the kernel
-* @return RMNETCTL_API_ERR_HNDL_INVALID if RmNet handle for the transaction was
-* NULL
-* @return RMNETCTL_API_ERR_REQUEST_NULL not enough memory to create buffer for
-* sending the message
-* @return RMNETCTL_API_ERR_MESSAGE_SEND if could not send the message to kernel
-* @return RMNETCTL_API_ERR_MESSAGE_RECEIVE if could not receive message from the
-* kernel
-* @return RMNETCTL_API_ERR_MESSAGE_TYPE if the request and response type do not
-* match
-*/
-static uint16_t rmnetctl_transact(rmnetctl_hndl_t *hndl,
- struct rmnet_nl_msg_s *request,
- struct rmnet_nl_msg_s *response) {
- uint8_t *request_buf, *response_buf;
- struct nlmsghdr *nlmsghdr_val;
- struct rmnet_nl_msg_s *rmnet_nl_msg_s_val;
- ssize_t bytes_read = -1;
- uint16_t return_code = RMNETCTL_API_ERR_HNDL_INVALID;
- struct sockaddr_nl* __attribute__((__may_alias__)) saddr_ptr;
- request_buf = NULL;
- response_buf = NULL;
- nlmsghdr_val = NULL;
- rmnet_nl_msg_s_val = NULL;
- do {
- if (!hndl){
- break;
- }
- if (!request){
- return_code = RMNETCTL_API_ERR_REQUEST_NULL;
- break;
- }
- if (!response){
- return_code = RMNETCTL_API_ERR_RESPONSE_NULL;
- break;
- }
- request_buf = (uint8_t *)malloc(MAX_BUF_SIZE * sizeof(uint8_t));
- if (!request_buf){
- return_code = RMNETCTL_API_ERR_REQUEST_NULL;
- break;
- }
-
- response_buf = (uint8_t *)malloc(MAX_BUF_SIZE * sizeof(uint8_t));
- if (!response_buf) {
- return_code = RMNETCTL_API_ERR_RESPONSE_NULL;
- break;
- }
-
- nlmsghdr_val = (struct nlmsghdr *)request_buf;
- rmnet_nl_msg_s_val = (struct rmnet_nl_msg_s *)NLMSG_DATA(request_buf);
-
- memset(request_buf, 0, MAX_BUF_SIZE*sizeof(uint8_t));
- memset(response_buf, 0, MAX_BUF_SIZE*sizeof(uint8_t));
-
- nlmsghdr_val->nlmsg_seq = hndl->transaction_id;
- nlmsghdr_val->nlmsg_pid = hndl->pid;
- nlmsghdr_val->nlmsg_len = MAX_BUF_SIZE;
-
- memcpy((void *)NLMSG_DATA(request_buf), request,
- sizeof(struct rmnet_nl_msg_s));
-
- rmnet_nl_msg_s_val->crd = RMNET_NETLINK_MSG_COMMAND;
- hndl->transaction_id++;
-
- saddr_ptr = &hndl->dest_addr;
- socklen_t addrlen = sizeof(struct sockaddr_nl);
- if (sendto(hndl->netlink_fd,
- request_buf,
- MAX_BUF_SIZE,
- RMNETCTL_SOCK_FLAG,
- (struct sockaddr*)saddr_ptr,
- sizeof(struct sockaddr_nl)) < 0) {
- return_code = RMNETCTL_API_ERR_MESSAGE_SEND;
- break;
- }
-
- saddr_ptr = &hndl->src_addr;
- bytes_read = recvfrom(hndl->netlink_fd,
- response_buf,
- MAX_BUF_SIZE,
- RMNETCTL_SOCK_FLAG,
- (struct sockaddr*)saddr_ptr,
- &addrlen);
- if (bytes_read < 0) {
- return_code = RMNETCTL_API_ERR_MESSAGE_RECEIVE;
- break;
- }
-
- memcpy(response, (void *)NLMSG_DATA(response_buf),
- sizeof(struct rmnet_nl_msg_s));
- if (sizeof(*response) < sizeof(struct rmnet_nl_msg_s)) {
- return_code = RMNETCTL_API_ERR_RESPONSE_NULL;
- break;
- }
-
- if (request->message_type != response->message_type) {
- return_code = RMNETCTL_API_ERR_MESSAGE_TYPE;
- break;
- }
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- free(request_buf);
- free(response_buf);
- return return_code;
-}
-
-/*!
-* @brief Static function to check the dev name
-* @details Checks if the name is not NULL and if the name is less than the
-* RMNET_MAX_STR_LEN
-* @param dev_name Name of the device
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_INVALID_ARG if invalid arguments were passed to the API
-*/
-static inline int _rmnetctl_check_dev_name(const char *dev_name) {
- int return_code = RMNETCTL_INVALID_ARG;
- do {
- if (!dev_name)
- break;
- if (strlen(dev_name) >= RMNET_MAX_STR_LEN)
- break;
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-/*!
-* @brief Static function to check the string length after a copy
-* @details Checks if the string length is not lesser than zero and lesser than
-* RMNET_MAX_STR_LEN
-* @param str_len length of the string after a copy
-* @param error_code Status code of this operation
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-*/
-static inline int _rmnetctl_check_len(size_t str_len, uint16_t *error_code) {
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if (str_len > RMNET_MAX_STR_LEN) {
- *error_code = RMNETCTL_API_ERR_STRING_TRUNCATION;
- break;
- }
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-/*!
-* @brief Static function to check the response type
-* @details Checks if the response type of this message was return code
-* @param crd The crd field passed
-* @param error_code Status code of this operation
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-*/
-static inline int _rmnetctl_check_code(int crd, uint16_t *error_code) {
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if (crd != RMNET_NETLINK_MSG_RETURNCODE) {
- *error_code = RMNETCTL_API_ERR_RETURN_TYPE;
- break;
- }
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-/*!
-* @brief Static function to check the response type
-* @details Checks if the response type of this message was data
-* @param crd The crd field passed
-* @param error_code Status code of this operation
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_LIB_ERR if there was a library error. Check error_code
-*/
-static inline int _rmnetctl_check_data(int crd, uint16_t *error_code) {
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if (crd != RMNET_NETLINK_MSG_RETURNDATA) {
- *error_code = RMNETCTL_API_ERR_RETURN_TYPE;
- break;
- }
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-/*!
-* @brief Static function to set the return value
-* @details Checks if the error_code from the transaction is zero for a return
-* code type message and sets the message type as RMNETCTL_SUCCESS
-* @param crd The crd field passed
-* @param error_code Status code of this operation
-* @return RMNETCTL_SUCCESS if successful
-* @return RMNETCTL_KERNEL_ERR if there was an error in the kernel.
-* Check error_code
-*/
-static inline int _rmnetctl_set_codes(int error_val, uint16_t *error_code) {
- int return_code = RMNETCTL_KERNEL_ERR;
- if (error_val == RMNET_CONFIG_OK)
- return_code = RMNETCTL_SUCCESS;
- else
- *error_code = (uint16_t)error_val + RMNETCTL_KERNEL_FIRST_ERR;
- return return_code;
-}
-
-/*===========================================================================
- EXPOSED API
-===========================================================================*/
-
-int rmnetctl_init(rmnetctl_hndl_t **hndl, uint16_t *error_code)
-{
- pid_t pid = 0;
- int netlink_fd = -1, return_code = RMNETCTL_LIB_ERR;
- struct sockaddr_nl* __attribute__((__may_alias__)) saddr_ptr;
- do {
- if ((!hndl) || (!error_code)){
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- *hndl = (rmnetctl_hndl_t *)malloc(sizeof(rmnetctl_hndl_t));
- if (!*hndl) {
- *error_code = RMNETCTL_API_ERR_HNDL_INVALID;
- break;
- }
-
- memset(*hndl, 0, sizeof(rmnetctl_hndl_t));
-
- pid = getpid();
- if (pid < MIN_VALID_PROCESS_ID) {
- free(*hndl);
- *error_code = RMNETCTL_INIT_ERR_PROCESS_ID;
- break;
- }
- (*hndl)->pid = (uint32_t)pid;
- netlink_fd = socket(PF_NETLINK, SOCK_RAW, RMNET_NETLINK_PROTO);
- if (netlink_fd < MIN_VALID_SOCKET_FD) {
- free(*hndl);
- *error_code = RMNETCTL_INIT_ERR_NETLINK_FD;
- break;
- }
-
- (*hndl)->netlink_fd = netlink_fd;
-
- memset(&(*hndl)->src_addr, 0, sizeof(struct sockaddr_nl));
-
- (*hndl)->src_addr.nl_family = AF_NETLINK;
- (*hndl)->src_addr.nl_pid = (*hndl)->pid;
-
- saddr_ptr = &(*hndl)->src_addr;
- if (bind((*hndl)->netlink_fd,
- (struct sockaddr*)saddr_ptr,
- sizeof(struct sockaddr_nl)) < 0) {
- close((*hndl)->netlink_fd);
- free(*hndl);
- *error_code = RMNETCTL_INIT_ERR_BIND;
- break;
- }
-
- memset(&(*hndl)->dest_addr, 0, sizeof(struct sockaddr_nl));
-
- (*hndl)->dest_addr.nl_family = AF_NETLINK;
- (*hndl)->dest_addr.nl_pid = KERNEL_PROCESS_ID;
- (*hndl)->dest_addr.nl_groups = UNICAST;
-
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-void rmnetctl_cleanup(rmnetctl_hndl_t *hndl)
-{
- if (!hndl)
- return;
- close(hndl->netlink_fd);
- free(hndl);
-}
-
-int rmnet_associate_network_device(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- uint16_t *error_code,
- uint8_t assoc_dev)
-{
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!error_code) || _rmnetctl_check_dev_name(dev_name) ||
- ((assoc_dev != RMNETCTL_DEVICE_ASSOCIATE) &&
- (assoc_dev != RMNETCTL_DEVICE_UNASSOCIATE))) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- if (assoc_dev == RMNETCTL_DEVICE_ASSOCIATE)
- request.message_type = RMNET_NETLINK_ASSOCIATE_NETWORK_DEVICE;
- else
- request.message_type = RMNET_NETLINK_UNASSOCIATE_NETWORK_DEVICE;
-
- request.arg_length = RMNET_MAX_STR_LEN;
- str_len = strlcpy((char *)(request.data), dev_name, (size_t)RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
- if (_rmnetctl_check_code(response.crd, error_code) != RMNETCTL_SUCCESS)
- break;
- return_code = _rmnetctl_set_codes(response.return_code, error_code);
- } while(0);
- return return_code;
-}
-
-int rmnet_get_network_device_associated(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- int *register_status,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!register_status) || (!error_code) ||
- _rmnetctl_check_dev_name(dev_name)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_GET_NETWORK_DEVICE_ASSOCIATED;
-
- request.arg_length = RMNET_MAX_STR_LEN;
- str_len = strlcpy((char *)(request.data), dev_name, RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
-
- if (_rmnetctl_check_data(response.crd, error_code)
- != RMNETCTL_SUCCESS) {
- if (_rmnetctl_check_code(response.crd, error_code)
- == RMNETCTL_SUCCESS)
- return_code = _rmnetctl_set_codes(response.return_code,
- error_code);
- break;
- }
-
- *register_status = response.return_code;
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-int rmnet_set_link_egress_data_format(rmnetctl_hndl_t *hndl,
- uint32_t egress_flags,
- uint16_t agg_size,
- uint16_t agg_count,
- const char *dev_name,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!error_code) || _rmnetctl_check_dev_name(dev_name) ||
- ((~EGRESS_FLAGS_MASK) & egress_flags)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_SET_LINK_EGRESS_DATA_FORMAT;
-
- request.arg_length = RMNET_MAX_STR_LEN +
- sizeof(uint32_t) + sizeof(uint16_t) + sizeof(uint16_t);
- str_len = strlcpy((char *)(request.data_format.dev),
- dev_name,
- RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- request.data_format.flags = egress_flags;
- request.data_format.agg_size = agg_size;
- request.data_format.agg_count = agg_count;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
-
- if (_rmnetctl_check_code(response.crd, error_code) != RMNETCTL_SUCCESS)
- break;
-
- return_code = _rmnetctl_set_codes(response.return_code, error_code);
- } while(0);
- return return_code;
-}
-
-int rmnet_get_link_egress_data_format(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- uint32_t *egress_flags,
- uint16_t *agg_size,
- uint16_t *agg_count,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!egress_flags) || (!agg_size) || (!agg_count) ||
- (!error_code) || _rmnetctl_check_dev_name(dev_name)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
- request.message_type = RMNET_NETLINK_GET_LINK_EGRESS_DATA_FORMAT;
-
- request.arg_length = RMNET_MAX_STR_LEN;
- str_len = strlcpy((char *)(request.data_format.dev),
- dev_name,
- RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
-
- if (_rmnetctl_check_data(response.crd, error_code)
- != RMNETCTL_SUCCESS) {
- if (_rmnetctl_check_code(response.crd, error_code)
- == RMNETCTL_SUCCESS)
- return_code = _rmnetctl_set_codes(response.return_code,
- error_code);
- break;
- }
-
- *egress_flags = response.data_format.flags;
- *agg_size = response.data_format.agg_size;
- *agg_count = response.data_format.agg_count;
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-int rmnet_set_link_ingress_data_format_tailspace(rmnetctl_hndl_t *hndl,
- uint32_t ingress_flags,
- uint8_t tail_spacing,
- const char *dev_name,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!error_code) || _rmnetctl_check_dev_name(dev_name) ||
- ((~INGRESS_FLAGS_MASK) & ingress_flags)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_SET_LINK_INGRESS_DATA_FORMAT;
-
- request.arg_length = RMNET_MAX_STR_LEN +
- sizeof(uint32_t) + sizeof(uint16_t) + sizeof(uint16_t);
- str_len = strlcpy((char *)(request.data_format.dev),
- dev_name,
- RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
- request.data_format.flags = ingress_flags;
- request.data_format.tail_spacing = tail_spacing;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
-
- if (_rmnetctl_check_code(response.crd, error_code) != RMNETCTL_SUCCESS)
- break;
-
- return_code = _rmnetctl_set_codes(response.return_code, error_code);
- } while(0);
- return return_code;
-}
-
-int rmnet_get_link_ingress_data_format_tailspace(rmnetctl_hndl_t *hndl,
- const char *dev_name,
- uint32_t *ingress_flags,
- uint8_t *tail_spacing,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!error_code) ||
- _rmnetctl_check_dev_name(dev_name)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_GET_LINK_INGRESS_DATA_FORMAT;
-
- request.arg_length = RMNET_MAX_STR_LEN;
- str_len = strlcpy((char *)(request.data_format.dev),
- dev_name,
- RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
-
- if (_rmnetctl_check_data(response.crd, error_code)
- != RMNETCTL_SUCCESS) {
- if (_rmnetctl_check_code(response.crd, error_code)
- == RMNETCTL_SUCCESS)
- return_code = _rmnetctl_set_codes(response.return_code,
- error_code);
- break;
- }
-
- if (ingress_flags)
- *ingress_flags = response.data_format.flags;
-
- if (tail_spacing)
- *tail_spacing = response.data_format.tail_spacing;
-
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-int rmnet_set_logical_ep_config(rmnetctl_hndl_t *hndl,
- int32_t ep_id,
- uint8_t operating_mode,
- const char *dev_name,
- const char *next_dev,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || ((ep_id < -1) || (ep_id > 31)) || (!error_code) ||
- _rmnetctl_check_dev_name(dev_name) ||
- _rmnetctl_check_dev_name(next_dev) ||
- operating_mode >= RMNET_EPMODE_LENGTH) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_SET_LOGICAL_EP_CONFIG;
-
- request.arg_length = RMNET_MAX_STR_LEN +
- RMNET_MAX_STR_LEN + sizeof(int32_t) + sizeof(uint8_t);
- str_len = strlcpy((char *)(request.local_ep_config.dev),
- dev_name,
- RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- str_len = strlcpy((char *)(request.local_ep_config.next_dev),
- next_dev,
- RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
- request.local_ep_config.ep_id = ep_id;
- request.local_ep_config.operating_mode = operating_mode;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
- if (_rmnetctl_check_code(response.crd, error_code) != RMNETCTL_SUCCESS)
- break;
-
- return_code = _rmnetctl_set_codes(response.return_code, error_code);
- } while(0);
- return return_code;
-}
-
-int rmnet_unset_logical_ep_config(rmnetctl_hndl_t *hndl,
- int32_t ep_id,
- const char *dev_name,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
-
- if ((!hndl) || ((ep_id < -1) || (ep_id > 31)) || (!error_code) ||
- _rmnetctl_check_dev_name(dev_name)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_UNSET_LOGICAL_EP_CONFIG;
-
- request.arg_length = RMNET_MAX_STR_LEN + sizeof(int32_t);
- str_len = strlcpy((char *)(request.local_ep_config.dev),
- dev_name,
- RMNET_MAX_STR_LEN);
-
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- request.local_ep_config.ep_id = ep_id;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
- if (_rmnetctl_check_code(response.crd, error_code) != RMNETCTL_SUCCESS)
- break;
-
- return_code = _rmnetctl_set_codes(response.return_code, error_code);
- } while(0);
-
- return return_code;
-}
-
-int rmnet_get_logical_ep_config(rmnetctl_hndl_t *hndl,
- int32_t ep_id,
- const char *dev_name,
- uint8_t *operating_mode,
- char **next_dev,
- uint32_t next_dev_len,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- size_t str_len = 0;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!operating_mode) || (!error_code) || ((ep_id < -1) ||
- (ep_id > 31)) || _rmnetctl_check_dev_name(dev_name) || (!next_dev)
- || (0 == next_dev_len)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_GET_LOGICAL_EP_CONFIG;
-
- request.arg_length = RMNET_MAX_STR_LEN + sizeof(int32_t);
- str_len = strlcpy((char *)(request.local_ep_config.dev),
- dev_name,
- RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- request.local_ep_config.ep_id = ep_id;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
-
- if (_rmnetctl_check_data(response.crd, error_code)
- != RMNETCTL_SUCCESS) {
- if (_rmnetctl_check_code(response.crd, error_code)
- == RMNETCTL_SUCCESS)
- return_code = _rmnetctl_set_codes(response.return_code,
- error_code);
- break;
- }
-
- str_len = strlcpy(*next_dev,
- (char *)(response.local_ep_config.next_dev),
- min(RMNET_MAX_STR_LEN, next_dev_len));
- if (_rmnetctl_check_len(str_len, error_code) != RMNETCTL_SUCCESS)
- break;
-
- *operating_mode = response.local_ep_config.operating_mode;
- return_code = RMNETCTL_SUCCESS;
- } while(0);
- return return_code;
-}
-
-int rmnet_new_vnd_prefix(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint16_t *error_code,
- uint8_t new_vnd,
- const char *prefix)
-{
- struct rmnet_nl_msg_s request, response;
- int return_code = RMNETCTL_LIB_ERR;
- size_t str_len = 0;
- do {
- if ((!hndl) || (!error_code) ||
- ((new_vnd != RMNETCTL_NEW_VND) && (new_vnd != RMNETCTL_FREE_VND))) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- memset(request.vnd.vnd_name, 0, RMNET_MAX_STR_LEN);
- if (new_vnd == RMNETCTL_NEW_VND) {
- if (prefix) {
- request.message_type =RMNET_NETLINK_NEW_VND_WITH_PREFIX;
- str_len = strlcpy((char *)request.vnd.vnd_name,
- prefix, RMNET_MAX_STR_LEN);
- if (_rmnetctl_check_len(str_len, error_code)
- != RMNETCTL_SUCCESS)
- break;
- } else {
- request.message_type = RMNET_NETLINK_NEW_VND;
- }
- } else {
- request.message_type = RMNET_NETLINK_FREE_VND;
- }
-
- request.arg_length = sizeof(uint32_t);
- request.vnd.id = id;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
- if (_rmnetctl_check_code(response.crd, error_code) != RMNETCTL_SUCCESS)
- break;
-
- return_code = _rmnetctl_set_codes(response.return_code, error_code);
- } while(0);
- return return_code;
-}
-
-int rmnet_new_vnd(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint16_t *error_code,
- uint8_t new_vnd)
-{
- return rmnet_new_vnd_prefix(hndl, id, error_code, new_vnd, 0);
-}
-
-int rmnet_get_vnd_name(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint16_t *error_code,
- char *buf,
- uint32_t buflen)
-{
- struct rmnet_nl_msg_s request, response;
- uint32_t str_len;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!error_code) || (!buf) || (0 == buflen)) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
-
- request.message_type = RMNET_NETLINK_GET_VND_NAME;
- request.arg_length = sizeof(uint32_t);
- request.vnd.id = id;
-
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
-
- if (_rmnetctl_check_data(response.crd, error_code)
- != RMNETCTL_SUCCESS) {
- if (_rmnetctl_check_code(response.crd, error_code)
- == RMNETCTL_SUCCESS)
- return_code = _rmnetctl_set_codes(response.return_code,
- error_code);
- break;
- }
-
- str_len = (uint32_t)strlcpy(buf,
- (char *)(response.vnd.vnd_name),
- buflen);
- if (str_len >= buflen) {
- *error_code = RMNETCTL_API_ERR_STRING_TRUNCATION;
- break;
- }
-
- return_code = RMNETCTL_SUCCESS;
- } while (0);
- return return_code;
-}
-
-int rmnet_add_del_vnd_tc_flow(rmnetctl_hndl_t *hndl,
- uint32_t id,
- uint32_t map_flow_id,
- uint32_t tc_flow_id,
- uint8_t set_flow,
- uint16_t *error_code) {
- struct rmnet_nl_msg_s request, response;
- int return_code = RMNETCTL_LIB_ERR;
- do {
- if ((!hndl) || (!error_code) || ((set_flow != RMNETCTL_ADD_FLOW) &&
- (set_flow != RMNETCTL_DEL_FLOW))) {
- return_code = RMNETCTL_INVALID_ARG;
- break;
- }
- if (set_flow == RMNETCTL_ADD_FLOW)
- request.message_type = RMNET_NETLINK_ADD_VND_TC_FLOW;
- else
- request.message_type = RMNET_NETLINK_DEL_VND_TC_FLOW;
-
- request.arg_length = (sizeof(uint32_t))*3;
- request.flow_control.id = id;
- request.flow_control.map_flow_id = map_flow_id;
- request.flow_control.tc_flow_id = tc_flow_id;
-
- if ((*error_code = rmnetctl_transact(hndl, &request, &response))
- != RMNETCTL_SUCCESS)
- break;
- if (_rmnetctl_check_code(response.crd, error_code) != RMNETCTL_SUCCESS)
- break;
- return_code = _rmnetctl_set_codes(response.return_code, error_code);
- } while(0);
- return return_code;
-}
-
diff --git a/dataservices/sockev/Android.mk b/dataservices/sockev/Android.mk
deleted file mode 100644
index 8338432..0000000
--- a/dataservices/sockev/Android.mk
+++ /dev/null
@@ -1,2 +0,0 @@
-include $(call all-subdir-makefiles)
-
diff --git a/dataservices/sockev/src/Android.mk b/dataservices/sockev/src/Android.mk
deleted file mode 100644
index d0a29ee..0000000
--- a/dataservices/sockev/src/Android.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := sockev_cli.c
-LOCAL_CFLAGS := -Wall -Werror
-
-LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
-LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
-
-LOCAL_CLANG := true
-LOCAL_MODULE := sockev
-LOCAL_MODULE_TAGS := optional
-
-include $(BUILD_EXECUTABLE)
diff --git a/dataservices/sockev/src/sockev_cli.c b/dataservices/sockev/src/sockev_cli.c
deleted file mode 100644
index 5cecf36..0000000
--- a/dataservices/sockev/src/sockev_cli.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/******************************************************************************
- S O C K E V _ C L I . C
-Copyright (c) 2013, The Linux Foundation. All rights reserved.
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-******************************************************************************/
-
-/******************************************************************************
- @file sockev_cli.c
- @brief command line test utility to receive sockev netlink messages.
-******************************************************************************/
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define SOCKEVCLI_ERROR -1
-
-int main(void)
-{
- int skfd, rc;
- socklen_t addrlen;
- struct sockaddr_nl my_addr, src_addr;
- struct nlmsghdr *nlh = NULL;
- struct sknlsockevmsg *msg;
-
- nlh = (struct nlmsghdr *)
- malloc(NLMSG_SPACE(sizeof(struct sknlsockevmsg) + 16));
- if (!nlh) {
- fprintf(stderr, "malloc() failed\n");
- return SOCKEVCLI_ERROR;
- }
-
- skfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCKEV);
- if (skfd < 0) {
- fprintf(stderr, "nl_open_sock: socket failed\n");
- return SOCKEVCLI_ERROR;
- }
-
- memset(&my_addr, 0, sizeof(struct sockaddr_nl));
-
- my_addr.nl_family = AF_NETLINK;
- my_addr.nl_pid = getpid();
- my_addr.nl_groups = SKNLGRP_SOCKEV;
-
- rc = bind(skfd, (struct sockaddr *)&my_addr,
- sizeof(struct sockaddr_nl));
- if (rc < 0) {
- fprintf(stderr, "nl_open_sock: bind failed\n");
- close(skfd);
- return SOCKEVCLI_ERROR;
- }
-
- while (1) {
- recvfrom(skfd, nlh, sizeof(struct sknlsockevmsg) + 16, 0,
- (const struct sockaddr *)&src_addr, &addrlen);
- msg = NLMSG_DATA(nlh);
- printf("----------------------------\n");
- printf("pid:\t%d\n", msg->pid);
- printf("event:\t%s\n", msg->event);
- printf("skfamily:\t0x%04X\n", msg->skfamily);
- printf("skstate:\t%03d\n", msg->skstate);
- printf("skprotocol:\t%03d\n", msg->skprotocol);
- printf("sktype:\t0x%04X\n", msg->sktype);
- printf("skflags:\t0x%016llX\n", msg->skflags);
- }
-
- return 0;
-}
-
diff --git a/gpt-utils/Android.mk b/gpt-utils/Android.mk
deleted file mode 100644
index 167855d..0000000
--- a/gpt-utils/Android.mk
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Copyright 2016 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_C_INCLUDES := system/core/libsparse
-LOCAL_SRC_FILES := gpt-utils.cpp
-ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
-LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
-LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
-endif
-LOCAL_SHARED_LIBRARIES := liblog
-LOCAL_MODULE := libgptutils
-LOCAL_MODULE_OWNER := qti
-include $(BUILD_STATIC_LIBRARY)
-
-include $(CLEAR_VARS)
-LOCAL_C_INCLUDES := system/core/libsparse
-LOCAL_SRC_FILES := gpt-utils.cpp
-ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
-LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
-LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
-endif
-LOCAL_SHARED_LIBRARIES += liblog libsparse libcutils
-LOCAL_MODULE := libgptutils
-LOCAL_MODULE_OWNER := qti
-LOCAL_COPY_HEADERS_TO := gpt-utils/inc
-LOCAL_COPY_HEADERS := gpt-utils.h
-include $(BUILD_SHARED_LIBRARY)
diff --git a/gpt-utils/gpt-utils.cpp b/gpt-utils/gpt-utils.cpp
deleted file mode 100644
index e3c23f7..0000000
--- a/gpt-utils/gpt-utils.cpp
+++ /dev/null
@@ -1,1548 +0,0 @@
-/*
- * Copyright (c) 2013, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define _LARGEFILE64_SOURCE /* enable lseek64() */
-
-/******************************************************************************
- * INCLUDE SECTION
- ******************************************************************************/
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
This program is free software; you can redistribute it and/or modify it under the terms of the MIT License..
-
-
-
diff --git a/json-c/README.md b/json-c/README.md
deleted file mode 100644
index bf4d2e4..0000000
--- a/json-c/README.md
+++ /dev/null
@@ -1,63 +0,0 @@
-`json-c`
-========
-
-Building on Unix with `git`, `gcc` and `autotools`
---------------------------------------------------
-
-Home page for json-c: https://github.com/json-c/json-c/wiki
-
-Caution: do **NOT** use sources from svn.metaparadigm.com,
-they are old.
-
-Prerequisites:
-
- - `gcc`, `clang`, or another C compiler
- - `libtool`
-
-If you're not using a release tarball, you'll also need:
-
- - `autoconf` (`autoreconf`)
- - `automake`
-
-Make sure you have a complete `libtool` install, including `libtoolize`.
-
-`json-c` GitHub repo: https://github.com/json-c/json-c
-
-```bash
-$ git clone https://github.com/json-c/json-c.git
-$ cd json-c
-$ sh autogen.sh
-```
-
-followed by
-
-```bash
-$ ./configure
-$ make
-$ make install
-```
-
-To build and run the test programs:
-
-```bash
-$ make check
-```
-
-Linking to `libjson-c`
-----------------------
-
-If your system has `pkgconfig`,
-then you can just add this to your `makefile`:
-
-```make
-CFLAGS += $(shell pkg-config --cflags json-c)
-LDFLAGS += $(shell pkg-config --libs json-c)
-```
-
-Without `pkgconfig`, you would do something like this:
-
-```make
-JSON_C_DIR=/path/to/json_c/install
-CFLAGS += -I$(JSON_C_DIR)/include/json-c
-LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c
-```
diff --git a/json-c/RELEASE_CHECKLIST.txt b/json-c/RELEASE_CHECKLIST.txt
deleted file mode 100644
index 4713258..0000000
--- a/json-c/RELEASE_CHECKLIST.txt
+++ /dev/null
@@ -1,132 +0,0 @@
-
-Release checklist:
-
-release=0.12
-git clone https://github.com/json-c/json-c json-c-${release}
-cd json-c-${release}
-
-Check that the compile works on Linux
-Check that the compile works on NetBSD
-Check that the compile works on Windows
-Check ChangeLog to see if anything should be added.
-Make any fixes/changes *before* branching.
-
- git branch json-c-${release}
- git checkout json-c-${release}
-
-------------
-
-Update the version in json_c_version.h
-Update the version in Doxyfile
-Update the version in configure.ac
- Use ${release}.
-
-Update the libjson_la_LDFLAGS line in Makefile.am to the new version.
- Generally, unless we're doing a major release, change:
- -version-info x:y:z
- to
- -version-info x:y+1:z
-
-------------
-
-Generate the configure script and other files:
- sh autogen.sh
- git add -f Makefile.in aclocal.m4 config.guess \
- config.sub configure depcomp install-sh \
- ltmain.sh missing tests/Makefile.in \
- INSTALL
-
- # check for anything else to be added:
- git status --ignored
- git commit
-
-------------
-
-Generate the doxygen documentation:
- doxygen
- git add -f doc
- git commit doc
-
-------------
-
-cd ..
-echo .git > excludes
-echo autom4te.cache >> excludes
-tar -czf json-c-${release}.tar.gz -X excludes json-c-${release}
-
-echo doc >> excludes
-tar -czf json-c-${release}-nodoc.tar.gz -X excludes json-c-${release}
-
-------------
-
-Tag the branch:
-cd json-c-${release}
-git tag -a json-c-${release}-$(date +%Y%m%d) -m "Release json-c-${release}"
-
-git push origin json-c-${release}
-git push --tags
-
-------------
-
-Go to Amazon S3 service at:
- https://console.aws.amazon.com/s3/
-
-Upload the two tarballs in the json-c_releases folder.
- When uploading, use "Reduced Redundancy", and make the uploaded files publicly accessible.
-
-Logout of Amazon S3, and verify that the files are visible.
- https://s3.amazonaws.com/json-c_releases/releases/index.html
-
-===================================
-
-Post-release checklist:
-
-git checkout master
-Add new section to ChangeLog
-Update the version in json_c_version.h
-Update the version in Doxyfile
-Update the version in configure.ac
- Use ${release}.99 to indicate a version "newer" than anything on the branch.
-
-Leave the libjson_la_LDFLAGS line in Makefile.am alone.
- For more details see:
- http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
-
-------------
-
-Update the gh-pages branch with new docs:
-
-cd json-c-${release}
-git checkout json-c-${release}
-cd ..
-
-git clone -b gh-pages https://github.com/json-c/json-c json-c-pages
-cd json-c-pages
-mkdir json-c-${release}
-cp -R ../json-c-${release}/doc json-c-${release}/.
-cp ../json-c-${release}/README-WIN32.html json-c-${release}/.
-git add json-c-${release}
-git commit
-
-vi index.html
- Add/change links to current release.
-
-git commit index.html
-
-git push
-
-------------
-
-Update checksums on wiki page.
-
-cd ..
-openssl sha -sha256 json-c*gz
-openssl md5 json-c*gz
-
-Copy and paste this output into the wiki page at:
- https://github.com/json-c/json-c/wiki
-
-------------
-
-Send an email to the mailing list.
-
diff --git a/json-c/arraylist.c b/json-c/arraylist.c
deleted file mode 100644
index 1d899fa..0000000
--- a/json-c/arraylist.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * $Id: arraylist.c,v 1.4 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#include "config.h"
-
-#ifdef STDC_HEADERS
-# include
-# include
-#endif /* STDC_HEADERS */
-
-#if defined(HAVE_STRINGS_H) && !defined(_STRING_H) && !defined(__USE_BSD)
-# include
-#endif /* HAVE_STRINGS_H */
-
-#include "arraylist.h"
-
-struct array_list*
-array_list_new(array_list_free_fn *free_fn)
-{
- struct array_list *arr;
-
- arr = (struct array_list*)calloc(1, sizeof(struct array_list));
- if(!arr) return NULL;
- arr->size = ARRAY_LIST_DEFAULT_SIZE;
- arr->length = 0;
- arr->free_fn = free_fn;
- if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) {
- free(arr);
- return NULL;
- }
- return arr;
-}
-
-extern void
-array_list_free(struct array_list *arr)
-{
- int i;
- for(i = 0; i < arr->length; i++)
- if(arr->array[i]) arr->free_fn(arr->array[i]);
- free(arr->array);
- free(arr);
-}
-
-void*
-array_list_get_idx(struct array_list *arr, int i)
-{
- if(i >= arr->length) return NULL;
- return arr->array[i];
-}
-
-static int array_list_expand_internal(struct array_list *arr, int max)
-{
- void *t;
- int new_size;
-
- if(max < arr->size) return 0;
- new_size = arr->size << 1;
- if (new_size < max)
- new_size = max;
- if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1;
- arr->array = (void**)t;
- (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*));
- arr->size = new_size;
- return 0;
-}
-
-int
-array_list_put_idx(struct array_list *arr, int idx, void *data)
-{
- if(array_list_expand_internal(arr, idx+1)) return -1;
- if(arr->array[idx]) arr->free_fn(arr->array[idx]);
- arr->array[idx] = data;
- if(arr->length <= idx) arr->length = idx + 1;
- return 0;
-}
-
-int
-array_list_add(struct array_list *arr, void *data)
-{
- return array_list_put_idx(arr, arr->length, data);
-}
-
-void
-array_list_sort(struct array_list *arr, int(*sort_fn)(const void *, const void *))
-{
- qsort(arr->array, arr->length, sizeof(arr->array[0]),
- (int (*)(const void *, const void *))sort_fn);
-}
-
-int
-array_list_length(struct array_list *arr)
-{
- return arr->length;
-}
diff --git a/json-c/arraylist.h b/json-c/arraylist.h
deleted file mode 100644
index 4f3113c..0000000
--- a/json-c/arraylist.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * $Id: arraylist.h,v 1.4 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _arraylist_h_
-#define _arraylist_h_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define ARRAY_LIST_DEFAULT_SIZE 32
-
-typedef void (array_list_free_fn) (void *data);
-
-struct array_list
-{
- void **array;
- int length;
- int size;
- array_list_free_fn *free_fn;
-};
-
-extern struct array_list*
-array_list_new(array_list_free_fn *free_fn);
-
-extern void
-array_list_free(struct array_list *al);
-
-extern void*
-array_list_get_idx(struct array_list *al, int i);
-
-extern int
-array_list_put_idx(struct array_list *al, int i, void *data);
-
-extern int
-array_list_add(struct array_list *al, void *data);
-
-extern int
-array_list_length(struct array_list *al);
-
-extern void
-array_list_sort(struct array_list *arr, int(*compar)(const void *, const void *));
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/autogen.sh b/json-c/autogen.sh
deleted file mode 100755
index 69e765a..0000000
--- a/json-c/autogen.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-autoreconf -v --install || exit 1
-
-# If there are any options, assume the user wants to run configure.
-# To run configure w/o any options, use ./autogen.sh --configure
-if [ $# -gt 0 ] ; then
- case "$1" in
- --conf*)
- shift 1
- ;;
- esac
- exec ./configure "$@"
-fi
diff --git a/json-c/bits.h b/json-c/bits.h
deleted file mode 100644
index d14a1db..0000000
--- a/json-c/bits.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @file
- * @deprecated Use json_util.h instead.
- *
- * $Id: bits.h,v 1.10 2006/01/30 23:07:57 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _bits_h_
-#define _bits_h_
-
-/**
- * @deprecated
- */
-#define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
-/**
- * @deprecated
- */
-#define error_ptr(error) ((void*)error)
-/**
- * @deprecated
- */
-#define error_description(error) (json_tokener_get_error(error))
-/**
- * @deprecated
- */
-#define is_error(ptr) (ptr == NULL)
-
-#endif
diff --git a/json-c/config.h b/json-c/config.h
deleted file mode 100644
index f958d44..0000000
--- a/json-c/config.h
+++ /dev/null
@@ -1,178 +0,0 @@
-/* config.h. Generated from config.h.in by configure. */
-/* config.h.in. Generated from configure.ac by autoheader. */
-
-/* Enable RDRANR Hardware RNG Hash Seed */
-/* #undef ENABLE_RDRAND */
-
-/* Define if .gnu.warning accepts long strings. */
-/* #undef HAS_GNU_WARNING_LONG */
-
-/* Define to 1 if you have the declaration of `INFINITY', and to 0 if you
- don't. */
-#define HAVE_DECL_INFINITY 1
-
-/* Define to 1 if you have the declaration of `isinf', and to 0 if you don't.
- */
-#define HAVE_DECL_ISINF 1
-
-/* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.
- */
-#define HAVE_DECL_ISNAN 1
-
-/* Define to 1 if you have the declaration of `nan', and to 0 if you don't. */
-#define HAVE_DECL_NAN 1
-
-/* Define to 1 if you have the declaration of `_finite', and to 0 if you
- don't. */
-#define HAVE_DECL__FINITE 0
-
-/* Define to 1 if you have the declaration of `_isnan', and to 0 if you don't.
- */
-#define HAVE_DECL__ISNAN 0
-
-/* Define to 1 if you have the header file. */
-#define HAVE_DLFCN_H 1
-
-/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
-/* #undef HAVE_DOPRNT */
-
-/* Define to 1 if you have the header file. */
-#define HAVE_ENDIAN_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_FCNTL_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_INTTYPES_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_LIMITS_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_LOCALE_H 1
-
-/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
- to 0 otherwise. */
-#define HAVE_MALLOC 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_MEMORY_H 1
-
-/* Define to 1 if you have the `open' function. */
-#define HAVE_OPEN 1
-
-/* Define to 1 if your system has a GNU libc compatible `realloc' function,
- and to 0 otherwise. */
-#define HAVE_REALLOC 1
-
-/* Define to 1 if you have the `setlocale' function. */
-#define HAVE_SETLOCALE 1
-
-/* Define to 1 if you have the `snprintf' function. */
-#define HAVE_SNPRINTF 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_STDARG_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_STDINT_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the `strcasecmp' function. */
-#define HAVE_STRCASECMP 1
-
-/* Define to 1 if you have the `strdup' function. */
-#define HAVE_STRDUP 1
-
-/* Define to 1 if you have the `strerror' function. */
-#define HAVE_STRERROR 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_STRINGS_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_STRING_H 1
-
-/* Define to 1 if you have the `strncasecmp' function. */
-#define HAVE_STRNCASECMP 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_SYSLOG_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_SYS_CDEFS_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_SYS_PARAM_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define to 1 if you have the header file. */
-#define HAVE_UNISTD_H 1
-
-/* Define to 1 if you have the `vasprintf' function. */
-#define HAVE_VASPRINTF 1
-
-/* Define to 1 if you have the `vprintf' function. */
-#define HAVE_VPRINTF 1
-
-/* Define to 1 if you have the `vsnprintf' function. */
-#define HAVE_VSNPRINTF 1
-
-/* Define to 1 if you have the `vsyslog' function. */
-#define HAVE_VSYSLOG 1
-
-/* Public define for json_inttypes.h */
-#define JSON_C_HAVE_INTTYPES_H 1
-
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
- */
-#define LT_OBJDIR ".libs/"
-
-/* Define to 1 if your C compiler doesn't accept -c and -o together. */
-/* #undef NO_MINUS_C_MINUS_O */
-
-/* Name of package */
-#define PACKAGE "json-c"
-
-/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "json-c@googlegroups.com"
-
-/* Define to the full name of this package. */
-#define PACKAGE_NAME "json-c"
-
-/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "json-c 0.12.99"
-
-/* Define to the one symbol short name of this package. */
-#define PACKAGE_TARNAME "json-c"
-
-/* Define to the home page for this package. */
-#define PACKAGE_URL ""
-
-/* Define to the version of this package. */
-#define PACKAGE_VERSION "0.12.99"
-
-/* Define to 1 if you have the ANSI C header files. */
-#define STDC_HEADERS 1
-
-/* Version number of package */
-#define VERSION "0.12.99"
-
-/* Define to empty if `const' does not conform to ANSI C. */
-/* #undef const */
-
-/* Define to rpl_malloc if the replacement function should be used. */
-/* #undef malloc */
-
-/* Define to rpl_realloc if the replacement function should be used. */
-/* #undef realloc */
-
-/* Define to `unsigned int' if does not define. */
-/* #undef size_t */
diff --git a/json-c/config.h.in b/json-c/config.h.in
deleted file mode 100644
index af2e5fc..0000000
--- a/json-c/config.h.in
+++ /dev/null
@@ -1,177 +0,0 @@
-/* config.h.in. Generated from configure.ac by autoheader. */
-
-/* Enable RDRANR Hardware RNG Hash Seed */
-#undef ENABLE_RDRAND
-
-/* Define if .gnu.warning accepts long strings. */
-#undef HAS_GNU_WARNING_LONG
-
-/* Define to 1 if you have the declaration of `INFINITY', and to 0 if you
- don't. */
-#undef HAVE_DECL_INFINITY
-
-/* Define to 1 if you have the declaration of `isinf', and to 0 if you don't.
- */
-#undef HAVE_DECL_ISINF
-
-/* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.
- */
-#undef HAVE_DECL_ISNAN
-
-/* Define to 1 if you have the declaration of `nan', and to 0 if you don't. */
-#undef HAVE_DECL_NAN
-
-/* Define to 1 if you have the declaration of `_finite', and to 0 if you
- don't. */
-#undef HAVE_DECL__FINITE
-
-/* Define to 1 if you have the declaration of `_isnan', and to 0 if you don't.
- */
-#undef HAVE_DECL__ISNAN
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_DLFCN_H
-
-/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
-#undef HAVE_DOPRNT
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_ENDIAN_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_FCNTL_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_LIMITS_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_LOCALE_H
-
-/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
- to 0 otherwise. */
-#undef HAVE_MALLOC
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the `open' function. */
-#undef HAVE_OPEN
-
-/* Define to 1 if your system has a GNU libc compatible `realloc' function,
- and to 0 otherwise. */
-#undef HAVE_REALLOC
-
-/* Define to 1 if you have the `setlocale' function. */
-#undef HAVE_SETLOCALE
-
-/* Define to 1 if you have the `snprintf' function. */
-#undef HAVE_SNPRINTF
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_STDARG_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the `strcasecmp' function. */
-#undef HAVE_STRCASECMP
-
-/* Define to 1 if you have the `strdup' function. */
-#undef HAVE_STRDUP
-
-/* Define to 1 if you have the `strerror' function. */
-#undef HAVE_STRERROR
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the `strncasecmp' function. */
-#undef HAVE_STRNCASECMP
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_SYSLOG_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_SYS_CDEFS_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_SYS_PARAM_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to 1 if you have the `vasprintf' function. */
-#undef HAVE_VASPRINTF
-
-/* Define to 1 if you have the `vprintf' function. */
-#undef HAVE_VPRINTF
-
-/* Define to 1 if you have the `vsnprintf' function. */
-#undef HAVE_VSNPRINTF
-
-/* Define to 1 if you have the `vsyslog' function. */
-#undef HAVE_VSYSLOG
-
-/* Public define for json_inttypes.h */
-#undef JSON_C_HAVE_INTTYPES_H
-
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
- */
-#undef LT_OBJDIR
-
-/* Define to 1 if your C compiler doesn't accept -c and -o together. */
-#undef NO_MINUS_C_MINUS_O
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Version number of package */
-#undef VERSION
-
-/* Define to empty if `const' does not conform to ANSI C. */
-#undef const
-
-/* Define to rpl_malloc if the replacement function should be used. */
-#undef malloc
-
-/* Define to rpl_realloc if the replacement function should be used. */
-#undef realloc
-
-/* Define to `unsigned int' if does not define. */
-#undef size_t
diff --git a/json-c/configure.ac b/json-c/configure.ac
deleted file mode 100644
index c50f81b..0000000
--- a/json-c/configure.ac
+++ /dev/null
@@ -1,107 +0,0 @@
-AC_PREREQ(2.52)
-
-# Process this file with autoconf to produce a configure script.
-AC_INIT([json-c], 0.12.99, [json-c@googlegroups.com])
-
-AM_INIT_AUTOMAKE
-
-AC_PROG_MAKE_SET
-
-AC_ARG_ENABLE(rdrand,
- AS_HELP_STRING([--enable-rdrand],
- [Enable RDRAND Hardware RNG Hash Seed generation on supported x86/x64 platforms.]),
-[if test x$enableval = xyes; then
- enable_rdrand=yes
- AC_DEFINE(ENABLE_RDRAND, 1, [Enable RDRANR Hardware RNG Hash Seed])
-fi])
-
-if test "x$enable_rdrand" = "xyes"; then
- AC_MSG_RESULT([RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms])
-else
- AC_MSG_RESULT([RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable])
-fi
-
-# Checks for programs.
-
-# Checks for libraries.
-
-# Checks for header files.
-AM_PROG_CC_C_O
-AC_CONFIG_HEADER(config.h)
-AC_CONFIG_HEADER(json_config.h)
-AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h limits.h strings.h syslog.h unistd.h [sys/cdefs.h] [sys/param.h] stdarg.h locale.h endian.h)
-AC_CHECK_HEADER(inttypes.h,[AC_DEFINE([JSON_C_HAVE_INTTYPES_H],[1],[Public define for json_inttypes.h])])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_TYPE_SIZE_T
-
-# Checks for library functions.
-AC_FUNC_VPRINTF
-AC_FUNC_MEMCMP
-AC_FUNC_MALLOC
-AC_FUNC_REALLOC
-AC_CHECK_FUNCS(strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale)
-AC_CHECK_DECLS([INFINITY], [], [], [[#include ]])
-AC_CHECK_DECLS([nan], [], [], [[#include ]])
-AC_CHECK_DECLS([isnan], [], [], [[#include ]])
-AC_CHECK_DECLS([isinf], [], [], [[#include ]])
-AC_CHECK_DECLS([_isnan], [], [], [[#include ]])
-AC_CHECK_DECLS([_finite], [], [], [[#include ]])
-
-#check if .section.gnu.warning accepts long strings (for __warn_references)
-AC_LANG_PUSH([C])
-
-AC_MSG_CHECKING([if .gnu.warning accepts long strings])
-AC_LINK_IFELSE([AC_LANG_SOURCE([[
-extern void json_object_get();
-__asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
-
-int main(int c,char* v) {return 0;}
-]])], [
- AC_DEFINE(HAS_GNU_WARNING_LONG, 1, [Define if .gnu.warning accepts long strings.])
- AC_MSG_RESULT(yes)
-], [
- AC_MSG_RESULT(no)
-])
-
-AC_LANG_POP([C])
-
-AM_PROG_LIBTOOL
-
-# Check for the -Bsymbolic-functions linker flag
-AC_ARG_ENABLE([Bsymbolic],
- [AS_HELP_STRING([--disable-Bsymbolic], [Avoid linking with -Bsymbolic-function])],
- [],
- [enable_Bsymbolic=check])
-
-AS_IF([test "x$enable_Bsymbolic" = "xcheck"],
- [
- saved_LDFLAGS="${LDFLAGS}"
- AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
- LDFLAGS=-Wl,-Bsymbolic-functions
- AC_TRY_LINK([], [int main (void) { return 0; }],
- [
- AC_MSG_RESULT([yes])
- enable_Bsymbolic=yes
- ],
- [
- AC_MSG_RESULT([no])
- enable_Bsymbolic=no
- ])
- LDFLAGS="${saved_LDFLAGS}"
- ])
-
-AS_IF([test "x$enable_Bsymbolic" = "xyes"], [JSON_BSYMBOLIC_LDFLAGS=-Wl[,]-Bsymbolic-functions])
-AC_SUBST(JSON_BSYMBOLIC_LDFLAGS)
-
-AC_CONFIG_FILES([
-Makefile
-json-c.pc
-tests/Makefile
-json-c-uninstalled.pc
-])
-
-AC_OUTPUT
-
diff --git a/json-c/debug.c b/json-c/debug.c
deleted file mode 100644
index 3b64b59..0000000
--- a/json-c/debug.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * $Id: debug.c,v 1.5 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#include "config.h"
-
-#include
-#include
-#include
-#include
-
-#if HAVE_SYSLOG_H
-# include
-#endif /* HAVE_SYSLOG_H */
-
-#if HAVE_UNISTD_H
-# include
-#endif /* HAVE_UNISTD_H */
-
-#if HAVE_SYS_PARAM_H
-#include
-#endif /* HAVE_SYS_PARAM_H */
-
-#include "debug.h"
-
-static int _syslog = 0;
-static int _debug = 0;
-
-void mc_set_debug(int debug) { _debug = debug; }
-int mc_get_debug(void) { return _debug; }
-
-extern void mc_set_syslog(int syslog)
-{
- _syslog = syslog;
-}
-
-void mc_debug(const char *msg, ...)
-{
- va_list ap;
- if(_debug) {
- va_start(ap, msg);
-#if HAVE_VSYSLOG
- if(_syslog) {
- vsyslog(LOG_DEBUG, msg, ap);
- } else
-#endif
- vprintf(msg, ap);
- va_end(ap);
- }
-}
-
-void mc_error(const char *msg, ...)
-{
- va_list ap;
- va_start(ap, msg);
-#if HAVE_VSYSLOG
- if(_syslog) {
- vsyslog(LOG_ERR, msg, ap);
- } else
-#endif
- vfprintf(stderr, msg, ap);
- va_end(ap);
-}
-
-void mc_info(const char *msg, ...)
-{
- va_list ap;
- va_start(ap, msg);
-#if HAVE_VSYSLOG
- if(_syslog) {
- vsyslog(LOG_INFO, msg, ap);
- } else
-#endif
- vfprintf(stderr, msg, ap);
- va_end(ap);
-}
diff --git a/json-c/debug.h b/json-c/debug.h
deleted file mode 100644
index 80ca3e4..0000000
--- a/json-c/debug.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * $Id: debug.h,v 1.5 2006/01/30 23:07:57 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _DEBUG_H_
-#define _DEBUG_H_
-
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern void mc_set_debug(int debug);
-extern int mc_get_debug(void);
-
-extern void mc_set_syslog(int syslog);
-
-extern void mc_debug(const char *msg, ...);
-extern void mc_error(const char *msg, ...);
-extern void mc_info(const char *msg, ...);
-
-#ifndef __STRING
-#define __STRING(x) #x
-#endif
-
-#ifndef PARSER_BROKEN_FIXED
-
-#define JASSERT(cond) do {} while(0)
-
-#else
-
-#define JASSERT(cond) do { \
- if (!(cond)) { \
- mc_error("cjson assert failure %s:%d : cond \"" __STRING(cond) "failed\n", __FILE__, __LINE__); \
- *(int *)0 = 1;\
- abort(); \
- }\
- } while(0)
-
-#endif
-
-#define MC_ERROR(x, ...) mc_error(x, ##__VA_ARGS__)
-
-#ifdef MC_MAINTAINER_MODE
-#define MC_SET_DEBUG(x) mc_set_debug(x)
-#define MC_GET_DEBUG() mc_get_debug()
-#define MC_SET_SYSLOG(x) mc_set_syslog(x)
-#define MC_DEBUG(x, ...) mc_debug(x, ##__VA_ARGS__)
-#define MC_INFO(x, ...) mc_info(x, ##__VA_ARGS__)
-#else
-#define MC_SET_DEBUG(x) if (0) mc_set_debug(x)
-#define MC_GET_DEBUG() (0)
-#define MC_SET_SYSLOG(x) if (0) mc_set_syslog(x)
-#define MC_DEBUG(x, ...) if (0) mc_debug(x, ##__VA_ARGS__)
-#define MC_INFO(x, ...) if (0) mc_info(x, ##__VA_ARGS__)
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/json-c-uninstalled.pc.in b/json-c/json-c-uninstalled.pc.in
deleted file mode 100644
index dab2bab..0000000
--- a/json-c/json-c-uninstalled.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=
-exec_prefix=
-libdir=@abs_top_builddir@
-includedir=@abs_top_srcdir@
-
-Name: json
-Description: JSON implementation in C
-Version: @VERSION@
-Requires:
-Libs: -L@abs_top_builddir@ -ljson-c
-Cflags: -I@abs_top_srcdir@
diff --git a/json-c/json-c.pc.in b/json-c/json-c.pc.in
deleted file mode 100644
index 037739d..0000000
--- a/json-c/json-c.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: json-c
-Description: JSON implementation in C
-Version: @VERSION@
-Requires:
-Libs: -L${libdir} -ljson-c
-Cflags: -I${includedir}/json-c
diff --git a/json-c/json.h b/json-c/json.h
deleted file mode 100644
index e198f5d..0000000
--- a/json-c/json.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * $Id: json.h,v 1.6 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _json_h_
-#define _json_h_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "debug.h"
-#include "linkhash.h"
-#include "arraylist.h"
-#include "json_util.h"
-#include "json_object.h"
-#include "json_tokener.h"
-#include "json_object_iterator.h"
-#include "json_c_version.h"
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/json_c_version.c b/json-c/json_c_version.c
deleted file mode 100644
index 13eb188..0000000
--- a/json-c/json_c_version.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) 2012 Eric Haszlakiewicz
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- */
-#include "config.h"
-
-#include "json_c_version.h"
-
-const char *json_c_version(void)
-{
- return JSON_C_VERSION;
-}
-
-int json_c_version_num(void)
-{
- return JSON_C_VERSION_NUM;
-}
-
diff --git a/json-c/json_c_version.h b/json-c/json_c_version.h
deleted file mode 100644
index d77f1a7..0000000
--- a/json-c/json_c_version.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2012 Eric Haszlakiewicz
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- */
-
-#ifndef _json_c_version_h_
-#define _json_c_version_h_
-
-#define JSON_C_MAJOR_VERSION 0
-#define JSON_C_MINOR_VERSION 12
-#define JSON_C_MICRO_VERSION 99
-#define JSON_C_VERSION_NUM ((JSON_C_MAJOR_VERSION << 16) | \
- (JSON_C_MINOR_VERSION << 8) | \
- JSON_C_MICRO_VERSION)
-#define JSON_C_VERSION "0.12.99"
-
-const char *json_c_version(void); /* Returns JSON_C_VERSION */
-int json_c_version_num(void); /* Returns JSON_C_VERSION_NUM */
-
-#endif
diff --git a/json-c/json_config.h b/json-c/json_config.h
deleted file mode 100644
index 965ff1c..0000000
--- a/json-c/json_config.h
+++ /dev/null
@@ -1,4 +0,0 @@
-/* json_config.h. Generated from json_config.h.in by configure. */
-
-/* Define to 1 if you have the header file. */
-#define JSON_C_HAVE_INTTYPES_H 1
diff --git a/json-c/json_config.h.in b/json-c/json_config.h.in
deleted file mode 100644
index 7888e02..0000000
--- a/json-c/json_config.h.in
+++ /dev/null
@@ -1,3 +0,0 @@
-
-/* Define to 1 if you have the header file. */
-#undef JSON_C_HAVE_INTTYPES_H
diff --git a/json-c/json_inttypes.h b/json-c/json_inttypes.h
deleted file mode 100644
index 9de8d24..0000000
--- a/json-c/json_inttypes.h
+++ /dev/null
@@ -1,28 +0,0 @@
-
-#ifndef _json_inttypes_h_
-#define _json_inttypes_h_
-
-#include "json_config.h"
-
-#if defined(_MSC_VER) && _MSC_VER <= 1700
-
-/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
-typedef __int32 int32_t;
-#define INT32_MIN ((int32_t)_I32_MIN)
-#define INT32_MAX ((int32_t)_I32_MAX)
-typedef __int64 int64_t;
-#define INT64_MIN ((int64_t)_I64_MIN)
-#define INT64_MAX ((int64_t)_I64_MAX)
-#define PRId64 "I64d"
-#define SCNd64 "I64d"
-
-#else
-
-#ifdef JSON_C_HAVE_INTTYPES_H
-#include
-#endif
-/* inttypes.h includes stdint.h */
-
-#endif
-
-#endif
diff --git a/json-c/json_object.c b/json-c/json_object.c
deleted file mode 100644
index 8ed0239..0000000
--- a/json-c/json_object.c
+++ /dev/null
@@ -1,913 +0,0 @@
-/*
- * $Id: json_object.c,v 1.17 2006/07/25 03:24:50 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#include "config.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "debug.h"
-#include "printbuf.h"
-#include "linkhash.h"
-#include "arraylist.h"
-#include "json_inttypes.h"
-#include "json_object.h"
-#include "json_object_private.h"
-#include "json_util.h"
-#include "math_compat.h"
-
-#if !defined(HAVE_STRDUP) && defined(_MSC_VER)
- /* MSC has the version as _strdup */
-# define strdup _strdup
-#elif !defined(HAVE_STRDUP)
-# error You do not have strdup on your system.
-#endif /* HAVE_STRDUP */
-
-#if !defined(HAVE_SNPRINTF) && defined(_MSC_VER)
- /* MSC has the version as _snprintf */
-# define snprintf _snprintf
-#elif !defined(HAVE_SNPRINTF)
-# error You do not have snprintf on your system.
-#endif /* HAVE_SNPRINTF */
-
-// Don't define this. It's not thread-safe.
-/* #define REFCOUNT_DEBUG 1 */
-
-const char *json_number_chars = "0123456789.+-eE";
-const char *json_hex_chars = "0123456789abcdefABCDEF";
-
-static void json_object_generic_delete(struct json_object* jso);
-static struct json_object* json_object_new(enum json_type o_type);
-
-static json_object_to_json_string_fn json_object_object_to_json_string;
-static json_object_to_json_string_fn json_object_boolean_to_json_string;
-static json_object_to_json_string_fn json_object_int_to_json_string;
-static json_object_to_json_string_fn json_object_double_to_json_string;
-static json_object_to_json_string_fn json_object_string_to_json_string;
-static json_object_to_json_string_fn json_object_array_to_json_string;
-
-
-/* ref count debugging */
-
-#ifdef REFCOUNT_DEBUG
-
-static struct lh_table *json_object_table;
-
-static void json_object_init(void) __attribute__ ((constructor));
-static void json_object_init(void) {
- MC_DEBUG("json_object_init: creating object table\n");
- json_object_table = lh_kptr_table_new(128, "json_object_table", NULL);
-}
-
-static void json_object_fini(void) __attribute__ ((destructor));
-static void json_object_fini(void)
-{
- struct lh_entry *ent;
- if (MC_GET_DEBUG())
- {
- if (json_object_table->count)
- {
- MC_DEBUG("json_object_fini: %d referenced objects at exit\n",
- json_object_table->count);
- lh_foreach(json_object_table, ent)
- {
- struct json_object* obj = (struct json_object*)ent->v;
- MC_DEBUG("\t%s:%p\n", json_type_to_name(obj->o_type), obj);
- }
- }
- }
- MC_DEBUG("json_object_fini: freeing object table\n");
- lh_table_free(json_object_table);
-}
-#endif /* REFCOUNT_DEBUG */
-
-
-/* string escaping */
-
-static int json_escape_str(struct printbuf *pb, char *str, int len)
-{
- int pos = 0, start_offset = 0;
- unsigned char c;
- while (len--)
- {
- c = str[pos];
- switch(c)
- {
- case '\b':
- case '\n':
- case '\r':
- case '\t':
- case '\f':
- case '"':
- case '\\':
- case '/':
- if(pos - start_offset > 0)
- printbuf_memappend(pb, str + start_offset, pos - start_offset);
-
- if(c == '\b') printbuf_memappend(pb, "\\b", 2);
- else if(c == '\n') printbuf_memappend(pb, "\\n", 2);
- else if(c == '\r') printbuf_memappend(pb, "\\r", 2);
- else if(c == '\t') printbuf_memappend(pb, "\\t", 2);
- else if(c == '\f') printbuf_memappend(pb, "\\f", 2);
- else if(c == '"') printbuf_memappend(pb, "\\\"", 2);
- else if(c == '\\') printbuf_memappend(pb, "\\\\", 2);
- else if(c == '/') printbuf_memappend(pb, "\\/", 2);
-
- start_offset = ++pos;
- break;
- default:
- if(c < ' ')
- {
- if(pos - start_offset > 0)
- printbuf_memappend(pb, str + start_offset, pos - start_offset);
- sprintbuf(pb, "\\u00%c%c",
- json_hex_chars[c >> 4],
- json_hex_chars[c & 0xf]);
- start_offset = ++pos;
- } else
- pos++;
- }
- }
- if (pos - start_offset > 0)
- printbuf_memappend(pb, str + start_offset, pos - start_offset);
- return 0;
-}
-
-
-/* reference counting */
-
-extern struct json_object* json_object_get(struct json_object *jso)
-{
- if (jso)
- jso->_ref_count++;
- return jso;
-}
-
-int json_object_put(struct json_object *jso)
-{
- if(jso)
- {
- jso->_ref_count--;
- if(!jso->_ref_count)
- {
- if (jso->_user_delete)
- jso->_user_delete(jso, jso->_userdata);
- jso->_delete(jso);
- return 1;
- }
- }
- return 0;
-}
-
-
-/* generic object construction and destruction parts */
-
-static void json_object_generic_delete(struct json_object* jso)
-{
-#ifdef REFCOUNT_DEBUG
- MC_DEBUG("json_object_delete_%s: %p\n",
- json_type_to_name(jso->o_type), jso);
- lh_table_delete(json_object_table, jso);
-#endif /* REFCOUNT_DEBUG */
- printbuf_free(jso->_pb);
- free(jso);
-}
-
-static struct json_object* json_object_new(enum json_type o_type)
-{
- struct json_object *jso;
-
- jso = (struct json_object*)calloc(sizeof(struct json_object), 1);
- if (!jso)
- return NULL;
- jso->o_type = o_type;
- jso->_ref_count = 1;
- jso->_delete = &json_object_generic_delete;
-#ifdef REFCOUNT_DEBUG
- lh_table_insert(json_object_table, jso, jso);
- MC_DEBUG("json_object_new_%s: %p\n", json_type_to_name(jso->o_type), jso);
-#endif /* REFCOUNT_DEBUG */
- return jso;
-}
-
-
-/* type checking functions */
-
-int json_object_is_type(struct json_object *jso, enum json_type type)
-{
- if (!jso)
- return (type == json_type_null);
- return (jso->o_type == type);
-}
-
-enum json_type json_object_get_type(struct json_object *jso)
-{
- if (!jso)
- return json_type_null;
- return jso->o_type;
-}
-
-/* set a custom conversion to string */
-
-void json_object_set_serializer(json_object *jso,
- json_object_to_json_string_fn to_string_func,
- void *userdata,
- json_object_delete_fn *user_delete)
-{
- // First, clean up any previously existing user info
- if (jso->_user_delete)
- {
- jso->_user_delete(jso, jso->_userdata);
- }
- jso->_userdata = NULL;
- jso->_user_delete = NULL;
-
- if (to_string_func == NULL)
- {
- // Reset to the standard serialization function
- switch(jso->o_type)
- {
- case json_type_null:
- jso->_to_json_string = NULL;
- break;
- case json_type_boolean:
- jso->_to_json_string = &json_object_boolean_to_json_string;
- break;
- case json_type_double:
- jso->_to_json_string = &json_object_double_to_json_string;
- break;
- case json_type_int:
- jso->_to_json_string = &json_object_int_to_json_string;
- break;
- case json_type_object:
- jso->_to_json_string = &json_object_object_to_json_string;
- break;
- case json_type_array:
- jso->_to_json_string = &json_object_array_to_json_string;
- break;
- case json_type_string:
- jso->_to_json_string = &json_object_string_to_json_string;
- break;
- }
- return;
- }
-
- jso->_to_json_string = to_string_func;
- jso->_userdata = userdata;
- jso->_user_delete = user_delete;
-}
-
-
-/* extended conversion to string */
-
-const char* json_object_to_json_string_ext(struct json_object *jso, int flags)
-{
- if (!jso)
- return "null";
-
- if ((!jso->_pb) && !(jso->_pb = printbuf_new()))
- return NULL;
-
- printbuf_reset(jso->_pb);
-
- if(jso->_to_json_string(jso, jso->_pb, 0, flags) < 0)
- return NULL;
-
- return jso->_pb->buf;
-}
-
-/* backwards-compatible conversion to string */
-
-const char* json_object_to_json_string(struct json_object *jso)
-{
- return json_object_to_json_string_ext(jso, JSON_C_TO_STRING_SPACED);
-}
-
-static void indent(struct printbuf *pb, int level, int flags)
-{
- if (flags & JSON_C_TO_STRING_PRETTY)
- {
- printbuf_memset(pb, -1, ' ', level * 2);
- }
-}
-
-/* json_object_object */
-
-static int json_object_object_to_json_string(struct json_object* jso,
- struct printbuf *pb,
- int level,
- int flags)
-{
- int had_children = 0;
- struct json_object_iter iter;
-
- sprintbuf(pb, "{" /*}*/);
- if (flags & JSON_C_TO_STRING_PRETTY)
- sprintbuf(pb, "\n");
- json_object_object_foreachC(jso, iter)
- {
- if (had_children)
- {
- sprintbuf(pb, ",");
- if (flags & JSON_C_TO_STRING_PRETTY)
- sprintbuf(pb, "\n");
- }
- had_children = 1;
- if (flags & JSON_C_TO_STRING_SPACED)
- sprintbuf(pb, " ");
- indent(pb, level+1, flags);
- sprintbuf(pb, "\"");
- json_escape_str(pb, iter.key, strlen(iter.key));
- if (flags & JSON_C_TO_STRING_SPACED)
- sprintbuf(pb, "\": ");
- else
- sprintbuf(pb, "\":");
- if(iter.val == NULL)
- sprintbuf(pb, "null");
- else
- iter.val->_to_json_string(iter.val, pb, level+1,flags);
- }
- if (flags & JSON_C_TO_STRING_PRETTY)
- {
- if (had_children)
- sprintbuf(pb, "\n");
- indent(pb,level,flags);
- }
- if (flags & JSON_C_TO_STRING_SPACED)
- return sprintbuf(pb, /*{*/ " }");
- else
- return sprintbuf(pb, /*{*/ "}");
-}
-
-
-static void json_object_lh_entry_free(struct lh_entry *ent)
-{
- free(ent->k);
- json_object_put((struct json_object*)ent->v);
-}
-
-static void json_object_object_delete(struct json_object* jso)
-{
- lh_table_free(jso->o.c_object);
- json_object_generic_delete(jso);
-}
-
-struct json_object* json_object_new_object(void)
-{
- struct json_object *jso = json_object_new(json_type_object);
- if (!jso)
- return NULL;
- jso->_delete = &json_object_object_delete;
- jso->_to_json_string = &json_object_object_to_json_string;
- jso->o.c_object = lh_kchar_table_new(JSON_OBJECT_DEF_HASH_ENTRIES,
- NULL, &json_object_lh_entry_free);
- if (!jso->o.c_object)
- {
- json_object_generic_delete(jso);
- errno = ENOMEM;
- return NULL;
- }
- return jso;
-}
-
-struct lh_table* json_object_get_object(struct json_object *jso)
-{
- if (!jso)
- return NULL;
- switch(jso->o_type)
- {
- case json_type_object:
- return jso->o.c_object;
- default:
- return NULL;
- }
-}
-
-void json_object_object_add(struct json_object* jso, const char *key,
- struct json_object *val)
-{
- // We lookup the entry and replace the value, rather than just deleting
- // and re-adding it, so the existing key remains valid.
- json_object *existing_value = NULL;
- struct lh_entry *existing_entry;
- existing_entry = lh_table_lookup_entry(jso->o.c_object, (void*)key);
- if (!existing_entry)
- {
- lh_table_insert(jso->o.c_object, strdup(key), val);
- return;
- }
- existing_value = (void *)existing_entry->v;
- if (existing_value)
- json_object_put(existing_value);
- existing_entry->v = val;
-}
-
-int json_object_object_length(struct json_object *jso)
-{
- return lh_table_length(jso->o.c_object);
-}
-
-struct json_object* json_object_object_get(struct json_object* jso, const char *key)
-{
- struct json_object *result = NULL;
- json_object_object_get_ex(jso, key, &result);
- return result;
-}
-
-json_bool json_object_object_get_ex(struct json_object* jso, const char *key, struct json_object **value)
-{
- if (value != NULL)
- *value = NULL;
-
- if (NULL == jso)
- return FALSE;
-
- switch(jso->o_type)
- {
- case json_type_object:
- return lh_table_lookup_ex(jso->o.c_object, (void*)key, (void**)value);
- default:
- if (value != NULL)
- *value = NULL;
- return FALSE;
- }
-}
-
-void json_object_object_del(struct json_object* jso, const char *key)
-{
- lh_table_delete(jso->o.c_object, key);
-}
-
-
-/* json_object_boolean */
-
-static int json_object_boolean_to_json_string(struct json_object* jso,
- struct printbuf *pb,
- int level,
- int flags)
-{
- if (jso->o.c_boolean)
- return sprintbuf(pb, "true");
- else
- return sprintbuf(pb, "false");
-}
-
-struct json_object* json_object_new_boolean(json_bool b)
-{
- struct json_object *jso = json_object_new(json_type_boolean);
- if (!jso)
- return NULL;
- jso->_to_json_string = &json_object_boolean_to_json_string;
- jso->o.c_boolean = b;
- return jso;
-}
-
-json_bool json_object_get_boolean(struct json_object *jso)
-{
- if (!jso)
- return FALSE;
- switch(jso->o_type)
- {
- case json_type_boolean:
- return jso->o.c_boolean;
- case json_type_int:
- return (jso->o.c_int64 != 0);
- case json_type_double:
- return (jso->o.c_double != 0);
- case json_type_string:
- return (jso->o.c_string.len != 0);
- default:
- return FALSE;
- }
-}
-
-
-/* json_object_int */
-
-static int json_object_int_to_json_string(struct json_object* jso,
- struct printbuf *pb,
- int level,
- int flags)
-{
- return sprintbuf(pb, "%"PRId64, jso->o.c_int64);
-}
-
-struct json_object* json_object_new_int(int32_t i)
-{
- struct json_object *jso = json_object_new(json_type_int);
- if (!jso)
- return NULL;
- jso->_to_json_string = &json_object_int_to_json_string;
- jso->o.c_int64 = i;
- return jso;
-}
-
-int32_t json_object_get_int(struct json_object *jso)
-{
- int64_t cint64;
- enum json_type o_type;
-
- if(!jso) return 0;
-
- o_type = jso->o_type;
- cint64 = jso->o.c_int64;
-
- if (o_type == json_type_string)
- {
- /*
- * Parse strings into 64-bit numbers, then use the
- * 64-to-32-bit number handling below.
- */
- if (json_parse_int64(jso->o.c_string.str, &cint64) != 0)
- return 0; /* whoops, it didn't work. */
- o_type = json_type_int;
- }
-
- switch(o_type) {
- case json_type_int:
- /* Make sure we return the correct values for out of range numbers. */
- if (cint64 <= INT32_MIN)
- return INT32_MIN;
- else if (cint64 >= INT32_MAX)
- return INT32_MAX;
- else
- return (int32_t)cint64;
- case json_type_double:
- return (int32_t)jso->o.c_double;
- case json_type_boolean:
- return jso->o.c_boolean;
- default:
- return 0;
- }
-}
-
-struct json_object* json_object_new_int64(int64_t i)
-{
- struct json_object *jso = json_object_new(json_type_int);
- if (!jso)
- return NULL;
- jso->_to_json_string = &json_object_int_to_json_string;
- jso->o.c_int64 = i;
- return jso;
-}
-
-int64_t json_object_get_int64(struct json_object *jso)
-{
- int64_t cint;
-
- if (!jso)
- return 0;
- switch(jso->o_type)
- {
- case json_type_int:
- return jso->o.c_int64;
- case json_type_double:
- return (int64_t)jso->o.c_double;
- case json_type_boolean:
- return jso->o.c_boolean;
- case json_type_string:
- if (json_parse_int64(jso->o.c_string.str, &cint) == 0)
- return cint;
- default:
- return 0;
- }
-}
-
-
-/* json_object_double */
-
-static int json_object_double_to_json_string(struct json_object* jso,
- struct printbuf *pb,
- int level,
- int flags)
-{
- char buf[128], *p, *q;
- int size;
- /* Although JSON RFC does not support
- NaN or Infinity as numeric values
- ECMA 262 section 9.8.1 defines
- how to handle these cases as strings */
- if(isnan(jso->o.c_double))
- size = snprintf(buf, sizeof(buf), "NaN");
- else if(isinf(jso->o.c_double))
- if(jso->o.c_double > 0)
- size = snprintf(buf, sizeof(buf), "Infinity");
- else
- size = snprintf(buf, sizeof(buf), "-Infinity");
- else
- size = snprintf(buf, sizeof(buf), "%.17g", jso->o.c_double);
-
- p = strchr(buf, ',');
- if (p) {
- *p = '.';
- } else {
- p = strchr(buf, '.');
- }
- if (p && (flags & JSON_C_TO_STRING_NOZERO)) {
- /* last useful digit, always keep 1 zero */
- p++;
- for (q=p ; *q ; q++) {
- if (*q!='0') p=q;
- }
- /* drop trailing zeroes */
- *(++p) = 0;
- size = p-buf;
- }
- printbuf_memappend(pb, buf, size);
- return size;
-}
-
-struct json_object* json_object_new_double(double d)
-{
- struct json_object *jso = json_object_new(json_type_double);
- if (!jso)
- return NULL;
- jso->_to_json_string = &json_object_double_to_json_string;
- jso->o.c_double = d;
- return jso;
-}
-
-struct json_object* json_object_new_double_s(double d, const char *ds)
-{
- struct json_object *jso = json_object_new_double(d);
- if (!jso)
- return NULL;
-
- char *new_ds = strdup(ds);
- if (!new_ds)
- {
- json_object_generic_delete(jso);
- errno = ENOMEM;
- return NULL;
- }
- json_object_set_serializer(jso, json_object_userdata_to_json_string,
- new_ds, json_object_free_userdata);
- return jso;
-}
-
-int json_object_userdata_to_json_string(struct json_object *jso,
- struct printbuf *pb, int level, int flags)
-{
- int userdata_len = strlen(jso->_userdata);
- printbuf_memappend(pb, jso->_userdata, userdata_len);
- return userdata_len;
-}
-
-void json_object_free_userdata(struct json_object *jso, void *userdata)
-{
- free(userdata);
-}
-
-double json_object_get_double(struct json_object *jso)
-{
- double cdouble;
- char *errPtr = NULL;
-
- if(!jso) return 0.0;
- switch(jso->o_type) {
- case json_type_double:
- return jso->o.c_double;
- case json_type_int:
- return jso->o.c_int64;
- case json_type_boolean:
- return jso->o.c_boolean;
- case json_type_string:
- errno = 0;
- cdouble = strtod(jso->o.c_string.str,&errPtr);
-
- /* if conversion stopped at the first character, return 0.0 */
- if (errPtr == jso->o.c_string.str)
- return 0.0;
-
- /*
- * Check that the conversion terminated on something sensible
- *
- * For example, { "pay" : 123AB } would parse as 123.
- */
- if (*errPtr != '\0')
- return 0.0;
-
- /*
- * If strtod encounters a string which would exceed the
- * capacity of a double, it returns +/- HUGE_VAL and sets
- * errno to ERANGE. But +/- HUGE_VAL is also a valid result
- * from a conversion, so we need to check errno.
- *
- * Underflow also sets errno to ERANGE, but it returns 0 in
- * that case, which is what we will return anyway.
- *
- * See CERT guideline ERR30-C
- */
- if ((HUGE_VAL == cdouble || -HUGE_VAL == cdouble) &&
- (ERANGE == errno))
- cdouble = 0.0;
- return cdouble;
- default:
- return 0.0;
- }
-}
-
-
-/* json_object_string */
-
-static int json_object_string_to_json_string(struct json_object* jso,
- struct printbuf *pb,
- int level,
- int flags)
-{
- sprintbuf(pb, "\"");
- json_escape_str(pb, jso->o.c_string.str, jso->o.c_string.len);
- sprintbuf(pb, "\"");
- return 0;
-}
-
-static void json_object_string_delete(struct json_object* jso)
-{
- free(jso->o.c_string.str);
- json_object_generic_delete(jso);
-}
-
-struct json_object* json_object_new_string(const char *s)
-{
- struct json_object *jso = json_object_new(json_type_string);
- if (!jso)
- return NULL;
- jso->_delete = &json_object_string_delete;
- jso->_to_json_string = &json_object_string_to_json_string;
- jso->o.c_string.str = strdup(s);
- if (!jso->o.c_string.str)
- {
- json_object_generic_delete(jso);
- errno = ENOMEM;
- return NULL;
- }
- jso->o.c_string.len = strlen(s);
- return jso;
-}
-
-struct json_object* json_object_new_string_len(const char *s, int len)
-{
- struct json_object *jso = json_object_new(json_type_string);
- if (!jso)
- return NULL;
- jso->_delete = &json_object_string_delete;
- jso->_to_json_string = &json_object_string_to_json_string;
- jso->o.c_string.str = (char*)malloc(len + 1);
- if (!jso->o.c_string.str)
- {
- json_object_generic_delete(jso);
- errno = ENOMEM;
- return NULL;
- }
- memcpy(jso->o.c_string.str, (void *)s, len);
- jso->o.c_string.str[len] = '\0';
- jso->o.c_string.len = len;
- return jso;
-}
-
-const char* json_object_get_string(struct json_object *jso)
-{
- if (!jso)
- return NULL;
- switch(jso->o_type)
- {
- case json_type_string:
- return jso->o.c_string.str;
- default:
- return json_object_to_json_string(jso);
- }
-}
-
-int json_object_get_string_len(struct json_object *jso)
-{
- if (!jso)
- return 0;
- switch(jso->o_type)
- {
- case json_type_string:
- return jso->o.c_string.len;
- default:
- return 0;
- }
-}
-
-
-/* json_object_array */
-
-static int json_object_array_to_json_string(struct json_object* jso,
- struct printbuf *pb,
- int level,
- int flags)
-{
- int had_children = 0;
- int ii;
- sprintbuf(pb, "[");
- if (flags & JSON_C_TO_STRING_PRETTY)
- sprintbuf(pb, "\n");
- for(ii=0; ii < json_object_array_length(jso); ii++)
- {
- struct json_object *val;
- if (had_children)
- {
- sprintbuf(pb, ",");
- if (flags & JSON_C_TO_STRING_PRETTY)
- sprintbuf(pb, "\n");
- }
- had_children = 1;
- if (flags & JSON_C_TO_STRING_SPACED)
- sprintbuf(pb, " ");
- indent(pb, level + 1, flags);
- val = json_object_array_get_idx(jso, ii);
- if(val == NULL)
- sprintbuf(pb, "null");
- else
- val->_to_json_string(val, pb, level+1, flags);
- }
- if (flags & JSON_C_TO_STRING_PRETTY)
- {
- if (had_children)
- sprintbuf(pb, "\n");
- indent(pb,level,flags);
- }
-
- if (flags & JSON_C_TO_STRING_SPACED)
- return sprintbuf(pb, " ]");
- else
- return sprintbuf(pb, "]");
-}
-
-static void json_object_array_entry_free(void *data)
-{
- json_object_put((struct json_object*)data);
-}
-
-static void json_object_array_delete(struct json_object* jso)
-{
- array_list_free(jso->o.c_array);
- json_object_generic_delete(jso);
-}
-
-struct json_object* json_object_new_array(void)
-{
- struct json_object *jso = json_object_new(json_type_array);
- if (!jso)
- return NULL;
- jso->_delete = &json_object_array_delete;
- jso->_to_json_string = &json_object_array_to_json_string;
- jso->o.c_array = array_list_new(&json_object_array_entry_free);
- return jso;
-}
-
-struct array_list* json_object_get_array(struct json_object *jso)
-{
- if (!jso)
- return NULL;
- switch(jso->o_type)
- {
- case json_type_array:
- return jso->o.c_array;
- default:
- return NULL;
- }
-}
-
-void json_object_array_sort(struct json_object *jso, int(*sort_fn)(const void *, const void *))
-{
- array_list_sort(jso->o.c_array, sort_fn);
-}
-
-int json_object_array_length(struct json_object *jso)
-{
- return array_list_length(jso->o.c_array);
-}
-
-int json_object_array_add(struct json_object *jso,struct json_object *val)
-{
- return array_list_add(jso->o.c_array, val);
-}
-
-int json_object_array_put_idx(struct json_object *jso, int idx,
- struct json_object *val)
-{
- return array_list_put_idx(jso->o.c_array, idx, val);
-}
-
-struct json_object* json_object_array_get_idx(struct json_object *jso,
- int idx)
-{
- return (struct json_object*)array_list_get_idx(jso->o.c_array, idx);
-}
-
diff --git a/json-c/json_object.h b/json-c/json_object.h
deleted file mode 100644
index 0dca0b1..0000000
--- a/json-c/json_object.h
+++ /dev/null
@@ -1,617 +0,0 @@
-/*
- * $Id: json_object.h,v 1.12 2006/01/30 23:07:57 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _json_object_h_
-#define _json_object_h_
-
-#ifdef __GNUC__
-#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))
-#elif defined(_MSC_VER)
-#define THIS_FUNCTION_IS_DEPRECATED(func) __declspec(deprecated) func
-#else
-#define THIS_FUNCTION_IS_DEPRECATED(func) func
-#endif
-
-#include "json_inttypes.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define JSON_OBJECT_DEF_HASH_ENTRIES 16
-
-/**
- * A flag for the json_object_to_json_string_ext() and
- * json_object_to_file_ext() functions which causes the output
- * to have no extra whitespace or formatting applied.
- */
-#define JSON_C_TO_STRING_PLAIN 0
-/**
- * A flag for the json_object_to_json_string_ext() and
- * json_object_to_file_ext() functions which causes the output to have
- * minimal whitespace inserted to make things slightly more readable.
- */
-#define JSON_C_TO_STRING_SPACED (1<<0)
-/**
- * A flag for the json_object_to_json_string_ext() and
- * json_object_to_file_ext() functions which causes
- * the output to be formatted.
- *
- * See the "Two Space Tab" option at http://jsonformatter.curiousconcept.com/
- * for an example of the format.
- */
-#define JSON_C_TO_STRING_PRETTY (1<<1)
-/**
- * A flag to drop trailing zero for float values
- */
-#define JSON_C_TO_STRING_NOZERO (1<<2)
-
-#undef FALSE
-#define FALSE ((json_bool)0)
-
-#undef TRUE
-#define TRUE ((json_bool)1)
-
-extern const char *json_number_chars;
-extern const char *json_hex_chars;
-
-/* CAW: added for ANSI C iteration correctness */
-struct json_object_iter
-{
- char *key;
- struct json_object *val;
- struct lh_entry *entry;
-};
-
-/* forward structure definitions */
-
-typedef int json_bool;
-typedef struct printbuf printbuf;
-typedef struct lh_table lh_table;
-typedef struct array_list array_list;
-typedef struct json_object json_object;
-typedef struct json_object_iter json_object_iter;
-typedef struct json_tokener json_tokener;
-
-/**
- * Type of custom user delete functions. See json_object_set_serializer.
- */
-typedef void (json_object_delete_fn)(struct json_object *jso, void *userdata);
-
-/**
- * Type of a custom serialization function. See json_object_set_serializer.
- */
-typedef int (json_object_to_json_string_fn)(struct json_object *jso,
- struct printbuf *pb,
- int level,
- int flags);
-
-/* supported object types */
-
-typedef enum json_type {
- /* If you change this, be sure to update json_type_to_name() too */
- json_type_null,
- json_type_boolean,
- json_type_double,
- json_type_int,
- json_type_object,
- json_type_array,
- json_type_string
-} json_type;
-
-/* reference counting functions */
-
-/**
- * Increment the reference count of json_object, thereby grabbing shared
- * ownership of obj.
- *
- * @param obj the json_object instance
- */
-extern struct json_object* json_object_get(struct json_object *obj);
-
-/**
- * Decrement the reference count of json_object and free if it reaches zero.
- * You must have ownership of obj prior to doing this or you will cause an
- * imbalance in the reference count.
- *
- * @param obj the json_object instance
- * @returns 1 if the object was freed.
- */
-int json_object_put(struct json_object *obj);
-
-/**
- * Check if the json_object is of a given type
- * @param obj the json_object instance
- * @param type one of:
- json_type_null (i.e. obj == NULL),
- json_type_boolean,
- json_type_double,
- json_type_int,
- json_type_object,
- json_type_array,
- json_type_string
- */
-extern int json_object_is_type(struct json_object *obj, enum json_type type);
-
-/**
- * Get the type of the json_object. See also json_type_to_name() to turn this
- * into a string suitable, for instance, for logging.
- *
- * @param obj the json_object instance
- * @returns type being one of:
- json_type_null (i.e. obj == NULL),
- json_type_boolean,
- json_type_double,
- json_type_int,
- json_type_object,
- json_type_array,
- json_type_string
- */
-extern enum json_type json_object_get_type(struct json_object *obj);
-
-
-/** Stringify object to json format.
- * Equivalent to json_object_to_json_string_ext(obj, JSON_C_TO_STRING_SPACED)
- * The pointer you get is an internal of your json object. You don't
- * have to free it, later use of json_object_put() should be sufficient.
- * If you can not ensure there's no concurrent access to *obj use
- * strdup().
- * @param obj the json_object instance
- * @returns a string in JSON format
- */
-extern const char* json_object_to_json_string(struct json_object *obj);
-
-/** Stringify object to json format
- * @see json_object_to_json_string() for details on how to free string.
- * @param obj the json_object instance
- * @param flags formatting options, see JSON_C_TO_STRING_PRETTY and other constants
- * @returns a string in JSON format
- */
-extern const char* json_object_to_json_string_ext(struct json_object *obj, int
-flags);
-
-/**
- * Set a custom serialization function to be used when this particular object
- * is converted to a string by json_object_to_json_string.
- *
- * If a custom serializer is already set on this object, any existing
- * user_delete function is called before the new one is set.
- *
- * If to_string_func is NULL, the other parameters are ignored
- * and the default behaviour is reset.
- *
- * The userdata parameter is optional and may be passed as NULL. If provided,
- * it is passed to to_string_func as-is. This parameter may be NULL even
- * if user_delete is non-NULL.
- *
- * The user_delete parameter is optional and may be passed as NULL, even if
- * the userdata parameter is non-NULL. It will be called just before the
- * json_object is deleted, after it's reference count goes to zero
- * (see json_object_put()).
- * If this is not provided, it is up to the caller to free the userdata at
- * an appropriate time. (i.e. after the json_object is deleted)
- *
- * @param jso the object to customize
- * @param to_string_func the custom serialization function
- * @param userdata an optional opaque cookie
- * @param user_delete an optional function from freeing userdata
- */
-extern void json_object_set_serializer(json_object *jso,
- json_object_to_json_string_fn to_string_func,
- void *userdata,
- json_object_delete_fn *user_delete);
-
-/**
- * Simply call free on the userdata pointer.
- * Can be used with json_object_set_serializer().
- *
- * @param jso unused
- * @param userdata the pointer that is passed to free().
- */
-json_object_delete_fn json_object_free_userdata;
-
-/**
- * Copy the jso->_userdata string over to pb as-is.
- * Can be used with json_object_set_serializer().
- *
- * @param jso The object whose _userdata is used.
- * @param pb The destination buffer.
- * @param level Ignored.
- * @param flags Ignored.
- */
-json_object_to_json_string_fn json_object_userdata_to_json_string;
-
-
-/* object type methods */
-
-/** Create a new empty object with a reference count of 1. The caller of
- * this object initially has sole ownership. Remember, when using
- * json_object_object_add or json_object_array_put_idx, ownership will
- * transfer to the object/array. Call json_object_get if you want to maintain
- * shared ownership or also add this object as a child of multiple objects or
- * arrays. Any ownerships you acquired but did not transfer must be released
- * through json_object_put.
- *
- * @returns a json_object of type json_type_object
- */
-extern struct json_object* json_object_new_object(void);
-
-/** Get the hashtable of a json_object of type json_type_object
- * @param obj the json_object instance
- * @returns a linkhash
- */
-extern struct lh_table* json_object_get_object(struct json_object *obj);
-
-/** Get the size of an object in terms of the number of fields it has.
- * @param obj the json_object whose length to return
- */
-extern int json_object_object_length(struct json_object* obj);
-
-/** Add an object field to a json_object of type json_type_object
- *
- * The reference count will *not* be incremented. This is to make adding
- * fields to objects in code more compact. If you want to retain a reference
- * to an added object, independent of the lifetime of obj, you must wrap the
- * passed object with json_object_get.
- *
- * Upon calling this, the ownership of val transfers to obj. Thus you must
- * make sure that you do in fact have ownership over this object. For instance,
- * json_object_new_object will give you ownership until you transfer it,
- * whereas json_object_object_get does not.
- *
- * @param obj the json_object instance
- * @param key the object field name (a private copy will be duplicated)
- * @param val a json_object or NULL member to associate with the given field
- */
-extern void json_object_object_add(struct json_object* obj, const char *key,
- struct json_object *val);
-
-/** Get the json_object associate with a given object field
- *
- * *No* reference counts will be changed. There is no need to manually adjust
- * reference counts through the json_object_put/json_object_get methods unless
- * you need to have the child (value) reference maintain a different lifetime
- * than the owning parent (obj). Ownership of the returned value is retained
- * by obj (do not do json_object_put unless you have done a json_object_get).
- * If you delete the value from obj (json_object_object_del) and wish to access
- * the returned reference afterwards, make sure you have first gotten shared
- * ownership through json_object_get (& don't forget to do a json_object_put
- * or transfer ownership to prevent a memory leak).
- *
- * @param obj the json_object instance
- * @param key the object field name
- * @returns the json_object associated with the given field name
- * @deprecated Please use json_object_object_get_ex
- */
-THIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,
- const char *key));
-
-/** Get the json_object associated with a given object field.
- *
- * This returns true if the key is found, false in all other cases (including
- * if obj isn't a json_type_object).
- *
- * *No* reference counts will be changed. There is no need to manually adjust
- * reference counts through the json_object_put/json_object_get methods unless
- * you need to have the child (value) reference maintain a different lifetime
- * than the owning parent (obj). Ownership of value is retained by obj.
- *
- * @param obj the json_object instance
- * @param key the object field name
- * @param value a pointer where to store a reference to the json_object
- * associated with the given field name.
- *
- * It is safe to pass a NULL value.
- * @returns whether or not the key exists
- */
-extern json_bool json_object_object_get_ex(struct json_object* obj,
- const char *key,
- struct json_object **value);
-
-/** Delete the given json_object field
- *
- * The reference count will be decremented for the deleted object. If there
- * are no more owners of the value represented by this key, then the value is
- * freed. Otherwise, the reference to the value will remain in memory.
- *
- * @param obj the json_object instance
- * @param key the object field name
- */
-extern void json_object_object_del(struct json_object* obj, const char *key);
-
-/**
- * Iterate through all keys and values of an object.
- *
- * Adding keys to the object while iterating is NOT allowed.
- *
- * Deleting an existing key, or replacing an existing key with a
- * new value IS allowed.
- *
- * @param obj the json_object instance
- * @param key the local name for the char* key variable defined in the body
- * @param val the local name for the json_object* object variable defined in
- * the body
- */
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && __STDC_VERSION__ >= 199901L
-
-# define json_object_object_foreach(obj,key,val) \
- char *key; \
- struct json_object *val __attribute__((__unused__)); \
- for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \
- ({ if(entry ## key) { \
- key = (char*)entry ## key->k; \
- val = (struct json_object*)entry ## key->v; \
- entry_next ## key = entry ## key->next; \
- } ; entry ## key; }); \
- entry ## key = entry_next ## key )
-
-#else /* ANSI C or MSC */
-
-# define json_object_object_foreach(obj,key,val) \
- char *key;\
- struct json_object *val; \
- struct lh_entry *entry ## key; \
- struct lh_entry *entry_next ## key = NULL; \
- for(entry ## key = json_object_get_object(obj)->head; \
- (entry ## key ? ( \
- key = (char*)entry ## key->k, \
- val = (struct json_object*)entry ## key->v, \
- entry_next ## key = entry ## key->next, \
- entry ## key) : 0); \
- entry ## key = entry_next ## key)
-
-#endif /* defined(__GNUC__) && !defined(__STRICT_ANSI__) && __STDC_VERSION__ >= 199901L */
-
-/** Iterate through all keys and values of an object (ANSI C Safe)
- * @param obj the json_object instance
- * @param iter the object iterator
- */
-#define json_object_object_foreachC(obj,iter) \
- for(iter.entry = json_object_get_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_object*)iter.entry->v, iter.entry) : 0); iter.entry = iter.entry->next)
-
-/* Array type methods */
-
-/** Create a new empty json_object of type json_type_array
- * @returns a json_object of type json_type_array
- */
-extern struct json_object* json_object_new_array(void);
-
-/** Get the arraylist of a json_object of type json_type_array
- * @param obj the json_object instance
- * @returns an arraylist
- */
-extern struct array_list* json_object_get_array(struct json_object *obj);
-
-/** Get the length of a json_object of type json_type_array
- * @param obj the json_object instance
- * @returns an int
- */
-extern int json_object_array_length(struct json_object *obj);
-
-/** Sorts the elements of jso of type json_type_array
-*
-* Pointers to the json_object pointers will be passed as the two arguments
-* to @sort_fn
-*
-* @param obj the json_object instance
-* @param sort_fn a sorting function
-*/
-extern void json_object_array_sort(struct json_object *jso, int(*sort_fn)(const void *, const void *));
-
-/** Add an element to the end of a json_object of type json_type_array
- *
- * The reference count will *not* be incremented. This is to make adding
- * fields to objects in code more compact. If you want to retain a reference
- * to an added object you must wrap the passed object with json_object_get
- *
- * @param obj the json_object instance
- * @param val the json_object to be added
- */
-extern int json_object_array_add(struct json_object *obj,
- struct json_object *val);
-
-/** Insert or replace an element at a specified index in an array (a json_object of type json_type_array)
- *
- * The reference count will *not* be incremented. This is to make adding
- * fields to objects in code more compact. If you want to retain a reference
- * to an added object you must wrap the passed object with json_object_get
- *
- * The reference count of a replaced object will be decremented.
- *
- * The array size will be automatically be expanded to the size of the
- * index if the index is larger than the current size.
- *
- * @param obj the json_object instance
- * @param idx the index to insert the element at
- * @param val the json_object to be added
- */
-extern int json_object_array_put_idx(struct json_object *obj, int idx,
- struct json_object *val);
-
-/** Get the element at specificed index of the array (a json_object of type json_type_array)
- * @param obj the json_object instance
- * @param idx the index to get the element at
- * @returns the json_object at the specified index (or NULL)
- */
-extern struct json_object* json_object_array_get_idx(struct json_object *obj,
- int idx);
-
-/* json_bool type methods */
-
-/** Create a new empty json_object of type json_type_boolean
- * @param b a json_bool TRUE or FALSE (0 or 1)
- * @returns a json_object of type json_type_boolean
- */
-extern struct json_object* json_object_new_boolean(json_bool b);
-
-/** Get the json_bool value of a json_object
- *
- * The type is coerced to a json_bool if the passed object is not a json_bool.
- * integer and double objects will return FALSE if there value is zero
- * or TRUE otherwise. If the passed object is a string it will return
- * TRUE if it has a non zero length. If any other object type is passed
- * TRUE will be returned if the object is not NULL.
- *
- * @param obj the json_object instance
- * @returns a json_bool
- */
-extern json_bool json_object_get_boolean(struct json_object *obj);
-
-
-/* int type methods */
-
-/** Create a new empty json_object of type json_type_int
- * Note that values are stored as 64-bit values internally.
- * To ensure the full range is maintained, use json_object_new_int64 instead.
- * @param i the integer
- * @returns a json_object of type json_type_int
- */
-extern struct json_object* json_object_new_int(int32_t i);
-
-
-/** Create a new empty json_object of type json_type_int
- * @param i the integer
- * @returns a json_object of type json_type_int
- */
-extern struct json_object* json_object_new_int64(int64_t i);
-
-
-/** Get the int value of a json_object
- *
- * The type is coerced to a int if the passed object is not a int.
- * double objects will return their integer conversion. Strings will be
- * parsed as an integer. If no conversion exists then 0 is returned
- * and errno is set to EINVAL. null is equivalent to 0 (no error values set)
- *
- * Note that integers are stored internally as 64-bit values.
- * If the value of too big or too small to fit into 32-bit, INT32_MAX or
- * INT32_MIN are returned, respectively.
- *
- * @param obj the json_object instance
- * @returns an int
- */
-extern int32_t json_object_get_int(struct json_object *obj);
-
-/** Get the int value of a json_object
- *
- * The type is coerced to a int64 if the passed object is not a int64.
- * double objects will return their int64 conversion. Strings will be
- * parsed as an int64. If no conversion exists then 0 is returned.
- *
- * NOTE: Set errno to 0 directly before a call to this function to determine
- * whether or not conversion was successful (it does not clear the value for
- * you).
- *
- * @param obj the json_object instance
- * @returns an int64
- */
-extern int64_t json_object_get_int64(struct json_object *obj);
-
-
-/* double type methods */
-
-/** Create a new empty json_object of type json_type_double
- * @param d the double
- * @returns a json_object of type json_type_double
- */
-extern struct json_object* json_object_new_double(double d);
-
-/**
- * Create a new json_object of type json_type_double, using
- * the exact serialized representation of the value.
- *
- * This allows for numbers that would otherwise get displayed
- * inefficiently (e.g. 12.3 => "12.300000000000001") to be
- * serialized with the more convenient form.
- *
- * Note: this is used by json_tokener_parse_ex() to allow for
- * an exact re-serialization of a parsed object.
- *
- * An equivalent sequence of calls is:
- * @code
- * jso = json_object_new_double(d);
- * json_object_set_serializer(d, json_object_userdata_to_json_string,
- * strdup(ds), json_object_free_userdata)
- * @endcode
- *
- * @param d the numeric value of the double.
- * @param ds the string representation of the double. This will be copied.
- */
-extern struct json_object* json_object_new_double_s(double d, const char *ds);
-
-/** Get the double floating point value of a json_object
- *
- * The type is coerced to a double if the passed object is not a double.
- * integer objects will return their double conversion. Strings will be
- * parsed as a double. If no conversion exists then 0.0 is returned and
- * errno is set to EINVAL. null is equivalent to 0 (no error values set)
- *
- * If the value is too big to fit in a double, then the value is set to
- * the closest infinity with errno set to ERANGE. If strings cannot be
- * converted to their double value, then EINVAL is set & NaN is returned.
- *
- * Arrays of length 0 are interpreted as 0 (with no error flags set).
- * Arrays of length 1 are effectively cast to the equivalent object and
- * converted using the above rules. All other arrays set the error to
- * EINVAL & return NaN.
- *
- * NOTE: Set errno to 0 directly before a call to this function to
- * determine whether or not conversion was successful (it does not clear
- * the value for you).
- *
- * @param obj the json_object instance
- * @returns a double floating point number
- */
-extern double json_object_get_double(struct json_object *obj);
-
-
-/* string type methods */
-
-/** Create a new empty json_object of type json_type_string
- *
- * A copy of the string is made and the memory is managed by the json_object
- *
- * @param s the string
- * @returns a json_object of type json_type_string
- */
-extern struct json_object* json_object_new_string(const char *s);
-
-extern struct json_object* json_object_new_string_len(const char *s, int len);
-
-/** Get the string value of a json_object
- *
- * If the passed object is not of type json_type_string then the JSON
- * representation of the object is returned.
- *
- * The returned string memory is managed by the json_object and will
- * be freed when the reference count of the json_object drops to zero.
- *
- * @param obj the json_object instance
- * @returns a string
- */
-extern const char* json_object_get_string(struct json_object *obj);
-
-/** Get the string length of a json_object
- *
- * If the passed object is not of type json_type_string then zero
- * will be returned.
- *
- * @param obj the json_object instance
- * @returns int
- */
-extern int json_object_get_string_len(struct json_object *obj);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/json_object_iterator.c b/json-c/json_object_iterator.c
deleted file mode 100644
index 7066649..0000000
--- a/json-c/json_object_iterator.c
+++ /dev/null
@@ -1,168 +0,0 @@
-/**
-*******************************************************************************
-* @file json_object_iterator.c
-*
-* Copyright (c) 2009-2012 Hewlett-Packard Development Company, L.P.
-*
-* This library is free software; you can redistribute it and/or modify
-* it under the terms of the MIT license. See COPYING for details.
-*
-* @brief json-c forces clients to use its private data
-* structures for JSON Object iteration. This API
-* implementation corrects that by abstracting the
-* private json-c details.
-*
-*******************************************************************************
-*/
-
-#include
-
-#include "json.h"
-#include "json_object_private.h"
-
-#include "json_object_iterator.h"
-
-/**
- * How It Works
- *
- * For each JSON Object, json-c maintains a linked list of zero
- * or more lh_entry (link-hash entry) structures inside the
- * Object's link-hash table (lh_table).
- *
- * Each lh_entry structure on the JSON Object's linked list
- * represents a single name/value pair. The "next" field of the
- * last lh_entry in the list is set to NULL, which terminates
- * the list.
- *
- * We represent a valid iterator that refers to an actual
- * name/value pair via a pointer to the pair's lh_entry
- * structure set as the iterator's opaque_ field.
- *
- * We follow json-c's current pair list representation by
- * representing a valid "end" iterator (one that refers past the
- * last pair) with a NULL value in the iterator's opaque_ field.
- *
- * A JSON Object without any pairs in it will have the "head"
- * field of its lh_table structure set to NULL. For such an
- * object, json_object_iter_begin will return an iterator with
- * the opaque_ field set to NULL, which is equivalent to the
- * "end" iterator.
- *
- * When iterating, we simply update the iterator's opaque_ field
- * to point to the next lh_entry structure in the linked list.
- * opaque_ will become NULL once we iterate past the last pair
- * in the list, which makes the iterator equivalent to the "end"
- * iterator.
- */
-
-/// Our current representation of the "end" iterator;
-///
-/// @note May not always be NULL
-static const void* kObjectEndIterValue = NULL;
-
-/**
- * ****************************************************************************
- */
-struct json_object_iterator
-json_object_iter_begin(struct json_object* obj)
-{
- struct json_object_iterator iter;
- struct lh_table* pTable;
-
- /// @note json_object_get_object will return NULL if passed NULL
- /// or a non-json_type_object instance
- pTable = json_object_get_object(obj);
- JASSERT(NULL != pTable);
-
- /// @note For a pair-less Object, head is NULL, which matches our
- /// definition of the "end" iterator
- iter.opaque_ = pTable->head;
- return iter;
-}
-
-/**
- * ****************************************************************************
- */
-struct json_object_iterator
-json_object_iter_end(const struct json_object* obj)
-{
- struct json_object_iterator iter;
-
- JASSERT(NULL != obj);
- JASSERT(json_object_is_type(obj, json_type_object));
-
- iter.opaque_ = kObjectEndIterValue;
-
- return iter;
-}
-
-/**
- * ****************************************************************************
- */
-void
-json_object_iter_next(struct json_object_iterator* iter)
-{
- JASSERT(NULL != iter);
- JASSERT(kObjectEndIterValue != iter->opaque_);
-
- iter->opaque_ = ((struct lh_entry *)iter->opaque_)->next;
-}
-
-
-/**
- * ****************************************************************************
- */
-const char*
-json_object_iter_peek_name(const struct json_object_iterator* iter)
-{
- JASSERT(NULL != iter);
- JASSERT(kObjectEndIterValue != iter->opaque_);
-
- return (const char*)(((struct lh_entry *)iter->opaque_)->k);
-}
-
-
-/**
- * ****************************************************************************
- */
-struct json_object*
-json_object_iter_peek_value(const struct json_object_iterator* iter)
-{
- JASSERT(NULL != iter);
- JASSERT(kObjectEndIterValue != iter->opaque_);
-
- return (struct json_object*)(((struct lh_entry *)iter->opaque_)->v);
-}
-
-
-/**
- * ****************************************************************************
- */
-json_bool
-json_object_iter_equal(const struct json_object_iterator* iter1,
- const struct json_object_iterator* iter2)
-{
- JASSERT(NULL != iter1);
- JASSERT(NULL != iter2);
-
- return (iter1->opaque_ == iter2->opaque_);
-}
-
-
-/**
- * ****************************************************************************
- */
-struct json_object_iterator
-json_object_iter_init_default(void)
-{
- struct json_object_iterator iter;
-
- /**
- * @note Make this a negative, invalid value, such that
- * accidental access to it would likely be trapped by the
- * hardware as an invalid address.
- */
- iter.opaque_ = NULL;
-
- return iter;
-}
diff --git a/json-c/json_object_iterator.h b/json-c/json_object_iterator.h
deleted file mode 100644
index 44c9fb2..0000000
--- a/json-c/json_object_iterator.h
+++ /dev/null
@@ -1,239 +0,0 @@
-/**
-*******************************************************************************
-* @file json_object_iterator.h
-*
-* Copyright (c) 2009-2012 Hewlett-Packard Development Company, L.P.
-*
-* This library is free software; you can redistribute it and/or modify
-* it under the terms of the MIT license. See COPYING for details.
-*
-* @brief json-c forces clients to use its private data
-* structures for JSON Object iteration. This API
-* corrects that by abstracting the private json-c
-* details.
-*
-* API attributes:
-* * Thread-safe: NO
-* * Reentrant: NO
-*
-*******************************************************************************
-*/
-
-
-#ifndef JSON_OBJECT_ITERATOR_H
-#define JSON_OBJECT_ITERATOR_H
-
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Forward declaration for the opaque iterator information.
- */
-struct json_object_iter_info_;
-
-/**
- * The opaque iterator that references a name/value pair within
- * a JSON Object instance or the "end" iterator value.
- */
-struct json_object_iterator {
- const void* opaque_;
-};
-
-
-/**
- * forward declaration of json-c's JSON value instance structure
- */
-struct json_object;
-
-
-/**
- * Initializes an iterator structure to a "default" value that
- * is convenient for initializing an iterator variable to a
- * default state (e.g., initialization list in a class'
- * constructor).
- *
- * @code
- * struct json_object_iterator iter = json_object_iter_init_default();
- * MyClass() : iter_(json_object_iter_init_default())
- * @endcode
- *
- * @note The initialized value doesn't reference any specific
- * pair, is considered an invalid iterator, and MUST NOT
- * be passed to any json-c API that expects a valid
- * iterator.
- *
- * @note User and internal code MUST NOT make any assumptions
- * about and dependencies on the value of the "default"
- * iterator value.
- *
- * @return json_object_iterator
- */
-struct json_object_iterator
-json_object_iter_init_default(void);
-
-/** Retrieves an iterator to the first pair of the JSON Object.
- *
- * @warning Any modification of the underlying pair invalidates all
- * iterators to that pair.
- *
- * @param obj JSON Object instance (MUST be of type json_object)
- *
- * @return json_object_iterator If the JSON Object has at
- * least one pair, on return, the iterator refers
- * to the first pair. If the JSON Object doesn't
- * have any pairs, the returned iterator is
- * equivalent to the "end" iterator for the same
- * JSON Object instance.
- *
- * @code
- * struct json_object_iterator it;
- * struct json_object_iterator itEnd;
- * struct json_object* obj;
- *
- * obj = json_tokener_parse("{'first':'george', 'age':100}");
- * it = json_object_iter_begin(obj);
- * itEnd = json_object_iter_end(obj);
- *
- * while (!json_object_iter_equal(&it, &itEnd)) {
- * printf("%s\n",
- * json_object_iter_peek_name(&it));
- * json_object_iter_next(&it);
- * }
- *
- * @endcode
- */
-struct json_object_iterator
-json_object_iter_begin(struct json_object* obj);
-
-/** Retrieves the iterator that represents the position beyond the
- * last pair of the given JSON Object instance.
- *
- * @warning Do NOT write code that assumes that the "end"
- * iterator value is NULL, even if it is so in a
- * particular instance of the implementation.
- *
- * @note The reason we do not (and MUST NOT) provide
- * "json_object_iter_is_end(json_object_iterator* iter)"
- * type of API is because it would limit the underlying
- * representation of name/value containment (or force us
- * to add additional, otherwise unnecessary, fields to
- * the iterator structure). The "end" iterator and the
- * equality test method, on the other hand, permit us to
- * cleanly abstract pretty much any reasonable underlying
- * representation without burdening the iterator
- * structure with unnecessary data.
- *
- * @note For performance reasons, memorize the "end" iterator prior
- * to any loop.
- *
- * @param obj JSON Object instance (MUST be of type json_object)
- *
- * @return json_object_iterator On return, the iterator refers
- * to the "end" of the Object instance's pairs
- * (i.e., NOT the last pair, but "beyond the last
- * pair" value)
- */
-struct json_object_iterator
-json_object_iter_end(const struct json_object* obj);
-
-/** Returns an iterator to the next pair, if any
- *
- * @warning Any modification of the underlying pair
- * invalidates all iterators to that pair.
- *
- * @param iter [IN/OUT] Pointer to iterator that references a
- * name/value pair; MUST be a valid, non-end iterator.
- * WARNING: bad things will happen if invalid or "end"
- * iterator is passed. Upon return will contain the
- * reference to the next pair if there is one; if there
- * are no more pairs, will contain the "end" iterator
- * value, which may be compared against the return value
- * of json_object_iter_end() for the same JSON Object
- * instance.
- */
-void
-json_object_iter_next(struct json_object_iterator* iter);
-
-
-/** Returns a const pointer to the name of the pair referenced
- * by the given iterator.
- *
- * @param iter pointer to iterator that references a name/value
- * pair; MUST be a valid, non-end iterator.
- *
- * @warning bad things will happen if an invalid or
- * "end" iterator is passed.
- *
- * @return const char* Pointer to the name of the referenced
- * name/value pair. The name memory belongs to the
- * name/value pair, will be freed when the pair is
- * deleted or modified, and MUST NOT be modified or
- * freed by the user.
- */
-const char*
-json_object_iter_peek_name(const struct json_object_iterator* iter);
-
-
-/** Returns a pointer to the json-c instance representing the
- * value of the referenced name/value pair, without altering
- * the instance's reference count.
- *
- * @param iter pointer to iterator that references a name/value
- * pair; MUST be a valid, non-end iterator.
- *
- * @warning bad things will happen if invalid or
- * "end" iterator is passed.
- *
- * @return struct json_object* Pointer to the json-c value
- * instance of the referenced name/value pair; the
- * value's reference count is not changed by this
- * function: if you plan to hold on to this json-c node,
- * take a look at json_object_get() and
- * json_object_put(). IMPORTANT: json-c API represents
- * the JSON Null value as a NULL json_object instance
- * pointer.
- */
-struct json_object*
-json_object_iter_peek_value(const struct json_object_iterator* iter);
-
-
-/** Tests two iterators for equality. Typically used to test
- * for end of iteration by comparing an iterator to the
- * corresponding "end" iterator (that was derived from the same
- * JSON Object instance).
- *
- * @note The reason we do not (and MUST NOT) provide
- * "json_object_iter_is_end(json_object_iterator* iter)"
- * type of API is because it would limit the underlying
- * representation of name/value containment (or force us
- * to add additional, otherwise unnecessary, fields to
- * the iterator structure). The equality test method, on
- * the other hand, permits us to cleanly abstract pretty
- * much any reasonable underlying representation.
- *
- * @param iter1 Pointer to first valid, non-NULL iterator
- * @param iter2 POinter to second valid, non-NULL iterator
- *
- * @warning if a NULL iterator pointer or an uninitialized
- * or invalid iterator, or iterators derived from
- * different JSON Object instances are passed, bad things
- * will happen!
- *
- * @return json_bool non-zero if iterators are equal (i.e., both
- * reference the same name/value pair or are both at
- * "end"); zero if they are not equal.
- */
-json_bool
-json_object_iter_equal(const struct json_object_iterator* iter1,
- const struct json_object_iterator* iter2);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* JSON_OBJECT_ITERATOR_H */
diff --git a/json-c/json_object_private.h b/json-c/json_object_private.h
deleted file mode 100644
index 5ed791b..0000000
--- a/json-c/json_object_private.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * $Id: json_object_private.h,v 1.4 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _json_object_private_h_
-#define _json_object_private_h_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void (json_object_private_delete_fn)(struct json_object *o);
-
-struct json_object
-{
- enum json_type o_type;
- json_object_private_delete_fn *_delete;
- json_object_to_json_string_fn *_to_json_string;
- int _ref_count;
- struct printbuf *_pb;
- union data {
- json_bool c_boolean;
- double c_double;
- int64_t c_int64;
- struct lh_table *c_object;
- struct array_list *c_array;
- struct {
- char *str;
- int len;
- } c_string;
- } o;
- json_object_delete_fn *_user_delete;
- void *_userdata;
-};
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/json_tokener.c b/json-c/json_tokener.c
deleted file mode 100644
index 60e81f2..0000000
--- a/json-c/json_tokener.c
+++ /dev/null
@@ -1,887 +0,0 @@
-/*
- * $Id: json_tokener.c,v 1.20 2006/07/25 03:24:50 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- *
- * Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved.
- * The copyrights to the contents of this file are licensed under the MIT License
- * (http://www.opensource.org/licenses/mit-license.php)
- */
-
-#include "config.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "debug.h"
-#include "printbuf.h"
-#include "arraylist.h"
-#include "json_inttypes.h"
-#include "json_object.h"
-#include "json_tokener.h"
-#include "json_util.h"
-
-#ifdef HAVE_LOCALE_H
-#include
-#endif /* HAVE_LOCALE_H */
-
-#define jt_hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
-
-#if !HAVE_STRDUP && defined(_MSC_VER)
- /* MSC has the version as _strdup */
-# define strdup _strdup
-#elif !HAVE_STRDUP
-# error You do not have strdup on your system.
-#endif /* HAVE_STRDUP */
-
-#if !HAVE_STRNCASECMP && defined(_MSC_VER)
- /* MSC has the version as _strnicmp */
-# define strncasecmp _strnicmp
-#elif !HAVE_STRNCASECMP
-# error You do not have strncasecmp on your system.
-#endif /* HAVE_STRNCASECMP */
-
-/* Use C99 NAN by default; if not available, nan("") should work too. */
-#ifndef NAN
-#define NAN nan("")
-#endif /* !NAN */
-
-static const char json_null_str[] = "null";
-static const int json_null_str_len = sizeof(json_null_str) - 1;
-static const char json_inf_str[] = "Infinity";
-static const int json_inf_str_len = sizeof(json_inf_str) - 1;
-static const char json_nan_str[] = "NaN";
-static const int json_nan_str_len = sizeof(json_nan_str) - 1;
-static const char json_true_str[] = "true";
-static const int json_true_str_len = sizeof(json_true_str) - 1;
-static const char json_false_str[] = "false";
-static const int json_false_str_len = sizeof(json_false_str) - 1;
-
-static const char* json_tokener_errors[] = {
- "success",
- "continue",
- "nesting too deep",
- "unexpected end of data",
- "unexpected character",
- "null expected",
- "boolean expected",
- "number expected",
- "array value separator ',' expected",
- "quoted object property name expected",
- "object property name separator ':' expected",
- "object value separator ',' expected",
- "invalid string sequence",
- "expected comment",
- "buffer size overflow"
-};
-
-const char *json_tokener_error_desc(enum json_tokener_error jerr)
-{
- int jerr_int = (int)jerr;
- if (jerr_int < 0 || jerr_int >= (int)(sizeof(json_tokener_errors) / sizeof(json_tokener_errors[0])))
- return "Unknown error, invalid json_tokener_error value passed to json_tokener_error_desc()";
- return json_tokener_errors[jerr];
-}
-
-enum json_tokener_error json_tokener_get_error(json_tokener *tok)
-{
- return tok->err;
-}
-
-/* Stuff for decoding unicode sequences */
-#define IS_HIGH_SURROGATE(uc) (((uc) & 0xFC00) == 0xD800)
-#define IS_LOW_SURROGATE(uc) (((uc) & 0xFC00) == 0xDC00)
-#define DECODE_SURROGATE_PAIR(hi,lo) ((((hi) & 0x3FF) << 10) + ((lo) & 0x3FF) + 0x10000)
-static unsigned char utf8_replacement_char[3] = { 0xEF, 0xBF, 0xBD };
-
-struct json_tokener* json_tokener_new_ex(int depth)
-{
- struct json_tokener *tok;
-
- tok = (struct json_tokener*)calloc(1, sizeof(struct json_tokener));
- if (!tok) return NULL;
- tok->stack = (struct json_tokener_srec *)calloc(depth, sizeof(struct json_tokener_srec));
- if (!tok->stack) {
- free(tok);
- return NULL;
- }
- tok->pb = printbuf_new();
- tok->max_depth = depth;
- json_tokener_reset(tok);
- return tok;
-}
-
-struct json_tokener* json_tokener_new(void)
-{
- return json_tokener_new_ex(JSON_TOKENER_DEFAULT_DEPTH);
-}
-
-void json_tokener_free(struct json_tokener *tok)
-{
- json_tokener_reset(tok);
- if (tok->pb) printbuf_free(tok->pb);
- if (tok->stack) free(tok->stack);
- free(tok);
-}
-
-static void json_tokener_reset_level(struct json_tokener *tok, int depth)
-{
- tok->stack[depth].state = json_tokener_state_eatws;
- tok->stack[depth].saved_state = json_tokener_state_start;
- json_object_put(tok->stack[depth].current);
- tok->stack[depth].current = NULL;
- free(tok->stack[depth].obj_field_name);
- tok->stack[depth].obj_field_name = NULL;
-}
-
-void json_tokener_reset(struct json_tokener *tok)
-{
- int i;
- if (!tok)
- return;
-
- for(i = tok->depth; i >= 0; i--)
- json_tokener_reset_level(tok, i);
- tok->depth = 0;
- tok->err = json_tokener_success;
-}
-
-struct json_object* json_tokener_parse(const char *str)
-{
- enum json_tokener_error jerr_ignored;
- struct json_object* obj;
- obj = json_tokener_parse_verbose(str, &jerr_ignored);
- return obj;
-}
-
-struct json_object* json_tokener_parse_verbose(const char *str, enum json_tokener_error *error)
-{
- struct json_tokener* tok;
- struct json_object* obj;
-
- tok = json_tokener_new();
- if (!tok)
- return NULL;
- obj = json_tokener_parse_ex(tok, str, -1);
- *error = tok->err;
- if(tok->err != json_tokener_success) {
- if (obj != NULL)
- json_object_put(obj);
- obj = NULL;
- }
-
- json_tokener_free(tok);
- return obj;
-}
-
-#define state tok->stack[tok->depth].state
-#define saved_state tok->stack[tok->depth].saved_state
-#define current tok->stack[tok->depth].current
-#define obj_field_name tok->stack[tok->depth].obj_field_name
-
-/* Optimization:
- * json_tokener_parse_ex() consumed a lot of CPU in its main loop,
- * iterating character-by character. A large performance boost is
- * achieved by using tighter loops to locally handle units such as
- * comments and strings. Loops that handle an entire token within
- * their scope also gather entire strings and pass them to
- * printbuf_memappend() in a single call, rather than calling
- * printbuf_memappend() one char at a time.
- *
- * PEEK_CHAR() and ADVANCE_CHAR() macros are used for code that is
- * common to both the main loop and the tighter loops.
- */
-
-/* PEEK_CHAR(dest, tok) macro:
- * Peeks at the current char and stores it in dest.
- * Returns 1 on success, sets tok->err and returns 0 if no more chars.
- * Implicit inputs: str, len vars
- */
-#define PEEK_CHAR(dest, tok) \
- (((tok)->char_offset == len) ? \
- (((tok)->depth == 0 && state == json_tokener_state_eatws && saved_state == json_tokener_state_finish) ? \
- (((tok)->err = json_tokener_success), 0) \
- : \
- (((tok)->err = json_tokener_continue), 0) \
- ) : \
- (((dest) = *str), 1) \
- )
-
-/* ADVANCE_CHAR() macro:
- * Incrementes str & tok->char_offset.
- * For convenience of existing conditionals, returns the old value of c (0 on eof)
- * Implicit inputs: c var
- */
-#define ADVANCE_CHAR(str, tok) \
- ( ++(str), ((tok)->char_offset)++, c)
-
-
-/* End optimization macro defs */
-
-
-struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
- const char *str, int len)
-{
- struct json_object *obj = NULL;
- char c = '\1';
-#ifdef HAVE_SETLOCALE
- char *oldlocale=NULL, *tmplocale;
-
- tmplocale = setlocale(LC_NUMERIC, NULL);
- if (tmplocale) oldlocale = strdup(tmplocale);
- setlocale(LC_NUMERIC, "C");
-#endif
-
- tok->char_offset = 0;
- tok->err = json_tokener_success;
-
- /* this interface is presently not 64-bit clean due to the int len argument
- and the internal printbuf interface that takes 32-bit int len arguments
- so the function limits the maximum string size to INT32_MAX (2GB).
- If the function is called with len == -1 then strlen is called to check
- the string length is less than INT32_MAX (2GB) */
- if ((len < -1) || (len == -1 && strlen(str) > INT32_MAX)) {
- tok->err = json_tokener_error_size;
- return NULL;
- }
-
- while (PEEK_CHAR(c, tok)) {
-
- redo_char:
- switch(state) {
-
- case json_tokener_state_eatws:
- /* Advance until we change state */
- while (isspace((int)c)) {
- if ((!ADVANCE_CHAR(str, tok)) || (!PEEK_CHAR(c, tok)))
- goto out;
- }
- if(c == '/' && !(tok->flags & JSON_TOKENER_STRICT)) {
- printbuf_reset(tok->pb);
- printbuf_memappend_fast(tok->pb, &c, 1);
- state = json_tokener_state_comment_start;
- } else {
- state = saved_state;
- goto redo_char;
- }
- break;
-
- case json_tokener_state_start:
- switch(c) {
- case '{':
- state = json_tokener_state_eatws;
- saved_state = json_tokener_state_object_field_start;
- current = json_object_new_object();
- break;
- case '[':
- state = json_tokener_state_eatws;
- saved_state = json_tokener_state_array;
- current = json_object_new_array();
- break;
- case 'I':
- case 'i':
- state = json_tokener_state_inf;
- printbuf_reset(tok->pb);
- tok->st_pos = 0;
- goto redo_char;
- case 'N':
- case 'n':
- state = json_tokener_state_null; // or NaN
- printbuf_reset(tok->pb);
- tok->st_pos = 0;
- goto redo_char;
- case '\'':
- if (tok->flags & JSON_TOKENER_STRICT) {
- /* in STRICT mode only double-quote are allowed */
- tok->err = json_tokener_error_parse_unexpected;
- goto out;
- }
- case '"':
- state = json_tokener_state_string;
- printbuf_reset(tok->pb);
- tok->quote_char = c;
- break;
- case 'T':
- case 't':
- case 'F':
- case 'f':
- state = json_tokener_state_boolean;
- printbuf_reset(tok->pb);
- tok->st_pos = 0;
- goto redo_char;
-#if defined(__GNUC__)
- case '0' ... '9':
-#else
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
-#endif
- case '-':
- state = json_tokener_state_number;
- printbuf_reset(tok->pb);
- tok->is_double = 0;
- goto redo_char;
- default:
- tok->err = json_tokener_error_parse_unexpected;
- goto out;
- }
- break;
-
- case json_tokener_state_finish:
- if(tok->depth == 0) goto out;
- obj = json_object_get(current);
- json_tokener_reset_level(tok, tok->depth);
- tok->depth--;
- goto redo_char;
-
- case json_tokener_state_inf: /* aka starts with 'i' */
- {
- int size_inf;
- int is_negative = 0;
-
- printbuf_memappend_fast(tok->pb, &c, 1);
- size_inf = json_min(tok->st_pos+1, json_inf_str_len);
- char *infbuf = tok->pb->buf;
- if (*infbuf == '-')
- {
- infbuf++;
- is_negative = 1;
- }
- if ((!(tok->flags & JSON_TOKENER_STRICT) &&
- strncasecmp(json_inf_str, infbuf, size_inf) == 0) ||
- (strncmp(json_inf_str, infbuf, size_inf) == 0)
- )
- {
- if (tok->st_pos == json_inf_str_len)
- {
- current = json_object_new_double(is_negative ? -INFINITY : INFINITY);
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- goto redo_char;
- }
- } else {
- tok->err = json_tokener_error_parse_unexpected;
- goto out;
- }
- tok->st_pos++;
- }
- break;
- case json_tokener_state_null: /* aka starts with 'n' */
- {
- int size;
- int size_nan;
- printbuf_memappend_fast(tok->pb, &c, 1);
- size = json_min(tok->st_pos+1, json_null_str_len);
- size_nan = json_min(tok->st_pos+1, json_nan_str_len);
- if((!(tok->flags & JSON_TOKENER_STRICT) &&
- strncasecmp(json_null_str, tok->pb->buf, size) == 0)
- || (strncmp(json_null_str, tok->pb->buf, size) == 0)
- ) {
- if (tok->st_pos == json_null_str_len) {
- current = NULL;
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- goto redo_char;
- }
- }
- else if ((!(tok->flags & JSON_TOKENER_STRICT) &&
- strncasecmp(json_nan_str, tok->pb->buf, size_nan) == 0) ||
- (strncmp(json_nan_str, tok->pb->buf, size_nan) == 0)
- )
- {
- if (tok->st_pos == json_nan_str_len)
- {
- current = json_object_new_double(NAN);
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- goto redo_char;
- }
- } else {
- tok->err = json_tokener_error_parse_null;
- goto out;
- }
- tok->st_pos++;
- }
- break;
-
- case json_tokener_state_comment_start:
- if(c == '*') {
- state = json_tokener_state_comment;
- } else if(c == '/') {
- state = json_tokener_state_comment_eol;
- } else {
- tok->err = json_tokener_error_parse_comment;
- goto out;
- }
- printbuf_memappend_fast(tok->pb, &c, 1);
- break;
-
- case json_tokener_state_comment:
- {
- /* Advance until we change state */
- const char *case_start = str;
- while(c != '*') {
- if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- goto out;
- }
- }
- printbuf_memappend_fast(tok->pb, case_start, 1+str-case_start);
- state = json_tokener_state_comment_end;
- }
- break;
-
- case json_tokener_state_comment_eol:
- {
- /* Advance until we change state */
- const char *case_start = str;
- while(c != '\n') {
- if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- goto out;
- }
- }
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- MC_DEBUG("json_tokener_comment: %s\n", tok->pb->buf);
- state = json_tokener_state_eatws;
- }
- break;
-
- case json_tokener_state_comment_end:
- printbuf_memappend_fast(tok->pb, &c, 1);
- if(c == '/') {
- MC_DEBUG("json_tokener_comment: %s\n", tok->pb->buf);
- state = json_tokener_state_eatws;
- } else {
- state = json_tokener_state_comment;
- }
- break;
-
- case json_tokener_state_string:
- {
- /* Advance until we change state */
- const char *case_start = str;
- while(1) {
- if(c == tok->quote_char) {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- current = json_object_new_string_len(tok->pb->buf, tok->pb->bpos);
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- break;
- } else if(c == '\\') {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- saved_state = json_tokener_state_string;
- state = json_tokener_state_string_escape;
- break;
- }
- if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- goto out;
- }
- }
- }
- break;
-
- case json_tokener_state_string_escape:
- switch(c) {
- case '"':
- case '\\':
- case '/':
- printbuf_memappend_fast(tok->pb, &c, 1);
- state = saved_state;
- break;
- case 'b':
- case 'n':
- case 'r':
- case 't':
- case 'f':
- if(c == 'b') printbuf_memappend_fast(tok->pb, "\b", 1);
- else if(c == 'n') printbuf_memappend_fast(tok->pb, "\n", 1);
- else if(c == 'r') printbuf_memappend_fast(tok->pb, "\r", 1);
- else if(c == 't') printbuf_memappend_fast(tok->pb, "\t", 1);
- else if(c == 'f') printbuf_memappend_fast(tok->pb, "\f", 1);
- state = saved_state;
- break;
- case 'u':
- tok->ucs_char = 0;
- tok->st_pos = 0;
- state = json_tokener_state_escape_unicode;
- break;
- default:
- tok->err = json_tokener_error_parse_string;
- goto out;
- }
- break;
-
- case json_tokener_state_escape_unicode:
- {
- unsigned int got_hi_surrogate = 0;
-
- /* Handle a 4-byte sequence, or two sequences if a surrogate pair */
- while(1) {
- if(strchr(json_hex_chars, c)) {
- tok->ucs_char += ((unsigned int)jt_hexdigit(c) << ((3-tok->st_pos++)*4));
- if(tok->st_pos == 4) {
- unsigned char unescaped_utf[4];
-
- if (got_hi_surrogate) {
- if (IS_LOW_SURROGATE(tok->ucs_char)) {
- /* Recalculate the ucs_char, then fall thru to process normally */
- tok->ucs_char = DECODE_SURROGATE_PAIR(got_hi_surrogate, tok->ucs_char);
- } else {
- /* Hi surrogate was not followed by a low surrogate */
- /* Replace the hi and process the rest normally */
- printbuf_memappend_fast(tok->pb, (char*)utf8_replacement_char, 3);
- }
- got_hi_surrogate = 0;
- }
-
- if (tok->ucs_char < 0x80) {
- unescaped_utf[0] = tok->ucs_char;
- printbuf_memappend_fast(tok->pb, (char*)unescaped_utf, 1);
- } else if (tok->ucs_char < 0x800) {
- unescaped_utf[0] = 0xc0 | (tok->ucs_char >> 6);
- unescaped_utf[1] = 0x80 | (tok->ucs_char & 0x3f);
- printbuf_memappend_fast(tok->pb, (char*)unescaped_utf, 2);
- } else if (IS_HIGH_SURROGATE(tok->ucs_char)) {
- /* Got a high surrogate. Remember it and look for the
- * the beginning of another sequence, which should be the
- * low surrogate.
- */
- got_hi_surrogate = tok->ucs_char;
- /* Not at end, and the next two chars should be "\u" */
- if ((tok->char_offset+1 != len) &&
- (tok->char_offset+2 != len) &&
- (str[1] == '\\') &&
- (str[2] == 'u'))
- {
- /* Advance through the 16 bit surrogate, and move on to the
- * next sequence. The next step is to process the following
- * characters.
- */
- if( !ADVANCE_CHAR(str, tok) || !ADVANCE_CHAR(str, tok) ) {
- printbuf_memappend_fast(tok->pb, (char*)utf8_replacement_char, 3);
- }
- /* Advance to the first char of the next sequence and
- * continue processing with the next sequence.
- */
- if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) {
- printbuf_memappend_fast(tok->pb, (char*)utf8_replacement_char, 3);
- goto out;
- }
- tok->ucs_char = 0;
- tok->st_pos = 0;
- continue; /* other json_tokener_state_escape_unicode */
- } else {
- /* Got a high surrogate without another sequence following
- * it. Put a replacement char in for the hi surrogate
- * and pretend we finished.
- */
- printbuf_memappend_fast(tok->pb, (char*)utf8_replacement_char, 3);
- }
- } else if (IS_LOW_SURROGATE(tok->ucs_char)) {
- /* Got a low surrogate not preceded by a high */
- printbuf_memappend_fast(tok->pb, (char*)utf8_replacement_char, 3);
- } else if (tok->ucs_char < 0x10000) {
- unescaped_utf[0] = 0xe0 | (tok->ucs_char >> 12);
- unescaped_utf[1] = 0x80 | ((tok->ucs_char >> 6) & 0x3f);
- unescaped_utf[2] = 0x80 | (tok->ucs_char & 0x3f);
- printbuf_memappend_fast(tok->pb, (char*)unescaped_utf, 3);
- } else if (tok->ucs_char < 0x110000) {
- unescaped_utf[0] = 0xf0 | ((tok->ucs_char >> 18) & 0x07);
- unescaped_utf[1] = 0x80 | ((tok->ucs_char >> 12) & 0x3f);
- unescaped_utf[2] = 0x80 | ((tok->ucs_char >> 6) & 0x3f);
- unescaped_utf[3] = 0x80 | (tok->ucs_char & 0x3f);
- printbuf_memappend_fast(tok->pb, (char*)unescaped_utf, 4);
- } else {
- /* Don't know what we got--insert the replacement char */
- printbuf_memappend_fast(tok->pb, (char*)utf8_replacement_char, 3);
- }
- state = saved_state;
- break;
- }
- } else {
- tok->err = json_tokener_error_parse_string;
- goto out;
- }
- if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) {
- if (got_hi_surrogate) /* Clean up any pending chars */
- printbuf_memappend_fast(tok->pb, (char*)utf8_replacement_char, 3);
- goto out;
- }
- }
- }
- break;
-
- case json_tokener_state_boolean:
- {
- int size1, size2;
- printbuf_memappend_fast(tok->pb, &c, 1);
- size1 = json_min(tok->st_pos+1, json_true_str_len);
- size2 = json_min(tok->st_pos+1, json_false_str_len);
- if((!(tok->flags & JSON_TOKENER_STRICT) &&
- strncasecmp(json_true_str, tok->pb->buf, size1) == 0)
- || (strncmp(json_true_str, tok->pb->buf, size1) == 0)
- ) {
- if(tok->st_pos == json_true_str_len) {
- current = json_object_new_boolean(1);
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- goto redo_char;
- }
- } else if((!(tok->flags & JSON_TOKENER_STRICT) &&
- strncasecmp(json_false_str, tok->pb->buf, size2) == 0)
- || (strncmp(json_false_str, tok->pb->buf, size2) == 0)) {
- if(tok->st_pos == json_false_str_len) {
- current = json_object_new_boolean(0);
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- goto redo_char;
- }
- } else {
- tok->err = json_tokener_error_parse_boolean;
- goto out;
- }
- tok->st_pos++;
- }
- break;
-
- case json_tokener_state_number:
- {
- /* Advance until we change state */
- const char *case_start = str;
- int case_len=0;
- while(c && strchr(json_number_chars, c)) {
- ++case_len;
- if(c == '.' || c == 'e' || c == 'E')
- tok->is_double = 1;
- if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) {
- printbuf_memappend_fast(tok->pb, case_start, case_len);
- goto out;
- }
- }
- if (case_len>0)
- printbuf_memappend_fast(tok->pb, case_start, case_len);
-
- // Check for -Infinity
- if (tok->pb->buf[0] == '-' && case_len == 1 &&
- (c == 'i' || c == 'I'))
- {
- state = json_tokener_state_inf;
- goto redo_char;
- }
- }
- {
- int64_t num64;
- double numd;
- if (!tok->is_double && json_parse_int64(tok->pb->buf, &num64) == 0) {
- if (num64 && tok->pb->buf[0]=='0' && (tok->flags & JSON_TOKENER_STRICT)) {
- /* in strict mode, number must not start with 0 */
- tok->err = json_tokener_error_parse_number;
- goto out;
- }
- current = json_object_new_int64(num64);
- }
- else if(tok->is_double && json_parse_double(tok->pb->buf, &numd) == 0)
- {
- current = json_object_new_double_s(numd, tok->pb->buf);
- } else {
- tok->err = json_tokener_error_parse_number;
- goto out;
- }
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- goto redo_char;
- }
- break;
-
- case json_tokener_state_array_after_sep:
- case json_tokener_state_array:
- if(c == ']') {
- if (state == json_tokener_state_array_after_sep &&
- (tok->flags & JSON_TOKENER_STRICT))
- {
- tok->err = json_tokener_error_parse_unexpected;
- goto out;
- }
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- } else {
- if(tok->depth >= tok->max_depth-1) {
- tok->err = json_tokener_error_depth;
- goto out;
- }
- state = json_tokener_state_array_add;
- tok->depth++;
- json_tokener_reset_level(tok, tok->depth);
- goto redo_char;
- }
- break;
-
- case json_tokener_state_array_add:
- json_object_array_add(current, obj);
- saved_state = json_tokener_state_array_sep;
- state = json_tokener_state_eatws;
- goto redo_char;
-
- case json_tokener_state_array_sep:
- if(c == ']') {
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- } else if(c == ',') {
- saved_state = json_tokener_state_array_after_sep;
- state = json_tokener_state_eatws;
- } else {
- tok->err = json_tokener_error_parse_array;
- goto out;
- }
- break;
-
- case json_tokener_state_object_field_start:
- case json_tokener_state_object_field_start_after_sep:
- if(c == '}') {
- if (state == json_tokener_state_object_field_start_after_sep &&
- (tok->flags & JSON_TOKENER_STRICT))
- {
- tok->err = json_tokener_error_parse_unexpected;
- goto out;
- }
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- } else if (c == '"' || c == '\'') {
- tok->quote_char = c;
- printbuf_reset(tok->pb);
- state = json_tokener_state_object_field;
- } else {
- tok->err = json_tokener_error_parse_object_key_name;
- goto out;
- }
- break;
-
- case json_tokener_state_object_field:
- {
- /* Advance until we change state */
- const char *case_start = str;
- while(1) {
- if(c == tok->quote_char) {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- obj_field_name = strdup(tok->pb->buf);
- saved_state = json_tokener_state_object_field_end;
- state = json_tokener_state_eatws;
- break;
- } else if(c == '\\') {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- saved_state = json_tokener_state_object_field;
- state = json_tokener_state_string_escape;
- break;
- }
- if (!ADVANCE_CHAR(str, tok) || !PEEK_CHAR(c, tok)) {
- printbuf_memappend_fast(tok->pb, case_start, str-case_start);
- goto out;
- }
- }
- }
- break;
-
- case json_tokener_state_object_field_end:
- if(c == ':') {
- saved_state = json_tokener_state_object_value;
- state = json_tokener_state_eatws;
- } else {
- tok->err = json_tokener_error_parse_object_key_sep;
- goto out;
- }
- break;
-
- case json_tokener_state_object_value:
- if(tok->depth >= tok->max_depth-1) {
- tok->err = json_tokener_error_depth;
- goto out;
- }
- state = json_tokener_state_object_value_add;
- tok->depth++;
- json_tokener_reset_level(tok, tok->depth);
- goto redo_char;
-
- case json_tokener_state_object_value_add:
- json_object_object_add(current, obj_field_name, obj);
- free(obj_field_name);
- obj_field_name = NULL;
- saved_state = json_tokener_state_object_sep;
- state = json_tokener_state_eatws;
- goto redo_char;
-
- case json_tokener_state_object_sep:
- if(c == '}') {
- saved_state = json_tokener_state_finish;
- state = json_tokener_state_eatws;
- } else if(c == ',') {
- saved_state = json_tokener_state_object_field_start_after_sep;
- state = json_tokener_state_eatws;
- } else {
- tok->err = json_tokener_error_parse_object_value_sep;
- goto out;
- }
- break;
-
- }
- if (!ADVANCE_CHAR(str, tok))
- goto out;
- } /* while(POP_CHAR) */
-
- out:
- if (c &&
- (state == json_tokener_state_finish) &&
- (tok->depth == 0) &&
- (tok->flags & JSON_TOKENER_STRICT)) {
- /* unexpected char after JSON data */
- tok->err = json_tokener_error_parse_unexpected;
- }
- if (!c) { /* We hit an eof char (0) */
- if(state != json_tokener_state_finish &&
- saved_state != json_tokener_state_finish)
- tok->err = json_tokener_error_parse_eof;
- }
-
-#ifdef HAVE_SETLOCALE
- setlocale(LC_NUMERIC, oldlocale);
- if (oldlocale) free(oldlocale);
-#endif
-
- if (tok->err == json_tokener_success)
- {
- json_object *ret = json_object_get(current);
- int ii;
-
- /* Partially reset, so we parse additional objects on subsequent calls. */
- for(ii = tok->depth; ii >= 0; ii--)
- json_tokener_reset_level(tok, ii);
- return ret;
- }
-
- MC_DEBUG("json_tokener_parse_ex: error %s at offset %d\n",
- json_tokener_errors[tok->err], tok->char_offset);
- return NULL;
-}
-
-void json_tokener_set_flags(struct json_tokener *tok, int flags)
-{
- tok->flags = flags;
-}
diff --git a/json-c/json_tokener.h b/json-c/json_tokener.h
deleted file mode 100644
index a72d2bd..0000000
--- a/json-c/json_tokener.h
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- * $Id: json_tokener.h,v 1.10 2006/07/25 03:24:50 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _json_tokener_h_
-#define _json_tokener_h_
-
-#include
-#include "json_object.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum json_tokener_error {
- json_tokener_success,
- json_tokener_continue,
- json_tokener_error_depth,
- json_tokener_error_parse_eof,
- json_tokener_error_parse_unexpected,
- json_tokener_error_parse_null,
- json_tokener_error_parse_boolean,
- json_tokener_error_parse_number,
- json_tokener_error_parse_array,
- json_tokener_error_parse_object_key_name,
- json_tokener_error_parse_object_key_sep,
- json_tokener_error_parse_object_value_sep,
- json_tokener_error_parse_string,
- json_tokener_error_parse_comment,
- json_tokener_error_size
-};
-
-enum json_tokener_state {
- json_tokener_state_eatws,
- json_tokener_state_start,
- json_tokener_state_finish,
- json_tokener_state_null,
- json_tokener_state_comment_start,
- json_tokener_state_comment,
- json_tokener_state_comment_eol,
- json_tokener_state_comment_end,
- json_tokener_state_string,
- json_tokener_state_string_escape,
- json_tokener_state_escape_unicode,
- json_tokener_state_boolean,
- json_tokener_state_number,
- json_tokener_state_array,
- json_tokener_state_array_add,
- json_tokener_state_array_sep,
- json_tokener_state_object_field_start,
- json_tokener_state_object_field,
- json_tokener_state_object_field_end,
- json_tokener_state_object_value,
- json_tokener_state_object_value_add,
- json_tokener_state_object_sep,
- json_tokener_state_array_after_sep,
- json_tokener_state_object_field_start_after_sep,
- json_tokener_state_inf
-};
-
-struct json_tokener_srec
-{
- enum json_tokener_state state, saved_state;
- struct json_object *obj;
- struct json_object *current;
- char *obj_field_name;
-};
-
-#define JSON_TOKENER_DEFAULT_DEPTH 32
-
-struct json_tokener
-{
- char *str;
- struct printbuf *pb;
- int max_depth, depth, is_double, st_pos, char_offset;
- enum json_tokener_error err;
- unsigned int ucs_char;
- char quote_char;
- struct json_tokener_srec *stack;
- int flags;
-};
-
-/**
- * Be strict when parsing JSON input. Use caution with
- * this flag as what is considered valid may become more
- * restrictive from one release to the next, causing your
- * code to fail on previously working input.
- *
- * This flag is not set by default.
- *
- * @see json_tokener_set_flags()
- */
-#define JSON_TOKENER_STRICT 0x01
-
-/**
- * Given an error previously returned by json_tokener_get_error(),
- * return a human readable description of the error.
- *
- * @return a generic error message is returned if an invalid error value is provided.
- */
-const char *json_tokener_error_desc(enum json_tokener_error jerr);
-
-/**
- * Retrieve the error caused by the last call to json_tokener_parse_ex(),
- * or json_tokener_success if there is no error.
- *
- * When parsing a JSON string in pieces, if the tokener is in the middle
- * of parsing this will return json_tokener_continue.
- *
- * See also json_tokener_error_desc().
- */
-enum json_tokener_error json_tokener_get_error(struct json_tokener *tok);
-
-extern struct json_tokener* json_tokener_new(void);
-extern struct json_tokener* json_tokener_new_ex(int depth);
-extern void json_tokener_free(struct json_tokener *tok);
-extern void json_tokener_reset(struct json_tokener *tok);
-extern struct json_object* json_tokener_parse(const char *str);
-extern struct json_object* json_tokener_parse_verbose(const char *str, enum json_tokener_error *error);
-
-/**
- * Set flags that control how parsing will be done.
- */
-extern void json_tokener_set_flags(struct json_tokener *tok, int flags);
-
-/**
- * Parse a string and return a non-NULL json_object if a valid JSON value
- * is found. The string does not need to be a JSON object or array;
- * it can also be a string, number or boolean value.
- *
- * A partial JSON string can be parsed. If the parsing is incomplete,
- * NULL will be returned and json_tokener_get_error() will be return
- * json_tokener_continue.
- * json_tokener_parse_ex() can then be called with additional bytes in str
- * to continue the parsing.
- *
- * If json_tokener_parse_ex() returns NULL and the error anything other than
- * json_tokener_continue, a fatal error has occurred and parsing must be
- * halted. Then tok object must not be re-used until json_tokener_reset() is
- * called.
- *
- * When a valid JSON value is parsed, a non-NULL json_object will be
- * returned. Also, json_tokener_get_error() will return json_tokener_success.
- * Be sure to check the type with json_object_is_type() or
- * json_object_get_type() before using the object.
- *
- * @b XXX this shouldn't use internal fields:
- * Trailing characters after the parsed value do not automatically cause an
- * error. It is up to the caller to decide whether to treat this as an
- * error or to handle the additional characters, perhaps by parsing another
- * json value starting from that point.
- *
- * Extra characters can be detected by comparing the tok->char_offset against
- * the length of the last len parameter passed in.
- *
- * The tokener does \b not maintain an internal buffer so the caller is
- * responsible for calling json_tokener_parse_ex with an appropriate str
- * parameter starting with the extra characters.
- *
- * This interface is presently not 64-bit clean due to the int len argument
- * so the function limits the maximum string size to INT32_MAX (2GB).
- * If the function is called with len == -1 then strlen is called to check
- * the string length is less than INT32_MAX (2GB)
- *
- * Example:
- * @code
-json_object *jobj = NULL;
-const char *mystring = NULL;
-int stringlen = 0;
-enum json_tokener_error jerr;
-do {
- mystring = ... // get JSON string, e.g. read from file, etc...
- stringlen = strlen(mystring);
- jobj = json_tokener_parse_ex(tok, mystring, stringlen);
-} while ((jerr = json_tokener_get_error(tok)) == json_tokener_continue);
-if (jerr != json_tokener_success)
-{
- fprintf(stderr, "Error: %s\n", json_tokener_error_desc(jerr));
- // Handle errors, as appropriate for your application.
-}
-if (tok->char_offset < stringlen) // XXX shouldn't access internal fields
-{
- // Handle extra characters after parsed object as desired.
- // e.g. issue an error, parse another object from that point, etc...
-}
-// Success, use jobj here.
-
-@endcode
- *
- * @param tok a json_tokener previously allocated with json_tokener_new()
- * @param str an string with any valid JSON expression, or portion of. This does not need to be null terminated.
- * @param len the length of str
- */
-extern struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
- const char *str, int len);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/json_util.c b/json-c/json_util.c
deleted file mode 100644
index 2a5621b..0000000
--- a/json-c/json_util.c
+++ /dev/null
@@ -1,299 +0,0 @@
-/*
- * $Id: json_util.c,v 1.4 2006/01/30 23:07:57 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#include "config.h"
-#undef realloc
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifdef HAVE_SYS_TYPES_H
-#include
-#endif /* HAVE_SYS_TYPES_H */
-
-#ifdef HAVE_SYS_STAT_H
-#include
-#endif /* HAVE_SYS_STAT_H */
-
-#ifdef HAVE_FCNTL_H
-#include
-#endif /* HAVE_FCNTL_H */
-
-#ifdef HAVE_UNISTD_H
-# include
-#endif /* HAVE_UNISTD_H */
-
-#ifdef WIN32
-# define WIN32_LEAN_AND_MEAN
-# include
-# include
-#endif /* defined(WIN32) */
-
-#if !defined(HAVE_OPEN) && defined(WIN32)
-# define open _open
-#endif
-
-#if !defined(HAVE_SNPRINTF) && defined(_MSC_VER)
- /* MSC has the version as _snprintf */
-# define snprintf _snprintf
-#elif !defined(HAVE_SNPRINTF)
-# error You do not have snprintf on your system.
-#endif /* HAVE_SNPRINTF */
-
-#include "debug.h"
-#include "printbuf.h"
-#include "json_inttypes.h"
-#include "json_object.h"
-#include "json_tokener.h"
-#include "json_util.h"
-
-static int sscanf_is_broken = 0;
-static int sscanf_is_broken_testdone = 0;
-static void sscanf_is_broken_test(void);
-
-struct json_object* json_object_from_file(const char *filename)
-{
- struct printbuf *pb;
- struct json_object *obj;
- char buf[JSON_FILE_BUF_SIZE];
- int fd, ret;
-
- if((fd = open(filename, O_RDONLY)) < 0) {
- MC_ERROR("json_object_from_file: error opening file %s: %s\n",
- filename, strerror(errno));
- return NULL;
- }
- if(!(pb = printbuf_new())) {
- close(fd);
- MC_ERROR("json_object_from_file: printbuf_new failed\n");
- return NULL;
- }
- while((ret = read(fd, buf, JSON_FILE_BUF_SIZE)) > 0) {
- printbuf_memappend(pb, buf, ret);
- }
- close(fd);
- if(ret < 0) {
- MC_ERROR("json_object_from_file: error reading file %s: %s\n",
- filename, strerror(errno));
- printbuf_free(pb);
- return NULL;
- }
- obj = json_tokener_parse(pb->buf);
- printbuf_free(pb);
- return obj;
-}
-
-/* extended "format and write to file" function */
-
-int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags)
-{
- const char *json_str;
- int fd, ret;
- unsigned int wpos, wsize;
-
- if(!obj) {
- MC_ERROR("json_object_to_file: object is null\n");
- return -1;
- }
-
- if((fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0644)) < 0) {
- MC_ERROR("json_object_to_file: error opening file %s: %s\n",
- filename, strerror(errno));
- return -1;
- }
-
- if(!(json_str = json_object_to_json_string_ext(obj,flags))) {
- close(fd);
- return -1;
- }
-
- wsize = (unsigned int)(strlen(json_str) & UINT_MAX); /* CAW: probably unnecessary, but the most 64bit safe */
- wpos = 0;
- while(wpos < wsize) {
- if((ret = write(fd, json_str + wpos, wsize-wpos)) < 0) {
- close(fd);
- MC_ERROR("json_object_to_file: error writing file %s: %s\n",
- filename, strerror(errno));
- return -1;
- }
-
- /* because of the above check for ret < 0, we can safely cast and add */
- wpos += (unsigned int)ret;
- }
-
- close(fd);
- return 0;
-}
-
-// backwards compatible "format and write to file" function
-
-int json_object_to_file(const char *filename, struct json_object *obj)
-{
- return json_object_to_file_ext(filename, obj, JSON_C_TO_STRING_PLAIN);
-}
-
-int json_parse_double(const char *buf, double *retval)
-{
- return (sscanf(buf, "%lf", retval)==1 ? 0 : 1);
-}
-
-/*
- * Not all implementations of sscanf actually work properly.
- * Check whether the one we're currently using does, and if
- * it's broken, enable the workaround code.
- */
-static void sscanf_is_broken_test()
-{
- int64_t num64;
- int ret_errno, is_int64_min, ret_errno2, is_int64_max;
-
- (void)sscanf(" -01234567890123456789012345", "%" SCNd64, &num64);
- ret_errno = errno;
- is_int64_min = (num64 == INT64_MIN);
-
- (void)sscanf(" 01234567890123456789012345", "%" SCNd64, &num64);
- ret_errno2 = errno;
- is_int64_max = (num64 == INT64_MAX);
-
- if (ret_errno != ERANGE || !is_int64_min ||
- ret_errno2 != ERANGE || !is_int64_max)
- {
- MC_DEBUG("sscanf_is_broken_test failed, enabling workaround code\n");
- sscanf_is_broken = 1;
- }
-}
-
-int json_parse_int64(const char *buf, int64_t *retval)
-{
- int64_t num64;
- const char *buf_sig_digits;
- int orig_has_neg;
- int saved_errno;
-
- if (!sscanf_is_broken_testdone)
- {
- sscanf_is_broken_test();
- sscanf_is_broken_testdone = 1;
- }
-
- // Skip leading spaces
- while (isspace((int)*buf) && *buf)
- buf++;
-
- errno = 0; // sscanf won't always set errno, so initialize
- if (sscanf(buf, "%" SCNd64, &num64) != 1)
- {
- MC_DEBUG("Failed to parse, sscanf != 1\n");
- return 1;
- }
-
- saved_errno = errno;
- buf_sig_digits = buf;
- orig_has_neg = 0;
- if (*buf_sig_digits == '-')
- {
- buf_sig_digits++;
- orig_has_neg = 1;
- }
-
- // Not all sscanf implementations actually work
- if (sscanf_is_broken && saved_errno != ERANGE)
- {
- char buf_cmp[100];
- char *buf_cmp_start = buf_cmp;
- int recheck_has_neg = 0;
- int buf_cmp_len;
-
- // Skip leading zeros, but keep at least one digit
- while (buf_sig_digits[0] == '0' && buf_sig_digits[1] != '\0')
- buf_sig_digits++;
- if (num64 == 0) // assume all sscanf impl's will parse -0 to 0
- orig_has_neg = 0; // "-0" is the same as just plain "0"
-
- snprintf(buf_cmp_start, sizeof(buf_cmp), "%" PRId64, num64);
- if (*buf_cmp_start == '-')
- {
- recheck_has_neg = 1;
- buf_cmp_start++;
- }
- // No need to skip leading spaces or zeros here.
-
- buf_cmp_len = strlen(buf_cmp_start);
- /**
- * If the sign is different, or
- * some of the digits are different, or
- * there is another digit present in the original string
- * then we have NOT successfully parsed the value.
- */
- if (orig_has_neg != recheck_has_neg ||
- strncmp(buf_sig_digits, buf_cmp_start, strlen(buf_cmp_start)) != 0 ||
- ((int)strlen(buf_sig_digits) != buf_cmp_len &&
- isdigit((int)buf_sig_digits[buf_cmp_len])
- )
- )
- {
- saved_errno = ERANGE;
- }
- }
-
- // Not all sscanf impl's set the value properly when out of range.
- // Always do this, even for properly functioning implementations,
- // since it shouldn't slow things down much.
- if (saved_errno == ERANGE)
- {
- if (orig_has_neg)
- num64 = INT64_MIN;
- else
- num64 = INT64_MAX;
- }
- *retval = num64;
- return 0;
-}
-
-#ifndef HAVE_REALLOC
-void* rpl_realloc(void* p, size_t n)
-{
- if (n == 0)
- n = 1;
- if (p == 0)
- return malloc(n);
- return realloc(p, n);
-}
-#endif
-
-#define NELEM(a) (sizeof(a) / sizeof(a[0]))
-static const char* json_type_name[] = {
- /* If you change this, be sure to update the enum json_type definition too */
- "null",
- "boolean",
- "double",
- "int",
- "object",
- "array",
- "string",
-};
-
-const char *json_type_to_name(enum json_type o_type)
-{
- int o_type_int = (int)o_type;
- if (o_type_int < 0 || o_type_int >= (int)NELEM(json_type_name))
- {
- MC_ERROR("json_type_to_name: type %d is out of range [0,%d]\n", o_type, NELEM(json_type_name));
- return NULL;
- }
- return json_type_name[o_type];
-}
-
diff --git a/json-c/json_util.h b/json-c/json_util.h
deleted file mode 100644
index 387dbc4..0000000
--- a/json-c/json_util.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * $Id: json_util.h,v 1.4 2006/01/30 23:07:57 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _json_util_h_
-#define _json_util_h_
-
-#include "json_object.h"
-
-#ifndef json_min
-#define json_min(a,b) ((a) < (b) ? (a) : (b))
-#endif
-
-#ifndef json_max
-#define json_max(a,b) ((a) > (b) ? (a) : (b))
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define JSON_FILE_BUF_SIZE 4096
-
-/* utility functions */
-extern struct json_object* json_object_from_file(const char *filename);
-extern int json_object_to_file(const char *filename, struct json_object *obj);
-extern int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags);
-extern int json_parse_int64(const char *buf, int64_t *retval);
-extern int json_parse_double(const char *buf, double *retval);
-
-
-/**
- * Return a string describing the type of the object.
- * e.g. "int", or "object", etc...
- */
-extern const char *json_type_to_name(enum json_type o_type);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/libjson.c b/json-c/libjson.c
deleted file mode 100644
index 5284fd0..0000000
--- a/json-c/libjson.c
+++ /dev/null
@@ -1,26 +0,0 @@
-
-/* dummy source file for compatibility purposes */
-
-#if defined(HAVE_CDEFS_H)
-#include
-#endif
-
-#ifndef __warn_references
-
-#if defined(__GNUC__) && defined (HAS_GNU_WARNING_LONG)
-
-#define __warn_references(sym,msg) \
- __asm__(".section .gnu" #sym ",\n\t.ascii \"" msg "\"\n\t.text");
-
-#else
-#define __warn_references(sym,msg) /* nothing */
-#endif
-
-#endif
-
-#include "json_object.h"
-
-__warn_references(json_object_get, "Warning: please link against libjson-c instead of libjson");
-
-/* __asm__(".section .gnu.warning." __STRING(sym) \
- " ; .ascii \"" msg "\" ; .text") */
diff --git a/json-c/linkhash.c b/json-c/linkhash.c
deleted file mode 100644
index 712c387..0000000
--- a/json-c/linkhash.c
+++ /dev/null
@@ -1,602 +0,0 @@
-/*
- * $Id: linkhash.c,v 1.4 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifdef HAVE_ENDIAN_H
-# include /* attempt to define endianness */
-#endif
-
-#include "random_seed.h"
-#include "linkhash.h"
-
-void lh_abort(const char *msg, ...)
-{
- va_list ap;
- va_start(ap, msg);
- vprintf(msg, ap);
- va_end(ap);
- exit(1);
-}
-
-unsigned long lh_ptr_hash(const void *k)
-{
- /* CAW: refactored to be 64bit nice */
- return (unsigned long)((((ptrdiff_t)k * LH_PRIME) >> 4) & ULONG_MAX);
-}
-
-int lh_ptr_equal(const void *k1, const void *k2)
-{
- return (k1 == k2);
-}
-
-/*
- * hashlittle from lookup3.c, by Bob Jenkins, May 2006, Public Domain.
- * http://burtleburtle.net/bob/c/lookup3.c
- * minor modifications to make functions static so no symbols are exported
- * minor mofifications to compile with -Werror
- */
-
-/*
--------------------------------------------------------------------------------
-lookup3.c, by Bob Jenkins, May 2006, Public Domain.
-
-These are functions for producing 32-bit hashes for hash table lookup.
-hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final()
-are externally useful functions. Routines to test the hash are included
-if SELF_TEST is defined. You can use this free for any purpose. It's in
-the public domain. It has no warranty.
-
-You probably want to use hashlittle(). hashlittle() and hashbig()
-hash byte arrays. hashlittle() is is faster than hashbig() on
-little-endian machines. Intel and AMD are little-endian machines.
-On second thought, you probably want hashlittle2(), which is identical to
-hashlittle() except it returns two 32-bit hashes for the price of one.
-You could implement hashbig2() if you wanted but I haven't bothered here.
-
-If you want to find a hash of, say, exactly 7 integers, do
- a = i1; b = i2; c = i3;
- mix(a,b,c);
- a += i4; b += i5; c += i6;
- mix(a,b,c);
- a += i7;
- final(a,b,c);
-then use c as the hash value. If you have a variable length array of
-4-byte integers to hash, use hashword(). If you have a byte array (like
-a character string), use hashlittle(). If you have several byte arrays, or
-a mix of things, see the comments above hashlittle().
-
-Why is this so big? I read 12 bytes at a time into 3 4-byte integers,
-then mix those integers. This is fast (you can do a lot more thorough
-mixing with 12*3 instructions on 3 integers than you can with 3 instructions
-on 1 byte), but shoehorning those bytes into integers efficiently is messy.
--------------------------------------------------------------------------------
-*/
-
-/*
- * My best guess at if you are big-endian or little-endian. This may
- * need adjustment.
- */
-#if (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && \
- __BYTE_ORDER == __LITTLE_ENDIAN) || \
- (defined(i386) || defined(__i386__) || defined(__i486__) || \
- defined(__i586__) || defined(__i686__) || defined(vax) || defined(MIPSEL))
-# define HASH_LITTLE_ENDIAN 1
-# define HASH_BIG_ENDIAN 0
-#elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && \
- __BYTE_ORDER == __BIG_ENDIAN) || \
- (defined(sparc) || defined(POWERPC) || defined(mc68000) || defined(sel))
-# define HASH_LITTLE_ENDIAN 0
-# define HASH_BIG_ENDIAN 1
-#else
-# define HASH_LITTLE_ENDIAN 0
-# define HASH_BIG_ENDIAN 0
-#endif
-
-#define hashsize(n) ((uint32_t)1<<(n))
-#define hashmask(n) (hashsize(n)-1)
-#define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))
-
-/*
--------------------------------------------------------------------------------
-mix -- mix 3 32-bit values reversibly.
-
-This is reversible, so any information in (a,b,c) before mix() is
-still in (a,b,c) after mix().
-
-If four pairs of (a,b,c) inputs are run through mix(), or through
-mix() in reverse, there are at least 32 bits of the output that
-are sometimes the same for one pair and different for another pair.
-This was tested for:
-* pairs that differed by one bit, by two bits, in any combination
- of top bits of (a,b,c), or in any combination of bottom bits of
- (a,b,c).
-* "differ" is defined as +, -, ^, or ~^. For + and -, I transformed
- the output delta to a Gray code (a^(a>>1)) so a string of 1's (as
- is commonly produced by subtraction) look like a single 1-bit
- difference.
-* the base values were pseudorandom, all zero but one bit set, or
- all zero plus a counter that starts at zero.
-
-Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that
-satisfy this are
- 4 6 8 16 19 4
- 9 15 3 18 27 15
- 14 9 3 7 17 3
-Well, "9 15 3 18 27 15" didn't quite get 32 bits diffing
-for "differ" defined as + with a one-bit base and a two-bit delta. I
-used http://burtleburtle.net/bob/hash/avalanche.html to choose
-the operations, constants, and arrangements of the variables.
-
-This does not achieve avalanche. There are input bits of (a,b,c)
-that fail to affect some output bits of (a,b,c), especially of a. The
-most thoroughly mixed value is c, but it doesn't really even achieve
-avalanche in c.
-
-This allows some parallelism. Read-after-writes are good at doubling
-the number of bits affected, so the goal of mixing pulls in the opposite
-direction as the goal of parallelism. I did what I could. Rotates
-seem to cost as much as shifts on every machine I could lay my hands
-on, and rotates are much kinder to the top and bottom bits, so I used
-rotates.
--------------------------------------------------------------------------------
-*/
-#define mix(a,b,c) \
-{ \
- a -= c; a ^= rot(c, 4); c += b; \
- b -= a; b ^= rot(a, 6); a += c; \
- c -= b; c ^= rot(b, 8); b += a; \
- a -= c; a ^= rot(c,16); c += b; \
- b -= a; b ^= rot(a,19); a += c; \
- c -= b; c ^= rot(b, 4); b += a; \
-}
-
-/*
--------------------------------------------------------------------------------
-final -- final mixing of 3 32-bit values (a,b,c) into c
-
-Pairs of (a,b,c) values differing in only a few bits will usually
-produce values of c that look totally different. This was tested for
-* pairs that differed by one bit, by two bits, in any combination
- of top bits of (a,b,c), or in any combination of bottom bits of
- (a,b,c).
-* "differ" is defined as +, -, ^, or ~^. For + and -, I transformed
- the output delta to a Gray code (a^(a>>1)) so a string of 1's (as
- is commonly produced by subtraction) look like a single 1-bit
- difference.
-* the base values were pseudorandom, all zero but one bit set, or
- all zero plus a counter that starts at zero.
-
-These constants passed:
- 14 11 25 16 4 14 24
- 12 14 25 16 4 14 24
-and these came close:
- 4 8 15 26 3 22 24
- 10 8 15 26 3 22 24
- 11 8 15 26 3 22 24
--------------------------------------------------------------------------------
-*/
-#define final(a,b,c) \
-{ \
- c ^= b; c -= rot(b,14); \
- a ^= c; a -= rot(c,11); \
- b ^= a; b -= rot(a,25); \
- c ^= b; c -= rot(b,16); \
- a ^= c; a -= rot(c,4); \
- b ^= a; b -= rot(a,14); \
- c ^= b; c -= rot(b,24); \
-}
-
-
-/*
--------------------------------------------------------------------------------
-hashlittle() -- hash a variable-length key into a 32-bit value
- k : the key (the unaligned variable-length array of bytes)
- length : the length of the key, counting by bytes
- initval : can be any 4-byte value
-Returns a 32-bit value. Every bit of the key affects every bit of
-the return value. Two keys differing by one or two bits will have
-totally different hash values.
-
-The best hash table sizes are powers of 2. There is no need to do
-mod a prime (mod is sooo slow!). If you need less than 32 bits,
-use a bitmask. For example, if you need only 10 bits, do
- h = (h & hashmask(10));
-In which case, the hash table should have hashsize(10) elements.
-
-If you are hashing n strings (uint8_t **)k, do it like this:
- for (i=0, h=0; i 12)
- {
- a += k[0];
- b += k[1];
- c += k[2];
- mix(a,b,c);
- length -= 12;
- k += 3;
- }
-
- /*----------------------------- handle the last (probably partial) block */
- /*
- * "k[2]&0xffffff" actually reads beyond the end of the string, but
- * then masks off the part it's not allowed to read. Because the
- * string is aligned, the masked-off tail is in the same word as the
- * rest of the string. Every machine with memory protection I've seen
- * does it on word boundaries, so is OK with this. But VALGRIND will
- * still catch it and complain. The masking trick does make the hash
- * noticably faster for short strings (like English words).
- */
-#ifndef VALGRIND
-
- switch(length)
- {
- case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
- case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
- case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
- case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
- case 8 : b+=k[1]; a+=k[0]; break;
- case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
- case 6 : b+=k[1]&0xffff; a+=k[0]; break;
- case 5 : b+=k[1]&0xff; a+=k[0]; break;
- case 4 : a+=k[0]; break;
- case 3 : a+=k[0]&0xffffff; break;
- case 2 : a+=k[0]&0xffff; break;
- case 1 : a+=k[0]&0xff; break;
- case 0 : return c; /* zero length strings require no mixing */
- }
-
-#else /* make valgrind happy */
-
- const uint8_t *k8 = (const uint8_t *)k;
- switch(length)
- {
- case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
- case 11: c+=((uint32_t)k8[10])<<16; /* fall through */
- case 10: c+=((uint32_t)k8[9])<<8; /* fall through */
- case 9 : c+=k8[8]; /* fall through */
- case 8 : b+=k[1]; a+=k[0]; break;
- case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
- case 6 : b+=((uint32_t)k8[5])<<8; /* fall through */
- case 5 : b+=k8[4]; /* fall through */
- case 4 : a+=k[0]; break;
- case 3 : a+=((uint32_t)k8[2])<<16; /* fall through */
- case 2 : a+=((uint32_t)k8[1])<<8; /* fall through */
- case 1 : a+=k8[0]; break;
- case 0 : return c;
- }
-
-#endif /* !valgrind */
-
- } else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) {
- const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */
- const uint8_t *k8;
-
- /*--------------- all but last block: aligned reads and different mixing */
- while (length > 12)
- {
- a += k[0] + (((uint32_t)k[1])<<16);
- b += k[2] + (((uint32_t)k[3])<<16);
- c += k[4] + (((uint32_t)k[5])<<16);
- mix(a,b,c);
- length -= 12;
- k += 6;
- }
-
- /*----------------------------- handle the last (probably partial) block */
- k8 = (const uint8_t *)k;
- switch(length)
- {
- case 12: c+=k[4]+(((uint32_t)k[5])<<16);
- b+=k[2]+(((uint32_t)k[3])<<16);
- a+=k[0]+(((uint32_t)k[1])<<16);
- break;
- case 11: c+=((uint32_t)k8[10])<<16; /* fall through */
- case 10: c+=k[4];
- b+=k[2]+(((uint32_t)k[3])<<16);
- a+=k[0]+(((uint32_t)k[1])<<16);
- break;
- case 9 : c+=k8[8]; /* fall through */
- case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
- a+=k[0]+(((uint32_t)k[1])<<16);
- break;
- case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
- case 6 : b+=k[2];
- a+=k[0]+(((uint32_t)k[1])<<16);
- break;
- case 5 : b+=k8[4]; /* fall through */
- case 4 : a+=k[0]+(((uint32_t)k[1])<<16);
- break;
- case 3 : a+=((uint32_t)k8[2])<<16; /* fall through */
- case 2 : a+=k[0];
- break;
- case 1 : a+=k8[0];
- break;
- case 0 : return c; /* zero length requires no mixing */
- }
-
- } else { /* need to read the key one byte at a time */
- const uint8_t *k = (const uint8_t *)key;
-
- /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
- while (length > 12)
- {
- a += k[0];
- a += ((uint32_t)k[1])<<8;
- a += ((uint32_t)k[2])<<16;
- a += ((uint32_t)k[3])<<24;
- b += k[4];
- b += ((uint32_t)k[5])<<8;
- b += ((uint32_t)k[6])<<16;
- b += ((uint32_t)k[7])<<24;
- c += k[8];
- c += ((uint32_t)k[9])<<8;
- c += ((uint32_t)k[10])<<16;
- c += ((uint32_t)k[11])<<24;
- mix(a,b,c);
- length -= 12;
- k += 12;
- }
-
- /*-------------------------------- last block: affect all 32 bits of (c) */
- switch(length) /* all the case statements fall through */
- {
- case 12: c+=((uint32_t)k[11])<<24;
- case 11: c+=((uint32_t)k[10])<<16;
- case 10: c+=((uint32_t)k[9])<<8;
- case 9 : c+=k[8];
- case 8 : b+=((uint32_t)k[7])<<24;
- case 7 : b+=((uint32_t)k[6])<<16;
- case 6 : b+=((uint32_t)k[5])<<8;
- case 5 : b+=k[4];
- case 4 : a+=((uint32_t)k[3])<<24;
- case 3 : a+=((uint32_t)k[2])<<16;
- case 2 : a+=((uint32_t)k[1])<<8;
- case 1 : a+=k[0];
- break;
- case 0 : return c;
- }
- }
-
- final(a,b,c);
- return c;
-}
-
-unsigned long lh_char_hash(const void *k)
-{
- static volatile int random_seed = -1;
-
- if (random_seed == -1) {
- int seed;
- /* we can't use -1 as it is the unitialized sentinel */
- while ((seed = json_c_get_random_seed()) == -1);
-#if defined __GNUC__
- __sync_val_compare_and_swap(&random_seed, -1, seed);
-#elif defined _MSC_VER
- InterlockedCompareExchange(&random_seed, seed, -1);
-#else
-#warning "racy random seed initializtion if used by multiple threads"
- random_seed = seed; /* potentially racy */
-#endif
- }
-
- return hashlittle((const char*)k, strlen((const char*)k), random_seed);
-}
-
-int lh_char_equal(const void *k1, const void *k2)
-{
- return (strcmp((const char*)k1, (const char*)k2) == 0);
-}
-
-struct lh_table* lh_table_new(int size, const char *name,
- lh_entry_free_fn *free_fn,
- lh_hash_fn *hash_fn,
- lh_equal_fn *equal_fn)
-{
- int i;
- struct lh_table *t;
-
- t = (struct lh_table*)calloc(1, sizeof(struct lh_table));
- if(!t) lh_abort("lh_table_new: calloc failed\n");
- t->count = 0;
- t->size = size;
- t->name = name;
- t->table = (struct lh_entry*)calloc(size, sizeof(struct lh_entry));
- if(!t->table) lh_abort("lh_table_new: calloc failed\n");
- t->free_fn = free_fn;
- t->hash_fn = hash_fn;
- t->equal_fn = equal_fn;
- for(i = 0; i < size; i++) t->table[i].k = LH_EMPTY;
- return t;
-}
-
-struct lh_table* lh_kchar_table_new(int size, const char *name,
- lh_entry_free_fn *free_fn)
-{
- return lh_table_new(size, name, free_fn, lh_char_hash, lh_char_equal);
-}
-
-struct lh_table* lh_kptr_table_new(int size, const char *name,
- lh_entry_free_fn *free_fn)
-{
- return lh_table_new(size, name, free_fn, lh_ptr_hash, lh_ptr_equal);
-}
-
-void lh_table_resize(struct lh_table *t, int new_size)
-{
- struct lh_table *new_t;
- struct lh_entry *ent;
-
- new_t = lh_table_new(new_size, t->name, NULL, t->hash_fn, t->equal_fn);
- ent = t->head;
- while(ent) {
- lh_table_insert(new_t, ent->k, ent->v);
- ent = ent->next;
- }
- free(t->table);
- t->table = new_t->table;
- t->size = new_size;
- t->head = new_t->head;
- t->tail = new_t->tail;
- t->resizes++;
- free(new_t);
-}
-
-void lh_table_free(struct lh_table *t)
-{
- struct lh_entry *c;
- for(c = t->head; c != NULL; c = c->next) {
- if(t->free_fn) {
- t->free_fn(c);
- }
- }
- free(t->table);
- free(t);
-}
-
-
-int lh_table_insert(struct lh_table *t, void *k, const void *v)
-{
- unsigned long h, n;
-
- t->inserts++;
- if(t->count >= t->size * LH_LOAD_FACTOR) lh_table_resize(t, t->size * 2);
-
- h = t->hash_fn(k);
- n = h % t->size;
-
- while( 1 ) {
- if(t->table[n].k == LH_EMPTY || t->table[n].k == LH_FREED) break;
- t->collisions++;
- if ((int)++n == t->size) n = 0;
- }
-
- t->table[n].k = k;
- t->table[n].v = v;
- t->count++;
-
- if(t->head == NULL) {
- t->head = t->tail = &t->table[n];
- t->table[n].next = t->table[n].prev = NULL;
- } else {
- t->tail->next = &t->table[n];
- t->table[n].prev = t->tail;
- t->table[n].next = NULL;
- t->tail = &t->table[n];
- }
-
- return 0;
-}
-
-
-struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k)
-{
- unsigned long h = t->hash_fn(k);
- unsigned long n = h % t->size;
- int count = 0;
-
- t->lookups++;
- while( count < t->size ) {
- if(t->table[n].k == LH_EMPTY) return NULL;
- if(t->table[n].k != LH_FREED &&
- t->equal_fn(t->table[n].k, k)) return &t->table[n];
- if ((int)++n == t->size) n = 0;
- count++;
- }
- return NULL;
-}
-
-
-const void* lh_table_lookup(struct lh_table *t, const void *k)
-{
- void *result;
- lh_table_lookup_ex(t, k, &result);
- return result;
-}
-
-json_bool lh_table_lookup_ex(struct lh_table* t, const void* k, void **v)
-{
- struct lh_entry *e = lh_table_lookup_entry(t, k);
- if (e != NULL) {
- if (v != NULL) *v = (void *)e->v;
- return TRUE; /* key found */
- }
- if (v != NULL) *v = NULL;
- return FALSE; /* key not found */
-}
-
-int lh_table_delete_entry(struct lh_table *t, struct lh_entry *e)
-{
- ptrdiff_t n = (ptrdiff_t)(e - t->table); /* CAW: fixed to be 64bit nice, still need the crazy negative case... */
-
- /* CAW: this is bad, really bad, maybe stack goes other direction on this machine... */
- if(n < 0) { return -2; }
-
- if(t->table[n].k == LH_EMPTY || t->table[n].k == LH_FREED) return -1;
- t->count--;
- if(t->free_fn) t->free_fn(e);
- t->table[n].v = NULL;
- t->table[n].k = LH_FREED;
- if(t->tail == &t->table[n] && t->head == &t->table[n]) {
- t->head = t->tail = NULL;
- } else if (t->head == &t->table[n]) {
- t->head->next->prev = NULL;
- t->head = t->head->next;
- } else if (t->tail == &t->table[n]) {
- t->tail->prev->next = NULL;
- t->tail = t->tail->prev;
- } else {
- t->table[n].prev->next = t->table[n].next;
- t->table[n].next->prev = t->table[n].prev;
- }
- t->table[n].next = t->table[n].prev = NULL;
- return 0;
-}
-
-
-int lh_table_delete(struct lh_table *t, const void *k)
-{
- struct lh_entry *e = lh_table_lookup_entry(t, k);
- if(!e) return -1;
- return lh_table_delete_entry(t, e);
-}
-
-int lh_table_length(struct lh_table *t)
-{
- return t->count;
-}
diff --git a/json-c/linkhash.h b/json-c/linkhash.h
deleted file mode 100644
index 950d09f..0000000
--- a/json-c/linkhash.h
+++ /dev/null
@@ -1,292 +0,0 @@
-/*
- * $Id: linkhash.h,v 1.6 2006/01/30 23:07:57 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef _linkhash_h_
-#define _linkhash_h_
-
-#include "json_object.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * golden prime used in hash functions
- */
-#define LH_PRIME 0x9e370001UL
-
-/**
- * The fraction of filled hash buckets until an insert will cause the table
- * to be resized.
- * This can range from just above 0 up to 1.0.
- */
-#define LH_LOAD_FACTOR 0.66
-
-/**
- * sentinel pointer value for empty slots
- */
-#define LH_EMPTY (void*)-1
-
-/**
- * sentinel pointer value for freed slots
- */
-#define LH_FREED (void*)-2
-
-struct lh_entry;
-
-/**
- * callback function prototypes
- */
-typedef void (lh_entry_free_fn) (struct lh_entry *e);
-/**
- * callback function prototypes
- */
-typedef unsigned long (lh_hash_fn) (const void *k);
-/**
- * callback function prototypes
- */
-typedef int (lh_equal_fn) (const void *k1, const void *k2);
-
-/**
- * An entry in the hash table
- */
-struct lh_entry {
- /**
- * The key.
- */
- void *k;
- /**
- * The value.
- */
- const void *v;
- /**
- * The next entry
- */
- struct lh_entry *next;
- /**
- * The previous entry.
- */
- struct lh_entry *prev;
-};
-
-
-/**
- * The hash table structure.
- */
-struct lh_table {
- /**
- * Size of our hash.
- */
- int size;
- /**
- * Numbers of entries.
- */
- int count;
-
- /**
- * Number of collisions.
- */
- int collisions;
-
- /**
- * Number of resizes.
- */
- int resizes;
-
- /**
- * Number of lookups.
- */
- int lookups;
-
- /**
- * Number of inserts.
- */
- int inserts;
-
- /**
- * Number of deletes.
- */
- int deletes;
-
- /**
- * Name of the hash table.
- */
- const char *name;
-
- /**
- * The first entry.
- */
- struct lh_entry *head;
-
- /**
- * The last entry.
- */
- struct lh_entry *tail;
-
- struct lh_entry *table;
-
- /**
- * A pointer onto the function responsible for freeing an entry.
- */
- lh_entry_free_fn *free_fn;
- lh_hash_fn *hash_fn;
- lh_equal_fn *equal_fn;
-};
-
-
-/**
- * Pre-defined hash and equality functions
- */
-extern unsigned long lh_ptr_hash(const void *k);
-extern int lh_ptr_equal(const void *k1, const void *k2);
-
-extern unsigned long lh_char_hash(const void *k);
-extern int lh_char_equal(const void *k1, const void *k2);
-
-
-/**
- * Convenience list iterator.
- */
-#define lh_foreach(table, entry) \
-for(entry = table->head; entry; entry = entry->next)
-
-/**
- * lh_foreach_safe allows calling of deletion routine while iterating.
- */
-#define lh_foreach_safe(table, entry, tmp) \
-for(entry = table->head; entry && ((tmp = entry->next) || 1); entry = tmp)
-
-
-
-/**
- * Create a new linkhash table.
- * @param size initial table size. The table is automatically resized
- * although this incurs a performance penalty.
- * @param name the table name.
- * @param free_fn callback function used to free memory for entries
- * when lh_table_free or lh_table_delete is called.
- * If NULL is provided, then memory for keys and values
- * must be freed by the caller.
- * @param hash_fn function used to hash keys. 2 standard ones are defined:
- * lh_ptr_hash and lh_char_hash for hashing pointer values
- * and C strings respectively.
- * @param equal_fn comparison function to compare keys. 2 standard ones defined:
- * lh_ptr_hash and lh_char_hash for comparing pointer values
- * and C strings respectively.
- * @return a pointer onto the linkhash table.
- */
-extern struct lh_table* lh_table_new(int size, const char *name,
- lh_entry_free_fn *free_fn,
- lh_hash_fn *hash_fn,
- lh_equal_fn *equal_fn);
-
-/**
- * Convenience function to create a new linkhash
- * table with char keys.
- * @param size initial table size.
- * @param name table name.
- * @param free_fn callback function used to free memory for entries.
- * @return a pointer onto the linkhash table.
- */
-extern struct lh_table* lh_kchar_table_new(int size, const char *name,
- lh_entry_free_fn *free_fn);
-
-
-/**
- * Convenience function to create a new linkhash
- * table with ptr keys.
- * @param size initial table size.
- * @param name table name.
- * @param free_fn callback function used to free memory for entries.
- * @return a pointer onto the linkhash table.
- */
-extern struct lh_table* lh_kptr_table_new(int size, const char *name,
- lh_entry_free_fn *free_fn);
-
-
-/**
- * Free a linkhash table.
- * If a callback free function is provided then it is called for all
- * entries in the table.
- * @param t table to free.
- */
-extern void lh_table_free(struct lh_table *t);
-
-
-/**
- * Insert a record into the table.
- * @param t the table to insert into.
- * @param k a pointer to the key to insert.
- * @param v a pointer to the value to insert.
- */
-extern int lh_table_insert(struct lh_table *t, void *k, const void *v);
-
-
-/**
- * Lookup a record into the table.
- * @param t the table to lookup
- * @param k a pointer to the key to lookup
- * @return a pointer to the record structure of the value or NULL if it does not exist.
- */
-extern struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k);
-
-/**
- * Lookup a record into the table
- * @param t the table to lookup
- * @param k a pointer to the key to lookup
- * @return a pointer to the found value or NULL if it does not exist.
- * @deprecated Use lh_table_lookup_ex instead.
- */
-THIS_FUNCTION_IS_DEPRECATED(extern const void* lh_table_lookup(struct lh_table *t, const void *k));
-
-/**
- * Lookup a record in the table
- * @param t the table to lookup
- * @param k a pointer to the key to lookup
- * @param v a pointer to a where to store the found value (set to NULL if it doesn't exist).
- * @return whether or not the key was found
- */
-extern json_bool lh_table_lookup_ex(struct lh_table *t, const void *k, void **v);
-
-/**
- * Delete a record from the table.
- * If a callback free function is provided then it is called for the
- * for the item being deleted.
- * @param t the table to delete from.
- * @param e a pointer to the entry to delete.
- * @return 0 if the item was deleted.
- * @return -1 if it was not found.
- */
-extern int lh_table_delete_entry(struct lh_table *t, struct lh_entry *e);
-
-
-/**
- * Delete a record from the table.
- * If a callback free function is provided then it is called for the
- * for the item being deleted.
- * @param t the table to delete from.
- * @param k a pointer to the key to delete.
- * @return 0 if the item was deleted.
- * @return -1 if it was not found.
- */
-extern int lh_table_delete(struct lh_table *t, const void *k);
-
-extern int lh_table_length(struct lh_table *t);
-
-void lh_abort(const char *msg, ...);
-void lh_table_resize(struct lh_table *t, int new_size);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/math_compat.h b/json-c/math_compat.h
deleted file mode 100644
index f40b8fa..0000000
--- a/json-c/math_compat.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef __math_compat_h
-#define __math_compat_h
-
-/* Define isnan and isinf on Windows/MSVC */
-
-#ifndef HAVE_DECL_ISNAN
-# ifdef HAVE_DECL__ISNAN
-#include
-#define isnan(x) _isnan(x)
-# endif
-#endif
-
-#ifndef HAVE_DECL_ISINF
-# ifdef HAVE_DECL__FINITE
-#include
-#define isinf(x) (!_finite(x))
-# endif
-#endif
-
-#ifndef HAVE_DECL_NAN
-#error This platform does not have nan()
-#endif
-
-#ifndef HAVE_DECL_INFINITY
-#error This platform does not have INFINITY
-#endif
-
-#endif
diff --git a/json-c/printbuf.c b/json-c/printbuf.c
deleted file mode 100644
index fe952b4..0000000
--- a/json-c/printbuf.c
+++ /dev/null
@@ -1,193 +0,0 @@
-/*
- * $Id: printbuf.c,v 1.5 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- *
- * Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved.
- * The copyrights to the contents of this file are licensed under the MIT License
- * (http://www.opensource.org/licenses/mit-license.php)
- */
-
-#include "config.h"
-
-#include
-#include
-#include
-
-#ifdef HAVE_STDARG_H
-# include
-#else /* !HAVE_STDARG_H */
-# error Not enough var arg support!
-#endif /* HAVE_STDARG_H */
-
-#include "debug.h"
-#include "printbuf.h"
-
-static int printbuf_extend(struct printbuf *p, int min_size);
-
-struct printbuf* printbuf_new(void)
-{
- struct printbuf *p;
-
- p = (struct printbuf*)calloc(1, sizeof(struct printbuf));
- if(!p) return NULL;
- p->size = 32;
- p->bpos = 0;
- if(!(p->buf = (char*)malloc(p->size))) {
- free(p);
- return NULL;
- }
- return p;
-}
-
-
-/**
- * Extend the buffer p so it has a size of at least min_size.
- *
- * If the current size is large enough, nothing is changed.
- *
- * Note: this does not check the available space! The caller
- * is responsible for performing those calculations.
- */
-static int printbuf_extend(struct printbuf *p, int min_size)
-{
- char *t;
- int new_size;
-
- if (p->size >= min_size)
- return 0;
-
- new_size = p->size * 2;
- if (new_size < min_size + 8)
- new_size = min_size + 8;
-#ifdef PRINTBUF_DEBUG
- MC_DEBUG("printbuf_memappend: realloc "
- "bpos=%d min_size=%d old_size=%d new_size=%d\n",
- p->bpos, min_size, p->size, new_size);
-#endif /* PRINTBUF_DEBUG */
- if(!(t = (char*)realloc(p->buf, new_size)))
- return -1;
- p->size = new_size;
- p->buf = t;
- return 0;
-}
-
-int printbuf_memappend(struct printbuf *p, const char *buf, int size)
-{
- if (p->size <= p->bpos + size + 1) {
- if (printbuf_extend(p, p->bpos + size + 1) < 0)
- return -1;
- }
- memcpy(p->buf + p->bpos, buf, size);
- p->bpos += size;
- p->buf[p->bpos]= '\0';
- return size;
-}
-
-int printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len)
-{
- int size_needed;
-
- if (offset == -1)
- offset = pb->bpos;
- size_needed = offset + len;
- if (pb->size < size_needed)
- {
- if (printbuf_extend(pb, size_needed) < 0)
- return -1;
- }
-
- memset(pb->buf + offset, charvalue, len);
- if (pb->bpos < size_needed)
- pb->bpos = size_needed;
-
- return 0;
-}
-
-#if !defined(HAVE_VSNPRINTF) && defined(_MSC_VER)
-# define vsnprintf _vsnprintf
-#elif !defined(HAVE_VSNPRINTF) /* !HAVE_VSNPRINTF */
-# error Need vsnprintf!
-#endif /* !HAVE_VSNPRINTF && defined(WIN32) */
-
-#if !defined(HAVE_VASPRINTF)
-/* CAW: compliant version of vasprintf */
-static int vasprintf(char **buf, const char *fmt, va_list ap)
-{
-#ifndef WIN32
- static char _T_emptybuffer = '\0';
-#endif /* !defined(WIN32) */
- int chars;
- char *b;
-
- if(!buf) { return -1; }
-
-#ifdef WIN32
- chars = _vscprintf(fmt, ap)+1;
-#else /* !defined(WIN32) */
- /* CAW: RAWR! We have to hope to god here that vsnprintf doesn't overwrite
- our buffer like on some 64bit sun systems.... but hey, its time to move on */
- chars = vsnprintf(&_T_emptybuffer, 0, fmt, ap)+1;
- if(chars < 0) { chars *= -1; } /* CAW: old glibc versions have this problem */
-#endif /* defined(WIN32) */
-
- b = (char*)malloc(sizeof(char)*chars);
- if(!b) { return -1; }
-
- if((chars = vsprintf(b, fmt, ap)) < 0)
- {
- free(b);
- } else {
- *buf = b;
- }
-
- return chars;
-}
-#endif /* !HAVE_VASPRINTF */
-
-int sprintbuf(struct printbuf *p, const char *msg, ...)
-{
- va_list ap;
- char *t;
- int size;
- char buf[128];
-
- /* user stack buffer first */
- va_start(ap, msg);
- size = vsnprintf(buf, 128, msg, ap);
- va_end(ap);
- /* if string is greater than stack buffer, then use dynamic string
- with vasprintf. Note: some implementation of vsnprintf return -1
- if output is truncated whereas some return the number of bytes that
- would have been written - this code handles both cases. */
- if(size == -1 || size > 127) {
- va_start(ap, msg);
- if((size = vasprintf(&t, msg, ap)) < 0) { va_end(ap); return -1; }
- va_end(ap);
- printbuf_memappend(p, t, size);
- free(t);
- return size;
- } else {
- printbuf_memappend(p, buf, size);
- return size;
- }
-}
-
-void printbuf_reset(struct printbuf *p)
-{
- p->buf[0] = '\0';
- p->bpos = 0;
-}
-
-void printbuf_free(struct printbuf *p)
-{
- if(p) {
- free(p->buf);
- free(p);
- }
-}
diff --git a/json-c/printbuf.h b/json-c/printbuf.h
deleted file mode 100644
index b1bde7f..0000000
--- a/json-c/printbuf.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * $Id: printbuf.h,v 1.4 2006/01/26 02:16:28 mclark Exp $
- *
- * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- *
- * Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved.
- * The copyrights to the contents of this file are licensed under the MIT License
- * (http://www.opensource.org/licenses/mit-license.php)
- */
-
-#ifndef _printbuf_h_
-#define _printbuf_h_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-struct printbuf {
- char *buf;
- int bpos;
- int size;
-};
-
-extern struct printbuf*
-printbuf_new(void);
-
-/* As an optimization, printbuf_memappend_fast is defined as a macro
- * that handles copying data if the buffer is large enough; otherwise
- * it invokes printbuf_memappend_real() which performs the heavy
- * lifting of realloc()ing the buffer and copying data.
- * Your code should not use printbuf_memappend directly--use
- * printbuf_memappend_fast instead.
- */
-extern int
-printbuf_memappend(struct printbuf *p, const char *buf, int size);
-
-#define printbuf_memappend_fast(p, bufptr, bufsize) \
-do { \
- if ((p->size - p->bpos) > bufsize) { \
- memcpy(p->buf + p->bpos, (bufptr), bufsize); \
- p->bpos += bufsize; \
- p->buf[p->bpos]= '\0'; \
- } else { printbuf_memappend(p, (bufptr), bufsize); } \
-} while (0)
-
-#define printbuf_length(p) ((p)->bpos)
-
-/**
- * Set len bytes of the buffer to charvalue, starting at offset offset.
- * Similar to calling memset(x, charvalue, len);
- *
- * The memory allocated for the buffer is extended as necessary.
- *
- * If offset is -1, this starts at the end of the current data in the buffer.
- */
-extern int
-printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len);
-
-extern int
-sprintbuf(struct printbuf *p, const char *msg, ...);
-
-extern void
-printbuf_reset(struct printbuf *p);
-
-extern void
-printbuf_free(struct printbuf *p);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/json-c/random_seed.c b/json-c/random_seed.c
deleted file mode 100644
index f671929..0000000
--- a/json-c/random_seed.c
+++ /dev/null
@@ -1,237 +0,0 @@
-/*
- * random_seed.c
- *
- * Copyright (c) 2013 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#include
-#include "config.h"
-
-#define DEBUG_SEED(s)
-
-
-#if defined ENABLE_RDRAND
-
-/* cpuid */
-
-#if defined __GNUC__ && (defined __i386__ || defined __x86_64__)
-#define HAS_X86_CPUID 1
-
-static void do_cpuid(int regs[], int h)
-{
- __asm__ __volatile__(
-#if defined __x86_64__
- "pushq %%rbx;\n"
-#else
- "pushl %%ebx;\n"
-#endif
- "cpuid;\n"
-#if defined __x86_64__
- "popq %%rbx;\n"
-#else
- "popl %%ebx;\n"
-#endif
- : "=a"(regs[0]), [ebx] "=r"(regs[1]), "=c"(regs[2]), "=d"(regs[3])
- : "a"(h));
-}
-
-#elif defined _MSC_VER
-
-#define HAS_X86_CPUID 1
-#define do_cpuid __cpuid
-
-#endif
-
-/* has_rdrand */
-
-#if HAS_X86_CPUID
-
-static int has_rdrand()
-{
- // CPUID.01H:ECX.RDRAND[bit 30] == 1
- int regs[4];
- do_cpuid(regs, 1);
- return (regs[2] & (1 << 30)) != 0;
-}
-
-#endif
-
-/* get_rdrand_seed - GCC x86 and X64 */
-
-#if defined __GNUC__ && (defined __i386__ || defined __x86_64__)
-
-#define HAVE_RDRAND 1
-
-static int get_rdrand_seed()
-{
- DEBUG_SEED("get_rdrand_seed");
- int _eax;
- // rdrand eax
- __asm__ __volatile__("1: .byte 0x0F\n"
- " .byte 0xC7\n"
- " .byte 0xF0\n"
- " jnc 1b;\n"
- : "=a" (_eax));
- return _eax;
-}
-
-#endif
-
-#if defined _MSC_VER
-
-#if _MSC_VER >= 1700
-#define HAVE_RDRAND 1
-
-/* get_rdrand_seed - Visual Studio 2012 and above */
-
-static int get_rdrand_seed()
-{
- DEBUG_SEED("get_rdrand_seed");
- int r;
- while (_rdrand32_step(&r) == 0);
- return r;
-}
-
-#elif defined _M_IX86
-#define HAVE_RDRAND 1
-
-/* get_rdrand_seed - Visual Studio 2010 and below - x86 only */
-
-static int get_rdrand_seed()
-{
- DEBUG_SEED("get_rdrand_seed");
- int _eax;
-retry:
- // rdrand eax
- __asm _emit 0x0F __asm _emit 0xC7 __asm _emit 0xF0
- __asm jnc retry
- __asm mov _eax, eax
- return _eax;
-}
-
-#endif
-#endif
-
-#endif /* defined ENABLE_RDRAND */
-
-
-/* has_dev_urandom */
-
-#if defined (__APPLE__) || defined(__unix__) || defined(__linux__)
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define HAVE_DEV_RANDOM 1
-
-static const char *dev_random_file = "/dev/urandom";
-
-static int has_dev_urandom()
-{
- struct stat buf;
- if (stat(dev_random_file, &buf)) {
- return 0;
- }
- return ((buf.st_mode & S_IFCHR) != 0);
-}
-
-
-/* get_dev_random_seed */
-
-static int get_dev_random_seed()
-{
- DEBUG_SEED("get_dev_random_seed");
-
- int fd = open(dev_random_file, O_RDONLY);
- if (fd < 0) {
- fprintf(stderr, "error opening %s: %s", dev_random_file, strerror(errno));
- exit(1);
- }
-
- int r;
- ssize_t nread = read(fd, &r, sizeof(r));
- if (nread != sizeof(r)) {
- fprintf(stderr, "error short read %s: %s", dev_random_file, strerror(errno));
- exit(1);
- }
-
- close(fd);
- return r;
-}
-
-#endif
-
-
-/* get_cryptgenrandom_seed */
-
-#ifdef WIN32
-
-#define HAVE_CRYPTGENRANDOM 1
-
-#include
-#include
-#ifndef __GNUC__
-#pragma comment(lib, "advapi32.lib")
-#endif
-
-static int get_cryptgenrandom_seed()
-{
- DEBUG_SEED("get_cryptgenrandom_seed");
-
- HCRYPTPROV hProvider = 0;
- int r;
-
- if (!CryptAcquireContextW(&hProvider, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
- fprintf(stderr, "error CryptAcquireContextW");
- exit(1);
- }
-
- if (!CryptGenRandom(hProvider, sizeof(r), (BYTE*)&r)) {
- fprintf(stderr, "error CryptGenRandom");
- exit(1);
- }
-
- CryptReleaseContext(hProvider, 0);
-
- return r;
-}
-
-#endif
-
-
-/* get_time_seed */
-
-#include
-
-static int get_time_seed()
-{
- DEBUG_SEED("get_time_seed");
-
- return (int)time(NULL) * 433494437;
-}
-
-
-/* json_c_get_random_seed */
-
-int json_c_get_random_seed()
-{
-#if HAVE_RDRAND
- if (has_rdrand()) return get_rdrand_seed();
-#endif
-#if HAVE_DEV_RANDOM
- if (has_dev_urandom()) return get_dev_random_seed();
-#endif
-#if HAVE_CRYPTGENRANDOM
- return get_cryptgenrandom_seed();
-#endif
- return get_time_seed();
-}
diff --git a/json-c/random_seed.h b/json-c/random_seed.h
deleted file mode 100644
index 7362d67..0000000
--- a/json-c/random_seed.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * random_seed.h
- *
- * Copyright (c) 2013 Metaparadigm Pte. Ltd.
- * Michael Clark
- *
- * This library is free software; you can redistribute it and/or modify
- * it under the terms of the MIT license. See COPYING for details.
- *
- */
-
-#ifndef seed_h
-#define seed_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern int json_c_get_random_seed();
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/location/gnsspps/Android.mk b/location/gnsspps/Android.mk
deleted file mode 100644
index 5a39d42..0000000
--- a/location/gnsspps/Android.mk
+++ /dev/null
@@ -1,34 +0,0 @@
-ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libgnsspps
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_SHARED_LIBRARIES := \
- libutils \
- libcutils \
- libgps.utils \
- liblog
-
-LOCAL_SRC_FILES += \
- gnsspps.c
-
-LOCAL_CFLAGS += \
- -fno-short-enums \
- -D_ANDROID_
-
-LOCAL_COPY_HEADERS_TO:= libgnsspps/
-
-LOCAL_COPY_HEADERS:= \
- gnsspps.h
-
-## Includes
-LOCAL_C_INCLUDES := \
- $(TARGET_OUT_HEADERS)/gps.utils \
- $(TARGET_OUT_HEADERS)/libloc_pla
-
-include $(BUILD_SHARED_LIBRARY)
-endif
diff --git a/location/gnsspps/Makefile.am b/location/gnsspps/Makefile.am
deleted file mode 100644
index 728ac14..0000000
--- a/location/gnsspps/Makefile.am
+++ /dev/null
@@ -1,35 +0,0 @@
-AM_CFLAGS = \
- $(LOCPLA_CFLAGS) \
- -I./
-
-ACLOCAL_AMFLAGS = -I m4
-
-libgnsspps_la_SOURCES = \
- gnsspps.c
-
-if USE_GLIB
-libgnsspps_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
-libgnsspps_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
-libgnsspps_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
-else
-libgnsspps_la_CFLAGS = $(AM_CFLAGS)
-libgnsspps_la_LDFLAGS = -lpthread -shared -version-info 1:0:0
-libgnsspps_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
-endif
-
-libgnsspps_la_LIBADD = -lstdc++
-
-library_include_HEADERS = \
- gnsspps.h
-
-#Create and Install libraries
-lib_LTLIBRARIES = libgnsspps.la
-
-library_includedir = $(pkgincludedir)
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = gnsspps.pc
-EXTRA_DIST = $(pkgconfig_DATA)
-
-
-
-
diff --git a/location/gnsspps/configure.ac b/location/gnsspps/configure.ac
deleted file mode 100644
index cb66fc7..0000000
--- a/location/gnsspps/configure.ac
+++ /dev/null
@@ -1,60 +0,0 @@
-# configure.ac -- Autoconf script for gps lbs-core
-#
-# Process this file with autoconf to produce a configure script
-
-# Requires autoconf tool later than 2.61
-AC_PREREQ(2.61)
-# Initialize the gps lbs-core package version 1.0.0
-AC_INIT([gnsspps],1.0.0)
-# Does not strictly follow GNU Coding standards
-AM_INIT_AUTOMAKE([foreign])
-# Disables auto rebuilding of configure, Makefile.ins
-AM_MAINTAINER_MODE
-# Verifies the --srcdir is correct by checking for the path
-AC_CONFIG_SRCDIR([Makefile.am])
-# defines some macros variable to be included by source
-AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_MACRO_DIR([m4])
-
-# Checks for programs.
-AC_PROG_LIBTOOL
-AC_PROG_CXX
-AC_PROG_CC
-AM_PROG_CC_C_O
-AC_PROG_AWK
-AC_PROG_CPP
-AC_PROG_INSTALL
-AC_PROG_LN_S
-AC_PROG_MAKE_SET
-PKG_PROG_PKG_CONFIG
-
-# Checks for libraries.
-PKG_CHECK_MODULES([LOCPLA], [loc-pla])
-AC_SUBST([LOCPLA_CFLAGS])
-AC_SUBST([LOCPLA_LIBS])
-
-AC_ARG_WITH([glib],
- AC_HELP_STRING([--with-glib],
- [enable glib, building HLOS systems which use glib]))
-
-if (test "x${with_glib}" = "xyes"); then
- AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib])
- PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes,
- AC_MSG_ERROR(GThread >= 2.16 is required))
- PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes,
- AC_MSG_ERROR(GLib >= 2.16 is required))
- GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
- GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
-
- AC_SUBST(GLIB_CFLAGS)
- AC_SUBST(GLIB_LIBS)
-fi
-
-AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes")
-
-AC_CONFIG_FILES([ \
- Makefile \
- gnsspps.pc
- ])
-
-AC_OUTPUT
diff --git a/location/gnsspps/gnsspps.c b/location/gnsspps/gnsspps.c
deleted file mode 100644
index f92a862..0000000
--- a/location/gnsspps/gnsspps.c
+++ /dev/null
@@ -1,194 +0,0 @@
-/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundatoin, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-//DRsync kernel timestamp
-static struct timespec drsyncKernelTs = {0,0};
-//DRsync userspace timestamp
-static struct timespec drsyncUserTs = {0,0};
-//flag to stop fetching timestamp
-static int isActive = 0;
-static pps_handle handle;
-
-static pthread_mutex_t ts_lock;
-
- /* checks the PPS source and opens it */
-int check_device(char *path, pps_handle *handle)
-{
- int ret;
-
- /* Try to find the source by using the supplied "path" name */
- ret = open(path, O_RDWR);
- if (ret < 0)
- {
- LOC_LOGV("%s:%d unable to open device %s", __func__, __LINE__, path);
- return ret;
- }
-
- /* Open the PPS source */
- ret = pps_create(ret, handle);
- if (ret < 0)
- {
- LOC_LOGV( "%s:%d cannot create a PPS source from device %s", __func__, __LINE__, path);
- return -1;
- }
- return 0;
-}
-
-/* fetches the timestamp from the PPS source */
-int read_pps(pps_handle *handle)
-{
- struct timespec timeout;
- pps_info infobuf;
- int ret;
- // 3sec timeout
- timeout.tv_sec = 3;
- timeout.tv_nsec = 0;
-
- ret = pps_fetch(*handle, PPS_TSFMT_TSPEC, &infobuf,&timeout);
-
- if (ret < 0 && ret !=-EINTR)
- {
- LOC_LOGV("%s:%d pps_fetch() error %d", __func__, __LINE__, ret);
- return -1;
- }
-
- pthread_mutex_lock(&ts_lock);
- drsyncKernelTs.tv_sec = infobuf.tv_sec;
- drsyncKernelTs.tv_nsec = infobuf.tv_nsec;
- ret = clock_gettime(CLOCK_BOOTTIME,&drsyncUserTs);
- pthread_mutex_unlock(&ts_lock);
-
- if(ret != 0)
- {
- LOC_LOGV("%s:%d clock_gettime() error",__func__,__LINE__);
- }
- return 0;
-}
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-/* infinitely calls read_pps() */
-void *thread_handle(void *input)
-{
- int ret;
- if(input != NULL)
- {
- LOC_LOGV("%s:%d Thread Input is present", __func__, __LINE__);
- }
- while(isActive)
- {
- ret = read_pps(&handle);
-
- if (ret == -1 && errno != ETIMEDOUT )
- {
- LOC_LOGV("%s:%d Could not fetch PPS source", __func__, __LINE__);
- }
- }
- return NULL;
-}
-
-/* opens the device and fetches from PPS source */
-int initPPS(char *devname)
-{
- int ret,pid;
- pthread_t thread;
- isActive = 1;
-
- ret = check_device(devname, &handle);
- if (ret < 0)
- {
- LOC_LOGV("%s:%d Could not find PPS source", __func__, __LINE__);
- return 0;
- }
-
- pthread_mutex_init(&ts_lock,NULL);
-
- pid = pthread_create(&thread,NULL,&thread_handle,NULL);
- if(pid != 0)
- {
- LOC_LOGV("%s:%d Could not create thread in InitPPS", __func__, __LINE__);
- return 0;
- }
- return 1;
-}
-
-/* stops fetching and closes the device */
-void deInitPPS()
-{
- pthread_mutex_lock(&ts_lock);
- isActive = 0;
- pthread_mutex_unlock(&ts_lock);
-
- pthread_mutex_destroy(&ts_lock);
- pps_destroy(handle);
-}
-
-/* retrieves DRsync kernel timestamp,DRsync userspace timestamp
- and updates current timestamp */
-/* Returns:
- * 1. @Param out DRsync kernel timestamp
- * 2. @Param out DRsync userspace timestamp
- * 3. @Param out current timestamp
- */
-int getPPS(struct timespec *fineKernelTs ,struct timespec *currentTs,
- struct timespec *fineUserTs)
-{
- int ret;
-
- pthread_mutex_lock(&ts_lock);
- fineKernelTs->tv_sec = drsyncKernelTs.tv_sec;
- fineKernelTs->tv_nsec = drsyncKernelTs.tv_nsec;
-
- fineUserTs->tv_sec = drsyncUserTs.tv_sec;
- fineUserTs->tv_nsec = drsyncUserTs.tv_nsec;
-
- ret = clock_gettime(CLOCK_BOOTTIME,currentTs);
- pthread_mutex_unlock(&ts_lock);
- if(ret != 0)
- {
- LOC_LOGV("%s:%d clock_gettime() error",__func__,__LINE__);
- return 0;
- }
- return 1;
-}
-
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/location/gnsspps/gnsspps.h b/location/gnsspps/gnsspps.h
deleted file mode 100644
index 3642f3b..0000000
--- a/location/gnsspps/gnsspps.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundatoin, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#ifndef _GNSSPPS_H
-#define _GNSSPPS_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* opens the device and fetches from PPS source */
-int initPPS(char *devname);
-/* updates the fine time stamp */
-int getPPS(struct timespec *current_ts, struct timespec *current_boottime, struct timespec *last_boottime);
-/* stops fetching and closes the device */
-void deInitPPS();
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/location/gnsspps/gnsspps.pc.in b/location/gnsspps/gnsspps.pc.in
deleted file mode 100644
index 604eedd..0000000
--- a/location/gnsspps/gnsspps.pc.in
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: gnsspps
-Description: QTI GPS drplugin-client
-Version: @VERSION
-Libs: -L${libdir} -lgnsspps
-Cflags: -I${includedir}/gnsspps
diff --git a/location/gnsspps/timepps.h b/location/gnsspps/timepps.h
deleted file mode 100644
index fe0d8f0..0000000
--- a/location/gnsspps/timepps.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundatoin, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#include
-#include
-#include
-#include
-#include
-
-#ifndef _TIMEPPS_H
-#define _TIMEPPS_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-/* time of assert event */
-typedef struct timespec pps_info;
-/* represents pps source */
-typedef int pps_handle;
-
- /* Open the PPS source */
-static __inline int pps_create(int source, pps_handle *handle)
-{
- int ret;
- struct pps_kparams dummy;
-
- if (!handle)
- {
- errno = EINVAL;
- return -1;
- }
- /* check if current device is valid pps */
- ret = ioctl(source, PPS_GETPARAMS, &dummy);
- if (ret)
- {
- errno = EOPNOTSUPP;
- return -1;
- }
- *handle = source;
-
- return 0;
-}
-/* close the pps source */
-static __inline int pps_destroy(pps_handle handle)
-{
- return close(handle);
-}
-/*reads timestamp from pps device*/
-static __inline int pps_fetch(pps_handle handle, const int tsformat,
- pps_info *ppsinfobuf,
- const struct timespec *timeout)
-{
- struct pps_fdata fdata;
- int ret;
-
- if (tsformat != PPS_TSFMT_TSPEC)
- {
- errno = EINVAL;
- return -1;
- }
- if (timeout)
- {
- fdata.timeout.sec = timeout->tv_sec;
- fdata.timeout.nsec = timeout->tv_nsec;
- fdata.timeout.flags = ~PPS_TIME_INVALID;
- }
- else
- {
- fdata.timeout.flags = PPS_TIME_INVALID;
- }
- ret = ioctl(handle, PPS_FETCH, &fdata);
-
- ppsinfobuf->tv_sec = fdata.info.assert_tu.sec;
- ppsinfobuf->tv_nsec = fdata.info.assert_tu.nsec;
-
- return ret;
-}
-
-#ifdef __cplusplus
-}
-#endif
-#endif
diff --git a/location/izat_api/Android.mk b/location/izat_api/Android.mk
deleted file mode 100644
index 06db16e..0000000
--- a/location/izat_api/Android.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-ifneq ($(BUILD_TINY_ANDROID),true)
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_COPY_HEADERS_TO:= liblocationservice/lcp/inc/
-
-LOCAL_COPY_HEADERS:= \
- IzatRemoteApi.h \
- izat_remote_api.h
-
-include $(BUILD_COPY_HEADERS)
-
-endif # not BUILD_TINY_ANDROID
diff --git a/location/izat_api/IzatRemoteApi.h b/location/izat_api/IzatRemoteApi.h
deleted file mode 100644
index 9f2b8e5..0000000
--- a/location/izat_api/IzatRemoteApi.h
+++ /dev/null
@@ -1,100 +0,0 @@
-/*=============================================================================
- Copyright (c) 2016, The Linux Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- =============================================================================*/
-
-#ifndef __IZATREMOTEAPIS_H__
-#define __IZATREMOTEAPIS_H__
-
-#include
-
-namespace qc_loc_fw {
- class InPostcard;
-}
-
-namespace izat_remote_api {
-
-class IzatNotifierProxy;
-
-struct OutCard;
-
-class IzatNotifier {
-protected:
- IzatNotifierProxy* const mNotifierProxy;
- IzatNotifier(const char* const tag, const OutCard* subCard);
- virtual ~IzatNotifier();
-public:
- virtual void handleMsg(qc_loc_fw::InPostcard * const in_card) = 0;
-};
-
-
-class LocationUpdater : public IzatNotifier {
- static const OutCard* sSubscriptionCard;
-protected:
- inline LocationUpdater() : IzatNotifier(sName, sSubscriptionCard) {}
- virtual inline ~LocationUpdater() {}
-public:
- static const char sName[];
- virtual void handleMsg(qc_loc_fw::InPostcard * const in_card) final;
- virtual void locationUpdate(UlpLocation& location, GpsLocationExtended& locExtended) = 0;
-};
-
-class SstpUpdater : public IzatNotifier {
- static const char* const sLatTag;
- static const char* const sLonTag;
- static const char* const sUncTag;
- static const char* const sUncConfTag;
-
-protected:
- inline SstpUpdater() : IzatNotifier(sName, nullptr) {}
- virtual inline ~SstpUpdater() {}
-public:
- static const char sName[];
- virtual void handleMsg(qc_loc_fw::InPostcard * const in_card) final;
- void stop();
- virtual void errReport(const char* errStr) = 0;
- virtual void siteUpdate(const char* name, double lat, double lon,
- float unc, int32_t uncConfidence) = 0;
- virtual void mccUpdate(uint32_t mcc, const char* confidence) = 0;
-};
-
-class NmeaUpdater : public IzatNotifier {
- static const OutCard* sSubscriptionCard;
-protected:
- inline NmeaUpdater() : IzatNotifier(sName, sSubscriptionCard) {}
- virtual inline ~NmeaUpdater() {}
-public:
- static const char sName[];
- virtual void handleMsg(qc_loc_fw::InPostcard * const in_card) final;
- virtual void nmeaUpdate(UlpNmea& nmea) = 0;
-};
-
-
-} // izat_remote_api
-
-#endif //__IZATREMOTEAPIS_H__
-
diff --git a/location/izat_api/izat_remote_api.h b/location/izat_api/izat_remote_api.h
deleted file mode 100644
index 35d21a3..0000000
--- a/location/izat_api/izat_remote_api.h
+++ /dev/null
@@ -1,124 +0,0 @@
-/*=============================================================================
- Copyright (c) 2016, The Linux Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
- * Neither the name of The Linux Foundation nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- =============================================================================*/
-
-#ifndef __IZAT_REMOTE_APIS_H__
-#define __IZAT_REMOTE_APIS_H__
-
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void (*locationUpdateCb)(UlpLocation *location,
- GpsLocationExtended *locExtended,
- void* clientData);
-
-/* registers a client callback for listening to location updates
- locationCb - location callback function pointer implemented by client
- Can not be NULL.
- clientData - an opaque data pointer from client. This pointer will be
- provided back when the locationCb() callbacak is called.
- This can be used by client to store application context
- or statemachine etc.
- Can be NULL.
- return: an opaque pointer that serves as a request handle. This handle
- to be fed to the unregisterLocationUpdater() call.
-*/
-void* registerLocationUpdater(locationUpdateCb locationCb, void* clientData);
-
-/* unregisters the client callback
- locationUpdaterHandle - the opaque pointer from the return of
- registerLocationUpdater()
-*/
-void unregisterLocationUpdater(void* locationUpdaterHandle);
-
-typedef void (*errReportCb)(const char* errStr, void* clientData);
-typedef void (*sstpSiteUpdateCb)(const char* name, double lat, double lon,
- float unc, int32_t uncConfidence,
- void* clientData);
-typedef void (*sstpMccUpdateCb)(uint32_t mcc, const char* confidence,
- void* clientData);
-/* registers a client callback for listening to SSTP updates
- siteCb - site info callback function pointer implemented by client
- Can not be NULL.
- mccCb - MCC info callback function pointer implemented by client
- Can not be NULL.
- errCb - callback to receive error report in string format, in case
- of any error that might happen, and no siteCb or mccCb can
- be called.
- Can be NULL.
- clientData - an opaque data pointer from client. This pointer will be
- provided back when the locationCb() callbacak is called.
- This can be used by client to store application context
- or statemachine etc.
- Can be NULL.
- return: an opaque pointer that serves as a request handle. This handle
- is to be fed to theunregisterLocationUpdater() call.
-*/
-void* registerSstpUpdater(sstpSiteUpdateCb siteCb, sstpMccUpdateCb mccCb,
- errReportCb errCb, void* clientData);
-
-/* unregisters the client callback
- sstpUpdaterHandle - the opaque pointer from the return of
- registerLocationUpdater()
-*/
-void unregisterSstpUpdater(void* sstpUpdaterHandle);
-
-/* stop the current burst of SSTP updates (until next triggering event)
- sstpUpdaterHandle - the opaque pointer from the return of
- registerLocationUpdater()
-*/
-void stopSstpUpdate(void* sstpUpdaterHandle);
-
-typedef void (*nmeaUpdateCb)(UlpNmea *nmea, void* clientData);
-
-/* registers a client callback for listening to nmea updates
- nmeaCb - nmea callback function pointer implemented by client
- clientData - an opaque data pointer from client. This pointer will be
- provided back when the nmeaUpdateCb() callbacak is called.
- This can be used by client to store application context
- or statemachine etc. This parameter can be NULL.
- return: an opaque pointer that serves as a request handle. This handle
- to be fed to the unregisterNmeaUpdater() call.
-*/
-void* registerNmeaUpdater(nmeaUpdateCb nmeaCb, void* clientData);
-
-/* unregisters the client callback
- nmeaUpdaterHandle - the opaque pointer from the return of
- registerNmeaUpdater()
-*/
-void unregisterNmeaUpdater(void* nmeaUpdaterHandle);
-
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif //__IZAT_REMOTE_APIS_H__
diff --git a/location/loc_api/Android.mk b/location/loc_api/Android.mk
deleted file mode 100644
index 359d897..0000000
--- a/location/loc_api/Android.mk
+++ /dev/null
@@ -1,47 +0,0 @@
-ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
-
-LOCAL_PATH := $(call my-dir)
-
-#add QMI libraries for QMI targets
-QMI_BOARD_PLATFORM_LIST := msm8960
-QMI_BOARD_PLATFORM_LIST += msm8974
-QMI_BOARD_PLATFORM_LIST += msm8226
-QMI_BOARD_PLATFORM_LIST += msm8610
-QMI_BOARD_PLATFORM_LIST += apq8084
-QMI_BOARD_PLATFORM_LIST += msm8916
-QMI_BOARD_PLATFORM_LIST += msm8994
-QMI_BOARD_PLATFORM_LIST += msm8909
-QMI_BOARD_PLATFORM_LIST += msm8952
-QMI_BOARD_PLATFORM_LIST += msm8992
-QMI_BOARD_PLATFORM_LIST += msm8996
-QMI_BOARD_PLATFORM_LIST += msm8953
-QMI_BOARD_PLATFORM_LIST += msm8937
-QMI_BOARD_PLATFORM_LIST += msm8998
-QMI_BOARD_PLATFORM_LIST += sdm660
-
-ifneq (,$(filter $(QMI_BOARD_PLATFORM_LIST),$(TARGET_BOARD_PLATFORM)))
-include $(call all-subdir-makefiles)
-endif #is-board-platform-in-list
-
-# link gss.bxx files into /etc/firmware folder
-ifeq ($(call is-board-platform-in-list, msm8960),true)
-$(shell ln -sf /firmware/image/gss.b00 $(TARGET_OUT_ETC)/firmware/gss.b00)
-$(shell ln -sf /firmware/image/gss.b01 $(TARGET_OUT_ETC)/firmware/gss.b01)
-$(shell ln -sf /firmware/image/gss.b02 $(TARGET_OUT_ETC)/firmware/gss.b02)
-$(shell ln -sf /firmware/image/gss.b03 $(TARGET_OUT_ETC)/firmware/gss.b03)
-$(shell ln -sf /firmware/image/gss.b04 $(TARGET_OUT_ETC)/firmware/gss.b04)
-$(shell ln -sf /firmware/image/gss.b05 $(TARGET_OUT_ETC)/firmware/gss.b05)
-$(shell ln -sf /firmware/image/gss.b06 $(TARGET_OUT_ETC)/firmware/gss.b06)
-$(shell ln -sf /firmware/image/gss.b07 $(TARGET_OUT_ETC)/firmware/gss.b07)
-$(shell ln -sf /firmware/image/gss.b08 $(TARGET_OUT_ETC)/firmware/gss.b08)
-$(shell ln -sf /firmware/image/gss.b09 $(TARGET_OUT_ETC)/firmware/gss.b09)
-$(shell ln -sf /firmware/image/gss.b10 $(TARGET_OUT_ETC)/firmware/gss.b10)
-$(shell ln -sf /firmware/image/gss.b11 $(TARGET_OUT_ETC)/firmware/gss.b11)
-$(shell ln -sf /firmware/image/gss.b12 $(TARGET_OUT_ETC)/firmware/gss.b12)
-$(shell ln -sf /firmware/image/gss.b13 $(TARGET_OUT_ETC)/firmware/gss.b13)
-$(shell ln -sf /firmware/image/gss.b14 $(TARGET_OUT_ETC)/firmware/gss.b14)
-$(shell ln -sf /firmware/image/gss.b15 $(TARGET_OUT_ETC)/firmware/gss.b15)
-$(shell ln -sf /firmware/image/gss.mdt $(TARGET_OUT_ETC)/firmware/gss.mdt)
-endif
-
-endif#BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
diff --git a/location/loc_api/ds_api/Android.mk b/location/loc_api/ds_api/Android.mk
deleted file mode 100644
index 19773b7..0000000
--- a/location/loc_api/ds_api/Android.mk
+++ /dev/null
@@ -1,51 +0,0 @@
-ifneq ($(BUILD_TINY_ANDROID),true)
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libloc_ds_api
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_SHARED_LIBRARIES := \
- libutils \
- liblog \
- libcutils \
- liblog \
- libqmi_cci \
- libqmi_common_so \
- libgps.utils \
- libdsi_netctrl \
- libqmiservices \
- libloc_pla
-
-LOCAL_SRC_FILES += \
- ds_client.c
-
-LOCAL_CFLAGS += \
- -fno-short-enums \
- -D_ANDROID_
-
-LOCAL_COPY_HEADERS_TO:= libloc_ds_api/
-
-LOCAL_COPY_HEADERS:= \
- ds_client.h
-
-LOCAL_LDFLAGS += -Wl,--export-dynamic
-
-## Includes
-LOCAL_C_INCLUDES := \
- $(TARGET_OUT_HEADERS)/libloc_eng \
- $(TARGET_OUT_HEADERS)/qmi-framework/inc \
- $(TARGET_OUT_HEADERS)/qmi/inc \
- $(TARGET_OUT_HEADERS)/gps.utils \
- $(TARGET_OUT_HEADERS)/data/inc \
- $(TARGET_OUT_HEADERS)/libloc_pla
-
-
-LOCAL_PRELINK_MODULE := false
-
-include $(BUILD_SHARED_LIBRARY)
-
-endif # not BUILD_TINY_ANDROID
diff --git a/location/loc_api/ds_api/ds_client.c b/location/loc_api/ds_api/ds_client.c
deleted file mode 100644
index c2c2a75..0000000
--- a/location/loc_api/ds_api/ds_client.c
+++ /dev/null
@@ -1,860 +0,0 @@
-/* Copyright (c) 2013, 2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define LOG_NDEBUG 0
-#define LOG_TAG "LocSvc_ds_client"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/**
- * @file
- * @brief DS client API declaration.
- *
- * @ingroup loc_ds_api
- */
-
-/**
- * @addtogroup loc_ds_api DS client support for location
- * @{
- */
-
-//Timeout to wait for wds service notification from qmi
-#define DS_CLIENT_SERVICE_TIMEOUT (4000)
-//Max timeout for the service to come up
-#define DS_CLIENT_SERVICE_TIMEOUT_TOTAL (40000)
-//Timeout for the service to respond to sync msg
-#define DS_CLIENT_SYNC_MSG_TIMEOUT (5000)
-/*Request messages the WDS client can send to the WDS service*/
-typedef union
-{
- /*Requests the service for a list of all profiles present*/
- wds_get_profile_list_req_msg_v01 *p_get_profile_list_req;
- /*Requests the service for a profile's settings*/
- wds_get_profile_settings_req_msg_v01 *p_get_profile_settings_req;
-}ds_client_req_union_type;
-
-/*Response indications that are sent by the WDS service*/
-typedef union
-{
- wds_get_profile_list_resp_msg_v01 *p_get_profile_list_resp;
- wds_get_profile_settings_resp_msg_v01 *p_get_profile_setting_resp;
-}ds_client_resp_union_type;
-
-static const loc_name_val_s_type event_string_tbl[DSI_EVT_MAX] =
-{
- NAME_VAL(DSI_EVT_INVALID),
- NAME_VAL(DSI_EVT_NET_IS_CONN),
- NAME_VAL(DSI_EVT_NET_NO_NET),
- NAME_VAL(DSI_EVT_PHYSLINK_DOWN_STATE),
- NAME_VAL(DSI_EVT_PHYSLINK_UP_STATE),
- NAME_VAL(DSI_EVT_NET_RECONFIGURED),
- NAME_VAL(DSI_EVT_WDS_CONNECTED)
-};
-
-typedef struct
-{
- ds_client_event_ind_cb_type *event_cb;
- void *caller_cookie;
-}ds_caller_data;
-
-typedef struct {
- //Global dsi handle
- dsi_hndl_t dsi_net_handle;
- //Handle to caller's data
- ds_caller_data caller_data;
-} ds_client_session_data;
-
-static void net_ev_cb
-(
- dsi_hndl_t handle,
- void* user_data,
- dsi_net_evt_t evt,
- dsi_evt_payload_t *payload_ptr
-)
-{
- int i;
- (void)handle;
- (void)user_data;
- (void)payload_ptr;
- ds_caller_data *callback_data = (ds_caller_data *)user_data;
-
- LOC_LOGD("%s:%d]: Enter. Callback data: %p\n", __func__, __LINE__, callback_data);
- if(evt > DSI_EVT_INVALID && evt < DSI_EVT_MAX)
- {
- LOC_LOGE("%s:%d]: Callback received: %s",
- __func__, __LINE__,
- loc_get_name_from_val(event_string_tbl,
- sizeof(event_string_tbl)/sizeof(event_string_tbl[0]), evt));
-
- switch(evt) {
- case DSI_EVT_NET_IS_CONN:
- case DSI_EVT_WDS_CONNECTED:
- {
- LOC_LOGD("%s:%d]: Emergency call started\n", __func__, __LINE__);
- callback_data->event_cb(E_DS_CLIENT_DATA_CALL_CONNECTED,
- callback_data->caller_cookie);
- break;
- }
- case DSI_EVT_NET_NO_NET:
- {
- LOC_LOGD("%s:%d]: Emergency call stopped\n", __func__, __LINE__);
- callback_data->event_cb(E_DS_CLIENT_DATA_CALL_DISCONNECTED,
- callback_data->caller_cookie);
- break;
- }
- default:
- LOC_LOGD("%s:%d]: uninteresting event\n", __func__, __LINE__);
- }
- }
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
-}
-
-/*This function is called to obtain a handle to the QMI WDS service*/
-static ds_client_status_enum_type
-ds_client_qmi_ctrl_point_init(qmi_client_type *p_wds_qmi_client)
-{
- qmi_client_type wds_qmi_client, notifier = NULL;
- ds_client_status_enum_type status = E_DS_CLIENT_SUCCESS;
- qmi_service_info *p_service_info = NULL;
- uint32_t num_services = 0, num_entries = 0;
- qmi_client_error_type ret = QMI_NO_ERR;
- unsigned char no_signal = 0;
- qmi_client_os_params os_params;
- int timeout = 0;
-
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
-
- //Get service object for QMI_WDS service
- qmi_idl_service_object_type ds_client_service_object =
- wds_get_service_object_v01();
- if(ds_client_service_object == NULL) {
- LOC_LOGE("%s:%d]: wds_get_service_object_v01 failed\n" ,
- __func__, __LINE__);
- status = E_DS_CLIENT_FAILURE_INTERNAL;
- goto err;
- }
-
- //get service addressing information
- ret = qmi_client_get_service_list(ds_client_service_object, NULL, NULL,
- &num_services);
- LOC_LOGD("%s:%d]: qmi_client_get_service_list() first try ret %d, "
- "num_services %d]\n", __func__, __LINE__, ret, num_services);
- if(ret != QMI_NO_ERR) {
- //Register for service notification
- ret = qmi_client_notifier_init(ds_client_service_object, &os_params, ¬ifier);
- if (ret != QMI_NO_ERR) {
- LOC_LOGE("%s:%d]: qmi_client_notifier_init failed %d\n",
- __func__, __LINE__, ret);
- status = E_DS_CLIENT_FAILURE_INTERNAL;
- goto err;
- }
-
- do {
- QMI_CCI_OS_SIGNAL_CLEAR(&os_params);
- ret = qmi_client_get_service_list(ds_client_service_object, NULL,
- NULL, &num_services);
- if(ret != QMI_NO_ERR) {
- QMI_CCI_OS_SIGNAL_WAIT(&os_params, DS_CLIENT_SERVICE_TIMEOUT);
- no_signal = QMI_CCI_OS_SIGNAL_TIMED_OUT(&os_params);
- if(!no_signal)
- ret = qmi_client_get_service_list(ds_client_service_object, NULL,
- NULL, &num_services);
- }
- timeout += DS_CLIENT_SERVICE_TIMEOUT;
- LOC_LOGV("%s:%d]: qmi_client_get_service_list() returned ret: %d,"
- "no_signal: %d, total timeout: %d\n", __func__, __LINE__,
- ret, no_signal, timeout);
- } while( (timeout < DS_CLIENT_SERVICE_TIMEOUT_TOTAL) &&
- no_signal &&
- (ret != QMI_NO_ERR) );
- }
-
- //Handle failure cases
- if(num_services == 0 || ret != QMI_NO_ERR) {
- if(!no_signal) {
- LOC_LOGE("%s:%d]: qmi_client_get_service_list failed even though"
- "service is up! Error: %d \n", __func__, __LINE__, ret);
- status = E_DS_CLIENT_FAILURE_INTERNAL;
- }
- else {
- LOC_LOGE("%s:%d]: qmi_client_get_service_list failed after retries"
- "Error: %d \n", __func__, __LINE__, ret);
- status = E_DS_CLIENT_FAILURE_TIMEOUT;
- }
- goto err;
- }
-
- LOC_LOGD("%s:%d]: qmi_client_get_service_list succeeded\n", __func__, __LINE__);
-
- //Success
- p_service_info = (qmi_service_info *)malloc(num_services * sizeof(qmi_service_info));
- if(p_service_info == NULL) {
- LOC_LOGE("%s:%d]: could not allocate memory for serviceInfo !!\n",
- __func__, __LINE__);
- status = E_DS_CLIENT_FAILURE_INTERNAL;
- goto err;
- }
- num_entries = num_services;
-
- //Populate service info
- ret = qmi_client_get_service_list(ds_client_service_object, p_service_info,
- &num_entries, &num_services);
- if(ret != QMI_NO_ERR) {
- LOC_LOGE("%s:%d]: qmi_client_get_service_list failed. ret: %d \n",
- __func__, __LINE__, ret);
- status = E_DS_CLIENT_FAILURE_INTERNAL;
- goto err;
- }
-
- //Initialize wds_qmi_client
- LOC_LOGD("%s:%d]: Initializing WDS client with qmi_client_init\n", __func__,
- __LINE__);
- ret = qmi_client_init(&p_service_info[0], ds_client_service_object,
- NULL, NULL, NULL, &wds_qmi_client);
- if(ret != QMI_NO_ERR) {
- LOC_LOGE("%s:%d]: qmi_client_init Error. ret: %d\n", __func__, __LINE__, ret);
- status = E_DS_CLIENT_FAILURE_INTERNAL;
- goto err;
- }
- LOC_LOGD("%s:%d]: WDS client initialized with qmi_client_init\n", __func__,
- __LINE__);
-
- //Store WDS QMI client handle in the parameter passed in
- *p_wds_qmi_client = wds_qmi_client;
-
- status = E_DS_CLIENT_SUCCESS;
- LOC_LOGD("%s:%d]: init success\n", __func__, __LINE__);
-
- if(notifier)
- qmi_client_release(notifier);
-
-err:
- if(p_service_info)
- free(p_service_info);
-
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return status;
-}
-
-/*This function reads the error code from within the response struct*/
-static ds_client_status_enum_type ds_client_convert_qmi_response(
- uint32_t req_id,
- ds_client_resp_union_type *resp_union)
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_FAILURE_GENERAL;
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
- switch(req_id)
- {
- case QMI_WDS_GET_PROFILE_LIST_REQ_V01 :
- {
- if(resp_union->p_get_profile_list_resp->resp.error !=
- QMI_ERR_NONE_V01) {
- LOC_LOGE("%s:%d]: Response error: %d", __func__, __LINE__,
- resp_union->p_get_profile_list_resp->resp.error);
- }
- else
- ret = E_DS_CLIENT_SUCCESS;
- }
- break;
-
- case QMI_WDS_GET_PROFILE_SETTINGS_REQ_V01 :
- {
- if(resp_union->p_get_profile_setting_resp->resp.error !=
- QMI_ERR_NONE_V01) {
- LOC_LOGE("%s:%d]: Response error: %d", __func__, __LINE__,
- resp_union->p_get_profile_setting_resp->resp.error);
- }
- else
- ret = E_DS_CLIENT_SUCCESS;
- }
- break;
-
- default:
- LOC_LOGE("%s:%d]: Unknown request ID\n", __func__, __LINE__);
- }
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return ret;
-}
-
-
-static ds_client_status_enum_type ds_client_send_qmi_sync_req(
- qmi_client_type *ds_client_handle,
- uint32_t req_id,
- ds_client_resp_union_type *resp_union,
- ds_client_req_union_type *req_union)
-{
- uint32_t req_len = 0;
- uint32_t resp_len = 0;
- ds_client_status_enum_type ret = E_DS_CLIENT_SUCCESS;
- qmi_client_error_type qmi_ret = QMI_NO_ERR;
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
- switch(req_id)
- {
- case QMI_WDS_GET_PROFILE_LIST_REQ_V01 :
- {
- req_len = sizeof(wds_get_profile_list_req_msg_v01);
- resp_len = sizeof(wds_get_profile_list_resp_msg_v01);
- LOC_LOGD("%s:%d]: req_id = GET_PROFILE_LIST_REQ\n",
- __func__, __LINE__);
- }
- break;
-
- case QMI_WDS_GET_PROFILE_SETTINGS_REQ_V01 :
- {
- req_len = sizeof(wds_get_profile_settings_req_msg_v01);
- resp_len = sizeof(wds_get_profile_settings_resp_msg_v01);
- LOC_LOGD("%s:%d]: req_id = GET_PROFILE_SETTINGS_REQ\n",
- __func__, __LINE__);
- }
- break;
-
- default:
- LOC_LOGE("%s:%d]: Error unknown req_id=%d\n", __func__, __LINE__,
- req_id);
- ret = E_DS_CLIENT_FAILURE_INVALID_PARAMETER;
- goto err;
- }
-
- LOC_LOGD("%s:%d]: req_id=%d, len = %d; resp_len= %d\n", __func__, __LINE__,
- req_id, req_len, resp_len);
- //Send msg through QCCI
- qmi_ret = qmi_client_send_msg_sync(
- *ds_client_handle,
- req_id,
- (void *)req_union->p_get_profile_list_req,
- req_len,
- (void *)resp_union->p_get_profile_list_resp,
- resp_len,
- DS_CLIENT_SYNC_MSG_TIMEOUT);
- LOC_LOGD("%s:%d]: qmi_client_send_msg_sync returned: %d", __func__, __LINE__, qmi_ret);
-
- if(qmi_ret != QMI_NO_ERR) {
- ret = E_DS_CLIENT_FAILURE_INTERNAL;
- goto err;
- }
-
- ret = ds_client_convert_qmi_response(req_id, resp_union);
-
-err:
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return ret;
-}
-
-/*This function obtains the list of supported profiles*/
-static ds_client_status_enum_type ds_client_get_profile_list(
- qmi_client_type *ds_client_handle,
- ds_client_resp_union_type *profile_list_resp_msg,
- wds_profile_type_enum_v01 profile_type)
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_SUCCESS;
- ds_client_req_union_type req_union;
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
-
- req_union.p_get_profile_list_req = NULL;
- req_union.p_get_profile_list_req = (wds_get_profile_list_req_msg_v01 *)
- calloc(1, sizeof(wds_get_profile_list_req_msg_v01));
- if(req_union.p_get_profile_list_req == NULL) {
- LOC_LOGE("%s:%d]: Could not allocate memory for"
- "wds_get_profile_list_req_msg_v01\n", __func__, __LINE__);
- goto err;
- }
- //Populate required members of the request structure
- req_union.p_get_profile_list_req->profile_type_valid = 1;
- req_union.p_get_profile_list_req->profile_type = profile_type;
- ret = ds_client_send_qmi_sync_req(ds_client_handle,
- QMI_WDS_GET_PROFILE_LIST_REQ_V01,
- profile_list_resp_msg, &req_union);
- if(ret != E_DS_CLIENT_SUCCESS) {
- LOC_LOGE("%s:%d]: ds_client_send_qmi_req failed. ret: %d\n",
- __func__, __LINE__, ret);
- goto err;
- }
-err:
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- if(req_union.p_get_profile_list_req)
- free(req_union.p_get_profile_list_req);
- return ret;
-}
-
-/*This function obtains settings for the profile specified by
- the profile_identifier*/
-static ds_client_status_enum_type ds_client_get_profile_settings(
- qmi_client_type *ds_client_handle,
- ds_client_resp_union_type *profile_settings_resp_msg,
- wds_profile_identifier_type_v01 *profile_identifier)
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_SUCCESS;
- ds_client_req_union_type req_union;
-
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
- //Since it's a union containing a pointer to a structure,
- //following entities have the same address
- //- req_union
- //- req_union.p_get_profile_settings_req
- //- req_union.p_get_profile_settings_req->profile
- //so we can very well assign req_union = profile_identifier
- req_union.p_get_profile_settings_req =
- (wds_get_profile_settings_req_msg_v01 *)profile_identifier;
- ret = ds_client_send_qmi_sync_req(ds_client_handle,
- QMI_WDS_GET_PROFILE_SETTINGS_REQ_V01,
- profile_settings_resp_msg, &req_union);
- if(ret != E_DS_CLIENT_SUCCESS) {
- LOC_LOGE("%s:%d]: ds_client_send_qmi_req failed. ret: %d\n",
- __func__, __LINE__, ret);
- goto err;
- }
-err:
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return ret;
-}
-
-/**
- * @brief Starts a data call using the profile number provided
- *
- * The function uses parameters provided from @a ds_client_open_call_type
- * call result.
- *
- * @param[in] client_handle Client handle
- * @param[in] profile_index Profile index
- * @param[in] pdp_type PDP type
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-static ds_client_status_enum_type ds_client_start_call
-(
- dsClientHandleType client_handle,
- int profile_index,
- int pdp_type
-)
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_FAILURE_GENERAL;
- dsi_call_param_value_t param_info;
- dsi_hndl_t dsi_handle;
- ds_client_session_data *ds_global_data = (ds_client_session_data *)client_handle;
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
- if(ds_global_data == NULL) {
- LOC_LOGE("%s:%d]: Null callback parameter\n", __func__, __LINE__);
- goto err;
- }
- dsi_handle = ds_global_data->dsi_net_handle;
- //Set profile index as call parameter
- param_info.buf_val = NULL;
- param_info.num_val = profile_index;
- dsi_set_data_call_param(dsi_handle,
- DSI_CALL_INFO_UMTS_PROFILE_IDX,
- ¶m_info);
-
- //Set IP Version as call parameter
- param_info.buf_val = NULL;
- param_info.num_val = pdp_type;
- dsi_set_data_call_param(dsi_handle,
- DSI_CALL_INFO_IP_VERSION,
- ¶m_info);
- LOC_LOGD("%s:%d]: Starting emergency call with profile index %d; pdp_type:%d\n",
- __func__, __LINE__, profile_index, pdp_type);
- if(dsi_start_data_call(dsi_handle) == DSI_SUCCESS) {
- LOC_LOGD("%s:%d]: Sent request to start data call\n",
- __func__, __LINE__);
- ret = E_DS_CLIENT_SUCCESS;
- }
- else {
- LOC_LOGE("%s:%d]: Could not send req to start data call \n", __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_GENERAL;
- goto err;
- }
-
-err:
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return ret;
-
-}
-
-/**
- * @brief Prepares for call.
- *
- * Obtains a handle to the dsi_netctrl layer and looks up the profile
- * to make the call. As of now. It only searches for profiles that
- * support emergency calls.
- *
- * Function to open an emergency call. Does the following things:
- * - Obtains a handle to the WDS service
- * - Obtains a list of profiles configured in the modem
- * - Queries each profile and obtains settings to check if emergency calls
- * are supported
- * - Returns the profile index that supports emergency calls
- * - Returns handle to dsi_netctrl
- *
- * @param[out] client_handle Client handle to initialize.
- * @param[in] callback Pointer to callback function table.
- * @param[in] cookie Client's cookie for using with callback calls.
- * @param[out] profile_index Pointer to profile index number.
- * @param[out] pdp_type Pointer to PDP type.
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success. Output parameters are initialized.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-static ds_client_status_enum_type ds_client_open_call
-(
- dsClientHandleType *client_handle,
- const ds_client_cb_data *callback,
- void *cookie,
- int *profile_index,
- int *pdp_type
-)
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_FAILURE_GENERAL;
- ds_client_resp_union_type profile_list_resp_msg;
- ds_client_resp_union_type profile_settings_resp_msg;
- wds_profile_identifier_type_v01 profile_identifier;
- uint32_t i=0;
- dsi_hndl_t dsi_handle;
- ds_client_session_data **ds_global_data = (ds_client_session_data **)client_handle;
- unsigned char call_profile_index_found = 0;
- uint32_t emergency_profile_index=0;
- qmi_client_type wds_qmi_client;
-
- profile_list_resp_msg.p_get_profile_list_resp = NULL;
- profile_settings_resp_msg.p_get_profile_setting_resp = NULL;
-
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
- if(callback == NULL || ds_global_data == NULL) {
- LOC_LOGE("%s:%d]: Null callback parameter\n", __func__, __LINE__);
- goto err;
- }
-
- ret = ds_client_qmi_ctrl_point_init(&wds_qmi_client);
- if(ret != E_DS_CLIENT_SUCCESS) {
- LOC_LOGE("%s:%d]: ds_client_qmi_ctrl_point_init failed. ret: %d\n",
- __func__, __LINE__, ret);
- goto err;
- }
-
- //Allocate memory for the response msg to obtain a list of profiles
- profile_list_resp_msg.p_get_profile_list_resp = (wds_get_profile_list_resp_msg_v01 *)
- calloc(1, sizeof(wds_get_profile_list_resp_msg_v01));
- if(profile_list_resp_msg.p_get_profile_list_resp == NULL) {
- LOC_LOGE("%s:%d]: Could not allocate memory for"
- "p_get_profile_list_resp\n", __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_NOT_ENOUGH_MEMORY;
- goto err;
- }
-
- LOC_LOGD("%s:%d]: Getting profile list\n", __func__, __LINE__);
- ret = ds_client_get_profile_list(&wds_qmi_client,
- &profile_list_resp_msg,
- WDS_PROFILE_TYPE_3GPP_V01);
- if(ret != E_DS_CLIENT_SUCCESS) {
- LOC_LOGE("%s:%d]: ds_client_get_profile_list failed. ret: %d\n",
- __func__, __LINE__, ret);
- goto err;
- }
- LOC_LOGD("%s:%d]: Got profile list; length = %d\n", __func__, __LINE__,
- profile_list_resp_msg.p_get_profile_list_resp->profile_list_len);
-
- //Allocate memory for the response msg to obtain profile settings
- //We allocate memory for only one response msg and keep re-using it
- profile_settings_resp_msg.p_get_profile_setting_resp =
- (wds_get_profile_settings_resp_msg_v01 *)
- calloc(1, sizeof(wds_get_profile_settings_resp_msg_v01));
- if(profile_settings_resp_msg.p_get_profile_setting_resp == NULL) {
- LOC_LOGE("%s:%d]: Could not allocate memory for"
- "p_get_profile_setting_resp\n", __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_NOT_ENOUGH_MEMORY;
- goto err;
- }
-
- //Loop over the list of profiles to find a profile that supports
- //emergency calls
- for(i=0; i < profile_list_resp_msg.p_get_profile_list_resp->profile_list_len; i++) {
- /*QMI_WDS_GET_PROFILE_SETTINGS_REQ requires an input data
- structure that is of type wds_profile_identifier_type_v01
- We have to fill that structure for each profile from the
- info obtained from the profile list*/
- //copy profile type
- profile_identifier.profile_type =
- profile_list_resp_msg.p_get_profile_list_resp->profile_list[i].profile_type;
- //copy profile index
- profile_identifier.profile_index =
- profile_list_resp_msg.p_get_profile_list_resp->profile_list[i].profile_index;
-
- ret = ds_client_get_profile_settings(&wds_qmi_client,
- &profile_settings_resp_msg,
- &profile_identifier);
- if(ret != E_DS_CLIENT_SUCCESS) {
- LOC_LOGE("%s:%d]: ds_client_get_profile_settings failed. ret: %d\n",
- __func__, __LINE__, ret);
- goto err;
- }
- LOC_LOGD("%s:%d]: Got profile setting for profile %d; name: %s\n",
- __func__, __LINE__, i,
- profile_settings_resp_msg.p_get_profile_setting_resp->profile_name);
-
- if(profile_settings_resp_msg.p_get_profile_setting_resp->support_emergency_calls_valid) {
- if(profile_settings_resp_msg.p_get_profile_setting_resp->support_emergency_calls) {
- LOC_LOGD("%s:%d]: Found emergency profile in profile %d"
- , __func__, __LINE__, i);
- call_profile_index_found = 1;
- emergency_profile_index = profile_identifier.profile_index;
-
- if(profile_settings_resp_msg.p_get_profile_setting_resp->pdp_type_valid) {
- *pdp_type = (int)profile_settings_resp_msg.p_get_profile_setting_resp->pdp_type;
- LOC_LOGD("%s:%d]: pdp_type: %d\n", __func__, __LINE__, *pdp_type);
- switch(*pdp_type) {
- case WDS_PDP_TYPE_PDP_IPV4_V01:
- *pdp_type = DSI_IP_VERSION_4;
- break;
- case WDS_PDP_TYPE_PDP_IPV6_V01:
- *pdp_type = DSI_IP_VERSION_6;
- break;
- case WDS_PDP_TYPE_PDP_IPV4V6_V01:
- *pdp_type = DSI_IP_VERSION_4_6;
- break;
- default:
- LOC_LOGE("%s:%d]: pdp_type unknown. Setting default as ipv4/v6\n",
- __func__, __LINE__);
- *pdp_type = DSI_IP_VERSION_4;
-
- }
- }
- else {
- LOC_LOGD("%s:%d]: pdp type not valid in profile setting. Default ipv4\n",
- __func__, __LINE__);
- *pdp_type = DSI_IP_VERSION_4;
- }
- //Break out of for loop since we found the emergency profile
- break;
- }
- else
- LOC_LOGE("%s:%d]: Emergency profile valid but not supported in profile: %d "
- , __func__, __LINE__, i);
- }
- //Since this struct is loaded with settings for the next profile,
- //it is important to clear out the memory to avoid values/flags
- //from being carried over
- memset((void *)profile_settings_resp_msg.p_get_profile_setting_resp,
- 0, sizeof(wds_get_profile_settings_resp_msg_v01));
- }
-
- //Release qmi client handle
- if(qmi_client_release(wds_qmi_client) != QMI_NO_ERR) {
- LOC_LOGE("%s:%d]: Could not release qmi client handle\n",
- __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_GENERAL;
- }
-
- if(call_profile_index_found) {
- *profile_index = emergency_profile_index;
- *ds_global_data = (ds_client_session_data *)calloc(1, sizeof(ds_client_session_data));
- if(*ds_global_data == NULL) {
- LOC_LOGE("%s:%d]: Could not allocate memory for ds_global_data. Failing\n",
- __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_NOT_ENOUGH_MEMORY;
- goto err;
- }
-
- (*ds_global_data)->caller_data.event_cb = callback->event_cb;
- (*ds_global_data)->caller_data.caller_cookie = cookie;
- dsi_handle = dsi_get_data_srvc_hndl(net_ev_cb, &(*ds_global_data)->caller_data);
- if(dsi_handle == NULL) {
- LOC_LOGE("%s:%d]: Could not get data handle. Retry Later\n",
- __func__, __LINE__);
- ret = E_DS_CLIENT_RETRY_LATER;
- goto err;
- }
- else
- (*ds_global_data)->dsi_net_handle = dsi_handle;
- }
- else {
- LOC_LOGE("%s:%d]: Could not find a profile that supports emergency calls",
- __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_GENERAL;
- }
-err:
- if(profile_list_resp_msg.p_get_profile_list_resp)
- free(profile_list_resp_msg.p_get_profile_list_resp);
- if(profile_settings_resp_msg.p_get_profile_setting_resp)
- free(profile_settings_resp_msg.p_get_profile_setting_resp);
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return ret;
-}
-
-/**
- * @brief Stops a data call associated with the handle
- *
- * @param[in] client_handle Client handle
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-static ds_client_status_enum_type ds_client_stop_call(dsClientHandleType client_handle)
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_SUCCESS;
- ds_client_session_data *p_ds_global_data = (ds_client_session_data *)client_handle;
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
-
- if(client_handle == NULL) {
- LOC_LOGE("%s:%d]: Null argument received. Failing\n", __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_GENERAL;
- goto err;
- }
-
- if(dsi_stop_data_call(p_ds_global_data->dsi_net_handle) == DSI_SUCCESS) {
- LOC_LOGD("%s:%d]: Sent request to stop data call\n", __func__, __LINE__);
- }
- else {
- LOC_LOGE("%s:%d]: Could not send request to stop data call\n",
- __func__, __LINE__);
- ret = E_DS_CLIENT_FAILURE_GENERAL;
- goto err;
- }
-
-err:
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return ret;
-}
-
-/**
- * @brief Releases the handle used for making data calls
- *
- * @param[in,out] client_handle Client handle pointer
- *
- * @return None
- */
-static void ds_client_close_call(dsClientHandleType *client_handle)
-{
- ds_client_session_data **ds_global_data = (ds_client_session_data **)client_handle;
- LOC_LOGD("%s:%d]:Enter\n", __func__, __LINE__);
- if(client_handle == NULL || *client_handle == NULL) {
- LOC_LOGE("%s:%d]: Null argument received. Failing\n", __func__, __LINE__);
- goto err;
- }
- dsi_rel_data_srvc_hndl((*ds_global_data)->dsi_net_handle);
- (*ds_global_data)->dsi_net_handle = NULL;
- free(*ds_global_data);
- *ds_global_data = NULL;
- LOC_LOGD("%s:%d]: Released Data handle\n", __func__, __LINE__);
-err:
- LOC_LOGD("%s:%d]:Exit\n", __func__, __LINE__);
- return;
-}
-
-/**
- * @brief Initialize the DS client service
- *
- * This function is to be called as a first step by each process that
- * needs to use data services. This call internally calls dsi_init()
- * and prepares the module for making data calls.
- * Needs to be called once for every process
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-static ds_client_status_enum_type ds_client_init(bool is_ssr)
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_SUCCESS;
- int dsi_mode = (is_ssr)?DSI_MODE_SSR:DSI_MODE_GENERAL;
- if(DSI_SUCCESS != dsi_init(dsi_mode))
- {
- ret = E_DS_CLIENT_FAILURE_GENERAL;
- }
- LOC_LOGD("%s:%d]: is_ssr:%d dsi_mode:%d ret_status:%d",
- __func__, __LINE__,
- is_ssr, dsi_mode, ret);
- return ret;
-}
-
-/**
- * @brief Releases the DS client service
- *
- * This function is to be called as a last step by each process that
- * use data services to release DS interface. This call internally calls
- * dsi_release() and prepares the shutdown of module.
- * Needs to be called once after data call is done to release DS interface.
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-static ds_client_status_enum_type ds_client_release()
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_SUCCESS;
-
- if(DSI_SUCCESS != dsi_release(DSI_MODE_GENERAL))
- {
- ret = E_DS_CLIENT_FAILURE_GENERAL;
- }
- LOC_LOGD("%s:%d]: ret status: %d", __func__, __LINE__, ret);
- return ret;
-}
-
-/**
- * @brief DS client function interface table definition.
- */
-static const ds_client_iface_type iface =
-{
- .pfn_init = ds_client_init,
- .pfn_open_call = ds_client_open_call,
- .pfn_start_call = ds_client_start_call,
- .pfn_stop_call = ds_client_stop_call,
- .pfn_close_call = ds_client_close_call,
- .pfn_release = ds_client_release
-};
-
-/**
- * @brief Function for accessing DS client functional interface
- *
- * @return Pointer to interface structure.
- */
-const ds_client_iface_type *ds_client_get_interface()
-{
- return &iface;
-}
-
-/**
- * @}
- */
diff --git a/location/loc_api/ds_api/ds_client.h b/location/loc_api/ds_api/ds_client.h
deleted file mode 100644
index cf505cf..0000000
--- a/location/loc_api/ds_api/ds_client.h
+++ /dev/null
@@ -1,296 +0,0 @@
-/* Copyright (c) 2013, 2015 The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _DS_CLIENT_H_
-#define _DS_CLIENT_H_
-
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file
- * @brief DS client API declaration.
- *
- * @ingroup loc_ds_api
- */
-
-/**
- * @addtogroup loc_ds_api DS client support for location
- * @{
- */
-
-/**
- * @brief Function name for DS client interface query.
- *
- * @sa ds_client_get_interface
- */
-#define DS_CLIENT_GET_INTERFACE_FN "ds_client_get_interface"
-/**
- * @brief Library name for loading DS client
- */
-#ifdef USE_GLIB
-#define DS_CLIENT_LIB_NAME "libloc_ds_api.so.1"
-#else
-#define DS_CLIENT_LIB_NAME "libloc_ds_api.so"
-#endif
-
-typedef void* dsClientHandleType;
-
-typedef enum
-{
- E_DS_CLIENT_SUCCESS = 0,
- /**< Request was successful. */
-
- E_DS_CLIENT_FAILURE_GENERAL = 1,
- /**< Failed because of a general failure. */
-
- E_DS_CLIENT_FAILURE_UNSUPPORTED = 2,
- /**< Failed because the service does not support the command. */
-
- E_DS_CLIENT_FAILURE_INVALID_PARAMETER = 3,
- /**< Failed because the request contained invalid parameters. */
-
- E_DS_CLIENT_FAILURE_ENGINE_BUSY = 4,
- /**< Failed because the engine is busy. */
-
- E_DS_CLIENT_FAILURE_PHONE_OFFLINE = 5,
- /**< Failed because the phone is offline. */
-
- E_DS_CLIENT_FAILURE_TIMEOUT = 6,
- /**< Failed because of a timeout. */
-
- E_DS_CLIENT_FAILURE_SERVICE_NOT_PRESENT = 7,
- /**< Failed because the service is not present. */
-
- E_DS_CLIENT_FAILURE_SERVICE_VERSION_UNSUPPORTED = 8,
- /**< Failed because the service version is unsupported. */
-
- E_DS_CLIENT_FAILURE_CLIENT_VERSION_UNSUPPORTED = 9,
- /**< Failed because the service does not support client version. */
-
- E_DS_CLIENT_FAILURE_INVALID_HANDLE = 10,
- /**< Failed because an invalid handle was specified. */
-
- E_DS_CLIENT_FAILURE_INTERNAL = 11,
- /**< Failed because of an internal error in the service. */
-
- E_DS_CLIENT_FAILURE_NOT_INITIALIZED = 12,
- /**< Failed because the service has not been initialized. */
-
- E_DS_CLIENT_FAILURE_NOT_ENOUGH_MEMORY = 13,
- /**< Failed because not rnough memory to do the operation.*/
-
- E_DS_CLIENT_SERVICE_ALREADY_STARTED = 14,
- /*Service is already started*/
-
- E_DS_CLIENT_DATA_CALL_CONNECTED = 15,
-
- E_DS_CLIENT_DATA_CALL_DISCONNECTED = 16,
-
- E_DS_CLIENT_RETRY_LATER = 17
-} ds_client_status_enum_type;
-
-/**
- * @brief Callback function interface for handling DS service indications
- *
- * @param[in] result Operation result (error code).
- * @param[in] cookie Client cookie provided when call is opened.
- *
- * @sa ds_client_cb_data
- */
-typedef void ds_client_event_ind_cb_type
-(
- ds_client_status_enum_type result,
- void* loc_adapter_cookie
-);
-
-/**
- * @brief Client callback function table
- *
- * This structure contains callback functions provided by client of DS client
- * API for delivering event notifications.
- *
- * @sa ds_client_open_call_type
- */
-typedef struct {
- ds_client_event_ind_cb_type *event_cb;
-} ds_client_cb_data;
-
-/**
- * @brief Initialize the DS client service
- *
- * This function is to be called as a first step by each process that
- * needs to use data services. This call internally calls dsi_init()
- * and prepares the module for making data calls.
- * Needs to be called once for every process
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-typedef ds_client_status_enum_type ds_client_init_type(bool is_ssr);
-
-/**
- * @brief Prepares for call.
- *
- * Obtains a handle to the dsi_netctrl layer and looks up the profile
- * to make the call. As of now. It only searches for profiles that
- * support emergency calls.
- *
- * Function to open an emergency call. Does the following things:
- * - Obtains a handle to the WDS service
- * - Obtains a list of profiles configured in the modem
- * - Queries each profile and obtains settings to check if emergency calls
- * are supported
- * - Returns the profile index that supports emergency calls
- * - Returns handle to dsi_netctrl
- *
- * @param[out] client_handle Client handle to initialize.
- * @param[in] callback Pointer to callback function table.
- * @param[in] cookie Client's cookie for using with callback calls.
- * @param[out] profile_index Pointer to profile index number.
- * @param[out] pdp_type Pointer to PDP type.
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success. Output parameters are initialized.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-typedef ds_client_status_enum_type ds_client_open_call_type
-(
- dsClientHandleType *client_handle,
- const ds_client_cb_data *callback,
- void *cookie,
- int *profile_index,
- int *pdp_type
-);
-
-/**
- * @brief Starts a data call using the profile number provided
- *
- * The function uses parameters provided from @a ds_client_open_call_type
- * call result.
- *
- * @param[in] client_handle Client handle
- * @param[in] profile_index Profile index
- * @param[in] pdp_type PDP type
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-typedef ds_client_status_enum_type ds_client_start_call_type
-(
- dsClientHandleType client_handle,
- int profile_index,
- int pdp_type
-);
-
-/**
- * @brief Stops a data call associated with the handle
- *
- * @param[in] client_handle Client handle
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-typedef ds_client_status_enum_type ds_client_stop_call_type
-(
- dsClientHandleType client_handle
-);
-
-/**
- * @brief Releases the handle used for making data calls
- *
- * @param[in,out] client_handle Client handle pointer
- *
- * @return None
- */
-typedef void ds_client_close_call_type
-(
- dsClientHandleType *client_handle
-);
-
-/**
- * @brief Releases the DS client service
- *
- * This function is to be called as a last step by each process that
- * use data services to release DS interface. This call internally calls
- * dsi_release() and prepares the shutdown of module.
- * Needs to be called once after data call is done to release DS interface.
- *
- * @return Operation result
- * @retval E_DS_CLIENT_SUCCESS On success.
- * @retval E_DS_CLIENT_FAILURE... On error.
- */
-typedef ds_client_status_enum_type ds_client_release_type();
-
-/**
- * @brief DS client functional interface table
- *
- * This table contains all supported DS client operations. If the operation
- * is not supported, the corresponding entry is NULL.
- *
- * @sa ds_client_get_interface
- */
-typedef struct
-{
- ds_client_init_type *pfn_init;
- ds_client_open_call_type *pfn_open_call;
- ds_client_start_call_type *pfn_start_call;
- ds_client_stop_call_type *pfn_stop_call;
- ds_client_close_call_type *pfn_close_call;
- ds_client_release_type *pfn_release;
-} ds_client_iface_type;
-
-/**
- * @brief Function for accessing DS client functional interface
- *
- * @return Pointer to interface structure.
- */
-typedef const ds_client_iface_type *ds_client_get_iface_fn();
-
-/**
- * @brief Function for accessing DS client functional interface
- *
- * @return Pointer to interface structure.
- */
-ds_client_get_iface_fn ds_client_get_interface;
-
-#ifdef __cplusplus
-}
-#endif
-
-/**
- * @}
- */
-
-#endif /* _DS_CLIENT_H_ */
diff --git a/location/loc_api/loc_api_v02/Android.mk b/location/loc_api/loc_api_v02/Android.mk
deleted file mode 100644
index 9e2005d..0000000
--- a/location/loc_api/loc_api_v02/Android.mk
+++ /dev/null
@@ -1,64 +0,0 @@
-ifneq ($(BUILD_TINY_ANDROID),true)
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libloc_api_v02
-
-LOCAL_MODULE_TAGS := optional
-
-ifeq ($(TARGET_DEVICE),apq8026_lw)
-LOCAL_CFLAGS += -DPDK_FEATURE_SET
-else ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true)
-LOCAL_CFLAGS += -DPDK_FEATURE_SET
-endif
-
-LOCAL_SHARED_LIBRARIES := \
- libutils \
- liblog \
- libcutils \
- liblog \
- libqmi_cci \
- libqmi_common_so \
- libloc_core \
- libgps.utils \
- libdl \
- libloc_pla
-
-LOCAL_SRC_FILES = \
- LocApiV02.cpp \
- loc_api_v02_log.c \
- loc_api_v02_client.c \
- loc_api_sync_req.c \
- location_service_v02.c
-
-LOCAL_CFLAGS += \
- -fno-short-enums \
- -D_ANDROID_
-
-LOCAL_COPY_HEADERS_TO:= libloc_api_v02/
-
-LOCAL_COPY_HEADERS:= \
- location_service_v02.h \
- loc_api_v02_log.h \
- loc_api_v02_client.h \
- loc_api_sync_req.h \
- LocApiV02.h \
- loc_util_log.h
-
-
-## Includes
-LOCAL_C_INCLUDES := \
- $(TARGET_OUT_HEADERS)/libloc_core \
- $(TARGET_OUT_HEADERS)/qmi-framework/inc \
- $(TARGET_OUT_HEADERS)/qmi/inc \
- $(TARGET_OUT_HEADERS)/gps.utils \
- $(TARGET_OUT_HEADERS)/libloc_ds_api \
- $(TARGET_OUT_HEADERS)/libloc_pla
-
-LOCAL_PRELINK_MODULE := false
-
-include $(BUILD_SHARED_LIBRARY)
-
-endif # not BUILD_TINY_ANDROID
diff --git a/location/loc_api/loc_api_v02/LocApiV02.cpp b/location/loc_api/loc_api_v02/LocApiV02.cpp
deleted file mode 100644
index ed2106e..0000000
--- a/location/loc_api/loc_api_v02/LocApiV02.cpp
+++ /dev/null
@@ -1,4557 +0,0 @@
-/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundatoin, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define LOG_NDEBUG 0
-#define LOG_TAG "LocSvc_ApiV02"
-
-#include
-#include
-#include
-#include
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include "platform_lib_includes.h"
-#include
-
-using namespace loc_core;
-
-/* Doppler Conversion from M/S to NS/S */
-#define MPS_TO_NSPS (1.0/0.299792458)
-
-/* Default session id ; TBD needs incrementing for each */
-#define LOC_API_V02_DEF_SESSION_ID (1)
-
-/* UMTS CP Address key*/
-#define LOC_NI_NOTIF_KEY_ADDRESS "Address"
-
-/* GPS SV Id offset */
-#define GPS_SV_ID_OFFSET (1)
-
-/* GLONASS SV Id offset */
-#define GLONASS_SV_ID_OFFSET (65)
-
-/* SV ID range */
-#define SV_ID_RANGE (32)
-
-#define BDS_SV_ID_OFFSET (201)
-
-/* BeiDou SV ID RANGE*/
-#define BDS_SV_ID_RANGE QMI_LOC_DELETE_MAX_BDS_SV_INFO_LENGTH_V02
-
-/* GPS week unknown*/
-#define C_GPS_WEEK_UNKNOWN (65535)
-
-/* seconds per week*/
-#define WEEK_MSECS (60*60*24*7*1000)
-
-/* number of QMI_LOC messages that need to be checked*/
-#define NUMBER_OF_MSG_TO_BE_CHECKED (3)
-
-/* Gaussian 2D scaling table - scale from x% to 68% confidence */
-struct conf_scaler_to_68_pair {
- uint8_t confidence;
- float scaler_to_68;
-};
-/* length of confScalers array */
-#define CONF_SCALER_ARRAY_MAX (3)
-const struct conf_scaler_to_68_pair confScalers[CONF_SCALER_ARRAY_MAX] = {
- {39, 1.517}, // 0 - 39 . Index 0
- {50, 1.287}, // 40 - 50. Index 1
- {63, 1.072}, // 51 - 63. Index 2
-};
-
-#define GPS_CONF_FILE "/etc/gps.conf"
-
-/*fixed timestamp uncertainty 10 milli second */
-static int ap_timestamp_uncertainty = 0;
-static loc_param_s_type gps_conf_param_table[] =
-{
- {"AP_TIMESTAMP_UNCERTAINTY",&ap_timestamp_uncertainty,NULL,'n'}
-};
-
-/* static event callbacks that call the LocApiV02 callbacks*/
-
-/* global event callback, call the eventCb function in loc api adapter v02
- instance */
-static void globalEventCb(locClientHandleType clientHandle,
- uint32_t eventId,
- const locClientEventIndUnionType eventPayload,
- void* pClientCookie)
-{
- MODEM_LOG_CALLFLOW(%s, loc_get_v02_event_name(eventId));
- LocApiV02 *locApiV02Instance =
- (LocApiV02 *)pClientCookie;
-
- LOC_LOGV ("%s:%d] client = %p, event id = %d, client cookie ptr = %p\n",
- __func__, __LINE__, clientHandle, eventId, pClientCookie);
-
- // return if null is passed
- if( NULL == locApiV02Instance)
- {
- LOC_LOGE ("%s:%d] NULL object passed : client = %p, event id = %d\n",
- __func__, __LINE__, clientHandle, eventId);
- return;
- }
- locApiV02Instance->eventCb(clientHandle, eventId, eventPayload);
-}
-
-/* global response callback, it calls the sync request process
- indication function to unblock the request that is waiting on this
- response indication*/
-static void globalRespCb(locClientHandleType clientHandle,
- uint32_t respId,
- const locClientRespIndUnionType respPayload,
- uint32_t respPayloadSize,
- void* pClientCookie)
-{
- MODEM_LOG_CALLFLOW(%s, loc_get_v02_event_name(respId));
- LocApiV02 *locApiV02Instance =
- (LocApiV02 *)pClientCookie;
-
- LOC_LOGV ("%s:%d] client = %p, resp id = %d, client cookie ptr = %p\n",
- __func__, __LINE__, clientHandle, respId, pClientCookie);
-
- if( NULL == locApiV02Instance)
- {
- LOC_LOGE ("%s:%d] NULL object passed : client = %p, resp id = %d\n",
- __func__, __LINE__, clientHandle, respId);
- return;
- }
-
- switch(respId)
- {
- case QMI_LOC_GET_AVAILABLE_WWAN_POSITION_IND_V02:
- if (respPayload.pGetAvailWwanPositionInd != NULL) {
- locApiV02Instance->handleWwanZppFixIndication(*respPayload.pGetAvailWwanPositionInd);
- }
- break;
- default:
- // process the sync call
- // use pDeleteAssistDataInd as a dummy pointer
- loc_sync_process_ind(clientHandle, respId,
- (void *)respPayload.pDeleteAssistDataInd, respPayloadSize);
- break;
- }
-}
-
-/* global error callback, it will call the handle service down
- function in the loc api adapter instance. */
-static void globalErrorCb (locClientHandleType clientHandle,
- locClientErrorEnumType errorId,
- void *pClientCookie)
-{
- LocApiV02 *locApiV02Instance =
- (LocApiV02 *)pClientCookie;
-
- LOC_LOGV ("%s:%d] client = %p, error id = %d\n, client cookie ptr = %p\n",
- __func__, __LINE__, clientHandle, errorId, pClientCookie);
- if( NULL == locApiV02Instance)
- {
- LOC_LOGE ("%s:%d] NULL object passed : client = %p, error id = %d\n",
- __func__, __LINE__, clientHandle, errorId);
- return;
- }
- locApiV02Instance->errorCb(clientHandle, errorId);
-}
-
-/* global structure containing the callbacks */
-locClientCallbacksType globalCallbacks =
-{
- sizeof(locClientCallbacksType),
- globalEventCb,
- globalRespCb,
- globalErrorCb
-};
-
-static void getInterSystemTimeBias(const char* interSystem,
- Gnss_InterSystemBiasStructType &interSystemBias,
- const qmiLocInterSystemBiasStructT_v02* pInterSysBias)
-{
- LOC_LOGV("%s] Mask:%d, TimeBias:%f, TimeBiasUnc:%f,\n",
- interSystem, pInterSysBias->validMask, pInterSysBias->timeBias,
- pInterSysBias->timeBiasUnc);
-
- interSystemBias.validMask = pInterSysBias->validMask;
- interSystemBias.timeBias = pInterSysBias->timeBias;
- interSystemBias.timeBiasUnc = pInterSysBias->timeBiasUnc;
-}
-
-/* Constructor for LocApiV02 */
-LocApiV02 :: LocApiV02(const MsgTask* msgTask,
- LOC_API_ADAPTER_EVENT_MASK_T exMask,
- ContextBase* context):
- LocApiBase(msgTask, exMask, context),
- clientHandle(LOC_CLIENT_INVALID_HANDLE_VALUE),
- dsClientIface(NULL),
- dsClientHandle(NULL),
- dsLibraryHandle(NULL),
- mGnssMeasurementSupported(sup_unknown),
- mQmiMask(0), mInSession(false),
- mEngineOn(false), mMeasurementsStarted(false)
-{
- // initialize loc_sync_req interface
- loc_sync_req_init();
-
- UTIL_READ_CONF(GPS_CONF_FILE,gps_conf_param_table);
-}
-
-/* Destructor for LocApiV02 */
-LocApiV02 :: ~LocApiV02()
-{
- close();
-}
-
-LocApiBase* getLocApi(const MsgTask *msgTask,
- LOC_API_ADAPTER_EVENT_MASK_T exMask,
- ContextBase* context)
-{
- return (LocApiBase*)LocApiV02::createLocApiV02(msgTask, exMask, context);
-}
-
-LocApiBase* LocApiV02::createLocApiV02(const MsgTask *msgTask,
- LOC_API_ADAPTER_EVENT_MASK_T exMask,
- ContextBase* context)
-{
- if (NULL != msgTask) {
- LOC_LOGE("%s:%d]: msgTask can not be NULL", __func__, __LINE__);
- return NULL;
- }
- LOC_LOGD("%s:%d]: Creating new LocApiV02", __func__, __LINE__);
- return new LocApiV02(msgTask, exMask, context);
-}
-
-/* Initialize a loc api v02 client AND
- check which loc message are supported by modem */
-enum loc_api_adapter_err
-LocApiV02 :: open(LOC_API_ADAPTER_EVENT_MASK_T mask)
-{
- enum loc_api_adapter_err rtv = LOC_API_ADAPTER_ERR_SUCCESS;
- LOC_API_ADAPTER_EVENT_MASK_T newMask = mMask | (mask & ~mExcludedMask);
- locClientEventMaskType qmiMask = convertMask(newMask);
- LOC_LOGD("%s:%d]: Enter mMask: %x; mask: %x; newMask: %x mQmiMask: %lld qmiMask: %lld",
- __func__, __LINE__, mMask, mask, newMask, mQmiMask, qmiMask);
- /* If the client is already open close it first */
- if(LOC_CLIENT_INVALID_HANDLE_VALUE == clientHandle)
- {
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
-
- LOC_LOGV ("%s:%d]: reference to this = %p passed in \n",
- __func__, __LINE__, this);
- /* initialize the loc api v02 interface, note that
- the locClientOpen() function will block if the
- service is unavailable for a fixed time out */
-
- // it is important to cap the mask here, because not all LocApi's
- // can enable the same bits, e.g. foreground and bckground.
- status = locClientOpen(adjustMaskForNoSession(qmiMask), &globalCallbacks,
- &clientHandle, (void *)this);
- mMask = newMask;
- mQmiMask = qmiMask;
- if (eLOC_CLIENT_SUCCESS != status ||
- clientHandle == LOC_CLIENT_INVALID_HANDLE_VALUE )
- {
- mMask = 0;
- mQmiMask = 0;
- LOC_LOGE ("%s:%d]: locClientOpen failed, status = %s\n", __func__,
- __LINE__, loc_get_v02_client_status_name(status));
- rtv = LOC_API_ADAPTER_ERR_FAILURE;
- } else {
- uint64_t supportedMsgList = 0;
- const uint32_t msgArray[NUMBER_OF_MSG_TO_BE_CHECKED] =
- {
- // For - LOC_API_ADAPTER_MESSAGE_LOCATION_BATCHING
- QMI_LOC_GET_BATCH_SIZE_REQ_V02,
-
- // For - LOC_API_ADAPTER_MESSAGE_BATCHED_GENFENCE_BREACH
- QMI_LOC_EVENT_GEOFENCE_BATCHED_BREACH_NOTIFICATION_IND_V02,
-
- // For - LOC_API_ADAPTER_MESSAGE_DISTANCE_BASE_TRACKING
- QMI_LOC_START_DBT_REQ_V02
- };
-
- // check the modem
- status = locClientSupportMsgCheck(clientHandle,
- msgArray,
- NUMBER_OF_MSG_TO_BE_CHECKED,
- &supportedMsgList);
- if (eLOC_CLIENT_SUCCESS != status) {
- LOC_LOGE("%s:%d]: Failed to checking QMI_LOC message supported. \n",
- __func__, __LINE__);
- }
-
- /** if batching is supported , check if the adaptive batching or
- distance-based batching is supported. */
- uint32_t messageChecker = 1 << LOC_API_ADAPTER_MESSAGE_LOCATION_BATCHING;
- if ((messageChecker & supportedMsgList) == messageChecker) {
- locClientReqUnionType req_union;
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- qmiLocQueryAonConfigReqMsgT_v02 queryAonConfigReq;
- qmiLocQueryAonConfigIndMsgT_v02 queryAonConfigInd;
-
- memset(&queryAonConfigReq, 0, sizeof(queryAonConfigReq));
- memset(&queryAonConfigInd, 0, sizeof(queryAonConfigInd));
- queryAonConfigReq.transactionId = LOC_API_V02_DEF_SESSION_ID;
-
- req_union.pQueryAonConfigReq = &queryAonConfigReq;
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_QUERY_AON_CONFIG_REQ_V02,
- req_union,
- LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_QUERY_AON_CONFIG_IND_V02,
- &queryAonConfigInd);
-
- if (status == eLOC_CLIENT_FAILURE_UNSUPPORTED) {
- LOC_LOGE("%s:%d]: Query AON config is not supported.\n", __func__, __LINE__);
- } else {
- if (status != eLOC_CLIENT_SUCCESS ||
- queryAonConfigInd.status != eQMI_LOC_SUCCESS_V02) {
- LOC_LOGE("%s:%d]: Query AON config failed."
- " status: %s, ind status:%s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(queryAonConfigInd.status));
- } else {
- LOC_LOGD("%s:%d]: Query AON config succeeded. aonCapability is %d.\n",
- __func__, __LINE__, queryAonConfigInd.aonCapability);
- if (queryAonConfigInd.aonCapability_valid) {
- if (queryAonConfigInd.aonCapability |
- QMI_LOC_MASK_AON_TIME_BASED_BATCHING_SUPPORTED_V02) {
- LOC_LOGD("%s:%d]: LB 1.0 is supported.\n", __func__, __LINE__);
- }
- if (queryAonConfigInd.aonCapability |
- QMI_LOC_MASK_AON_AUTO_BATCHING_SUPPORTED_V02) {
- LOC_LOGD("%s:%d]: LB 1.5 is supported.\n", __func__, __LINE__);
- supportedMsgList |=
- (1 << LOC_API_ADAPTER_MESSAGE_ADAPTIVE_LOCATION_BATCHING);
- }
- if (queryAonConfigInd.aonCapability |
- QMI_LOC_MASK_AON_DISTANCE_BASED_BATCHING_SUPPORTED_V02) {
- LOC_LOGD("%s:%d]: LB 2.0 is supported.\n", __func__, __LINE__);
- supportedMsgList |=
- (1 << LOC_API_ADAPTER_MESSAGE_DISTANCE_BASE_LOCATION_BATCHING);
- }
- if (queryAonConfigInd.aonCapability |
- QMI_LOC_MASK_AON_DISTANCE_BASED_TRACKING_SUPPORTED_V02) {
- LOC_LOGD("%s:%d]: DBT 2.0 is supported.\n", __func__, __LINE__);
- }
- if (queryAonConfigInd.aonCapability |
- QMI_LOC_MASK_AON_UPDATE_TBF_SUPPORTED_V02) {
- LOC_LOGD("%s:%d]: Updating tracking TBF on the fly is supported.\n",
- __func__, __LINE__);
- supportedMsgList |=
- (1 << LOC_API_ADAPTER_MESSAGE_UPDATE_TBF_ON_THE_FLY);
- }
- } else {
- LOC_LOGE("%s:%d]: AON capability is invalid.\n", __func__, __LINE__);
- }
- }
- }
- }
- LOC_LOGV("%s:%d]: supportedMsgList is %lld. \n",
- __func__, __LINE__, supportedMsgList);
- // save the supported message list
- saveSupportedMsgList(supportedMsgList);
-
- // Query for supported feature list
- locClientReqUnionType req_union;
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- qmiLocGetSupportedFeatureReqMsgT_v02 getSupportedFeatureList_req;
- qmiLocGetSupportedFeatureIndMsgT_v02 getSupportedFeatureList_ind;
-
- memset(&getSupportedFeatureList_req, 0, sizeof(getSupportedFeatureList_req));
- memset(&getSupportedFeatureList_ind, 0, sizeof(getSupportedFeatureList_ind));
-
- req_union.pGetSupportedFeatureReq = &getSupportedFeatureList_req;
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_GET_SUPPORTED_FEATURE_REQ_V02,
- req_union,
- LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_GET_SUPPORTED_FEATURE_IND_V02,
- &getSupportedFeatureList_ind);
- if (eLOC_CLIENT_SUCCESS != status) {
- LOC_LOGE("%s:%d:%d]: Failed to get features supported from "
- "QMI_LOC_GET_SUPPORTED_FEATURE_REQ_V02. \n", __func__, __LINE__, status);
- } else {
- LOC_LOGD("%s:%d:%d]: Got list of features supported of length:%d ",
- __func__, __LINE__, getSupportedFeatureList_ind.feature_len);
- for (int i = 0; i < getSupportedFeatureList_ind.feature_len; i++) {
- LOC_LOGD("Bit-mask of supported features at index:%d is %d",i,
- getSupportedFeatureList_ind.feature[i]);
- }
- if (getSupportedFeatureList_ind.feature_len > 0) {
- saveSupportedFeatureList(getSupportedFeatureList_ind.feature);
- }
- }
- }
- } else if (newMask != mMask) {
- // it is important to cap the mask here, because not all LocApi's
- // can enable the same bits, e.g. foreground and background.
- if (!registerEventMask(qmiMask)) {
- // we do not update mMask here, because it did not change
- // as the mask update has failed.
- rtv = LOC_API_ADAPTER_ERR_FAILURE;
- }
- else {
- mMask = newMask;
- mQmiMask = qmiMask;
- }
- }
- /*Set the SV Measurement Constellation when Measurement Report or Polynomial report is set*/
- if( (qmiMask & QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT_V02) ||
- (qmiMask & QMI_LOC_EVENT_MASK_GNSS_SV_POLYNOMIAL_REPORT_V02) )
- {
- setSvMeasurementConstellation( eQMI_SYSTEM_GPS_V02 |
- eQMI_SYSTEM_GLO_V02 |
- eQMI_SYSTEM_BDS_V02 |
- eQMI_SYSTEM_GAL_V02 |
- eQMI_SYSTEM_QZSS_V02);
- }
- LOC_LOGD("%s:%d]: Exit mMask: %x; mask: %x mQmiMask: %lld qmiMask: %lld",
- __func__, __LINE__, mMask, mask, mQmiMask, qmiMask);
-
- if (LOC_API_ADAPTER_ERR_SUCCESS == rtv) {
- cacheGnssMeasurementSupport();
- }
-
- return rtv;
-}
-
-bool LocApiV02 :: registerEventMask(locClientEventMaskType qmiMask)
-{
- if (!mInSession) {
- qmiMask = adjustMaskForNoSession(qmiMask);
- }
- LOC_LOGD("%s:%d]: mQmiMask=%lld qmiMask=%lld",
- __func__, __LINE__, mQmiMask, qmiMask);
- return locClientRegisterEventMask(clientHandle, qmiMask);
-}
-
-locClientEventMaskType LocApiV02 :: adjustMaskForNoSession(locClientEventMaskType qmiMask)
-{
- LOC_LOGD("%s:%d]: before qmiMask=%lld",
- __func__, __LINE__, qmiMask);
- locClientEventMaskType clearMask = QMI_LOC_EVENT_MASK_POSITION_REPORT_V02 |
- QMI_LOC_EVENT_MASK_GNSS_SV_INFO_V02 |
- QMI_LOC_EVENT_MASK_NMEA_V02 |
- QMI_LOC_EVENT_MASK_ENGINE_STATE_V02 |
- QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT_V02;
-
- qmiMask = qmiMask & ~clearMask;
- LOC_LOGD("%s:%d]: after qmiMask=%lld",
- __func__, __LINE__, qmiMask);
- return qmiMask;
-}
-
-enum loc_api_adapter_err LocApiV02 :: close()
-{
- enum loc_api_adapter_err rtv =
- // success if either client is already invalid, or
- // we successfully close the handle
- (LOC_CLIENT_INVALID_HANDLE_VALUE == clientHandle ||
- eLOC_CLIENT_SUCCESS == locClientClose(&clientHandle)) ?
- LOC_API_ADAPTER_ERR_SUCCESS : LOC_API_ADAPTER_ERR_FAILURE;
-
- mMask = 0;
- clientHandle = LOC_CLIENT_INVALID_HANDLE_VALUE;
-
- return rtv;
-}
-
-/* start positioning session */
-enum loc_api_adapter_err LocApiV02 :: startFix(const LocPosMode& fixCriteria)
-{
- locClientStatusEnumType status;
- locClientReqUnionType req_union;
-
- qmiLocStartReqMsgT_v02 start_msg;
-
- qmiLocSetOperationModeReqMsgT_v02 set_mode_msg;
- qmiLocSetOperationModeIndMsgT_v02 set_mode_ind;
-
- // clear all fields, validity masks
- memset (&start_msg, 0, sizeof(start_msg));
- memset (&set_mode_msg, 0, sizeof(set_mode_msg));
- memset (&set_mode_ind, 0, sizeof(set_mode_ind));
-
- LOC_LOGV("%s:%d]: start \n", __func__, __LINE__);
- fixCriteria.logv();
-
- mInSession = true;
- mMeasurementsStarted = true;
- registerEventMask(mQmiMask);
-
- // fill in the start request
- switch(fixCriteria.mode)
- {
- case LOC_POSITION_MODE_MS_BASED:
- set_mode_msg.operationMode = eQMI_LOC_OPER_MODE_MSB_V02;
- break;
-
- case LOC_POSITION_MODE_MS_ASSISTED:
- set_mode_msg.operationMode = eQMI_LOC_OPER_MODE_MSA_V02;
- break;
-
- case LOC_POSITION_MODE_RESERVED_4:
- set_mode_msg.operationMode = eQMI_LOC_OPER_MODE_CELL_ID_V02;
- break;
-
- case LOC_POSITION_MODE_RESERVED_5:
- set_mode_msg.operationMode = eQMI_LOC_OPER_MODE_WWAN_V02;
- break;
-
- default:
- set_mode_msg.operationMode = eQMI_LOC_OPER_MODE_STANDALONE_V02;
- break;
- }
-
- req_union.pSetOperationModeReq = &set_mode_msg;
-
- // send the mode first, before the start message.
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_OPERATION_MODE_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_OPERATION_MODE_IND_V02,
- &set_mode_ind); // NULL?
- //When loc_sync_send_req status is time out, more likely the response was lost.
- //startFix will continue as though it is succeeded.
- if ((status != eLOC_CLIENT_SUCCESS && status != eLOC_CLIENT_FAILURE_TIMEOUT) ||
- eQMI_LOC_SUCCESS_V02 != set_mode_ind.status)
- {
- LOC_LOGE ("%s:%d]: set opertion mode failed status = %s, "
- "ind..status = %s\n", __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(set_mode_ind.status));
- } else {
- if (status == eLOC_CLIENT_FAILURE_TIMEOUT)
- {
- LOC_LOGE ("%s:%d]: set operation mode timed out\n", __func__, __LINE__);
- }
- start_msg.minInterval_valid = 1;
- start_msg.minInterval = fixCriteria.min_interval;
-
- if (fixCriteria.preferred_accuracy >= 0) {
- start_msg.horizontalAccuracyLevel_valid = 1;
-
- if (fixCriteria.preferred_accuracy <= 100)
- {
- // fix needs high accuracy
- start_msg.horizontalAccuracyLevel = eQMI_LOC_ACCURACY_HIGH_V02;
- }
- else if (fixCriteria.preferred_accuracy <= 1000)
- {
- //fix needs med accuracy
- start_msg.horizontalAccuracyLevel = eQMI_LOC_ACCURACY_MED_V02;
- }
- else
- {
- //fix needs low accuracy
- start_msg.horizontalAccuracyLevel = eQMI_LOC_ACCURACY_LOW_V02;
- }
- }
-
- start_msg.fixRecurrence_valid = 1;
- if(LOC_GPS_POSITION_RECURRENCE_SINGLE == fixCriteria.recurrence)
- {
- start_msg.fixRecurrence = eQMI_LOC_RECURRENCE_SINGLE_V02;
- }
- else
- {
- start_msg.fixRecurrence = eQMI_LOC_RECURRENCE_PERIODIC_V02;
- }
-
- //dummy session id
- // TBD: store session ID, check for session id in pos reports.
- start_msg.sessionId = LOC_API_V02_DEF_SESSION_ID;
-
- //Set whether position report can be shared with other LOC clients
- start_msg.sharePosition_valid = 1;
- start_msg.sharePosition = fixCriteria.share_position;
-
- if (fixCriteria.credentials[0] != 0) {
- int size1 = sizeof(start_msg.applicationId.applicationName);
- int size2 = sizeof(fixCriteria.credentials);
- int len = ((size1 < size2) ? size1 : size2) - 1;
- memcpy(start_msg.applicationId.applicationName,
- fixCriteria.credentials,
- len);
-
- size1 = sizeof(start_msg.applicationId.applicationProvider);
- size2 = sizeof(fixCriteria.provider);
- len = ((size1 < size2) ? size1 : size2) - 1;
- memcpy(start_msg.applicationId.applicationProvider,
- fixCriteria.provider,
- len);
-
- start_msg.applicationId_valid = 1;
- }
-
- // config Altitude Assumed
- start_msg.configAltitudeAssumed_valid = 1;
- start_msg.configAltitudeAssumed = eQMI_LOC_ALTITUDE_ASSUMED_IN_GNSS_SV_INFO_DISABLED_V02;
-
- req_union.pStartReq = &start_msg;
-
- status = locClientSendReq (clientHandle, QMI_LOC_START_REQ_V02,
- req_union );
- }
-
- return convertErr(status);
-}
-
-/* stop a positioning session */
-enum loc_api_adapter_err LocApiV02 :: stopFix()
-{
- locClientStatusEnumType status;
- locClientReqUnionType req_union;
-
- qmiLocStopReqMsgT_v02 stop_msg;
-
- LOC_LOGD(" %s:%d]: stop called \n", __func__, __LINE__);
-
- memset(&stop_msg, 0, sizeof(stop_msg));
-
- // dummy session id
- stop_msg.sessionId = LOC_API_V02_DEF_SESSION_ID;
-
- req_union.pStopReq = &stop_msg;
-
- status = locClientSendReq(clientHandle,
- QMI_LOC_STOP_REQ_V02,
- req_union);
-
- mInSession = false;
- // if engine on never happend, deregister events
- // without waiting for Engine Off
- if (!mEngineOn) {
- registerEventMask(mQmiMask);
- }
-
- if( eLOC_CLIENT_SUCCESS != status)
- {
- LOC_LOGE("%s:%d]: error = %s\n",__func__, __LINE__,
- loc_get_v02_client_status_name(status));
- }
-
- return convertErr(status);
-}
-
-/* set the positioning fix criteria */
-enum loc_api_adapter_err LocApiV02 :: setPositionMode(
- const LocPosMode& posMode)
-{
- if(isInSession())
- {
- //fix is in progress, send a restart
- LOC_LOGD ("%s:%d]: fix is in progress restarting the fix with new "
- "criteria\n", __func__, __LINE__);
-
- return( startFix(posMode));
- }
-
- return LOC_API_ADAPTER_ERR_SUCCESS;
-}
-
-/* inject time into the position engine */
-enum loc_api_adapter_err LocApiV02 ::
- setTime(LocGpsUtcTime time, int64_t timeReference, int uncertainty)
-{
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
- qmiLocInjectUtcTimeReqMsgT_v02 inject_time_msg;
- qmiLocInjectUtcTimeIndMsgT_v02 inject_time_ind;
-
- memset(&inject_time_msg, 0, sizeof(inject_time_msg));
-
- inject_time_ind.status = eQMI_LOC_GENERAL_FAILURE_V02;
-
- inject_time_msg.timeUtc = time;
-
- inject_time_msg.timeUtc += (int64_t)(platform_lib_abstraction_elapsed_millis_since_boot() - timeReference);
-
- inject_time_msg.timeUnc = uncertainty;
-
- req_union.pInjectUtcTimeReq = &inject_time_msg;
-
- LOC_LOGV ("%s:%d]: uncertainty = %d\n", __func__, __LINE__,
- uncertainty);
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_INJECT_UTC_TIME_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_INJECT_UTC_TIME_IND_V02,
- &inject_time_ind);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != inject_time_ind.status)
- {
- LOC_LOGE ("%s:%d] status = %s, ind..status = %s\n", __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(inject_time_ind.status));
- }
-
- return convertErr(status);
-}
-
-/* inject position into the position engine */
-enum loc_api_adapter_err LocApiV02 ::
- injectPosition(double latitude, double longitude, float accuracy)
-{
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
- qmiLocInjectPositionReqMsgT_v02 inject_pos_msg;
- qmiLocInjectPositionIndMsgT_v02 inject_pos_ind;
-
- memset(&inject_pos_msg, 0, sizeof(inject_pos_msg));
- memset(&inject_pos_ind, 0, sizeof(inject_pos_ind));
-
- inject_pos_msg.latitude_valid = 1;
- inject_pos_msg.latitude = latitude;
-
- inject_pos_msg.longitude_valid = 1;
- inject_pos_msg.longitude = longitude;
-
- inject_pos_msg.horUncCircular_valid = 1;
-
- inject_pos_msg.horUncCircular = accuracy; //meters assumed
- if (inject_pos_msg.horUncCircular < 1000) {
- inject_pos_msg.horUncCircular = 1000;
- }
-
- inject_pos_msg.horConfidence_valid = 1;
-
- inject_pos_msg.horConfidence = 68; //1 std dev assumed as specified by API
-
- inject_pos_msg.rawHorUncCircular_valid = 1;
-
- inject_pos_msg.rawHorUncCircular = accuracy; //meters assumed
-
- inject_pos_msg.rawHorConfidence_valid = 1;
-
- inject_pos_msg.rawHorConfidence = 68; //1 std dev assumed as specified by API
-
- struct timespec time_info_current;
- if(clock_gettime(CLOCK_REALTIME,&time_info_current) == 0) //success
- {
- inject_pos_msg.timestampUtc_valid = 1;
- inject_pos_msg.timestampUtc = (time_info_current.tv_sec)*1e3 +
- (time_info_current.tv_nsec)/1e6;
- LOC_LOGV("%s:%d] inject timestamp from system: %llu",
- __func__, __LINE__, inject_pos_msg.timestampUtc);
- }
-
- /* Log */
- LOC_LOGD("%s:%d]: Lat=%lf, Lon=%lf, Acc=%.2lf rawAcc=%.2lf", __func__, __LINE__,
- inject_pos_msg.latitude, inject_pos_msg.longitude,
- inject_pos_msg.horUncCircular, inject_pos_msg.rawHorUncCircular);
-
- req_union.pInjectPositionReq = &inject_pos_msg;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_INJECT_POSITION_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_INJECT_POSITION_IND_V02,
- &inject_pos_ind);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != inject_pos_ind.status)
- {
- LOC_LOGE ("%s:%d]: error! status = %s, inject_pos_ind.status = %s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(inject_pos_ind.status));
- }
-
- return convertErr(status);
-}
-
-/* delete assistance date */
-enum loc_api_adapter_err LocApiV02 :: deleteAidingData(LocGpsAidingData f)
-{
- static bool isNewApiSupported = true;
- locClientReqUnionType req_union;
- locClientStatusEnumType status = eLOC_CLIENT_FAILURE_UNSUPPORTED;
-
- // Use the new API first
- qmiLocDeleteGNSSServiceDataReqMsgT_v02 delete_gnss_req;
- qmiLocDeleteGNSSServiceDataIndMsgT_v02 delete_gnss_resp;
-
- memset(&delete_gnss_req, 0, sizeof(delete_gnss_req));
- memset(&delete_gnss_resp, 0, sizeof(delete_gnss_resp));
-
- if (isNewApiSupported)
- {
- if (LOC_GPS_DELETE_ALL == f)
- {
- delete_gnss_req.deleteAllFlag = true;
- }
- else
- {
- if (f & LOC_GPS_DELETE_EPHEMERIS)
- {
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_EPHEMERIS_V02;
- }
-
- if (f & LOC_GPS_DELETE_ALMANAC)
- {
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_ALMANAC_V02;
- }
-
- if (f & LOC_GPS_DELETE_POSITION)
- {
- delete_gnss_req.deleteCommonDataMask_valid = 1;
- delete_gnss_req.deleteCommonDataMask |= QMI_LOC_DELETE_COMMON_MASK_POS_V02;
- }
-
- if (f & LOC_GPS_DELETE_TIME)
- {
- delete_gnss_req.deleteCommonDataMask_valid = 1;
- delete_gnss_req.deleteCommonDataMask |= QMI_LOC_DELETE_COMMON_MASK_TIME_V02;
-
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_TIME_V02;
- }
-
- if (f & LOC_GPS_DELETE_IONO)
- {
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_IONO_V02;
- }
-
- if (f & LOC_GPS_DELETE_UTC)
- {
- delete_gnss_req.deleteCommonDataMask_valid = 1;
- delete_gnss_req.deleteCommonDataMask |= QMI_LOC_DELETE_COMMON_MASK_UTC_V02;
- }
-
- if (f & LOC_GPS_DELETE_HEALTH)
- {
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_SVHEALTH_V02;
- }
-
- if (f & LOC_GPS_DELETE_SVDIR)
- {
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_SVDIR_V02;
- }
-
- if (f & LOC_GPS_DELETE_SVSTEER)
- {
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_SVSTEER_V02;
- }
-
- if (f & LOC_GPS_DELETE_SADATA)
- {
- delete_gnss_req.deleteSatelliteData_valid = 1;
- delete_gnss_req.deleteSatelliteData.deleteSatelliteDataMask |= QMI_LOC_DELETE_DATA_MASK_SA_DATA_V02;
- }
-
- if (f & LOC_GPS_DELETE_RTI)
- {
- delete_gnss_req.deleteCommonDataMask_valid = 1;
- delete_gnss_req.deleteCommonDataMask |= QMI_LOC_DELETE_COMMON_MASK_RTI_V02;
- }
-
- if (delete_gnss_req.deleteSatelliteData_valid)
- {
- delete_gnss_req.deleteSatelliteData.system |= QMI_LOC_SYSTEM_GPS_V02;
- delete_gnss_req.deleteSatelliteData.system |= QMI_LOC_SYSTEM_GLO_V02;
- delete_gnss_req.deleteSatelliteData.system |= QMI_LOC_SYSTEM_BDS_V02;
- delete_gnss_req.deleteSatelliteData.system |= QMI_LOC_SYSTEM_GAL_V02;
- delete_gnss_req.deleteSatelliteData.system |= QMI_LOC_SYSTEM_QZSS_V02;
- }
-
- if (f & LOC_GPS_DELETE_CELLDB_INFO)
- {
- delete_gnss_req.deleteCellDbDataMask_valid = 1;
- delete_gnss_req.deleteCellDbDataMask =
- (QMI_LOC_MASK_DELETE_CELLDB_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_LATEST_GPS_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_OTA_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_EXT_REF_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_TIMETAG_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_CELLID_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_CACHED_CELLID_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_LAST_SRV_CELL_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_CUR_SRV_CELL_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_NEIGHBOR_INFO_V02);
-
- }
- }
-
- req_union.pDeleteGNSSServiceDataReq = &delete_gnss_req;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_DELETE_GNSS_SERVICE_DATA_IND_V02,
- &delete_gnss_resp);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != delete_gnss_resp.status)
- {
- LOC_LOGE("%s:%d]: error! status = %s, delete_resp.status = %s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(delete_gnss_resp.status));
- }
- }
-
- if (eLOC_CLIENT_FAILURE_UNSUPPORTED == status ||
- eLOC_CLIENT_FAILURE_INTERNAL == status) {
- // If the new API is not supported we fall back on the old one
- // The error could be eLOC_CLIENT_FAILURE_INTERNAL if
- // QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02 is not in the .idl file
- LOC_LOGD("%s:%d]: QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02 not supported"
- "We use QMI_LOC_DELETE_ASSIST_DATA_REQ_V02\n",
- __func__, __LINE__);
- isNewApiSupported = false;
-
- qmiLocDeleteAssistDataReqMsgT_v02 delete_req;
- qmiLocDeleteAssistDataIndMsgT_v02 delete_resp;
-
- memset(&delete_req, 0, sizeof(delete_req));
- memset(&delete_resp, 0, sizeof(delete_resp));
-
- if (f == LOC_GPS_DELETE_ALL)
- {
- delete_req.deleteAllFlag = true;
- }
- else
- {
- /* to keep track of svInfoList for GPS and GLO*/
- uint32_t curr_sv_len = 0;
- uint32_t curr_sv_idx = 0;
- uint32_t sv_id = 0;
-
- if ((f & LOC_GPS_DELETE_EPHEMERIS) || (f & LOC_GPS_DELETE_ALMANAC))
- {
- /* do delete for all GPS SV's */
-
- curr_sv_len += SV_ID_RANGE;
-
- sv_id = GPS_SV_ID_OFFSET;
-
- delete_req.deleteSvInfoList_valid = 1;
-
- delete_req.deleteSvInfoList_len = curr_sv_len;
-
- LOC_LOGV("%s:%d]: Delete GPS SV info for index %d to %d"
- "and sv id %d to %d \n",
- __func__, __LINE__, curr_sv_idx, curr_sv_len - 1,
- sv_id, sv_id + SV_ID_RANGE - 1);
-
- for (uint32_t i = curr_sv_idx; i < curr_sv_len; i++, sv_id++)
- {
- delete_req.deleteSvInfoList[i].gnssSvId = sv_id;
-
- delete_req.deleteSvInfoList[i].system = eQMI_LOC_SV_SYSTEM_GPS_V02;
-
- if (f & LOC_GPS_DELETE_EPHEMERIS)
- {
- // set ephemeris mask for all GPS SV's
- delete_req.deleteSvInfoList[i].deleteSvInfoMask |=
- QMI_LOC_MASK_DELETE_EPHEMERIS_V02;
- }
-
- if (f & LOC_GPS_DELETE_ALMANAC)
- {
- delete_req.deleteSvInfoList[i].deleteSvInfoMask |=
- QMI_LOC_MASK_DELETE_ALMANAC_V02;
- }
- }
- // increment the current index
- curr_sv_idx += SV_ID_RANGE;
-
- }
-
- if (f & LOC_GPS_DELETE_POSITION)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_POSITION_V02;
- }
-
- if (f & LOC_GPS_DELETE_TIME)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_TIME_V02;
- }
-
- if (f & LOC_GPS_DELETE_IONO)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_IONO_V02;
- }
-
- if (f & LOC_GPS_DELETE_UTC)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_UTC_V02;
- }
-
- if (f & LOC_GPS_DELETE_HEALTH)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_HEALTH_V02;
- }
-
- if (f & LOC_GPS_DELETE_SVDIR)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_GPS_SVDIR_V02;
- }
- if (f & LOC_GPS_DELETE_SADATA)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_SADATA_V02;
- }
- if (f & LOC_GPS_DELETE_RTI)
- {
- delete_req.deleteGnssDataMask_valid = 1;
- delete_req.deleteGnssDataMask |= QMI_LOC_MASK_DELETE_RTI_V02;
- }
- if (f & LOC_GPS_DELETE_CELLDB_INFO)
- {
- delete_req.deleteCellDbDataMask_valid = 1;
- delete_req.deleteCellDbDataMask =
- (QMI_LOC_MASK_DELETE_CELLDB_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_LATEST_GPS_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_OTA_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_EXT_REF_POS_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_TIMETAG_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_CELLID_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_CACHED_CELLID_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_LAST_SRV_CELL_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_CUR_SRV_CELL_V02 |
- QMI_LOC_MASK_DELETE_CELLDB_NEIGHBOR_INFO_V02);
-
- }
- }
-
- req_union.pDeleteAssistDataReq = &delete_req;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_DELETE_ASSIST_DATA_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_DELETE_ASSIST_DATA_IND_V02,
- &delete_resp);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != delete_resp.status)
- {
- LOC_LOGE("%s:%d]: error! status = %s, delete_resp.status = %s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(delete_resp.status));
- }
- }
- return convertErr(status);
-}
-
-/* send NI user repsonse to the engine */
-enum loc_api_adapter_err LocApiV02 ::
- informNiResponse(LocGpsUserResponseType userResponse,
- const void* passThroughData)
-{
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
-
- qmiLocNiUserRespReqMsgT_v02 ni_resp;
- qmiLocNiUserRespIndMsgT_v02 ni_resp_ind;
-
- qmiLocEventNiNotifyVerifyReqIndMsgT_v02 *request_pass_back =
- (qmiLocEventNiNotifyVerifyReqIndMsgT_v02 *)passThroughData;
-
- memset(&ni_resp,0, sizeof(ni_resp));
-
- memset(&ni_resp_ind,0, sizeof(ni_resp_ind));
-
- switch (userResponse)
- {
- case LOC_GPS_NI_RESPONSE_ACCEPT:
- ni_resp.userResp = eQMI_LOC_NI_LCS_NOTIFY_VERIFY_ACCEPT_V02;
- break;
- case LOC_GPS_NI_RESPONSE_DENY:
- ni_resp.userResp = eQMI_LOC_NI_LCS_NOTIFY_VERIFY_DENY_V02;
- break;
- case LOC_GPS_NI_RESPONSE_NORESP:
- ni_resp.userResp = eQMI_LOC_NI_LCS_NOTIFY_VERIFY_NORESP_V02;
- break;
- default:
- return LOC_API_ADAPTER_ERR_INVALID_PARAMETER;
- }
-
- LOC_LOGV(" %s:%d]: NI response: %d\n", __func__, __LINE__,
- ni_resp.userResp);
-
- ni_resp.notificationType = request_pass_back->notificationType;
-
- // copy SUPL payload from request
- if(request_pass_back->NiSuplInd_valid == 1)
- {
- ni_resp.NiSuplPayload_valid = 1;
- memcpy(&(ni_resp.NiSuplPayload), &(request_pass_back->NiSuplInd),
- sizeof(qmiLocNiSuplNotifyVerifyStructT_v02));
-
- }
- // should this be an "else if"?? we don't need to decide
-
- // copy UMTS-CP payload from request
- if( request_pass_back->NiUmtsCpInd_valid == 1 )
- {
- ni_resp.NiUmtsCpPayload_valid = 1;
- memcpy(&(ni_resp.NiUmtsCpPayload), &(request_pass_back->NiUmtsCpInd),
- sizeof(qmiLocNiUmtsCpNotifyVerifyStructT_v02));
- }
-
- //copy Vx payload from the request
- if( request_pass_back->NiVxInd_valid == 1)
- {
- ni_resp.NiVxPayload_valid = 1;
- memcpy(&(ni_resp.NiVxPayload), &(request_pass_back->NiVxInd),
- sizeof(qmiLocNiVxNotifyVerifyStructT_v02));
- }
-
- // copy Vx service interaction payload from the request
- if(request_pass_back->NiVxServiceInteractionInd_valid == 1)
- {
- ni_resp.NiVxServiceInteractionPayload_valid = 1;
- memcpy(&(ni_resp.NiVxServiceInteractionPayload),
- &(request_pass_back->NiVxServiceInteractionInd),
- sizeof(qmiLocNiVxServiceInteractionStructT_v02));
- }
-
- // copy Network Initiated SUPL Version 2 Extension
- if (request_pass_back->NiSuplVer2ExtInd_valid == 1)
- {
- ni_resp.NiSuplVer2ExtPayload_valid = 1;
- memcpy(&(ni_resp.NiSuplVer2ExtPayload),
- &(request_pass_back->NiSuplVer2ExtInd),
- sizeof(qmiLocNiSuplVer2ExtStructT_v02));
- }
-
- // copy SUPL Emergency Notification
- if(request_pass_back->suplEmergencyNotification_valid)
- {
- ni_resp.suplEmergencyNotification_valid = 1;
- memcpy(&(ni_resp.suplEmergencyNotification),
- &(request_pass_back->suplEmergencyNotification),
- sizeof(qmiLocEmergencyNotificationStructT_v02));
- }
-
- req_union.pNiUserRespReq = &ni_resp;
-
- status = loc_sync_send_req (
- clientHandle, QMI_LOC_NI_USER_RESPONSE_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_NI_USER_RESPONSE_IND_V02, &ni_resp_ind);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != ni_resp_ind.status)
- {
- LOC_LOGE ("%s:%d]: error! status = %s, ni_resp_ind.status = %s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(ni_resp_ind.status));
- }
-
- return convertErr(status);
-}
-
-/* Set UMTs SLP server URL */
-enum loc_api_adapter_err LocApiV02 :: setServer(
- const char* url, int len)
-{
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
- qmiLocSetServerReqMsgT_v02 set_server_req;
- qmiLocSetServerIndMsgT_v02 set_server_ind;
-
- if(len < 0 || len > sizeof(set_server_req.urlAddr))
- {
- LOC_LOGE("%s:%d]: len = %d greater than max allowed url length\n",
- __func__, __LINE__, len);
-
- return LOC_API_ADAPTER_ERR_INVALID_PARAMETER;
- }
-
- memset(&set_server_req, 0, sizeof(set_server_req));
- memset(&set_server_ind, 0, sizeof(set_server_ind));
-
- LOC_LOGD("%s:%d]:, url = %s, len = %d\n", __func__, __LINE__, url, len);
-
- set_server_req.serverType = eQMI_LOC_SERVER_TYPE_UMTS_SLP_V02;
-
- set_server_req.urlAddr_valid = 1;
-
- strlcpy(set_server_req.urlAddr, url, sizeof(set_server_req.urlAddr));
-
- req_union.pSetServerReq = &set_server_req;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_SERVER_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_SERVER_IND_V02,
- &set_server_ind);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != set_server_ind.status)
- {
- LOC_LOGE ("%s:%d]: error status = %s, set_server_ind.status = %s\n",
- __func__,__LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(set_server_ind.status));
- }
-
- return convertErr(status);
-}
-
-enum loc_api_adapter_err LocApiV02 ::
- setServer(unsigned int ip, int port, LocServerType type)
-{
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
- qmiLocSetServerReqMsgT_v02 set_server_req;
- qmiLocSetServerIndMsgT_v02 set_server_ind;
- qmiLocServerTypeEnumT_v02 set_server_cmd;
-
- switch (type) {
- case LOC_AGPS_MPC_SERVER:
- set_server_cmd = eQMI_LOC_SERVER_TYPE_CDMA_MPC_V02;
- break;
- case LOC_AGPS_CUSTOM_PDE_SERVER:
- set_server_cmd = eQMI_LOC_SERVER_TYPE_CUSTOM_PDE_V02;
- break;
- default:
- set_server_cmd = eQMI_LOC_SERVER_TYPE_CDMA_PDE_V02;
- break;
- }
-
- memset(&set_server_req, 0, sizeof(set_server_req));
- memset(&set_server_ind, 0, sizeof(set_server_ind));
-
- LOC_LOGD("%s:%d]:, ip = %u, port = %d\n", __func__, __LINE__, ip, port);
-
- set_server_req.serverType = set_server_cmd;
- set_server_req.ipv4Addr_valid = 1;
- set_server_req.ipv4Addr.addr = ip;
- set_server_req.ipv4Addr.port = port;
-
- req_union.pSetServerReq = &set_server_req;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_SERVER_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_SERVER_IND_V02,
- &set_server_ind);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != set_server_ind.status)
- {
- LOC_LOGE ("%s:%d]: error status = %s, set_server_ind.status = %s\n",
- __func__,__LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(set_server_ind.status));
- }
-
- return convertErr(status);
-}
-
-/* Inject XTRA data, this module breaks down the XTRA
- file into "chunks" and injects them one at a time */
-enum loc_api_adapter_err LocApiV02 :: setXtraData(
- char* data, int length)
-{
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- uint16_t total_parts;
- uint16_t part;
- uint32_t len_injected;
-
- locClientReqUnionType req_union;
- qmiLocInjectPredictedOrbitsDataReqMsgT_v02 inject_xtra;
- qmiLocInjectPredictedOrbitsDataIndMsgT_v02 inject_xtra_ind;
-
- req_union.pInjectPredictedOrbitsDataReq = &inject_xtra;
-
- LOC_LOGD("%s:%d]: xtra size = %d\n", __func__, __LINE__, length);
-
- inject_xtra.formatType_valid = 1;
- inject_xtra.formatType = eQMI_LOC_PREDICTED_ORBITS_XTRA_V02;
- inject_xtra.totalSize = length;
-
- total_parts = ((length - 1) / QMI_LOC_MAX_PREDICTED_ORBITS_PART_LEN_V02) + 1;
-
- inject_xtra.totalParts = total_parts;
-
- len_injected = 0; // O bytes injected
-
- // XTRA injection starts with part 1
- for (part = 1; part <= total_parts; part++)
- {
- inject_xtra.partNum = part;
-
- if (QMI_LOC_MAX_PREDICTED_ORBITS_PART_LEN_V02 > (length - len_injected))
- {
- inject_xtra.partData_len = length - len_injected;
- }
- else
- {
- inject_xtra.partData_len = QMI_LOC_MAX_PREDICTED_ORBITS_PART_LEN_V02;
- }
-
- // copy data into the message
- memcpy(inject_xtra.partData, data+len_injected, inject_xtra.partData_len);
-
- LOC_LOGD("[%s:%d] part %d/%d, len = %d, total injected = %d\n",
- __func__, __LINE__,
- inject_xtra.partNum, total_parts, inject_xtra.partData_len,
- len_injected);
-
- memset(&inject_xtra_ind, 0, sizeof(inject_xtra_ind));
- status = loc_sync_send_req( clientHandle,
- QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_IND_V02,
- &inject_xtra_ind);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != inject_xtra_ind.status ||
- inject_xtra.partNum != inject_xtra_ind.partNum)
- {
- LOC_LOGE ("%s:%d]: failed status = %s, inject_pos_ind.status = %s,"
- " part num = %d, ind.partNum = %d\n", __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(inject_xtra_ind.status),
- inject_xtra.partNum, inject_xtra_ind.partNum);
- } else {
- len_injected += inject_xtra.partData_len;
- LOC_LOGD("%s:%d]: XTRA injected length: %d\n", __func__, __LINE__,
- len_injected);
- }
- }
-
- return convertErr(status);
-}
-
-/* Request the Xtra Server Url from the modem */
-enum loc_api_adapter_err LocApiV02 :: requestXtraServer()
-{
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
-
- locClientReqUnionType req_union;
- qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02 request_xtra_server_ind;
-
- memset(&request_xtra_server_ind, 0, sizeof(request_xtra_server_ind));
-
- status = loc_sync_send_req( clientHandle,
- QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_IND_V02,
- &request_xtra_server_ind);
-
- if (status == eLOC_CLIENT_SUCCESS &&
- eQMI_LOC_SUCCESS_V02 == request_xtra_server_ind.status &&
- false != request_xtra_server_ind.serverList_valid &&
- 0 != request_xtra_server_ind.serverList.serverList_len)
- {
- if (request_xtra_server_ind.serverList.serverList_len == 1)
- {
- reportXtraServer(request_xtra_server_ind.serverList.serverList[0].serverUrl,
- "",
- "",
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02);
- }
- else if (request_xtra_server_ind.serverList.serverList_len == 2)
- {
- reportXtraServer(request_xtra_server_ind.serverList.serverList[0].serverUrl,
- request_xtra_server_ind.serverList.serverList[1].serverUrl,
- "",
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02);
- }
- else
- {
- reportXtraServer(request_xtra_server_ind.serverList.serverList[0].serverUrl,
- request_xtra_server_ind.serverList.serverList[1].serverUrl,
- request_xtra_server_ind.serverList.serverList[2].serverUrl,
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02);
- }
- }
-
- return convertErr(status);
-}
-
-enum loc_api_adapter_err LocApiV02 :: atlOpenStatus(
- int handle, int is_succ, char* apn, AGpsBearerType bear,
- LocAGpsType agpsType)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
- qmiLocInformLocationServerConnStatusReqMsgT_v02 conn_status_req;
- qmiLocInformLocationServerConnStatusIndMsgT_v02 conn_status_ind;
-
-
- LOC_LOGD("%s:%d]: ATL open handle = %d, is_succ = %d, "
- "APN = [%s], bearer = %d \n", __func__, __LINE__,
- handle, is_succ, apn, bear);
-
- memset(&conn_status_req, 0, sizeof(conn_status_req));
- memset(&conn_status_ind, 0, sizeof(conn_status_ind));
-
- // Fill in data
- conn_status_req.connHandle = handle;
-
- conn_status_req.requestType = eQMI_LOC_SERVER_REQUEST_OPEN_V02;
-
- if(is_succ)
- {
- conn_status_req.statusType = eQMI_LOC_SERVER_REQ_STATUS_SUCCESS_V02;
-
- if(apn != NULL)
- strlcpy(conn_status_req.apnProfile.apnName, apn,
- sizeof(conn_status_req.apnProfile.apnName) );
-
- switch(bear)
- {
- case AGPS_APN_BEARER_IPV4:
- conn_status_req.apnProfile.pdnType =
- eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV4_V02;
- conn_status_req.apnProfile_valid = 1;
- break;
-
- case AGPS_APN_BEARER_IPV6:
- conn_status_req.apnProfile.pdnType =
- eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV6_V02;
- conn_status_req.apnProfile_valid = 1;
- break;
-
- case AGPS_APN_BEARER_IPV4V6:
- conn_status_req.apnProfile.pdnType =
- eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV4V6_V02;
- conn_status_req.apnProfile_valid = 1;
- break;
-
- case AGPS_APN_BEARER_INVALID:
- conn_status_req.apnProfile_valid = 0;
- break;
-
- default:
- LOC_LOGE("%s:%d]:invalid bearer type\n",__func__,__LINE__);
- conn_status_req.apnProfile_valid = 0;
- return LOC_API_ADAPTER_ERR_INVALID_HANDLE;
- }
-
- }
- else
- {
- conn_status_req.statusType = eQMI_LOC_SERVER_REQ_STATUS_FAILURE_V02;
- }
-
- req_union.pInformLocationServerConnStatusReq = &conn_status_req;
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02,
- &conn_status_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != conn_status_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(conn_status_ind.status));
- }
-
- return convertErr(result);
-
-}
-
-
-/* close atl connection */
-enum loc_api_adapter_err LocApiV02 :: atlCloseStatus(
- int handle, int is_succ)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
- qmiLocInformLocationServerConnStatusReqMsgT_v02 conn_status_req;
- qmiLocInformLocationServerConnStatusIndMsgT_v02 conn_status_ind;
-
- LOC_LOGD("%s:%d]: ATL close handle = %d, is_succ = %d\n",
- __func__, __LINE__, handle, is_succ);
-
- memset(&conn_status_req, 0, sizeof(conn_status_req));
- memset(&conn_status_ind, 0, sizeof(conn_status_ind));
-
- // Fill in data
- conn_status_req.connHandle = handle;
-
- conn_status_req.requestType = eQMI_LOC_SERVER_REQUEST_CLOSE_V02;
-
- if(is_succ)
- {
- conn_status_req.statusType = eQMI_LOC_SERVER_REQ_STATUS_SUCCESS_V02;
- }
- else
- {
- conn_status_req.statusType = eQMI_LOC_SERVER_REQ_STATUS_FAILURE_V02;
- }
-
- req_union.pInformLocationServerConnStatusReq = &conn_status_req;
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02,
- &conn_status_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != conn_status_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(conn_status_ind.status));
- }
-
- return convertErr(result);
-}
-
-/* set the SUPL version */
-enum loc_api_adapter_err LocApiV02 :: setSUPLVersion(uint32_t version)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
-
- qmiLocSetProtocolConfigParametersReqMsgT_v02 supl_config_req;
- qmiLocSetProtocolConfigParametersIndMsgT_v02 supl_config_ind;
-
- LOC_LOGD("%s:%d]: supl version = %d\n", __func__, __LINE__, version);
-
-
- memset(&supl_config_req, 0, sizeof(supl_config_req));
- memset(&supl_config_ind, 0, sizeof(supl_config_ind));
-
- supl_config_req.suplVersion_valid = 1;
- // SUPL version from MSByte to LSByte:
- // (reserved)(major version)(minor version)(serviceIndicator)
-
- if(version == 0x00020000) {
- supl_config_req.suplVersion = eQMI_LOC_SUPL_VERSION_2_0_V02;
- } else if (version == 0x00020002) {
- supl_config_req.suplVersion = eQMI_LOC_SUPL_VERSION_2_0_2_V02;
- } else {
- supl_config_req.suplVersion = eQMI_LOC_SUPL_VERSION_1_0_V02;
- }
-
- req_union.pSetProtocolConfigParametersReq = &supl_config_req;
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02,
- &supl_config_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != supl_config_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(supl_config_ind.status));
- }
-
- return convertErr(result);
-}
-
-/* set the NMEA types mask */
-enum loc_api_adapter_err LocApiV02 :: setNMEATypes (uint32_t typesMask)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
-
- qmiLocSetNmeaTypesReqMsgT_v02 setNmeaTypesReqMsg;
- qmiLocSetNmeaTypesIndMsgT_v02 setNmeaTypesIndMsg;
-
- LOC_LOGD(" %s:%d]: setNMEATypes, mask = %u\n", __func__, __LINE__,typesMask);
-
- memset(&setNmeaTypesReqMsg, 0, sizeof(setNmeaTypesReqMsg));
- memset(&setNmeaTypesIndMsg, 0, sizeof(setNmeaTypesIndMsg));
-
- setNmeaTypesReqMsg.nmeaSentenceType = typesMask;
-
- req_union.pSetNmeaTypesReq = &setNmeaTypesReqMsg;
-
- result = loc_sync_send_req( clientHandle,
- QMI_LOC_SET_NMEA_TYPES_REQ_V02, req_union,
- LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_NMEA_TYPES_IND_V02, &setNmeaTypesIndMsg);
-
- // if success
- if ( result != eLOC_CLIENT_SUCCESS )
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(setNmeaTypesIndMsg.status));
- }
-
- return convertErr(result);
-}
-
-/* set the configuration for LTE positioning profile (LPP) */
-enum loc_api_adapter_err LocApiV02 :: setLPPConfig(uint32_t profile)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
- qmiLocSetProtocolConfigParametersReqMsgT_v02 lpp_config_req;
- qmiLocSetProtocolConfigParametersIndMsgT_v02 lpp_config_ind;
-
- LOC_LOGD("%s:%d]: lpp profile = %d\n", __func__, __LINE__, profile);
-
- memset(&lpp_config_req, 0, sizeof(lpp_config_req));
- memset(&lpp_config_ind, 0, sizeof(lpp_config_ind));
-
- lpp_config_req.lppConfig_valid = 1;
-
- lpp_config_req.lppConfig = profile;
-
- req_union.pSetProtocolConfigParametersReq = &lpp_config_req;
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02,
- &lpp_config_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != lpp_config_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(lpp_config_ind.status));
- }
-
- return convertErr(result);
-}
-
-/* set the Sensor Configuration */
-enum loc_api_adapter_err LocApiV02 :: setSensorControlConfig(
- int sensorsDisabled, int sensorProvider)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
-
- qmiLocSetSensorControlConfigReqMsgT_v02 sensor_config_req;
- qmiLocSetSensorControlConfigIndMsgT_v02 sensor_config_ind;
-
- LOC_LOGD("%s:%d]: sensors disabled = %d\n", __func__, __LINE__, sensorsDisabled);
-
- memset(&sensor_config_req, 0, sizeof(sensor_config_req));
- memset(&sensor_config_ind, 0, sizeof(sensor_config_ind));
-
- sensor_config_req.sensorsUsage_valid = 1;
- sensor_config_req.sensorsUsage = (sensorsDisabled == 1) ? eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_DISABLE_V02
- : eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_ENABLE_V02;
-
- sensor_config_req.sensorProvider_valid = 1;
- sensor_config_req.sensorProvider = (sensorProvider == 1 || sensorProvider == 4) ?
- eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_SSC_V02 :
- eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_NATIVE_V02;
-
- req_union.pSetSensorControlConfigReq = &sensor_config_req;
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02,
- &sensor_config_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != sensor_config_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(sensor_config_ind.status));
- }
-
- return convertErr(result);
-}
-
-/* set the Sensor Properties */
-enum loc_api_adapter_err LocApiV02 :: setSensorProperties(bool gyroBiasVarianceRandomWalk_valid, float gyroBiasVarianceRandomWalk,
- bool accelBiasVarianceRandomWalk_valid, float accelBiasVarianceRandomWalk,
- bool angleBiasVarianceRandomWalk_valid, float angleBiasVarianceRandomWalk,
- bool rateBiasVarianceRandomWalk_valid, float rateBiasVarianceRandomWalk,
- bool velocityBiasVarianceRandomWalk_valid, float velocityBiasVarianceRandomWalk)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
-
- qmiLocSetSensorPropertiesReqMsgT_v02 sensor_prop_req;
- qmiLocSetSensorPropertiesIndMsgT_v02 sensor_prop_ind;
-
- LOC_LOGI("%s:%d]: sensors prop: gyroBiasRandomWalk = %f, accelRandomWalk = %f, "
- "angleRandomWalk = %f, rateRandomWalk = %f, velocityRandomWalk = %f\n",
- __func__, __LINE__, gyroBiasVarianceRandomWalk, accelBiasVarianceRandomWalk,
- angleBiasVarianceRandomWalk, rateBiasVarianceRandomWalk, velocityBiasVarianceRandomWalk);
-
- memset(&sensor_prop_req, 0, sizeof(sensor_prop_req));
- memset(&sensor_prop_ind, 0, sizeof(sensor_prop_ind));
-
- /* Set the validity bit and value for each sensor property */
- sensor_prop_req.gyroBiasVarianceRandomWalk_valid = gyroBiasVarianceRandomWalk_valid;
- sensor_prop_req.gyroBiasVarianceRandomWalk = gyroBiasVarianceRandomWalk;
-
- sensor_prop_req.accelerationRandomWalkSpectralDensity_valid = accelBiasVarianceRandomWalk_valid;
- sensor_prop_req.accelerationRandomWalkSpectralDensity = accelBiasVarianceRandomWalk;
-
- sensor_prop_req.angleRandomWalkSpectralDensity_valid = angleBiasVarianceRandomWalk_valid;
- sensor_prop_req.angleRandomWalkSpectralDensity = angleBiasVarianceRandomWalk;
-
- sensor_prop_req.rateRandomWalkSpectralDensity_valid = rateBiasVarianceRandomWalk_valid;
- sensor_prop_req.rateRandomWalkSpectralDensity = rateBiasVarianceRandomWalk;
-
- sensor_prop_req.velocityRandomWalkSpectralDensity_valid = velocityBiasVarianceRandomWalk_valid;
- sensor_prop_req.velocityRandomWalkSpectralDensity = velocityBiasVarianceRandomWalk;
-
- req_union.pSetSensorPropertiesReq = &sensor_prop_req;
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_SENSOR_PROPERTIES_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02,
- &sensor_prop_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != sensor_prop_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(sensor_prop_ind.status));
- }
-
- return convertErr(result);
-}
-
-/* set the Sensor Performance Config */
-enum loc_api_adapter_err LocApiV02 :: setSensorPerfControlConfig(int controlMode,
- int accelSamplesPerBatch, int accelBatchesPerSec,
- int gyroSamplesPerBatch, int gyroBatchesPerSec,
- int accelSamplesPerBatchHigh, int accelBatchesPerSecHigh,
- int gyroSamplesPerBatchHigh, int gyroBatchesPerSecHigh,
- int algorithmConfig)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
-
- qmiLocSetSensorPerformanceControlConfigReqMsgT_v02 sensor_perf_config_req;
- qmiLocSetSensorPerformanceControlConfigIndMsgT_v02 sensor_perf_config_ind;
-
- LOC_LOGD("%s:%d]: Sensor Perf Control Config (performanceControlMode)(%u) "
- "accel(#smp,#batches) (%u,%u) gyro(#smp,#batches) (%u,%u) "
- "accel_high(#smp,#batches) (%u,%u) gyro_high(#smp,#batches) (%u,%u) "
- "algorithmConfig(%u)\n",
- __FUNCTION__,
- __LINE__,
- controlMode,
- accelSamplesPerBatch,
- accelBatchesPerSec,
- gyroSamplesPerBatch,
- gyroBatchesPerSec,
- accelSamplesPerBatchHigh,
- accelBatchesPerSecHigh,
- gyroSamplesPerBatchHigh,
- gyroBatchesPerSecHigh,
- algorithmConfig
- );
-
- memset(&sensor_perf_config_req, 0, sizeof(sensor_perf_config_req));
- memset(&sensor_perf_config_ind, 0, sizeof(sensor_perf_config_ind));
-
- sensor_perf_config_req.performanceControlMode_valid = 1;
- sensor_perf_config_req.performanceControlMode = (qmiLocSensorPerformanceControlModeEnumT_v02)controlMode;
- sensor_perf_config_req.accelSamplingSpec_valid = 1;
- sensor_perf_config_req.accelSamplingSpec.batchesPerSecond = accelBatchesPerSec;
- sensor_perf_config_req.accelSamplingSpec.samplesPerBatch = accelSamplesPerBatch;
- sensor_perf_config_req.gyroSamplingSpec_valid = 1;
- sensor_perf_config_req.gyroSamplingSpec.batchesPerSecond = gyroBatchesPerSec;
- sensor_perf_config_req.gyroSamplingSpec.samplesPerBatch = gyroSamplesPerBatch;
- sensor_perf_config_req.accelSamplingSpecHigh_valid = 1;
- sensor_perf_config_req.accelSamplingSpecHigh.batchesPerSecond = accelBatchesPerSecHigh;
- sensor_perf_config_req.accelSamplingSpecHigh.samplesPerBatch = accelSamplesPerBatchHigh;
- sensor_perf_config_req.gyroSamplingSpecHigh_valid = 1;
- sensor_perf_config_req.gyroSamplingSpecHigh.batchesPerSecond = gyroBatchesPerSecHigh;
- sensor_perf_config_req.gyroSamplingSpecHigh.samplesPerBatch = gyroSamplesPerBatchHigh;
- sensor_perf_config_req.algorithmConfig_valid = 1;
- sensor_perf_config_req.algorithmConfig = algorithmConfig;
-
- req_union.pSetSensorPerformanceControlConfigReq = &sensor_perf_config_req;
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02,
- &sensor_perf_config_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != sensor_perf_config_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(sensor_perf_config_ind.status));
- }
-
- return convertErr(result);
-}
-
-/* set the Positioning Protocol on A-GLONASS system */
-enum loc_api_adapter_err LocApiV02 :: setAGLONASSProtocol(unsigned long aGlonassProtocol)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
- qmiLocSetProtocolConfigParametersReqMsgT_v02 aGlonassProtocol_req;
- qmiLocSetProtocolConfigParametersIndMsgT_v02 aGlonassProtocol_ind;
-
- memset(&aGlonassProtocol_req, 0, sizeof(aGlonassProtocol_req));
- memset(&aGlonassProtocol_ind, 0, sizeof(aGlonassProtocol_ind));
-
- aGlonassProtocol_req.assistedGlonassProtocolMask_valid = 1;
- aGlonassProtocol_req.assistedGlonassProtocolMask = aGlonassProtocol;
-
- req_union.pSetProtocolConfigParametersReq = &aGlonassProtocol_req;
-
- LOC_LOGD("%s:%d]: aGlonassProtocolMask = 0x%x\n", __func__, __LINE__,
- aGlonassProtocol_req.assistedGlonassProtocolMask);
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02,
- &aGlonassProtocol_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != aGlonassProtocol_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(aGlonassProtocol_ind.status));
- }
-
- return convertErr(result);
-}
-
-
-/* set the technology being used for LPPe control-plane and user-plane protocol */
-enum loc_api_adapter_err LocApiV02 :: setLPPeProtocol(unsigned long lppeCP,unsigned long lppeUP)
-{
- locClientStatusEnumType result = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType req_union;
- qmiLocSetProtocolConfigParametersReqMsgT_v02 lppe_req;
- qmiLocSetProtocolConfigParametersIndMsgT_v02 lppe_ind;
- //CP config
- memset(&lppe_req, 0, sizeof(lppe_req));
- memset(&lppe_ind, 0, sizeof(lppe_ind));
-
- lppe_req.lppeCpConfig_valid = 1;
- lppe_req.lppeCpConfig = lppeCP;
-
- req_union.pSetProtocolConfigParametersReq = &lppe_req;
-
- LOC_LOGD("%s:%d]: lppeCpConfig = 0x%x \n", __func__, __LINE__,
- lppe_req.lppeCpConfig);
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02,
- &lppe_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != lppe_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(lppe_ind.status));
- }
-
- //UP Config
- memset(&lppe_req, 0, sizeof(lppe_req));
- memset(&lppe_ind, 0, sizeof(lppe_ind));
- memset(&req_union, 0, sizeof(req_union));
-
- lppe_req.lppeUpConfig_valid = 1;
- lppe_req.lppeUpConfig = lppeUP;
-
- req_union.pSetProtocolConfigParametersReq = &lppe_req;
-
- LOC_LOGD("%s:%d]: lppeUpConfig = 0x%x\n", __func__, __LINE__,
- lppe_req.lppeUpConfig);
-
- result = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02,
- &lppe_ind);
-
- if(result != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != lppe_ind.status)
- {
- LOC_LOGE ("%s:%d]: Error status = %s, ind..status = %s ",
- __func__, __LINE__,
- loc_get_v02_client_status_name(result),
- loc_get_v02_qmi_status_name(lppe_ind.status));
- }
-
- return convertErr(result);
-}
-
-/* Convert event mask from loc eng to loc_api_v02 format */
-locClientEventMaskType LocApiV02 :: convertMask(
- LOC_API_ADAPTER_EVENT_MASK_T mask)
-{
- locClientEventMaskType eventMask = 0;
- LOC_LOGD("%s:%d]: adapter mask = %u\n", __func__, __LINE__, mask);
-
- if (mask & LOC_API_ADAPTER_BIT_PARSED_POSITION_REPORT)
- eventMask |= QMI_LOC_EVENT_MASK_POSITION_REPORT_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_SATELLITE_REPORT)
- eventMask |= QMI_LOC_EVENT_MASK_GNSS_SV_INFO_V02;
-
- /* treat NMEA_1Hz and NMEA_POSITION_REPORT the same*/
- if ((mask & LOC_API_ADAPTER_BIT_NMEA_POSITION_REPORT) ||
- (mask & LOC_API_ADAPTER_BIT_NMEA_1HZ_REPORT) )
- eventMask |= QMI_LOC_EVENT_MASK_NMEA_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_NI_NOTIFY_VERIFY_REQUEST)
- eventMask |= QMI_LOC_EVENT_MASK_NI_NOTIFY_VERIFY_REQ_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_ASSISTANCE_DATA_REQUEST)
- {
- // TBD: This needs to be decoupled in the HAL
- eventMask |= QMI_LOC_EVENT_MASK_INJECT_PREDICTED_ORBITS_REQ_V02;
- eventMask |= QMI_LOC_EVENT_MASK_INJECT_TIME_REQ_V02;
- eventMask |= QMI_LOC_EVENT_MASK_INJECT_POSITION_REQ_V02;
- }
-
- if (mask & LOC_API_ADAPTER_BIT_STATUS_REPORT)
- {
- eventMask |= (QMI_LOC_EVENT_MASK_ENGINE_STATE_V02);
- }
-
- if (mask & LOC_API_ADAPTER_BIT_LOCATION_SERVER_REQUEST)
- eventMask |= QMI_LOC_EVENT_MASK_LOCATION_SERVER_CONNECTION_REQ_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_REQUEST_WIFI)
- eventMask |= QMI_LOC_EVENT_MASK_WIFI_REQ_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_SENSOR_STATUS)
- eventMask |= QMI_LOC_EVENT_MASK_SENSOR_STREAMING_READY_STATUS_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_REQUEST_TIME_SYNC)
- eventMask |= QMI_LOC_EVENT_MASK_TIME_SYNC_REQ_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_REPORT_SPI)
- eventMask |= QMI_LOC_EVENT_MASK_SET_SPI_STREAMING_REPORT_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_REPORT_NI_GEOFENCE)
- eventMask |= QMI_LOC_EVENT_MASK_NI_GEOFENCE_NOTIFICATION_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_GEOFENCE_GEN_ALERT)
- eventMask |= QMI_LOC_EVENT_MASK_GEOFENCE_GEN_ALERT_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_REPORT_GENFENCE_BREACH)
- eventMask |= QMI_LOC_EVENT_MASK_GEOFENCE_BREACH_NOTIFICATION_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_BATCHED_GENFENCE_BREACH_REPORT)
- eventMask |= QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_BREACH_NOTIFICATION_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_PEDOMETER_CTRL)
- eventMask |= QMI_LOC_EVENT_MASK_PEDOMETER_CONTROL_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_REPORT_GENFENCE_DWELL)
- eventMask |= QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_DWELL_NOTIFICATION_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_MOTION_CTRL)
- eventMask |= QMI_LOC_EVENT_MASK_MOTION_DATA_CONTROL_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_REQUEST_WIFI_AP_DATA)
- eventMask |= QMI_LOC_EVENT_MASK_INJECT_WIFI_AP_DATA_REQ_V02;
-
- if(mask & LOC_API_ADAPTER_BIT_BATCH_FULL)
- eventMask |= QMI_LOC_EVENT_MASK_BATCH_FULL_NOTIFICATION_V02;
-
- if(mask & LOC_API_ADAPTER_BIT_BATCHED_POSITION_REPORT)
- eventMask |= QMI_LOC_EVENT_MASK_LIVE_BATCHED_POSITION_REPORT_V02;
-
- if(mask & LOC_API_ADAPTER_BIT_GNSS_MEASUREMENT_REPORT)
- eventMask |= QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT_V02;
-
- if(mask & LOC_API_ADAPTER_BIT_GNSS_SV_POLYNOMIAL_REPORT)
- eventMask |= QMI_LOC_EVENT_MASK_GNSS_SV_POLYNOMIAL_REPORT_V02;
-
- // for GDT
- if(mask & LOC_API_ADAPTER_BIT_GDT_UPLOAD_BEGIN_REQ)
- eventMask |= QMI_LOC_EVENT_MASK_GDT_UPLOAD_BEGIN_REQ_V02;
-
- if(mask & LOC_API_ADAPTER_BIT_GDT_UPLOAD_END_REQ)
- eventMask |= QMI_LOC_EVENT_MASK_GDT_UPLOAD_END_REQ_V02;
-
- if (mask & LOC_API_ADAPTER_BIT_GNSS_MEASUREMENT)
- eventMask |= QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT_V02;
-
- if(mask & LOC_API_ADAPTER_BIT_REQUEST_TIMEZONE)
- eventMask |= QMI_LOC_EVENT_MASK_GET_TIME_ZONE_REQ_V02;
- return eventMask;
-}
-
-qmiLocLockEnumT_v02 LocApiV02 :: convertGpsLockMask(LOC_GPS_LOCK_MASK lockMask)
-{
- /* GPS HAL uses power voting through GPS Lock mask.
- When QCA1530 daemon is present two values are used: 101 and 103.*/
- if ( 101 == lockMask || 103 == lockMask )
- {
- return (qmiLocLockEnumT_v02)lockMask;
- }
- if (isGpsLockAll(lockMask))
- return eQMI_LOC_LOCK_ALL_V02;
- if (isGpsLockMO(lockMask))
- return eQMI_LOC_LOCK_MI_V02;
- if (isGpsLockMT(lockMask))
- return eQMI_LOC_LOCK_MT_V02;
- if (isGpsLockNone(lockMask))
- return eQMI_LOC_LOCK_NONE_V02;
- return (qmiLocLockEnumT_v02)lockMask;
-}
-
-/* Convert error from loc_api_v02 to loc eng format*/
-enum loc_api_adapter_err LocApiV02 :: convertErr(
- locClientStatusEnumType status)
-{
- switch( status)
- {
- case eLOC_CLIENT_SUCCESS:
- return LOC_API_ADAPTER_ERR_SUCCESS;
-
- case eLOC_CLIENT_FAILURE_GENERAL:
- return LOC_API_ADAPTER_ERR_GENERAL_FAILURE;
-
- case eLOC_CLIENT_FAILURE_UNSUPPORTED:
- return LOC_API_ADAPTER_ERR_UNSUPPORTED;
-
- case eLOC_CLIENT_FAILURE_INVALID_PARAMETER:
- return LOC_API_ADAPTER_ERR_INVALID_PARAMETER;
-
- case eLOC_CLIENT_FAILURE_ENGINE_BUSY:
- return LOC_API_ADAPTER_ERR_ENGINE_BUSY;
-
- case eLOC_CLIENT_FAILURE_PHONE_OFFLINE:
- return LOC_API_ADAPTER_ERR_PHONE_OFFLINE;
-
- case eLOC_CLIENT_FAILURE_TIMEOUT:
- return LOC_API_ADAPTER_ERR_TIMEOUT;
-
- case eLOC_CLIENT_FAILURE_INVALID_HANDLE:
- return LOC_API_ADAPTER_ERR_INVALID_HANDLE;
-
- case eLOC_CLIENT_FAILURE_SERVICE_NOT_PRESENT:
- return LOC_API_ADAPTER_ERR_SERVICE_NOT_PRESENT;
-
- case eLOC_CLIENT_FAILURE_INTERNAL:
- return LOC_API_ADAPTER_ERR_INTERNAL;
-
- default:
- return LOC_API_ADAPTER_ERR_FAILURE;
- }
-}
-
-/* convert position report to loc eng format and send the converted
- position to loc eng */
-
-void LocApiV02 :: reportPosition (
- const qmiLocEventPositionReportIndMsgT_v02 *location_report_ptr)
-{
- UlpLocation location;
- LocPosTechMask tech_Mask = LOC_POS_TECH_MASK_DEFAULT;
- LOC_LOGD("Reporting position from V2 Adapter\n");
- memset(&location, 0, sizeof (UlpLocation));
- location.size = sizeof(location);
- GpsLocationExtended locationExtended;
- memset(&locationExtended, 0, sizeof (GpsLocationExtended));
- locationExtended.size = sizeof(locationExtended);
- if( clock_gettime( CLOCK_BOOTTIME, &locationExtended.timeStamp.apTimeStamp)== 0 )
- {
- locationExtended.timeStamp.apTimeStampUncertaintyMs = (float)ap_timestamp_uncertainty;
-
- }
- else
- {
- locationExtended.timeStamp.apTimeStampUncertaintyMs = FLT_MAX;
- LOC_LOGE("%s:%d Error in clock_gettime() ",__func__, __LINE__);
- }
- LOC_LOGD("%s:%d QMI_PosPacketTime %ld (sec) %ld (nsec)", __func__, __LINE__,
- locationExtended.timeStamp.apTimeStamp.tv_sec,
- locationExtended.timeStamp.apTimeStamp.tv_nsec);
- // Process the position from final and intermediate reports
-
- if( (location_report_ptr->sessionStatus == eQMI_LOC_SESS_STATUS_SUCCESS_V02) ||
- (location_report_ptr->sessionStatus == eQMI_LOC_SESS_STATUS_IN_PROGRESS_V02)
- )
- {
- // Latitude & Longitude
- if( (1 == location_report_ptr->latitude_valid) &&
- (1 == location_report_ptr->longitude_valid))
- {
- location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_LAT_LONG;
- location.gpsLocation.latitude = location_report_ptr->latitude;
- location.gpsLocation.longitude = location_report_ptr->longitude;
-
- // Time stamp (UTC)
- if(location_report_ptr->timestampUtc_valid == 1)
- {
- location.gpsLocation.timestamp = location_report_ptr->timestampUtc;
- }
-
- // Altitude
- if(location_report_ptr->altitudeWrtEllipsoid_valid == 1 )
- {
- location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_ALTITUDE;
- location.gpsLocation.altitude = location_report_ptr->altitudeWrtEllipsoid;
- }
-
- // Speed
- if(location_report_ptr->speedHorizontal_valid == 1)
- {
- location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_SPEED;
- location.gpsLocation.speed = location_report_ptr->speedHorizontal;
- }
-
- // Heading
- if(location_report_ptr->heading_valid == 1)
- {
- location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_BEARING;
- location.gpsLocation.bearing = location_report_ptr->heading;
- }
-
- // Uncertainty (circular)
- if (location_report_ptr->horUncCircular_valid) {
- location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_ACCURACY;
- location.gpsLocation.accuracy = location_report_ptr->horUncCircular;
- } else if (location_report_ptr->horUncEllipseSemiMinor_valid &&
- location_report_ptr->horUncEllipseSemiMajor_valid) {
- location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_ACCURACY;
- location.gpsLocation.accuracy =
- sqrt((location_report_ptr->horUncEllipseSemiMinor *
- location_report_ptr->horUncEllipseSemiMinor) +
- (location_report_ptr->horUncEllipseSemiMajor *
- location_report_ptr->horUncEllipseSemiMajor));
- }
-
- // If horConfidence_valid is true, and horConfidence value is less than 68%
- // then scale the accuracy value to 68% confidence.
- if (location_report_ptr->horConfidence_valid)
- {
- bool is_CircUnc = (location_report_ptr->horUncCircular_valid) ?
- true : false;
- scaleAccuracyTo68PercentConfidence(location_report_ptr->horConfidence,
- location.gpsLocation,
- is_CircUnc);
- }
-
- // Technology Mask
- tech_Mask |= location_report_ptr->technologyMask;
-
- //Mark the location source as from GNSS
- location.gpsLocation.flags |= LOCATION_HAS_SOURCE_INFO;
- location.position_source = ULP_LOCATION_IS_FROM_GNSS;
- if (location_report_ptr->magneticDeviation_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_MAG_DEV;
- locationExtended.magneticDeviation = location_report_ptr->magneticDeviation;
- }
-
- if (location_report_ptr->DOP_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_DOP;
- locationExtended.pdop = location_report_ptr->DOP.PDOP;
- locationExtended.hdop = location_report_ptr->DOP.HDOP;
- locationExtended.vdop = location_report_ptr->DOP.VDOP;
- }
-
- if (location_report_ptr->altitudeWrtMeanSeaLevel_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_ALTITUDE_MEAN_SEA_LEVEL;
- locationExtended.altitudeMeanSeaLevel = location_report_ptr->altitudeWrtMeanSeaLevel;
- }
-
- if (location_report_ptr->vertUnc_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_VERT_UNC;
- locationExtended.vert_unc = location_report_ptr->vertUnc;
- }
-
- if (location_report_ptr->speedUnc_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_SPEED_UNC;
- locationExtended.speed_unc = location_report_ptr->speedUnc;
- }
- if (location_report_ptr->headingUnc_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_BEARING_UNC;
- locationExtended.bearing_unc = location_report_ptr->headingUnc;
- }
- if (location_report_ptr->horReliability_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_HOR_RELIABILITY;
- switch(location_report_ptr->horReliability)
- {
- case eQMI_LOC_RELIABILITY_NOT_SET_V02 :
- locationExtended.horizontal_reliability = LOC_RELIABILITY_NOT_SET;
- break;
- case eQMI_LOC_RELIABILITY_VERY_LOW_V02 :
- locationExtended.horizontal_reliability = LOC_RELIABILITY_VERY_LOW;
- break;
- case eQMI_LOC_RELIABILITY_LOW_V02 :
- locationExtended.horizontal_reliability = LOC_RELIABILITY_LOW;
- break;
- case eQMI_LOC_RELIABILITY_MEDIUM_V02 :
- locationExtended.horizontal_reliability = LOC_RELIABILITY_MEDIUM;
- break;
- case eQMI_LOC_RELIABILITY_HIGH_V02 :
- locationExtended.horizontal_reliability = LOC_RELIABILITY_HIGH;
- break;
- default:
- locationExtended.horizontal_reliability = LOC_RELIABILITY_NOT_SET;
- break;
- }
- }
- if (location_report_ptr->vertReliability_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_VERT_RELIABILITY;
- switch(location_report_ptr->vertReliability)
- {
- case eQMI_LOC_RELIABILITY_NOT_SET_V02 :
- locationExtended.vertical_reliability = LOC_RELIABILITY_NOT_SET;
- break;
- case eQMI_LOC_RELIABILITY_VERY_LOW_V02 :
- locationExtended.vertical_reliability = LOC_RELIABILITY_VERY_LOW;
- break;
- case eQMI_LOC_RELIABILITY_LOW_V02 :
- locationExtended.vertical_reliability = LOC_RELIABILITY_LOW;
- break;
- case eQMI_LOC_RELIABILITY_MEDIUM_V02 :
- locationExtended.vertical_reliability = LOC_RELIABILITY_MEDIUM;
- break;
- case eQMI_LOC_RELIABILITY_HIGH_V02 :
- locationExtended.vertical_reliability = LOC_RELIABILITY_HIGH;
- break;
- default:
- locationExtended.vertical_reliability = LOC_RELIABILITY_NOT_SET;
- break;
- }
- }
-
- if (location_report_ptr->horUncEllipseSemiMajor_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_HOR_ELIP_UNC_MAJOR;
- locationExtended.horUncEllipseSemiMajor = location_report_ptr->horUncEllipseSemiMajor;
- }
- if (location_report_ptr->horUncEllipseSemiMinor_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_HOR_ELIP_UNC_MINOR;
- locationExtended.horUncEllipseSemiMinor = location_report_ptr->horUncEllipseSemiMinor;
- }
- if (location_report_ptr->horUncEllipseOrientAzimuth_valid)
- {
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_HOR_ELIP_UNC_AZIMUTH;
- locationExtended.horUncEllipseOrientAzimuth = location_report_ptr->horUncEllipseOrientAzimuth;
- }
-
- if (location_report_ptr->gnssSvUsedList_valid &&
- (location_report_ptr->gnssSvUsedList_len != 0))
- {
- int idx=0;
- uint32_t gnssSvUsedList_len = location_report_ptr->gnssSvUsedList_len;
- uint16_t gnssSvIdUsed = 0;
-
- locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_GNSS_SV_USED_DATA;
- // Set of used_in_fix SV ID
- for (idx = 0; idx < gnssSvUsedList_len; idx++)
- {
- gnssSvIdUsed = location_report_ptr->gnssSvUsedList[idx];
- if (gnssSvIdUsed <= GPS_SV_PRN_MAX)
- {
- locationExtended.gnss_sv_used_ids.gps_sv_used_ids_mask |=
- (1 << (gnssSvIdUsed - GPS_SV_PRN_MIN));
- }
- else if ((gnssSvIdUsed >= GLO_SV_PRN_MIN) && (gnssSvIdUsed <= GLO_SV_PRN_MAX))
- {
- locationExtended.gnss_sv_used_ids.glo_sv_used_ids_mask |=
- (1 << (gnssSvIdUsed - GLO_SV_PRN_MIN));
- }
- else if ((gnssSvIdUsed >= BDS_SV_PRN_MIN) && (gnssSvIdUsed <= BDS_SV_PRN_MAX))
- {
- locationExtended.gnss_sv_used_ids.bds_sv_used_ids_mask |=
- (1 << (gnssSvIdUsed - BDS_SV_PRN_MIN));
- }
- else if ((gnssSvIdUsed >= GAL_SV_PRN_MIN) && (gnssSvIdUsed <= GAL_SV_PRN_MAX))
- {
- locationExtended.gnss_sv_used_ids.gal_sv_used_ids_mask |=
- (1 << (gnssSvIdUsed - GAL_SV_PRN_MIN));
- }
- }
- }
-
- if((0 == location_report_ptr->latitude) &&
- (0 == location_report_ptr->latitude) &&
- (1 == location_report_ptr->horReliability_valid) &&
- (eQMI_LOC_RELIABILITY_NOT_SET_V02 ==
- location_report_ptr->horReliability))
- {
- /*Only BlankNMEA sentence needs to be processed and sent, position
- * shall not be sent to framework if both lat,long is 0 & horReliability
- * not set, hence we report session failure status */
- LocApiBase::reportPosition( location,
- locationExtended,
- (void*)location_report_ptr,
- LOC_SESS_FAILURE,
- tech_Mask);
- }
- else
- {
- LocApiBase::reportPosition( location,
- locationExtended,
- (void*)location_report_ptr,
- (location_report_ptr->sessionStatus
- == eQMI_LOC_SESS_STATUS_IN_PROGRESS_V02 ?
- LOC_SESS_INTERMEDIATE : LOC_SESS_SUCCESS),
- tech_Mask);
- }
- }
- }
- else
- {
- LocApiBase::reportPosition(location,
- locationExtended,
- NULL,
- LOC_SESS_FAILURE);
-
- LOC_LOGD("%s:%d]: Ignoring position report with sess status = %d, "
- "fix id = %u\n", __func__, __LINE__,
- location_report_ptr->sessionStatus,
- location_report_ptr->fixId );
- }
-}
-
-/* convert satellite report to loc eng format and send the converted
- report to loc eng */
-void LocApiV02 :: reportSv (
- const qmiLocEventGnssSvInfoIndMsgT_v02 *gnss_report_ptr)
-{
- LocGnssSvStatus SvStatus;
- GpsLocationExtended locationExtended;
- int num_svs_max, i;
- const qmiLocSvInfoStructT_v02 *sv_info_ptr;
-
- LOC_LOGV ("%s:%d]: num of sv = %d, validity = %d, altitude assumed = %u \n",
- __func__, __LINE__, gnss_report_ptr->svList_len,
- gnss_report_ptr->svList_valid,
- gnss_report_ptr->altitudeAssumed);
-
- num_svs_max = 0;
- memset (&SvStatus, 0, sizeof (LocGnssSvStatus));
- memset(&locationExtended, 0, sizeof (GpsLocationExtended));
-
- SvStatus.size = sizeof(LocGnssSvStatus);
- locationExtended.size = sizeof(locationExtended);
- if(gnss_report_ptr->svList_valid == 1)
- {
- num_svs_max = gnss_report_ptr->svList_len;
- if(num_svs_max > LOC_GNSS_MAX_SVS)
- {
- num_svs_max = LOC_GNSS_MAX_SVS;
- }
- SvStatus.num_svs = 0;
- for(i = 0; i < num_svs_max; i++)
- {
- sv_info_ptr = &(gnss_report_ptr->svList[i]);
- if((sv_info_ptr->validMask & QMI_LOC_SV_INFO_MASK_VALID_SYSTEM_V02) &&
- (sv_info_ptr->validMask & QMI_LOC_SV_INFO_MASK_VALID_GNSS_SVID_V02)
- && (sv_info_ptr->gnssSvId != 0 ))
- {
- LocGnssSvFlags flags = LOC_GNSS_SV_FLAGS_NONE;
-
- SvStatus.gnss_sv_list[SvStatus.num_svs].size = sizeof(LocGnssSvInfo);
- switch (sv_info_ptr->system)
- {
- case eQMI_LOC_SV_SYSTEM_GPS_V02:
- SvStatus.gnss_sv_list[SvStatus.num_svs].svid = sv_info_ptr->gnssSvId;
- SvStatus.gnss_sv_list[SvStatus.num_svs].constellation = LOC_GNSS_CONSTELLATION_GPS;
- break;
-
- case eQMI_LOC_SV_SYSTEM_GALILEO_V02:
- SvStatus.gnss_sv_list[SvStatus.num_svs].svid = sv_info_ptr->gnssSvId-300;
- SvStatus.gnss_sv_list[SvStatus.num_svs].constellation = LOC_GNSS_CONSTELLATION_GALILEO;
- break;
-
- case eQMI_LOC_SV_SYSTEM_SBAS_V02:
- SvStatus.gnss_sv_list[SvStatus.num_svs].svid = sv_info_ptr->gnssSvId;
- SvStatus.gnss_sv_list[SvStatus.num_svs].constellation = LOC_GNSS_CONSTELLATION_SBAS;
- break;
-
- case eQMI_LOC_SV_SYSTEM_GLONASS_V02:
- SvStatus.gnss_sv_list[SvStatus.num_svs].svid = sv_info_ptr->gnssSvId;
- SvStatus.gnss_sv_list[SvStatus.num_svs].constellation = LOC_GNSS_CONSTELLATION_GLONASS;
- break;
-
- case eQMI_LOC_SV_SYSTEM_BDS_V02:
- SvStatus.gnss_sv_list[SvStatus.num_svs].svid = sv_info_ptr->gnssSvId - 200;
- SvStatus.gnss_sv_list[SvStatus.num_svs].constellation = LOC_GNSS_CONSTELLATION_BEIDOU;
- break;
-
- case eQMI_LOC_SV_SYSTEM_QZSS_V02:
- SvStatus.gnss_sv_list[SvStatus.num_svs].svid = sv_info_ptr->gnssSvId;
- SvStatus.gnss_sv_list[SvStatus.num_svs].constellation = LOC_GNSS_CONSTELLATION_QZSS;
- break;
-
- case eQMI_LOC_SV_SYSTEM_COMPASS_V02:
- default:
- SvStatus.gnss_sv_list[SvStatus.num_svs].svid = sv_info_ptr->gnssSvId;
- SvStatus.gnss_sv_list[SvStatus.num_svs].constellation = LOC_GNSS_CONSTELLATION_UNKNOWN;
- break;
- }
-
- if (sv_info_ptr->validMask & QMI_LOC_SV_INFO_MASK_VALID_SNR_V02)
- {
- SvStatus.gnss_sv_list[SvStatus.num_svs].c_n0_dbhz = sv_info_ptr->snr;
- }
-
- if (sv_info_ptr->validMask & QMI_LOC_SV_INFO_MASK_VALID_ELEVATION_V02)
- {
- SvStatus.gnss_sv_list[SvStatus.num_svs].elevation = sv_info_ptr->elevation;
- }
-
- if (sv_info_ptr->validMask & QMI_LOC_SV_INFO_MASK_VALID_AZIMUTH_V02)
- {
- SvStatus.gnss_sv_list[SvStatus.num_svs].azimuth = sv_info_ptr->azimuth;
- }
-
- if (sv_info_ptr->validMask &
- QMI_LOC_SV_INFO_MASK_VALID_SVINFO_MASK_V02)
- {
- if (sv_info_ptr->svInfoMask &
- QMI_LOC_SVINFO_MASK_HAS_EPHEMERIS_V02)
- {
- flags |= LOC_GNSS_SV_FLAGS_HAS_EPHEMERIS_DATA;
- }
- if (sv_info_ptr->svInfoMask &
- QMI_LOC_SVINFO_MASK_HAS_ALMANAC_V02)
- {
- flags |= LOC_GNSS_SV_FLAGS_HAS_ALMANAC_DATA;
- }
- }
-
- /* Even if modem stops tracking some SV’s, it reports them in the measurement
- report with Ephermeris/Alamanac data with 0 SNR. So in addition to check for
- availability of Alm or Eph data, also check for SNR > 0 to indicate SV is
- used in fix. */
- if ((sv_info_ptr->validMask &
- QMI_LOC_SV_INFO_MASK_VALID_PROCESS_STATUS_V02)
- &&
- (sv_info_ptr->svStatus == eQMI_LOC_SV_STATUS_TRACK_V02)
- &&
- (sv_info_ptr->snr > 0)
- &&
- ((flags & LOC_GNSS_SV_FLAGS_HAS_EPHEMERIS_DATA)
- ||
- (flags & LOC_GNSS_SV_FLAGS_HAS_ALMANAC_DATA)))
- {
- flags |= LOC_GNSS_SV_FLAGS_USED_IN_FIX;
- }
-
- SvStatus.gnss_sv_list[SvStatus.num_svs].flags = flags;
-
- SvStatus.num_svs++;
- }
- }
- }
-
- if (SvStatus.num_svs >= 0)
- {
- LOC_LOGV ("%s:%d]: firing SV callback\n", __func__, __LINE__);
- LocApiBase::reportSv(SvStatus,
- locationExtended,
- (void*)gnss_report_ptr);
- }
-}
-
-/* convert satellite measurementreport to loc eng format and send the converted
- report to loc eng */
-void LocApiV02 :: reportSvMeasurement (
- const qmiLocEventGnssSvMeasInfoIndMsgT_v02 *gnss_raw_measurement_ptr)
-{
- GnssSvMeasurementSet svMeasurementSet;
- memset(&svMeasurementSet, 0, sizeof(GnssSvMeasurementSet));
- svMeasurementSet.size = sizeof(svMeasurementSet);
-
- if( clock_gettime( CLOCK_BOOTTIME, &svMeasurementSet.timeStamp.apTimeStamp)== 0 )
- {
- svMeasurementSet.timeStamp.apTimeStampUncertaintyMs = (float)ap_timestamp_uncertainty;
- }
- else
- {
- svMeasurementSet.timeStamp.apTimeStampUncertaintyMs = FLT_MAX;
- LOC_LOGE("%s:%d Error in clock_gettime() ",__func__, __LINE__);
- }
- LOC_LOGD("%s:%d QMI_MeasPacketTime %ld (sec) %ld (nsec)",__func__,__LINE__,
- svMeasurementSet.timeStamp.apTimeStamp.tv_sec,
- svMeasurementSet.timeStamp.apTimeStamp.tv_nsec);
-
- LOC_LOGI("[SvMeas] SeqNum: %d, MaxMsgNum: %d, MeasValid: %d, #of SV: %d\n",
- gnss_raw_measurement_ptr->seqNum,
- gnss_raw_measurement_ptr->maxMessageNum,
- gnss_raw_measurement_ptr->svMeasurement_valid,
- (gnss_raw_measurement_ptr->svMeasurement_valid)?
- gnss_raw_measurement_ptr->svMeasurement_len : 0);
-
- svMeasurementSet.seqNum = gnss_raw_measurement_ptr->seqNum;
- svMeasurementSet.maxMessageNum = gnss_raw_measurement_ptr->maxMessageNum;
-
- if(1 == gnss_raw_measurement_ptr->rcvrClockFrequencyInfo_valid)
- {
- qmiLocRcvrClockFrequencyInfoStructT_v02* rcvClockFreqInfo =
- (qmiLocRcvrClockFrequencyInfoStructT_v02*) &gnss_raw_measurement_ptr->rcvrClockFrequencyInfo;
-
- svMeasurementSet.clockFreq.size = sizeof(Gnss_LocRcvrClockFrequencyInfoStructType);
- svMeasurementSet.clockFreqValid = gnss_raw_measurement_ptr->rcvrClockFrequencyInfo_valid;
- svMeasurementSet.clockFreq.clockDrift =
- gnss_raw_measurement_ptr->rcvrClockFrequencyInfo.clockDrift;
- svMeasurementSet.clockFreq.clockDriftUnc =
- gnss_raw_measurement_ptr->rcvrClockFrequencyInfo.clockDriftUnc;
- svMeasurementSet.clockFreq.sourceOfFreq = (Gnss_LocSourceofFreqEnumType)
- gnss_raw_measurement_ptr->rcvrClockFrequencyInfo.sourceOfFreq;
-
- LOC_LOGV("FreqInfo:: Drift: %f, DriftUnc: %f",
- svMeasurementSet.clockFreq.clockDrift,
- svMeasurementSet.clockFreq.clockDriftUnc);
- }
-
- if((1 == gnss_raw_measurement_ptr->leapSecondInfo_valid) &&
- (0 == gnss_raw_measurement_ptr->leapSecondInfo.leapSecUnc) )
- {
- qmiLocLeapSecondInfoStructT_v02* leapSecond =
- (qmiLocLeapSecondInfoStructT_v02*)&gnss_raw_measurement_ptr->leapSecondInfo;
-
- svMeasurementSet.leapSec.size = sizeof(Gnss_LeapSecondInfoStructType);
- svMeasurementSet.leapSecValid = (bool)gnss_raw_measurement_ptr->leapSecondInfo_valid;
- svMeasurementSet.leapSec.leapSec = gnss_raw_measurement_ptr->leapSecondInfo.leapSec;
- svMeasurementSet.leapSec.leapSecUnc = gnss_raw_measurement_ptr->leapSecondInfo.leapSecUnc;
- LOC_LOGV("leapSecondInfo:: leapSec: %d, leapSecUnc: %d",
- svMeasurementSet.leapSec.leapSec, svMeasurementSet.leapSec.leapSecUnc);
- }
-
- if(1 == gnss_raw_measurement_ptr->gpsGloInterSystemBias_valid)
- {
- qmiLocInterSystemBiasStructT_v02* interSystemBias =
- (qmiLocInterSystemBiasStructT_v02*)&gnss_raw_measurement_ptr->gpsGloInterSystemBias;
-
- getInterSystemTimeBias("gpsGloInterSystemBias",
- svMeasurementSet.gpsGloInterSystemBias, interSystemBias);
- }
-
- if(1 == gnss_raw_measurement_ptr->gpsBdsInterSystemBias_valid)
- {
- qmiLocInterSystemBiasStructT_v02* interSystemBias =
- (qmiLocInterSystemBiasStructT_v02*)&gnss_raw_measurement_ptr->gpsBdsInterSystemBias;
-
- getInterSystemTimeBias("gpsBdsInterSystemBias",
- svMeasurementSet.gpsBdsInterSystemBias, interSystemBias);
- }
-
- if(1 == gnss_raw_measurement_ptr->gpsGalInterSystemBias_valid)
- {
- qmiLocInterSystemBiasStructT_v02* interSystemBias =
- (qmiLocInterSystemBiasStructT_v02*)&gnss_raw_measurement_ptr->gpsGalInterSystemBias;
-
- getInterSystemTimeBias("gpsGalInterSystemBias",
- svMeasurementSet.gpsGalInterSystemBias, interSystemBias);
- }
-
- if(1 == gnss_raw_measurement_ptr->bdsGloInterSystemBias_valid)
- {
- qmiLocInterSystemBiasStructT_v02* interSystemBias =
- (qmiLocInterSystemBiasStructT_v02*)&gnss_raw_measurement_ptr->bdsGloInterSystemBias;
-
- getInterSystemTimeBias("bdsGloInterSystemBias",
- svMeasurementSet.bdsGloInterSystemBias, interSystemBias);
- }
-
- if(1 == gnss_raw_measurement_ptr->galGloInterSystemBias_valid)
- {
- qmiLocInterSystemBiasStructT_v02* interSystemBias =
- (qmiLocInterSystemBiasStructT_v02*)&gnss_raw_measurement_ptr->galGloInterSystemBias;
-
- getInterSystemTimeBias("galGloInterSystemBias",
- svMeasurementSet.galGloInterSystemBias, interSystemBias);
- }
-
- if(1 == gnss_raw_measurement_ptr->galBdsInterSystemBias_valid)
- {
- qmiLocInterSystemBiasStructT_v02* interSystemBias =
- (qmiLocInterSystemBiasStructT_v02*)&gnss_raw_measurement_ptr->galBdsInterSystemBias;
-
- getInterSystemTimeBias("galBdsInterSystemBias",
- svMeasurementSet.galBdsInterSystemBias,interSystemBias);
- }
-
- svMeasurementSet.gnssMeas.size = sizeof(Gnss_SVMeasurementStructType);
- svMeasurementSet.gnssMeas.system = (Gnss_LocSvSystemEnumType)gnss_raw_measurement_ptr->system;
-
- if(1 == gnss_raw_measurement_ptr->systemTime_valid)
- {
- svMeasurementSet.gnssMeas.isSystemTimeValid = gnss_raw_measurement_ptr->systemTime_valid;
- svMeasurementSet.gnssMeas.systemTime.size = sizeof(Gnss_LocSystemTimeStructType);
-
- svMeasurementSet.gnssMeas.systemTime.systemWeek =
- gnss_raw_measurement_ptr->systemTime.systemWeek;
-
- svMeasurementSet.gnssMeas.systemTime.systemMsec =
- gnss_raw_measurement_ptr->systemTime.systemMsec;
-
- svMeasurementSet.gnssMeas.systemTime.systemClkTimeBias =
- gnss_raw_measurement_ptr->systemTime.systemClkTimeBias;
-
- svMeasurementSet.gnssMeas.systemTime.systemClkTimeUncMs =
- gnss_raw_measurement_ptr->systemTime.systemClkTimeUncMs;
- }
-
- if(1 == gnss_raw_measurement_ptr->gloTime_valid)
- {
- svMeasurementSet.gnssMeas.isGloTime_valid = gnss_raw_measurement_ptr->gloTime_valid;
- svMeasurementSet.gnssMeas.gloTime.size = sizeof(Gnss_LocGloTimeStructType);
-
- svMeasurementSet.gnssMeas.gloTime.gloDays = gnss_raw_measurement_ptr->gloTime.gloDays;
- svMeasurementSet.gnssMeas.gloTime.gloFourYear = gnss_raw_measurement_ptr->gloTime.gloFourYear;
- svMeasurementSet.gnssMeas.gloTime.gloMsec = gnss_raw_measurement_ptr->gloTime.gloMsec;
- svMeasurementSet.gnssMeas.gloTime.gloClkTimeBias = gnss_raw_measurement_ptr->gloTime.gloClkTimeBias;
- svMeasurementSet.gnssMeas.gloTime.gloClkTimeUncMs = gnss_raw_measurement_ptr->gloTime.gloClkTimeUncMs;
- }
-
- if(1 == gnss_raw_measurement_ptr->systemTimeExt_valid)
- {
- svMeasurementSet.gnssMeas.isSystemTimeExt_valid = gnss_raw_measurement_ptr->systemTimeExt_valid;
- svMeasurementSet.gnssMeas.systemTimeExt.size = sizeof(Gnss_LocGnssTimeExtStructType);
-
- svMeasurementSet.gnssMeas.systemTimeExt.refFCount = gnss_raw_measurement_ptr->systemTimeExt.refFCount;
-
- svMeasurementSet.gnssMeas.systemTimeExt.systemRtc_valid =
- gnss_raw_measurement_ptr->systemTimeExt.systemRtc_valid;
-
- svMeasurementSet.gnssMeas.systemTimeExt.systemRtcMs =
- gnss_raw_measurement_ptr->systemTimeExt.systemRtcMs;
-
- svMeasurementSet.gnssMeas.systemTimeExt.sourceOfTime =
- gnss_raw_measurement_ptr->systemTimeExt.sourceOfTime;
-
- }
-
-
- if(1 == gnss_raw_measurement_ptr->svMeasurement_valid)
- {
-
- svMeasurementSet.gnssMeas.numSvs = gnss_raw_measurement_ptr->svMeasurement_len;
- svMeasurementSet.gnssMeasValid = gnss_raw_measurement_ptr->svMeasurement_valid;
-
- if(gnss_raw_measurement_ptr->svMeasurement_len > GNSS_LOC_SV_MEAS_LIST_MAX_SIZE)
- {
- //This should not happen normally, anycase limit to Max List Size
- svMeasurementSet.gnssMeas.numSvs = GNSS_LOC_SV_MEAS_LIST_MAX_SIZE;
- }
- svMeasurementSet.gnssMeas.numSvs = gnss_raw_measurement_ptr->svMeasurement_len;
- svMeasurementSet.gnssMeasValid = gnss_raw_measurement_ptr->svMeasurement_valid;
-
- uint32_t i = 0, cnt=0;
- for(i=0;isvMeasurement_len;i++)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].size = sizeof(Gnss_SVMeasurementStructType);
-
- if((0 != gnss_raw_measurement_ptr->svMeasurement[i].gnssSvId) &&
- (0 != gnss_raw_measurement_ptr->svMeasurement[i].measurementStatus))
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].gnssSvId =
- gnss_raw_measurement_ptr->svMeasurement[i].gnssSvId;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].gloFrequency =
- gnss_raw_measurement_ptr->svMeasurement[i].gloFrequency;
-
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_LOSSOFLOCK_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].lossOfLock = (bool)
- gnss_raw_measurement_ptr->svMeasurement[i].lossOfLock;
- }
-
- svMeasurementSet.gnssMeas.svMeasurement[i].svStatus = (Gnss_LocSvSearchStatusEnumT)
- gnss_raw_measurement_ptr->svMeasurement[i].svStatus;
-
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_HEALTH_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].healthStatus_valid = 1;
- svMeasurementSet.gnssMeas.svMeasurement[i].healthStatus = (uint8_t)gnss_raw_measurement_ptr->svMeasurement[i].healthStatus;
- }
- svMeasurementSet.gnssMeas.svMeasurement[i].svInfoMask = (Gnss_LocSvInfoMaskT)
- gnss_raw_measurement_ptr->svMeasurement[i].svInfoMask;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].CNo =
- gnss_raw_measurement_ptr->svMeasurement[i].CNo;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].gloRfLoss =
- gnss_raw_measurement_ptr->svMeasurement[i].gloRfLoss;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].measLatency =
- gnss_raw_measurement_ptr->svMeasurement[i].measLatency;
-
- /*SVTimeSpeed*/
- svMeasurementSet.gnssMeas.svMeasurement[i].svTimeSpeed.size = sizeof(Gnss_LocSVTimeSpeedStructType);
- svMeasurementSet.gnssMeas.svMeasurement[i].svTimeSpeed.svMs =
- gnss_raw_measurement_ptr->svMeasurement[i].svTimeSpeed.svTimeMs;
- svMeasurementSet.gnssMeas.svMeasurement[i].svTimeSpeed.svSubMs =
- gnss_raw_measurement_ptr->svMeasurement[i].svTimeSpeed.svTimeSubMs;
- svMeasurementSet.gnssMeas.svMeasurement[i].svTimeSpeed.svTimeUncMs =
- gnss_raw_measurement_ptr->svMeasurement[i].svTimeSpeed.svTimeUncMs;
- svMeasurementSet.gnssMeas.svMeasurement[i].svTimeSpeed.dopplerShift =
- gnss_raw_measurement_ptr->svMeasurement[i].svTimeSpeed.dopplerShift;
- svMeasurementSet.gnssMeas.svMeasurement[i].svTimeSpeed.dopplerShiftUnc=
- gnss_raw_measurement_ptr->svMeasurement[i].svTimeSpeed.dopplerShiftUnc;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].measurementStatus =
- (uint32_t)gnss_raw_measurement_ptr->svMeasurement[i].measurementStatus;
-
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_MULTIPATH_EST_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].multipathEstValid = 1;
- svMeasurementSet.gnssMeas.svMeasurement[i].multipathEstimate =
- gnss_raw_measurement_ptr->svMeasurement[i].multipathEstimate;
- }
-
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_FINE_SPEED_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].fineSpeedValid = 1;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].fineSpeed =
- gnss_raw_measurement_ptr->svMeasurement[i].fineSpeed;
- }
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_FINE_SPEED_UNC_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].fineSpeedUncValid = 1;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].fineSpeedUnc =
- gnss_raw_measurement_ptr->svMeasurement[i].fineSpeedUnc;
- }
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_CARRIER_PHASE_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].carrierPhaseValid = 1;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].carrierPhase =
- gnss_raw_measurement_ptr->svMeasurement[i].carrierPhase;
- }
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_SV_DIRECTION_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].svDirectionValid = 1;
-
- svMeasurementSet.gnssMeas.svMeasurement[i].svElevation =
- gnss_raw_measurement_ptr->svMeasurement[i].svElevation;
- svMeasurementSet.gnssMeas.svMeasurement[i].svAzimuth =
- gnss_raw_measurement_ptr->svMeasurement[i].svAzimuth;
- }
- if(gnss_raw_measurement_ptr->svMeasurement[i].validMask & QMI_LOC_SV_CYCLESLIP_COUNT_VALID_V02)
- {
- svMeasurementSet.gnssMeas.svMeasurement[i].cycleSlipCountValid = 1;
- svMeasurementSet.gnssMeas.svMeasurement[i].cycleSlipCount =
- gnss_raw_measurement_ptr->svMeasurement[i].cycleSlipCount;
- }
-
- cnt++;
-
- }
-
- svMeasurementSet.gnssMeas.numSvs = cnt; /*set the measurement length to the actual SVId's filled in the array*/
-
- }
-
- if(gnss_raw_measurement_ptr->svMeasurement_len != cnt)
- {
- LOC_LOGW("[SV_MEAS_QMI] #of SV in QMI: %d, Valid SV-id Count: %d",
- gnss_raw_measurement_ptr->svMeasurement_len,cnt );
- }
-
- } //if svClockMeasurement_valid
- else
- {
- LOC_LOGV("%s] [SV_MEAS] SV Measurement Not Valid", __func__);
- }
- //Report SV measurement irrespective of #of SVs for APDR
- LocApiBase::reportSvMeasurement(svMeasurementSet);
-}
-
-/* convert satellite polynomial to loc eng format and send the converted
- report to loc eng */
-void LocApiV02 :: reportSvPolynomial (
- const qmiLocEventGnssSvPolyIndMsgT_v02 *gnss_sv_poly_ptr)
-{
- GnssSvPolynomial svPolynomial;
-
- memset(&svPolynomial, 0, sizeof(GnssSvPolynomial));
- svPolynomial.size = sizeof(GnssSvPolynomial);
- svPolynomial.is_valid = 0;
-
- if(0 != gnss_sv_poly_ptr->gnssSvId)
- {
- svPolynomial.gnssSvId = gnss_sv_poly_ptr->gnssSvId;
- svPolynomial.T0 = gnss_sv_poly_ptr->T0;
- svPolynomial.svPolyFlags = gnss_sv_poly_ptr->svPolyFlags;
-
- if(1 == gnss_sv_poly_ptr->gloFrequency_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_GLO_FREQ;
- svPolynomial.freqNum = gnss_sv_poly_ptr->gloFrequency;
- }
- if(1 == gnss_sv_poly_ptr->IODE_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_IODE;
- svPolynomial.iode = gnss_sv_poly_ptr->IODE;
- }
-
- if(1 == gnss_sv_poly_ptr->svPosUnc_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_SV_POSUNC;
- svPolynomial.svPosUnc = gnss_sv_poly_ptr->svPosUnc;
- }
-
- if(1 == gnss_sv_poly_ptr->svPolyFlagValid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_FLAG;
- svPolynomial.svPolyFlags = gnss_sv_poly_ptr->svPolyFlags;
- }
-
- if(1 == gnss_sv_poly_ptr->polyCoeffXYZ0_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_POLYCOEFF_XYZ0;
- for(int i=0;ipolyCoeffXYZ0[i];
- }
- }
-
- if(1 == gnss_sv_poly_ptr->polyCoefXYZN_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_POLYCOEFF_XYZN;
- for(int i=0;ipolyCoefXYZN[i];
- }
- }
-
- if(1 == gnss_sv_poly_ptr->polyCoefClockBias_valid)
- {
-
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_POLYCOEFF_OTHER;
- for(int i=0;ipolyCoefClockBias[i];
- }
- }
-
- if(1 == gnss_sv_poly_ptr->ionoDot_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_IONODOT;
- svPolynomial.ionoDot = gnss_sv_poly_ptr->ionoDot;
- }
- if(1 == gnss_sv_poly_ptr->ionoDelay_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_IONODELAY;
- svPolynomial.ionoDelay = gnss_sv_poly_ptr->ionoDelay;
- }
-
- if(1 == gnss_sv_poly_ptr->sbasIonoDot_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_SBAS_IONODOT;
- svPolynomial.sbasIonoDot = gnss_sv_poly_ptr->sbasIonoDot;
- }
- if(1 == gnss_sv_poly_ptr->sbasIonoDelay_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_SBAS_IONODELAY;
- svPolynomial.sbasIonoDelay = gnss_sv_poly_ptr->sbasIonoDelay;
- }
- if(1 == gnss_sv_poly_ptr->tropoDelay_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_TROPODELAY;
- svPolynomial.tropoDelay = gnss_sv_poly_ptr->tropoDelay;
- }
- if(1 == gnss_sv_poly_ptr->elevation_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_ELEVATION;
- svPolynomial.elevation = gnss_sv_poly_ptr->elevation;
- }
- if(1 == gnss_sv_poly_ptr->elevationDot_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_ELEVATIONDOT;
- svPolynomial.elevationDot = gnss_sv_poly_ptr->elevationDot;
- }
- if(1 == gnss_sv_poly_ptr->elenationUnc_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_ELEVATIONUNC;
- svPolynomial.elevationUnc = gnss_sv_poly_ptr->elenationUnc;
- }
- if(1 == gnss_sv_poly_ptr->velCoef_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_VELO_COEFF;
- for(int i=0;ivelCoef[i];
- }
- }
- if(1 == gnss_sv_poly_ptr->enhancedIOD_valid)
- {
- svPolynomial.is_valid |= ULP_GNSS_SV_POLY_BIT_ENHANCED_IOD;
- svPolynomial.enhancedIOD = gnss_sv_poly_ptr->enhancedIOD;
- }
-
- LocApiBase::reportSvPolynomial(svPolynomial);
-
- LOC_LOGV("[SV_POLY_QMI] SV-Id:%d\n", svPolynomial.gnssSvId);
- }
- else
- {
- LOC_LOGV("[SV_POLY] INVALID SV-Id:%d", svPolynomial.gnssSvId);
- }
-} //reportSvPolynomial
-
-
-
-/* convert engine state report to loc eng format and send the converted
- report to loc eng */
-void LocApiV02 :: reportEngineState (
- const qmiLocEventEngineStateIndMsgT_v02 *engine_state_ptr)
-{
-
- LOC_LOGV("%s:%d]: state = %d\n", __func__, __LINE__,
- engine_state_ptr->engineState);
-
- struct MsgUpdateEngineState : public LocMsg {
- LocApiV02* mpLocApiV02;
- bool mEngineOn;
- inline MsgUpdateEngineState(LocApiV02* pLocApiV02, bool engineOn) :
- LocMsg(), mpLocApiV02(pLocApiV02), mEngineOn(engineOn) {}
- inline virtual void proc() const {
- // If EngineOn is true and InSession is false and Engine is just turned off,
- // then unregister the gps tracking specific event masks
- if (mpLocApiV02->mEngineOn && !mpLocApiV02->mInSession && !mEngineOn) {
- mpLocApiV02->registerEventMask(mpLocApiV02->mQmiMask);
- }
- mpLocApiV02->mEngineOn = mEngineOn;
-
- if (mEngineOn) {
- // if EngineOn and not InSession, then we have already stopped
- // the fix, so do not send ENGINE_ON
- if (mpLocApiV02->mInSession) {
- mpLocApiV02->reportStatus(LOC_GPS_STATUS_ENGINE_ON);
- mpLocApiV02->reportStatus(LOC_GPS_STATUS_SESSION_BEGIN);
- }
- } else {
- mpLocApiV02->reportStatus(LOC_GPS_STATUS_SESSION_END);
- mpLocApiV02->reportStatus(LOC_GPS_STATUS_ENGINE_OFF);
- }
- }
- };
-
- if (engine_state_ptr->engineState == eQMI_LOC_ENGINE_STATE_ON_V02)
- {
- sendMsg(new MsgUpdateEngineState(this, true));
- }
- else if (engine_state_ptr->engineState == eQMI_LOC_ENGINE_STATE_OFF_V02)
- {
- sendMsg(new MsgUpdateEngineState(this, false));
- }
- else
- {
- reportStatus(LOC_GPS_STATUS_NONE);
- }
-
-}
-
-/* convert fix session state report to loc eng format and send the converted
- report to loc eng */
-void LocApiV02 :: reportFixSessionState (
- const qmiLocEventFixSessionStateIndMsgT_v02 *fix_session_state_ptr)
-{
- LocGpsStatusValue status;
- LOC_LOGD("%s:%d]: state = %d\n", __func__, __LINE__,
- fix_session_state_ptr->sessionState);
-
- status = LOC_GPS_STATUS_NONE;
- if (fix_session_state_ptr->sessionState == eQMI_LOC_FIX_SESSION_STARTED_V02)
- {
- status = LOC_GPS_STATUS_SESSION_BEGIN;
- }
- else if (fix_session_state_ptr->sessionState
- == eQMI_LOC_FIX_SESSION_FINISHED_V02)
- {
- status = LOC_GPS_STATUS_SESSION_END;
- }
- reportStatus(status);
-}
-
-/* convert NMEA report to loc eng format and send the converted
- report to loc eng */
-void LocApiV02 :: reportNmea (
- const qmiLocEventNmeaIndMsgT_v02 *nmea_report_ptr)
-{
- LocApiBase::reportNmea(nmea_report_ptr->nmea,
- strlen(nmea_report_ptr->nmea));
-
- LOC_LOGD("NMEA <%s", nmea_report_ptr->nmea);
-}
-
-/* convert and report an ATL request to loc engine */
-void LocApiV02 :: reportAtlRequest(
- const qmiLocEventLocationServerConnectionReqIndMsgT_v02 * server_request_ptr)
-{
- uint32_t connHandle = server_request_ptr->connHandle;
- // service ATL open request; copy the WWAN type
- if(server_request_ptr->requestType == eQMI_LOC_SERVER_REQUEST_OPEN_V02 )
- {
- LocAGpsType agpsType;
- switch(server_request_ptr->wwanType)
- {
- case eQMI_LOC_WWAN_TYPE_INTERNET_V02:
- agpsType = LOC_AGPS_TYPE_WWAN_ANY;
- requestATL(connHandle, agpsType);
- break;
- case eQMI_LOC_WWAN_TYPE_AGNSS_V02:
- agpsType = LOC_AGPS_TYPE_SUPL;
- requestATL(connHandle, agpsType);
- break;
- case eQMI_LOC_WWAN_TYPE_AGNSS_EMERGENCY_V02:
- requestSuplES(connHandle);
- break;
- default:
- agpsType = LOC_AGPS_TYPE_WWAN_ANY;
- requestATL(connHandle, agpsType);
- break;
- }
- }
- // service the ATL close request
- else if (server_request_ptr->requestType == eQMI_LOC_SERVER_REQUEST_CLOSE_V02)
- {
- releaseATL(connHandle);
- }
-}
-
-/* conver the NI report to loc eng format and send t loc engine */
-void LocApiV02 :: reportNiRequest(
- const qmiLocEventNiNotifyVerifyReqIndMsgT_v02 *ni_req_ptr)
-{
- LocGpsNiNotification notif;
-
- /* initialize the notification*/
- memset(notif.extras, 0, sizeof notif.extras);
- memset(notif.text, 0, sizeof notif.text);
- memset(notif.requestor_id, 0, sizeof notif.requestor_id);
-
- /* NI timeout gets overwritten in LocApiEngAdapter,
- initializing to 0 here */
- notif.timeout = 0;
-
- notif.text_encoding = LOC_GPS_ENC_NONE ;
-
- notif.requestor_id_encoding = LOC_GPS_ENC_UNKNOWN;
-
- notif.notify_flags = 0;
-
- notif.default_response = LOC_GPS_NI_RESPONSE_NORESP;
-
- /*Handle Vx request */
- if(ni_req_ptr->NiVxInd_valid == 1)
- {
- const qmiLocNiVxNotifyVerifyStructT_v02 *vx_req = &(ni_req_ptr->NiVxInd);
-
- notif.ni_type = LOC_GPS_NI_TYPE_VOICE;
-
- // Requestor ID, the requestor id recieved is NULL terminated
- hexcode(notif.requestor_id, sizeof notif.requestor_id,
- (char *)vx_req->requestorId, vx_req->requestorId_len );
- }
-
- /* Handle UMTS CP request*/
- else if(ni_req_ptr->NiUmtsCpInd_valid == 1)
- {
- const qmiLocNiUmtsCpNotifyVerifyStructT_v02 *umts_cp_req =
- &ni_req_ptr->NiUmtsCpInd;
-
- notif.ni_type = LOC_GPS_NI_TYPE_UMTS_CTRL_PLANE;
-
- /* notificationText should always be a NULL terminated string */
- hexcode(notif.text, sizeof notif.text,
- (char *)umts_cp_req->notificationText,
- umts_cp_req->notificationText_len);
-
- /* Store requestor ID */
- hexcode(notif.requestor_id, sizeof(notif.requestor_id),
- (char *)umts_cp_req->requestorId.codedString,
- umts_cp_req->requestorId.codedString_len);
-
- /* convert encodings */
- notif.text_encoding = convertNiEncoding(umts_cp_req->dataCodingScheme);
-
- notif.requestor_id_encoding =
- convertNiEncoding(umts_cp_req->requestorId.dataCodingScheme);
-
- /* LCS address (using extras field) */
- if ( umts_cp_req->clientAddress_len != 0)
- {
- char lcs_addr[32]; // Decoded LCS address for UMTS CP NI
-
- // Copy LCS Address into notif.extras in the format: Address = 012345
- strlcat(notif.extras, LOC_NI_NOTIF_KEY_ADDRESS, sizeof (notif.extras));
- strlcat(notif.extras, " = ", sizeof notif.extras);
- int addr_len = 0;
- const char *address_source = NULL;
- address_source = (char *)umts_cp_req->clientAddress;
- // client Address is always NULL terminated
- addr_len = decodeAddress(lcs_addr, sizeof(lcs_addr), address_source,
- umts_cp_req->clientAddress_len);
-
- // The address is ASCII string
- if (addr_len)
- {
- strlcat(notif.extras, lcs_addr, sizeof notif.extras);
- }
- }
-
- }
- else if(ni_req_ptr->NiSuplInd_valid == 1)
- {
- const qmiLocNiSuplNotifyVerifyStructT_v02 *supl_req =
- &ni_req_ptr->NiSuplInd;
-
- notif.ni_type = LOC_GPS_NI_TYPE_UMTS_SUPL;
-
- // Client name
- if (supl_req->valid_flags & QMI_LOC_SUPL_CLIENT_NAME_MASK_V02)
- {
- hexcode(notif.text, sizeof(notif.text),
- (char *)supl_req->clientName.formattedString,
- supl_req->clientName.formattedString_len);
- LOC_LOGV("%s:%d]: SUPL NI: client_name: %s \n", __func__, __LINE__,
- notif.text);
- }
- else
- {
- LOC_LOGV("%s:%d]: SUPL NI: client_name not present.",
- __func__, __LINE__);
- }
-
- // Requestor ID
- if (supl_req->valid_flags & QMI_LOC_SUPL_REQUESTOR_ID_MASK_V02)
- {
- hexcode(notif.requestor_id, sizeof notif.requestor_id,
- (char*)supl_req->requestorId.formattedString,
- supl_req->requestorId.formattedString_len );
-
- LOC_LOGV("%s:%d]: SUPL NI: requestor_id: %s \n", __func__, __LINE__,
- notif.requestor_id);
- }
- else
- {
- LOC_LOGV("%s:%d]: SUPL NI: requestor_id not present.",
- __func__, __LINE__);
- }
-
- // Encoding type
- if (supl_req->valid_flags & QMI_LOC_SUPL_DATA_CODING_SCHEME_MASK_V02)
- {
- notif.text_encoding = convertNiEncoding(supl_req->dataCodingScheme);
-
- notif.requestor_id_encoding = convertNiEncoding(supl_req->dataCodingScheme);
- }
- else
- {
- notif.text_encoding = notif.requestor_id_encoding = LOC_GPS_ENC_UNKNOWN;
- }
-
- // ES SUPL
- if(ni_req_ptr->suplEmergencyNotification_valid ==1)
- {
- const qmiLocEmergencyNotificationStructT_v02 *supl_emergency_request =
- &ni_req_ptr->suplEmergencyNotification;
-
- notif.ni_type = LOC_GPS_NI_TYPE_EMERGENCY_SUPL;
- }
-
- } //ni_req_ptr->NiSuplInd_valid == 1
- else
- {
- LOC_LOGE("%s:%d]: unknown request event \n",__func__, __LINE__);
- return;
- }
-
- // Set default_response & notify_flags
- convertNiNotifyVerifyType(¬if, ni_req_ptr->notificationType);
-
- qmiLocEventNiNotifyVerifyReqIndMsgT_v02 *ni_req_copy_ptr =
- (qmiLocEventNiNotifyVerifyReqIndMsgT_v02 *)malloc(sizeof(*ni_req_copy_ptr));
-
- if( NULL != ni_req_copy_ptr)
- {
- memcpy(ni_req_copy_ptr, ni_req_ptr, sizeof(*ni_req_copy_ptr));
-
- requestNiNotify(notif, (const void*)ni_req_copy_ptr);
- }
- else
- {
- LOC_LOGE("%s:%d]: Error copying NI request\n", __func__, __LINE__);
- }
-
-}
-
-/* If Confidence value is less than 68%, then scale the accuracy value to
- 68%.confidence.*/
-void LocApiV02 :: scaleAccuracyTo68PercentConfidence(
- const uint8_t confidenceValue,
- LocGpsLocation &gpsLocation,
- const bool isCircularUnc)
-{
- if (confidenceValue < 68)
- {
- // Circular uncertainty is at 63%.confidence. Scale factor should be
- // 1.072(from 63% -> 68%)
- uint8_t realConfidence = (isCircularUnc) ? 63:confidenceValue;
- // get scaling value based on 2D% confidence scaling table
- for (uint8_t iter = 0; iter < CONF_SCALER_ARRAY_MAX; iter++)
- {
- if (realConfidence <= confScalers[iter].confidence)
- {
- LOC_LOGD("Confidence: %d, Scaler value:%f",
- realConfidence,confScalers[iter].scaler_to_68);
- gpsLocation.accuracy *= confScalers[iter].scaler_to_68;
- break;
- }
- }
- }
-}
-
-/* Report the Xtra Server Url from the modem to HAL*/
-void LocApiV02 :: reportXtraServerUrl(
- const qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02*
- server_request_ptr)
-{
-
- if (server_request_ptr->serverList.serverList_len == 1)
- {
- reportXtraServer(server_request_ptr->serverList.serverList[0].serverUrl,
- "",
- "",
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02);
- }
- else if (server_request_ptr->serverList.serverList_len == 2)
- {
- reportXtraServer(server_request_ptr->serverList.serverList[0].serverUrl,
- server_request_ptr->serverList.serverList[1].serverUrl,
- "",
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02);
- }
- else
- {
- reportXtraServer(server_request_ptr->serverList.serverList[0].serverUrl,
- server_request_ptr->serverList.serverList[1].serverUrl,
- server_request_ptr->serverList.serverList[2].serverUrl,
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02);
- }
-
-}
-
-/* convert Ni Encoding type from QMI_LOC to loc eng format */
-LocGpsNiEncodingType LocApiV02 ::convertNiEncoding(
- qmiLocNiDataCodingSchemeEnumT_v02 loc_encoding)
-{
- LocGpsNiEncodingType enc = LOC_GPS_ENC_UNKNOWN;
-
- switch (loc_encoding)
- {
- case eQMI_LOC_NI_SUPL_UTF8_V02:
- enc = LOC_GPS_ENC_SUPL_UTF8;
- break;
- case eQMI_LOC_NI_SUPL_UCS2_V02:
- enc = LOC_GPS_ENC_SUPL_UCS2;
- break;
- case eQMI_LOC_NI_SUPL_GSM_DEFAULT_V02:
- enc = LOC_GPS_ENC_SUPL_GSM_DEFAULT;
- break;
- case eQMI_LOC_NI_SS_LANGUAGE_UNSPEC_V02:
- enc = LOC_GPS_ENC_SUPL_GSM_DEFAULT; // SS_LANGUAGE_UNSPEC = GSM
- break;
- default:
- break;
- }
-
- return enc;
-}
-
-/*convert NI notify verify type from QMI LOC to loc eng format*/
-bool LocApiV02 :: convertNiNotifyVerifyType (
- LocGpsNiNotification *notif,
- qmiLocNiNotifyVerifyEnumT_v02 notif_priv)
-{
- switch (notif_priv)
- {
- case eQMI_LOC_NI_USER_NO_NOTIFY_NO_VERIFY_V02:
- notif->notify_flags = 0;
- break;
-
- case eQMI_LOC_NI_USER_NOTIFY_ONLY_V02:
- notif->notify_flags = LOC_GPS_NI_NEED_NOTIFY;
- break;
-
- case eQMI_LOC_NI_USER_NOTIFY_VERIFY_ALLOW_NO_RESP_V02:
- notif->notify_flags = LOC_GPS_NI_NEED_NOTIFY | LOC_GPS_NI_NEED_VERIFY;
- notif->default_response = LOC_GPS_NI_RESPONSE_ACCEPT;
- break;
-
- case eQMI_LOC_NI_USER_NOTIFY_VERIFY_NOT_ALLOW_NO_RESP_V02:
- notif->notify_flags = LOC_GPS_NI_NEED_NOTIFY | LOC_GPS_NI_NEED_VERIFY;
- notif->default_response = LOC_GPS_NI_RESPONSE_DENY;
- break;
-
- case eQMI_LOC_NI_USER_NOTIFY_VERIFY_PRIVACY_OVERRIDE_V02:
- notif->notify_flags = LOC_GPS_NI_PRIVACY_OVERRIDE;
- break;
-
- default:
- return false;
- }
-
- return true;
-}
-
-/* convert and report GNSS measurement data to loc eng */
-void LocApiV02 :: reportGnssMeasurementData(
- const qmiLocEventGnssSvMeasInfoIndMsgT_v02& gnss_measurement_report_ptr)
-{
- LOC_LOGV ("%s:%d]: entering\n", __func__, __LINE__);
-
- static LocGnssData gnssMeasurementData;
-
- int svMeasurement_len = 0;
- static int meas_index = 0;
-
- if (1 == gnss_measurement_report_ptr.seqNum)
- {
- meas_index = 0;
- memset(&gnssMeasurementData, 0, sizeof(LocGnssData));
- gnssMeasurementData.size = sizeof(LocGnssData);
- }
-
- LOC_LOGD("%s:%d]: SeqNum: %d, MaxMsgNum: %d",
- __func__, __LINE__,
- gnss_measurement_report_ptr.seqNum,
- gnss_measurement_report_ptr.maxMessageNum);
-
- // number of measurements
- if (gnss_measurement_report_ptr.svMeasurement_valid) {
- svMeasurement_len =
- gnss_measurement_report_ptr.svMeasurement_len;
- gnssMeasurementData.measurement_count += svMeasurement_len;
- LOC_LOGV ("%s:%d]: there are %d SV measurements now, total=%d\n",
- __func__, __LINE__,
- svMeasurement_len,
- gnssMeasurementData.measurement_count);
- } else {
- LOC_LOGE ("%s:%d]: there is no valid SV measurements\n",
- __func__, __LINE__);
- }
-
- if (svMeasurement_len != 0) {
- // the array of measurements
- LOC_LOGV("%s:%d]: Measurements received for GNSS system %d",
- __func__, __LINE__, gnss_measurement_report_ptr.system);
-
- for (int index = 0; index < svMeasurement_len; index++) {
- LOC_LOGV("%s:%d]: index=%d meas_index=%d",
- __func__, __LINE__, index, meas_index);
- convertGnssMeasurements(gnssMeasurementData.measurements[meas_index],
- gnss_measurement_report_ptr.svMeasurement[index],
- gnss_measurement_report_ptr.system);
- meas_index++;
- }
- }
- else {
- LOC_LOGE("%s:%d]: There is no GNSS measurement.\n",
- __func__, __LINE__);
- }
- // the GPS clock time reading
- if (gnss_measurement_report_ptr.maxMessageNum ==
- gnss_measurement_report_ptr.seqNum &&
- meas_index > 0) {
-
- convertGnssClock(gnssMeasurementData.clock,
- gnss_measurement_report_ptr);
-
- // calling the base
- LocApiBase::reportGnssMeasurementData(gnssMeasurementData);
- }
-}
-
-/*convert GnssMeasurement type from QMI LOC to loc eng format*/
-void LocApiV02 :: convertGnssMeasurements (LocGnssMeasurement& gnssMeasurement,
- const qmiLocSVMeasurementStructT_v02& gnss_measurement_info,
- const qmiLocSvSystemEnumT_v02 system)
-{
- LOC_LOGV ("%s:%d]: entering\n", __func__, __LINE__);
-
- // size
- gnssMeasurement.size = sizeof(LocGnssMeasurement);
-
- // flag initiation
- LocGnssMeasurementFlags flags = 0;
-
- // svid
- gnssMeasurement.svid = gnss_measurement_info.gnssSvId;
-
- // constellation
- switch (system)
- {
- case eQMI_LOC_SV_SYSTEM_GPS_V02:
- gnssMeasurement.constellation = LOC_GNSS_CONSTELLATION_GPS;
- break;
-
- case eQMI_LOC_SV_SYSTEM_GALILEO_V02:
- gnssMeasurement.constellation = LOC_GNSS_CONSTELLATION_GALILEO;
- break;
-
- case eQMI_LOC_SV_SYSTEM_SBAS_V02:
- gnssMeasurement.constellation = LOC_GNSS_CONSTELLATION_SBAS;
- break;
-
- case eQMI_LOC_SV_SYSTEM_GLONASS_V02:
- gnssMeasurement.constellation = LOC_GNSS_CONSTELLATION_GLONASS;
- break;
-
- case eQMI_LOC_SV_SYSTEM_BDS_V02:
- gnssMeasurement.constellation = LOC_GNSS_CONSTELLATION_BEIDOU;
- break;
-
- case eQMI_LOC_SV_SYSTEM_QZSS_V02:
- gnssMeasurement.constellation = LOC_GNSS_CONSTELLATION_QZSS;
- break;
-
- default:
- gnssMeasurement.constellation = LOC_GNSS_CONSTELLATION_UNKNOWN;
- break;
- }
-
- // time_offset_ns
- if (0 != gnss_measurement_info.measLatency)
- {
- LOC_LOGV("%s:%d]: measLatency is not 0\n", __func__, __LINE__);
- }
- gnssMeasurement.time_offset_ns = 0.0;
-
- // state & received_sv_time_in_ns & received_gps_tow_uncertainty_ns
- uint64_t validMask = gnss_measurement_info.measurementStatus &
- gnss_measurement_info.validMeasStatusMask;
- uint64_t bitSynMask = QMI_LOC_MASK_MEAS_STATUS_BE_CONFIRM_V02 |
- QMI_LOC_MASK_MEAS_STATUS_SB_VALID_V02;
- double gpsTowUncNs = (double)gnss_measurement_info.svTimeSpeed.svTimeUncMs * 1e6;
-
- if (validMask & QMI_LOC_MASK_MEAS_STATUS_MS_VALID_V02) {
- /* sub-frame decode & TOW decode */
- gnssMeasurement.state = LOC_GNSS_MEASUREMENT_STATE_SUBFRAME_SYNC |
- LOC_GNSS_MEASUREMENT_STATE_TOW_DECODED |
- LOC_GNSS_MEASUREMENT_STATE_BIT_SYNC |
- LOC_GNSS_MEASUREMENT_STATE_CODE_LOCK;
- gnssMeasurement.received_sv_time_in_ns =
- (int64_t)(((double)gnss_measurement_info.svTimeSpeed.svTimeMs +
- (double)gnss_measurement_info.svTimeSpeed.svTimeSubMs) * 1e6);
-
- gnssMeasurement.received_sv_time_uncertainty_in_ns = (int64_t)gpsTowUncNs;
-
- } else if ((validMask & bitSynMask) == bitSynMask) {
- /* bit sync */
- gnssMeasurement.state = LOC_GNSS_MEASUREMENT_STATE_BIT_SYNC |
- LOC_GNSS_MEASUREMENT_STATE_CODE_LOCK;
- gnssMeasurement.received_sv_time_in_ns =
- (int64_t)(fmod(((double)gnss_measurement_info.svTimeSpeed.svTimeMs +
- (double)gnss_measurement_info.svTimeSpeed.svTimeSubMs), 20) * 1e6);
- gnssMeasurement.received_sv_time_uncertainty_in_ns = (int64_t)gpsTowUncNs;
-
- } else if (validMask & QMI_LOC_MASK_MEAS_STATUS_SM_VALID_V02) {
- /* code lock */
- gnssMeasurement.state = LOC_GNSS_MEASUREMENT_STATE_CODE_LOCK;
- gnssMeasurement.received_sv_time_in_ns =
- (int64_t)((double)gnss_measurement_info.svTimeSpeed.svTimeSubMs * 1e6);
- gnssMeasurement.received_sv_time_uncertainty_in_ns = (int64_t)gpsTowUncNs;
-
- } else {
- /* by default */
- gnssMeasurement.state = LOC_GNSS_MEASUREMENT_STATE_UNKNOWN;
- gnssMeasurement.received_sv_time_in_ns = 0;
- gnssMeasurement.received_sv_time_uncertainty_in_ns = 0;
- }
-
- // c_n0_dbhz
- gnssMeasurement.c_n0_dbhz = gnss_measurement_info.CNo/10.0;
-
- if (QMI_LOC_MASK_MEAS_STATUS_VELOCITY_FINE_V02 == (gnss_measurement_info.measurementStatus & QMI_LOC_MASK_MEAS_STATUS_VELOCITY_FINE_V02))
- {
- LOC_LOGV ("%s:%d]: FINE mS=0x%4X fS=%f fSU=%f dS=%f dSU=%f\n", __func__, __LINE__, gnss_measurement_info.measurementStatus,
- gnss_measurement_info.fineSpeed, gnss_measurement_info.fineSpeedUnc,
- gnss_measurement_info.svTimeSpeed.dopplerShift, gnss_measurement_info.svTimeSpeed.dopplerShiftUnc);
- // pseudorange_rate_mps
- gnssMeasurement.pseudorange_rate_mps = gnss_measurement_info.fineSpeed;
-
- // pseudorange_rate_uncertainty_mps
- gnssMeasurement.pseudorange_rate_uncertainty_mps = gnss_measurement_info.fineSpeedUnc;
- }
- else
- {
- LOC_LOGV ("%s:%d]: COARSE mS=0x%4X fS=%f fSU=%f dS=%f dSU=%f\n", __func__, __LINE__, gnss_measurement_info.measurementStatus,
- gnss_measurement_info.fineSpeed, gnss_measurement_info.fineSpeedUnc,
- gnss_measurement_info.svTimeSpeed.dopplerShift, gnss_measurement_info.svTimeSpeed.dopplerShiftUnc);
- // pseudorange_rate_mps
- gnssMeasurement.pseudorange_rate_mps = gnss_measurement_info.svTimeSpeed.dopplerShift;
-
- // pseudorange_rate_uncertainty_mps
- gnssMeasurement.pseudorange_rate_uncertainty_mps = gnss_measurement_info.svTimeSpeed.dopplerShiftUnc;
- }
-
- // accumulated_delta_range_state
- gnssMeasurement.accumulated_delta_range_state = LOC_GNSS_ADR_STATE_UNKNOWN;
-
- // multipath_indicator
- gnssMeasurement.multipath_indicator = LOC_GNSS_MULTIPATH_INDICATOR_UNKNOWN;
-
- gnssMeasurement.flags = flags;
-
- LOC_LOGV(" %s:%d]: GNSS measurement raw data received from modem:"
- " Input => gnssSvId=%d CNo=%d measurementStatus=0x%04x%04x"
- " dopplerShift=%f dopplerShiftUnc=%f fineSpeed=%f fineSpeedUnc=%f"
- " svTimeMs=%u svTimeSubMs=%f svTimeUncMs=%f"
- " svStatus=0x%02x validMeasStatusMask=0x%04x%04x"
- " GNSS measurement data after conversion:"
- " Output => size=%d svid=%d time_offset_ns=%f state=%d"
- " received_sv_time_in_ns=%lld received_sv_time_uncertainty_in_ns=%lld c_n0_dbhz=%g"
- " pseudorange_rate_mps=%g pseudorange_rate_uncertainty_mps=%g",
- __func__, __LINE__,
- gnss_measurement_info.gnssSvId, // %d
- gnss_measurement_info.CNo, // %d
- (uint32_t)(gnss_measurement_info.measurementStatus >> 32), // %04x Upper 32
- (uint32_t)(gnss_measurement_info.measurementStatus & 0xFFFFFFFF), // %04x Lower 32
- gnss_measurement_info.svTimeSpeed.dopplerShift, // %f
- gnss_measurement_info.svTimeSpeed.dopplerShiftUnc, // %f
- gnss_measurement_info.fineSpeed, // %f
- gnss_measurement_info.fineSpeedUnc, // %f
- gnss_measurement_info.svTimeSpeed.svTimeMs, // %u
- gnss_measurement_info.svTimeSpeed.svTimeSubMs, // %f
- gnss_measurement_info.svTimeSpeed.svTimeUncMs, // %f
- (uint32_t)(gnss_measurement_info.svStatus), // %02x
- (uint32_t)(gnss_measurement_info.validMeasStatusMask >> 32), // %04x Upper 32
- (uint32_t)(gnss_measurement_info.validMeasStatusMask & 0xFFFFFFFF), // %04x Lower 32
- gnssMeasurement.size, // %d
- gnssMeasurement.svid, // %d
- gnssMeasurement.time_offset_ns, // %f
- gnssMeasurement.state, // %d
- gnssMeasurement.received_sv_time_in_ns, // %lld
- gnssMeasurement.received_sv_time_uncertainty_in_ns, // %lld
- gnssMeasurement.c_n0_dbhz, // %g
- gnssMeasurement.pseudorange_rate_mps, // %g
- gnssMeasurement.pseudorange_rate_uncertainty_mps); // %g
-}
-
-/*convert LocGnssClock type from QMI LOC to loc eng format*/
-void LocApiV02 :: convertGnssClock (LocGnssClock& gnssClock,
- const qmiLocEventGnssSvMeasInfoIndMsgT_v02& gnss_measurement_info)
-{
- static uint32_t oldRefFCount = 0;
- static uint32_t newRefFCount = 0;
- static uint32_t oldDiscCount = 0;
- static uint32_t newDiscCount = 0;
- static uint32_t localDiscCount = 0;
-
- LOC_LOGV ("%s:%d]: entering\n", __func__, __LINE__);
-
- // size
- gnssClock.size = sizeof(LocGnssClock);
-
- // flag initiation
- LocGnssClockFlags flags = 0;
-
- if (gnss_measurement_info.systemTimeExt_valid &&
- gnss_measurement_info.numClockResets_valid) {
- newRefFCount = gnss_measurement_info.systemTimeExt.refFCount;
- newDiscCount = gnss_measurement_info.numClockResets;
- if ((true == mMeasurementsStarted) ||
- (oldDiscCount != newDiscCount) ||
- (newRefFCount <= oldRefFCount))
- {
- if (true == mMeasurementsStarted)
- {
- mMeasurementsStarted = false;
- }
- localDiscCount++;
- }
- oldDiscCount = newDiscCount;
- oldRefFCount = newRefFCount;
-
- // time_ns & time_uncertainty_ns
- gnssClock.time_ns = (int64_t)gnss_measurement_info.systemTimeExt.refFCount * 1e6;
- gnssClock.hw_clock_discontinuity_count = localDiscCount;
- gnssClock.time_uncertainty_ns = 0.0;
-
- if (gnss_measurement_info.systemTime_valid) {
- uint16_t systemWeek = gnss_measurement_info.systemTime.systemWeek;
- uint32_t systemMsec = gnss_measurement_info.systemTime.systemMsec;
- float sysClkBias = gnss_measurement_info.systemTime.systemClkTimeBias;
- float sysClkUncMs = gnss_measurement_info.systemTime.systemClkTimeUncMs;
- bool isTimeValid = (sysClkUncMs <= 16.0f); // 16ms
- double gps_time_ns;
-
- if (systemWeek != C_GPS_WEEK_UNKNOWN && isTimeValid) {
- // full_bias_ns, bias_ns & bias_uncertainty_ns
- double temp = (double)(systemWeek)* (double)WEEK_MSECS + (double)systemMsec;
- gps_time_ns = (double)temp*1e6 - (double)((int)(sysClkBias*1e6));
- gnssClock.full_bias_ns = (int64_t)(gnssClock.time_ns - gps_time_ns);
- gnssClock.bias_ns = (double)(gnssClock.time_ns - gps_time_ns) - gnssClock.full_bias_ns;
- gnssClock.bias_uncertainty_ns = (double)sysClkUncMs * 1e6;
- flags |= (LOC_GNSS_CLOCK_HAS_FULL_BIAS | LOC_GNSS_CLOCK_HAS_BIAS | LOC_GNSS_CLOCK_HAS_BIAS_UNCERTAINTY);
- }
- }
- }
-
- // drift_nsps & drift_uncertainty_nsps
- if (gnss_measurement_info.rcvrClockFrequencyInfo_valid)
- {
- double driftMPS = gnss_measurement_info.rcvrClockFrequencyInfo.clockDrift;
- double driftUncMPS = gnss_measurement_info.rcvrClockFrequencyInfo.clockDriftUnc;
-
- gnssClock.drift_nsps = driftMPS * MPS_TO_NSPS;
- gnssClock.drift_uncertainty_nsps = driftUncMPS * MPS_TO_NSPS;
-
- flags |= (LOC_GNSS_CLOCK_HAS_DRIFT | LOC_GNSS_CLOCK_HAS_DRIFT_UNCERTAINTY);
- }
-
- gnssClock.flags = flags;
-
- LOC_LOGV(" %s:%d]: GNSS measurement clock data received from modem: \n", __func__, __LINE__);
- LOC_LOGV(" Input => systemTime_valid=%d systemTimeExt_valid=%d numClockResets_valid=%d\n",
- gnss_measurement_info.systemTime_valid, // %d
- gnss_measurement_info.systemTimeExt_valid, // %d
- gnss_measurement_info.numClockResets_valid); // %d
-
- LOC_LOGV(" systemWeek=%d systemMsec=%d systemClkTimeBias=%f\n",
- gnss_measurement_info.systemTime.systemWeek, // %d
- gnss_measurement_info.systemTime.systemMsec, // %d
- gnss_measurement_info.systemTime.systemClkTimeBias); // %f
-
- LOC_LOGV(" systemClkTimeUncMs=%f refFCount=%d numClockResets=%d\n",
- gnss_measurement_info.systemTime.systemClkTimeUncMs, // %f
- gnss_measurement_info.systemTimeExt.refFCount, // %d
- gnss_measurement_info.numClockResets); // %d
-
- LOC_LOGV(" clockDrift=%f clockDriftUnc=%f\n",
- gnss_measurement_info.rcvrClockFrequencyInfo.clockDrift, // %f
- gnss_measurement_info.rcvrClockFrequencyInfo.clockDriftUnc); // %f
-
-
- LOC_LOGV(" %s:%d]: GNSS measurement clock after conversion: \n", __func__, __LINE__);
- LOC_LOGV(" Output => time_ns=%lld\n",
- gnssClock.time_ns); // %lld
-
- LOC_LOGV(" full_bias_ns=%lld bias_ns=%g bias_uncertainty_ns=%g\n",
- gnssClock.full_bias_ns, // %lld
- gnssClock.bias_ns, // %g
- gnssClock.bias_uncertainty_ns); // %g
-
- LOC_LOGV(" drift_nsps=%g drift_uncertainty_nsps=%g\n",
- gnssClock.drift_nsps, // %g
- gnssClock.drift_uncertainty_nsps); // %g
-
- LOC_LOGV(" hw_clock_discontinuity_count=%d flags=0x%04x\n",
- gnssClock.hw_clock_discontinuity_count, // %lld
- gnssClock.flags); // %04x
-}
-
-/* event callback registered with the loc_api v02 interface */
-void LocApiV02 :: eventCb(locClientHandleType clientHandle,
- uint32_t eventId, locClientEventIndUnionType eventPayload)
-{
- LOC_LOGD("%s:%d]: event id = %d\n", __func__, __LINE__,
- eventId);
-
- switch(eventId)
- {
- //Position Report
- case QMI_LOC_EVENT_POSITION_REPORT_IND_V02:
- reportPosition(eventPayload.pPositionReportEvent);
- break;
-
- // Satellite report
- case QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02:
- reportSv(eventPayload.pGnssSvInfoReportEvent);
- break;
-
- // Status report
- case QMI_LOC_EVENT_ENGINE_STATE_IND_V02:
- reportEngineState(eventPayload.pEngineState);
- break;
-
- case QMI_LOC_EVENT_FIX_SESSION_STATE_IND_V02:
- reportFixSessionState(eventPayload.pFixSessionState);
- break;
-
- // NMEA
- case QMI_LOC_EVENT_NMEA_IND_V02:
- reportNmea(eventPayload.pNmeaReportEvent);
- break;
-
- // XTRA request
- case QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_IND_V02:
- LOC_LOGD("%s:%d]: XTRA download request\n", __func__,
- __LINE__);
- reportXtraServerUrl(eventPayload.pInjectPredictedOrbitsReqEvent);
- requestXtraData();
- break;
-
- // time request
- case QMI_LOC_EVENT_INJECT_TIME_REQ_IND_V02:
- LOC_LOGD("%s:%d]: Time request\n", __func__,
- __LINE__);
- requestTime();
- break;
-
- //position request
- case QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02:
- LOC_LOGD("%s:%d]: Position request\n", __func__,
- __LINE__);
- requestLocation();
- break;
-
- // NI request
- case QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02:
- reportNiRequest(eventPayload.pNiNotifyVerifyReqEvent);
- break;
-
- // AGPS connection request
- case QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02:
- reportAtlRequest(eventPayload.pLocationServerConnReqEvent);
- break;
-
- case QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02:
- LOC_LOGD("%s:%d]: GNSS Measurement Report\n", __func__,
- __LINE__);
- reportSvMeasurement(eventPayload.pGnssSvRawInfoEvent);
- reportGnssMeasurementData(*eventPayload.pGnssSvRawInfoEvent); /*TBD merge into one function*/
- break;
-
- case QMI_LOC_EVENT_SV_POLYNOMIAL_REPORT_IND_V02:
- LOC_LOGD("%s:%d]: GNSS SV Polynomial Ind\n", __func__,
- __LINE__);
- reportSvPolynomial(eventPayload.pGnssSvPolyInfoEvent);
- break;
-
- }
-}
-
-/* Call the service LocAdapterBase down event*/
-void LocApiV02 :: errorCb(locClientHandleType handle,
- locClientErrorEnumType errorId)
-{
- if(errorId == eLOC_CLIENT_ERROR_SERVICE_UNAVAILABLE)
- {
- LOC_LOGE("%s:%d]: Service unavailable error\n",
- __func__, __LINE__);
-
- handleEngineDownEvent();
-
- /* immediately send the engine up event so that
- the loc engine re-initializes the adapter and the
- loc-api_v02 interface */
-
- mGnssMeasurementSupported = sup_unknown;
-
- handleEngineUpEvent();
- }
-}
-
-static void ds_client_global_event_cb(ds_client_status_enum_type result,
- void *loc_adapter_cookie)
-{
- LocApiV02 *locApiV02Instance = (LocApiV02 *)loc_adapter_cookie;
-
- locApiV02Instance->ds_client_event_cb(result);
- return;
-}
-
-void LocApiV02::ds_client_event_cb(ds_client_status_enum_type result)
-{
- if(result == E_DS_CLIENT_DATA_CALL_CONNECTED) {
- LOC_LOGD("%s:%d]: Emergency call is up", __func__, __LINE__);
- reportDataCallOpened();
- }
- else if(result == E_DS_CLIENT_DATA_CALL_DISCONNECTED) {
- LOC_LOGE("%s:%d]: Emergency call is stopped", __func__, __LINE__);
- reportDataCallClosed();
- }
- return;
-}
-
-static const ds_client_cb_data ds_client_cb = {
- ds_client_global_event_cb
-};
-
-int LocApiV02 :: initDataServiceClient(bool isDueToSsr)
-{
- int ret=0;
- if (NULL == dsLibraryHandle)
- {
- dsLibraryHandle = dlopen(DS_CLIENT_LIB_NAME, RTLD_NOW);
- if (NULL == dsLibraryHandle)
- {
- const char * err = dlerror();
- if (NULL == err)
- {
- err = "Unknown";
- }
- LOC_LOGE("%s:%d]: failed to load library %s; error=%s",
- __func__, __LINE__,
- DS_CLIENT_LIB_NAME,
- err);
- ret = 1;
- }
- if (NULL != dsLibraryHandle)
- {
- ds_client_get_iface_fn *getIface = NULL;
-
- getIface = (ds_client_get_iface_fn*)dlsym(dsLibraryHandle,
- DS_CLIENT_GET_INTERFACE_FN);
- if (NULL != getIface)
- {
- dsClientIface = getIface();
- }
- else
- {
- const char * err = dlerror();
- if (NULL == err)
- {
- err = "Unknown";
- }
- LOC_LOGE("%s:%d]: failed to find symbol %s; error=%s",
- __func__, __LINE__,
- DS_CLIENT_GET_INTERFACE_FN,
- err);
- }
- }
- }
- if (NULL != dsClientIface && NULL != dsClientIface->pfn_init)
- {
- ds_client_status_enum_type dsret = dsClientIface->pfn_init(isDueToSsr);
- if (dsret != E_DS_CLIENT_SUCCESS)
- {
- LOC_LOGE("%s:%d]: Error during client initialization %d",
- __func__, __LINE__,
- (int)dsret);
-
- ret = 3;
- }
- }
- else
- {
- if (NULL == dsClientIface)
- {
- LOC_LOGE("%s:%d]: dsClientIface == NULL",
- __func__, __LINE__);
- }
- else
- {
- LOC_LOGE("%s:%d]: dsClientIface->pfn_init == NULL",
- __func__, __LINE__);
- }
- ret = 2;
- }
- LOC_LOGD("%s:%d]: ret = %d\n", __func__, __LINE__,ret);
- return ret;
-}
-
-int LocApiV02 :: openAndStartDataCall()
-{
- loc_api_adapter_err ret = LOC_API_ADAPTER_ERR_GENERAL_FAILURE;
- int profile_index = -1;
- int pdp_type = -1;
- ds_client_status_enum_type result = E_DS_CLIENT_FAILURE_NOT_INITIALIZED;
-
- if (NULL != dsClientIface &&
- NULL != dsClientIface->pfn_open_call &&
- NULL != dsClientIface->pfn_start_call)
- {
- result = dsClientIface->pfn_open_call(&dsClientHandle,
- &ds_client_cb,
- (void *)this,
- &profile_index,
- &pdp_type);
- }
- if (E_DS_CLIENT_SUCCESS == result)
- {
- result = dsClientIface->pfn_start_call(dsClientHandle,
- profile_index,
- pdp_type);
-
- if(result == E_DS_CLIENT_SUCCESS) {
- LOC_LOGD("%s:%d]: Request to start Emergency call sent\n",
- __func__, __LINE__);
- ret = LOC_API_ADAPTER_ERR_SUCCESS;
- }
- else {
- LOC_LOGE("%s:%d]: Unable to bring up emergency call using DS. result = %d",
- __func__, __LINE__, (int)result);
- ret = LOC_API_ADAPTER_ERR_UNSUPPORTED;
- }
- }
- else if(result == E_DS_CLIENT_RETRY_LATER) {
- LOC_LOGE("%s:%d]: Could not start emergency call. Retry after delay\n",
- __func__, __LINE__);
- ret = LOC_API_ADAPTER_ERR_ENGINE_BUSY;
- }
- else {
- LOC_LOGE("%s:%d]: Unable to bring up emergency call using DS. ret = %d",
- __func__, __LINE__, (int)ret);
- ret = LOC_API_ADAPTER_ERR_UNSUPPORTED;
- }
-
- return (int)ret;
-}
-
-void LocApiV02 :: stopDataCall()
-{
- ds_client_status_enum_type ret = E_DS_CLIENT_FAILURE_NOT_INITIALIZED;
-
- if (NULL != dsClientIface &&
- NULL != dsClientIface->pfn_stop_call &&
- NULL != dsClientHandle)
- {
- ret = dsClientIface->pfn_stop_call(dsClientHandle);
- }
-
- if (ret == E_DS_CLIENT_SUCCESS) {
- LOC_LOGD("%s:%d]: Request to Close SUPL ES call sent",
- __func__, __LINE__);
- }
- else {
- if (ret == E_DS_CLIENT_FAILURE_INVALID_HANDLE) {
- LOC_LOGE("%s:%d]: Conn handle not found for SUPL ES",
- __func__, __LINE__);
- }
- LOC_LOGE("%s:%d]: Could not close SUPL ES call. Ret: %d",
- __func__, __LINE__, ret);
- }
- return;
-}
-
-void LocApiV02 :: closeDataCall()
-{
- int ret = 1;
-
- if (NULL != dsClientIface &&
- NULL != dsClientIface->pfn_close_call &&
- NULL != dsClientHandle)
- {
- dsClientIface->pfn_close_call(&dsClientHandle);
- ret = 0;
- }
-
- LOC_LOGD("%s:%d]: Release data client handle; ret=%d",
- __func__, __LINE__, ret);
-}
-
-void LocApiV02 :: releaseDataServiceClient()
-{
- int ret = 1;
-
- if (NULL != dsClientIface &&
- NULL != dsClientIface->pfn_release)
- {
- dsClientIface->pfn_release();
- ret = 0;
- }
-
- LOC_LOGD("%s:%d]: Release data service client interface; ret=%d",
- __func__, __LINE__, ret);
-}
-
-
-enum loc_api_adapter_err LocApiV02 ::
-getWwanZppFix()
-{
- locClientReqUnionType req_union;
- qmiLocGetAvailWwanPositionReqMsgT_v02 zpp_req;
- memset(&zpp_req, 0, sizeof(zpp_req));
-
- req_union.pGetAvailWwanPositionReq = &zpp_req;
-
- LOC_LOGD("%s:%d]: Get ZPP Fix from available wwan position\n", __func__, __LINE__);
- locClientStatusEnumType status =
- locClientSendReq(clientHandle,
- QMI_LOC_GET_AVAILABLE_WWAN_POSITION_REQ_V02,
- req_union);
-
- if (status == eLOC_CLIENT_SUCCESS) {
- return LOC_API_ADAPTER_ERR_SUCCESS;
- } else {
- return LOC_API_ADAPTER_ERR_GENERAL_FAILURE;
- }
-}
-
-enum loc_api_adapter_err LocApiV02 :: getBestAvailableZppFix(LocGpsLocation & zppLoc)
-{
- LocPosTechMask tech_mask;
- return getBestAvailableZppFix(zppLoc, tech_mask);
-}
-
-enum loc_api_adapter_err LocApiV02 ::
-getBestAvailableZppFix(LocGpsLocation &zppLoc, LocPosTechMask &tech_mask)
-{
- locClientReqUnionType req_union;
-
- qmiLocGetBestAvailablePositionIndMsgT_v02 zpp_ind;
- qmiLocGetBestAvailablePositionReqMsgT_v02 zpp_req;
-
- memset(&zpp_ind, 0, sizeof(zpp_ind));
- memset(&zpp_req, 0, sizeof(zpp_req));
- memset(&zppLoc, 0, sizeof(zppLoc));
- tech_mask = LOC_POS_TECH_MASK_DEFAULT;
-
- req_union.pGetBestAvailablePositionReq = &zpp_req;
-
- LOC_LOGD("%s:%d]: Get ZPP Fix from best available source\n", __func__, __LINE__);
-
- locClientStatusEnumType status =
- loc_sync_send_req(clientHandle,
- QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02,
- &zpp_ind);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != zpp_ind.status) {
- LOC_LOGE ("%s:%d]: error! status = %s, zpp_ind.status = %s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(zpp_ind.status));
- } else {
- LOC_LOGD("Got Zpp fix location validity (lat:%d, lon:%d, timestamp:%d accuracy:%d)"
- " (%.7f, %.7f), timestamp %llu, accuracy %f",
- zpp_ind.latitude_valid,
- zpp_ind.longitude_valid,
- zpp_ind.timestampUtc_valid,
- zpp_ind.horUncCircular_valid,
- zpp_ind.latitude,
- zpp_ind.longitude,
- zpp_ind.timestampUtc,
- zpp_ind.horUncCircular);
-
- zppLoc.size = sizeof(LocGpsLocation);
- if (zpp_ind.timestampUtc_valid) {
- zppLoc.timestamp = zpp_ind.timestampUtc;
- }
- else {
- /* The UTC time from modem is not valid.
- In this case, we use current system time instead.*/
-
- struct timespec time_info_current;
- clock_gettime(CLOCK_REALTIME,&time_info_current);
- zppLoc.timestamp = (time_info_current.tv_sec)*1e3 +
- (time_info_current.tv_nsec)/1e6;
- LOC_LOGD("zpp timestamp got from system: %llu", zppLoc.timestamp);
- }
-
- if (zpp_ind.latitude_valid &&
- zpp_ind.longitude_valid &&
- zpp_ind.horUncCircular_valid ) {
- zppLoc.flags = LOC_GPS_LOCATION_HAS_LAT_LONG | LOC_GPS_LOCATION_HAS_ACCURACY;
- zppLoc.latitude = zpp_ind.latitude;
- zppLoc.longitude = zpp_ind.longitude;
- zppLoc.accuracy = zpp_ind.horUncCircular;
-
- // If horCircularConfidence_valid is true, and horCircularConfidence value
- // is less than 68%, then scale the accuracy value to 68% confidence.
- if (zpp_ind.horCircularConfidence_valid)
- {
- scaleAccuracyTo68PercentConfidence(zpp_ind.horCircularConfidence,
- zppLoc, true);
- }
-
- if (zpp_ind.altitudeWrtEllipsoid_valid) {
- zppLoc.flags |= LOC_GPS_LOCATION_HAS_ALTITUDE;
- zppLoc.altitude = zpp_ind.altitudeWrtEllipsoid;
- }
-
- if (zpp_ind.horSpeed_valid) {
- zppLoc.flags |= LOC_GPS_LOCATION_HAS_SPEED;
- zppLoc.speed = zpp_ind.horSpeed;
- }
-
- if (zpp_ind.heading_valid) {
- zppLoc.flags |= LOC_GPS_LOCATION_HAS_BEARING;
- zppLoc.bearing = zpp_ind.heading;
- }
-
- if (zpp_ind.technologyMask_valid) {
- tech_mask = zpp_ind.technologyMask;
- }
- }
- }
-
- return convertErr(status);
-}
-
-/*Values for lock
- 1 = Do not lock any position sessions
- 2 = Lock MI position sessions
- 3 = Lock MT position sessions
- 4 = Lock all position sessions
-
- Returns values:
- zero on success; non-zero on failure
-*/
-int LocApiV02 :: setGpsLock(LOC_GPS_LOCK_MASK lockMask)
-{
- qmiLocSetEngineLockReqMsgT_v02 setEngineLockReq;
- qmiLocSetEngineLockIndMsgT_v02 setEngineLockInd;
- locClientStatusEnumType status;
- locClientReqUnionType req_union;
- int ret=0;
-
- LOC_LOGD("%s:%d]: Set Gps Lock: %x\n", __func__, __LINE__, lockMask);
- setEngineLockReq.lockType = convertGpsLockMask(lockMask);
- req_union.pSetEngineLockReq = &setEngineLockReq;
- memset(&setEngineLockInd, 0, sizeof(setEngineLockInd));
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_ENGINE_LOCK_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_ENGINE_LOCK_IND_V02,
- &setEngineLockInd);
-
- if(status != eLOC_CLIENT_SUCCESS || setEngineLockInd.status != eQMI_LOC_SUCCESS_V02) {
- LOC_LOGE("%s:%d]: Set engine lock failed. status: %s, ind status:%s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(setEngineLockInd.status));
- ret = -1;
- }
- LOC_LOGD("%s:%d]: exit\n", __func__, __LINE__);
- return ret;
-}
-/*
- Returns
- Current value of GPS Lock on success
- -1 on failure
-*/
-int LocApiV02 :: getGpsLock()
-{
- qmiLocGetEngineLockReqMsgT_v02 getEngineLockReq;
- qmiLocGetEngineLockIndMsgT_v02 getEngineLockInd;
- locClientStatusEnumType status;
- locClientReqUnionType req_union;
- int ret=0;
- LOC_LOGD("%s:%d]: Enter\n", __func__, __LINE__);
- memset(&getEngineLockInd, 0, sizeof(getEngineLockInd));
-
- //Passing req_union as a parameter even though this request has no payload
- //since NULL or 0 gives an error during compilation
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_GET_ENGINE_LOCK_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_GET_ENGINE_LOCK_IND_V02,
- &getEngineLockInd);
- if(status != eLOC_CLIENT_SUCCESS || getEngineLockInd.status != eQMI_LOC_SUCCESS_V02) {
- LOC_LOGE("%s:%d]: Set engine lock failed. status: %s, ind status:%s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(getEngineLockInd.status));
- ret = -1;
- }
- else {
- if(getEngineLockInd.lockType_valid) {
- ret = (int)getEngineLockInd.lockType;
- LOC_LOGD("%s:%d]: Lock Type: %d\n", __func__, __LINE__, ret);
- }
- else {
- LOC_LOGE("%s:%d]: Lock Type not valid\n", __func__, __LINE__);
- ret = -1;
- }
- }
- LOC_LOGD("%s:%d]: Exit\n", __func__, __LINE__);
- return ret;
-}
-
-enum loc_api_adapter_err LocApiV02:: setXtraVersionCheck(enum xtra_version_check check)
-{
- qmiLocSetXtraVersionCheckReqMsgT_v02 req;
- qmiLocSetXtraVersionCheckIndMsgT_v02 ind;
- locClientStatusEnumType status;
- locClientReqUnionType req_union;
- enum loc_api_adapter_err ret = LOC_API_ADAPTER_ERR_SUCCESS;
-
- LOC_LOGD("%s:%d]: Enter. check: %d", __func__, __LINE__, check);
- memset(&req, 0, sizeof(req));
- memset(&ind, 0, sizeof(ind));
- switch (check) {
- case DISABLED:
- req.xtraVersionCheckMode = eQMI_LOC_XTRA_VERSION_CHECK_DISABLE_V02;
- break;
- case AUTO:
- req.xtraVersionCheckMode = eQMI_LOC_XTRA_VERSION_CHECK_AUTO_V02;
- break;
- case XTRA2:
- req.xtraVersionCheckMode = eQMI_LOC_XTRA_VERSION_CHECK_XTRA2_V02;
- break;
- case XTRA3:
- req.xtraVersionCheckMode = eQMI_LOC_XTRA_VERSION_CHECK_XTRA3_V02;
- break;
- default:
- req.xtraVersionCheckMode = eQMI_LOC_XTRA_VERSION_CHECK_DISABLE_V02;
- break;
- }
-
- req_union.pSetXtraVersionCheckReq = &req;
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_XTRA_VERSION_CHECK_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_XTRA_VERSION_CHECK_IND_V02,
- &ind);
- if(status != eLOC_CLIENT_SUCCESS || ind.status != eQMI_LOC_SUCCESS_V02) {
- LOC_LOGE("%s:%d]: Set xtra version check failed. status: %s, ind status:%s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(ind.status));
- ret = LOC_API_ADAPTER_ERR_GENERAL_FAILURE;
- }
-
- LOC_LOGD("%s:%d]: Exit. ret: %d", __func__, __LINE__, (int)ret);
- return ret;
-}
-
-void LocApiV02 :: installAGpsCert(const LocDerEncodedCertificate* pData,
- size_t numberOfCerts,
- uint32_t slotBitMask)
-{
- LOC_LOGD("%s:%d]:, slot mask=%u number of certs=%u",
- __func__, __LINE__, slotBitMask, numberOfCerts);
-
- uint8_t certIndex = 0;
- for (uint8_t slot = 0; slot <= LOC_AGPS_CERTIFICATE_MAX_SLOTS-1; slot++, slotBitMask >>= 1)
- {
- if (slotBitMask & 1) //slot is writable
- {
- if (certIndex < numberOfCerts && pData[certIndex].data && pData[certIndex].length > 0)
- {
- LOC_LOGD("%s:%d]:, Inject cert#%u slot=%u length=%u",
- __func__, __LINE__, certIndex, slot, pData[certIndex].length);
-
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
- qmiLocInjectSuplCertificateReqMsgT_v02 injectCertReq;
- qmiLocInjectSuplCertificateIndMsgT_v02 injectCertInd;
-
- memset(&injectCertReq, 0, sizeof(injectCertReq));
- memset(&injectCertInd, 0, sizeof(injectCertInd));
- injectCertReq.suplCertId = slot;
- injectCertReq.suplCertData_len = pData[certIndex].length;
- memcpy(injectCertReq.suplCertData, pData[certIndex].data, pData[certIndex].length);
-
- req_union.pInjectSuplCertificateReq = &injectCertReq;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02,
- &injectCertInd);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != injectCertInd.status)
- {
- LOC_LOGE ("%s:%d]: inject-error status = %s, set_server_ind.status = %s",
- __func__,__LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(injectCertInd.status));
- }
-
- certIndex++; //move to next cert
-
- } else {
-
- LOC_LOGD("%s:%d]:, Delete slot=%u",
- __func__, __LINE__, slot);
-
- // A fake cert is injected first before delete is called to workaround
- // an issue that is seen with trying to delete an empty slot.
- {
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
- qmiLocInjectSuplCertificateReqMsgT_v02 injectFakeCertReq;
- qmiLocInjectSuplCertificateIndMsgT_v02 injectFakeCertInd;
-
- memset(&injectFakeCertReq, 0, sizeof(injectFakeCertReq));
- memset(&injectFakeCertInd, 0, sizeof(injectFakeCertInd));
- injectFakeCertReq.suplCertId = slot;
- injectFakeCertReq.suplCertData_len = 1;
- injectFakeCertReq.suplCertData[0] = 1;
-
- req_union.pInjectSuplCertificateReq = &injectFakeCertReq;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02,
- &injectFakeCertInd);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != injectFakeCertInd.status)
- {
- LOC_LOGE ("%s:%d]: inject-fake-error status = %s, set_server_ind.status = %s",
- __func__,__LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(injectFakeCertInd.status));
- }
- }
-
- locClientReqUnionType req_union;
- locClientStatusEnumType status;
- qmiLocDeleteSuplCertificateReqMsgT_v02 deleteCertReq;
- qmiLocDeleteSuplCertificateIndMsgT_v02 deleteCertInd;
-
- memset(&deleteCertReq, 0, sizeof(deleteCertReq));
- memset(&deleteCertInd, 0, sizeof(deleteCertInd));
- deleteCertReq.suplCertId = slot;
- deleteCertReq.suplCertId_valid = 1;
-
- req_union.pDeleteSuplCertificateReq = &deleteCertReq;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_DELETE_SUPL_CERTIFICATE_REQ_V02,
- req_union, LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_DELETE_SUPL_CERTIFICATE_IND_V02,
- &deleteCertInd);
-
- if (status != eLOC_CLIENT_SUCCESS ||
- eQMI_LOC_SUCCESS_V02 != deleteCertInd.status)
- {
- LOC_LOGE("%s:%d]: delete-error status = %s, set_server_ind.status = %s",
- __func__,__LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(deleteCertInd.status));
- }
- }
- } else {
- LOC_LOGD("%s:%d]:, Not writable slot=%u",
- __func__, __LINE__, slot);
- }
- }
-}
-
-int LocApiV02::setSvMeasurementConstellation(const qmiLocGNSSConstellEnumT_v02 svConstellation)
-{
- enum loc_api_adapter_err ret_val = LOC_API_ADAPTER_ERR_SUCCESS;
- qmiLocSetGNSSConstRepConfigReqMsgT_v02 setGNSSConstRepConfigReq;
- qmiLocSetGNSSConstRepConfigIndMsgT_v02 setGNSSConstRepConfigInd;
- locClientStatusEnumType status;
- locClientReqUnionType req_union;
- LOC_LOGD("%s] set GNSS measurement to report constellation: %lld\n",
- __func__, svConstellation);
-
- memset(&setGNSSConstRepConfigReq, 0, sizeof(setGNSSConstRepConfigReq));
- setGNSSConstRepConfigReq.measReportConfig_valid = true;
- setGNSSConstRepConfigReq.measReportConfig = svConstellation;
- setGNSSConstRepConfigReq.svPolyReportConfig_valid = true;
- setGNSSConstRepConfigReq.svPolyReportConfig = svConstellation;
-
- req_union.pSetGNSSConstRepConfigReq = &setGNSSConstRepConfigReq;
- memset(&setGNSSConstRepConfigInd, 0, sizeof(setGNSSConstRepConfigInd));
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02,
- req_union,
- LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_IND_V02,
- &setGNSSConstRepConfigInd);
-
- if(status != eLOC_CLIENT_SUCCESS || setGNSSConstRepConfigInd.status != eQMI_LOC_SUCCESS_V02)
- {
- LOC_LOGE("%s:%d]: Set GNSS constellation failed. status: %s, ind status:%s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(setGNSSConstRepConfigInd.status));
- ret_val = LOC_API_ADAPTER_ERR_GENERAL_FAILURE;
- } else {
- LOC_LOGD("%s:%d]: Set GNSS constellation succeeded.\n",
- __func__, __LINE__);
- }
-
- return ret_val;
-}
-
-bool LocApiV02 :: gnssConstellationConfig()
-{
- return mGnssMeasurementSupported == sup_yes;
-}
-
-void LocApiV02 :: cacheGnssMeasurementSupport()
-{
- if (sup_unknown == mGnssMeasurementSupported) {
- if ((mQmiMask & QMI_LOC_EVENT_MASK_POSITION_REPORT_V02) ==
- QMI_LOC_EVENT_MASK_POSITION_REPORT_V02) {
- /*for GNSS Measurement service, use
- QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02
- to check if modem support this feature or not*/
- LOC_LOGD("%s:%d]: set GNSS measurement to report gps measurement only.\n",
- __func__, __LINE__);
-
- qmiLocSetGNSSConstRepConfigReqMsgT_v02 setGNSSConstRepConfigReq;
- qmiLocSetGNSSConstRepConfigIndMsgT_v02 setGNSSConstRepConfigInd;
- memset(&setGNSSConstRepConfigReq, 0, sizeof(setGNSSConstRepConfigReq));
- memset(&setGNSSConstRepConfigInd, 0, sizeof(setGNSSConstRepConfigInd));
-
- locClientStatusEnumType status;
- locClientReqUnionType req_union;
-
- setGNSSConstRepConfigReq.measReportConfig_valid = true;
- setGNSSConstRepConfigReq.measReportConfig = eQMI_SYSTEM_GPS_V02;
- req_union.pSetGNSSConstRepConfigReq = &setGNSSConstRepConfigReq;
-
- status = loc_sync_send_req(clientHandle,
- QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02,
- req_union,
- LOC_ENGINE_SYNC_REQUEST_TIMEOUT,
- QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_IND_V02,
- &setGNSSConstRepConfigInd);
-
- if(status != eLOC_CLIENT_SUCCESS ||
- setGNSSConstRepConfigInd.status != eQMI_LOC_SUCCESS_V02) {
- LOC_LOGD("%s:%d]: Set GNSS constellation failed."
- " status: %s, ind status:%s\n",
- __func__, __LINE__,
- loc_get_v02_client_status_name(status),
- loc_get_v02_qmi_status_name(setGNSSConstRepConfigInd.status));
- mGnssMeasurementSupported = sup_no;
- } else {
- LOC_LOGD("%s:%d]: Set GNSS constellation succeeded.\n",
- __func__, __LINE__);
- mGnssMeasurementSupported = sup_yes;
- }
- }
- }
-
- LOC_LOGV("%s:%d]: mGnssMeasurementSupported is %d\n", __func__, __LINE__, mGnssMeasurementSupported);
-}
-
-void LocApiV02 ::
-handleWwanZppFixIndication(const qmiLocGetAvailWwanPositionIndMsgT_v02& zpp_ind)
-{
- LocGpsLocation zppLoc;
- memset(&zppLoc, 0, sizeof(zppLoc));
-
- LOC_LOGD("Got Wwan Zpp fix location validity (lat:%d, lon:%d, timestamp:%d accuracy:%d)\n "
- "(%.7f, %.7f), timestamp %llu, accuracy %f",
- zpp_ind.latitude_valid,
- zpp_ind.longitude_valid,
- zpp_ind.timestampUtc_valid,
- zpp_ind.horUncCircular_valid,
- zpp_ind.latitude,
- zpp_ind.longitude,
- zpp_ind.timestampUtc,
- zpp_ind.horUncCircular);
-
- if ((zpp_ind.latitude_valid == false) ||
- (zpp_ind.longitude_valid == false) ||
- (zpp_ind.horUncCircular_valid == false)) {
- LOC_LOGE(" Location not valid lat=%u lon=%u unc=%u",
- zpp_ind.latitude_valid,
- zpp_ind.longitude_valid,
- zpp_ind.horUncCircular_valid);
- return;
- }
-
- zppLoc.size = sizeof(LocGpsLocation);
- if (zpp_ind.timestampUtc_valid) {
- zppLoc.timestamp = zpp_ind.timestampUtc;
- }
- else {
- /* The UTC time from modem is not valid.
- In this case, we use current system time instead.*/
-
- struct timespec time_info_current;
- clock_gettime(CLOCK_REALTIME,&time_info_current);
- zppLoc.timestamp = (time_info_current.tv_sec)*1e3 +
- (time_info_current.tv_nsec)/1e6;
- LOC_LOGD("zpp timestamp got from system: %llu", zppLoc.timestamp);
- }
-
- zppLoc.flags = LOC_GPS_LOCATION_HAS_LAT_LONG | LOC_GPS_LOCATION_HAS_ACCURACY;
- zppLoc.latitude = zpp_ind.latitude;
- zppLoc.longitude = zpp_ind.longitude;
- zppLoc.accuracy = zpp_ind.horUncCircular;
-
- // If horCircularConfidence_valid is true, and horCircularConfidence value
- // is less than 68%, then scale the accuracy value to 68% confidence.
- if (zpp_ind.horCircularConfidence_valid)
- {
- scaleAccuracyTo68PercentConfidence(zpp_ind.horCircularConfidence,
- zppLoc, true);
- }
-
- if (zpp_ind.altitudeWrtEllipsoid_valid) {
- zppLoc.flags |= LOC_GPS_LOCATION_HAS_ALTITUDE;
- zppLoc.altitude = zpp_ind.altitudeWrtEllipsoid;
- }
-
- LocApiBase::reportWwanZppFix(zppLoc);
-}
diff --git a/location/loc_api/loc_api_v02/LocApiV02.h b/location/loc_api/loc_api_v02/LocApiV02.h
deleted file mode 100644
index 61680a5..0000000
--- a/location/loc_api/loc_api_v02/LocApiV02.h
+++ /dev/null
@@ -1,268 +0,0 @@
-/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef LOC_API_V_0_2_H
-#define LOC_API_V_0_2_H
-
-#include
-#include
-#include
-#include
-#include
-
-using namespace loc_core;
-
-/* This class derives from the LocApiBase class.
- The members of this class are responsible for converting
- the Loc API V02 data structures into Loc Adapter data structures.
- This class also implements some of the virtual functions that
- handle the requests from loc engine. */
-class LocApiV02 : public LocApiBase {
- enum supported_status {
- sup_unknown,
- sup_yes,
- sup_no
- };
-protected:
- /* loc api v02 handle*/
- locClientHandleType clientHandle;
-
-private:
- /* ds client library handle */
- void *dsLibraryHandle;
- /* ds client interface */
- const ds_client_iface_type *dsClientIface;
- /* ds client handle */
- dsClientHandleType dsClientHandle;
- enum supported_status mGnssMeasurementSupported;
- locClientEventMaskType mQmiMask;
- bool mInSession;
- bool mEngineOn;
- bool mMeasurementsStarted;
-
- /* Convert event mask from loc eng to loc_api_v02 format */
- static locClientEventMaskType convertMask(LOC_API_ADAPTER_EVENT_MASK_T mask);
-
- /* Convert GPS LOCK mask from gps.conf definition */
- static qmiLocLockEnumT_v02 convertGpsLockMask(LOC_GPS_LOCK_MASK lockMask);
-
- /* Convert error from loc_api_v02 to loc eng format*/
- static enum loc_api_adapter_err convertErr(locClientStatusEnumType status);
-
- /* convert Ni Encoding type from QMI_LOC to loc eng format */
- static LocGpsNiEncodingType convertNiEncoding(
- qmiLocNiDataCodingSchemeEnumT_v02 loc_encoding);
-
- /*convert NI notify verify type from QMI LOC to loc eng format*/
- static bool convertNiNotifyVerifyType (LocGpsNiNotification *notif,
- qmiLocNiNotifyVerifyEnumT_v02 notif_priv);
-
- /*convert GnssMeasurement type from QMI LOC to loc eng format*/
- static void convertGnssMeasurements (LocGnssMeasurement& gnssMeasurement,
- const qmiLocSVMeasurementStructT_v02& gnss_measurement_info,
- const qmiLocSvSystemEnumT_v02 system);
-
- /*convert LocGnssClock type from QMI LOC to loc eng format*/
- void convertGnssClock (LocGnssClock& gnssClock,
- const qmiLocEventGnssSvMeasInfoIndMsgT_v02& gnss_measurement_info);
-
- /* If Confidence value is less than 68%, then scale the accuracy value to 68%
- confidence.*/
- void scaleAccuracyTo68PercentConfidence(const uint8_t confidenceValue,
- LocGpsLocation &gpsLocation,
- const bool isCircularUnc);
-
- /* convert position report to loc eng format and send the converted
- position to loc eng */
- void reportPosition
- (const qmiLocEventPositionReportIndMsgT_v02 *location_report_ptr);
-
- /* convert satellite report to loc eng format and send the converted
- report to loc eng */
- void reportSv (const qmiLocEventGnssSvInfoIndMsgT_v02 *gnss_report_ptr);
-
- void reportSvMeasurement (
- const qmiLocEventGnssSvMeasInfoIndMsgT_v02 *gnss_raw_measurement_ptr);
-
- void reportSvPolynomial (
- const qmiLocEventGnssSvPolyIndMsgT_v02 *gnss_sv_poly_ptr);
-
- /* convert engine state report to loc eng format and send the converted
- report to loc eng */
- void reportEngineState (
- const qmiLocEventEngineStateIndMsgT_v02 *engine_state_ptr);
-
- /* convert fix session report to loc eng format and send the converted
- report to loc eng */
- void reportFixSessionState (
- const qmiLocEventFixSessionStateIndMsgT_v02 *fix_session_state_ptr);
-
- /* convert NMEA report to loc eng format and send the converted
- report to loc eng */
- void reportNmea (const qmiLocEventNmeaIndMsgT_v02 *nmea_report_ptr);
-
- /* convert and report an ATL request to loc engine */
- void reportAtlRequest(
- const qmiLocEventLocationServerConnectionReqIndMsgT_v02
- *server_request_ptr);
-
- /* convert and report NI request to loc eng */
- void reportNiRequest(
- const qmiLocEventNiNotifyVerifyReqIndMsgT_v02 *ni_req_ptr);
-
- /* report the xtra server info */
- void reportXtraServerUrl(
- const qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02* server_request_ptr);
-
- /* convert and report GNSS measurement data to loc eng */
- void reportGnssMeasurementData(
- const qmiLocEventGnssSvMeasInfoIndMsgT_v02& gnss_measurement_report_ptr);
-
- bool registerEventMask(locClientEventMaskType qmiMask);
- locClientEventMaskType adjustMaskForNoSession(locClientEventMaskType qmiMask);
- void cacheGnssMeasurementSupport();
-
-protected:
- virtual enum loc_api_adapter_err
- open(LOC_API_ADAPTER_EVENT_MASK_T mask);
- virtual enum loc_api_adapter_err
- close();
-
- LocApiV02(const MsgTask* msgTask,
- LOC_API_ADAPTER_EVENT_MASK_T exMask,
- ContextBase *context = NULL);
-public:
- ~LocApiV02();
-
- static LocApiBase* createLocApiV02(const MsgTask *msgTask,
- LOC_API_ADAPTER_EVENT_MASK_T exMask,
- ContextBase* context);
- /* event callback registered with the loc_api v02 interface */
- virtual void eventCb(locClientHandleType client_handle,
- uint32_t loc_event_id,
- locClientEventIndUnionType loc_event_payload);
-
- /* error callback, this function handles the service unavailable
- error */
- void errorCb(locClientHandleType handle,
- locClientErrorEnumType errorId);
-
- void ds_client_event_cb(ds_client_status_enum_type result);
-
- virtual enum loc_api_adapter_err startFix(const LocPosMode& posMode);
-
- virtual enum loc_api_adapter_err stopFix();
-
- virtual enum loc_api_adapter_err
- setPositionMode(const LocPosMode& mode);
-
- virtual enum loc_api_adapter_err
- setTime(LocGpsUtcTime time, int64_t timeReference, int uncertainty);
-
- virtual enum loc_api_adapter_err
- injectPosition(double latitude, double longitude, float accuracy);
-
- virtual enum loc_api_adapter_err
- deleteAidingData(LocGpsAidingData f);
-
- virtual enum loc_api_adapter_err
- informNiResponse(LocGpsUserResponseType userResponse,
- const void* passThroughData);
-
- virtual enum loc_api_adapter_err
- setServer(const char* url, int len);
- virtual enum loc_api_adapter_err
- setServer(unsigned int ip, int port, LocServerType type);
- virtual enum loc_api_adapter_err
- setXtraData(char* data, int length);
- virtual enum loc_api_adapter_err
- requestXtraServer();
- virtual enum loc_api_adapter_err
- atlOpenStatus(int handle, int is_succ, char* apn, AGpsBearerType bear,
- LocAGpsType agpsType);
- virtual enum loc_api_adapter_err atlCloseStatus(int handle, int is_succ);
- virtual enum loc_api_adapter_err setSUPLVersion(uint32_t version);
-
- virtual enum loc_api_adapter_err setNMEATypes (uint32_t typesMask);
-
- virtual enum loc_api_adapter_err setLPPConfig(uint32_t profile);
-
- virtual enum loc_api_adapter_err
- setSensorControlConfig(int sensorUsage, int sensorProvider);
-
- virtual enum loc_api_adapter_err
- setSensorProperties(bool gyroBiasVarianceRandomWalk_valid, float gyroBiasVarianceRandomWalk,
- bool accelBiasVarianceRandomWalk_valid, float accelBiasVarianceRandomWalk,
- bool angleBiasVarianceRandomWalk_valid, float angleBiasVarianceRandomWalk,
- bool rateBiasVarianceRandomWalk_valid, float rateBiasVarianceRandomWalk,
- bool velocityBiasVarianceRandomWalk_valid, float velocityBiasVarianceRandomWalk);
-
- virtual enum loc_api_adapter_err
- setSensorPerfControlConfig(int controlMode, int accelSamplesPerBatch, int accelBatchesPerSec,
- int gyroSamplesPerBatch, int gyroBatchesPerSec,
- int accelSamplesPerBatchHigh, int accelBatchesPerSecHigh,
- int gyroSamplesPerBatchHigh, int gyroBatchesPerSecHigh, int algorithmConfig);
- virtual enum loc_api_adapter_err setAGLONASSProtocol(unsigned long aGlonassProtocol);
- virtual enum loc_api_adapter_err setLPPeProtocol(unsigned long lppeCP, unsigned long lppeUP);
- virtual enum loc_api_adapter_err
- getWwanZppFix();
- virtual void
- handleWwanZppFixIndication(const qmiLocGetAvailWwanPositionIndMsgT_v02 &zpp_ind);
- virtual enum loc_api_adapter_err
- getBestAvailableZppFix(LocGpsLocation & zppLoc);
- virtual enum loc_api_adapter_err
- getBestAvailableZppFix(LocGpsLocation & zppLoc, LocPosTechMask & tech_mask);
- virtual int initDataServiceClient(bool isDueToSsr);
- virtual int openAndStartDataCall();
- virtual void stopDataCall();
- virtual void closeDataCall();
- virtual void releaseDataServiceClient();
- virtual int setGpsLock(LOC_GPS_LOCK_MASK lock);
-
- /*
- Returns
- Current value of GPS Lock on success
- -1 on failure
- */
- virtual int getGpsLock(void);
- virtual int setSvMeasurementConstellation(const qmiLocGNSSConstellEnumT_v02 svConstellation);
- virtual enum loc_api_adapter_err setXtraVersionCheck(enum xtra_version_check check);
- virtual void installAGpsCert(const LocDerEncodedCertificate* pData,
- size_t length,
- uint32_t slotBitMask);
- /*
- Set Gnss Constellation Config
- */
- virtual bool gnssConstellationConfig();
-
-};
-
-extern "C" LocApiBase* getLocApi(const MsgTask* msgTask,
- LOC_API_ADAPTER_EVENT_MASK_T exMask,
- ContextBase *context);
-#endif //LOC_API_V_0_2_H
diff --git a/location/loc_api/loc_api_v02/Makefile.am b/location/loc_api/loc_api_v02/Makefile.am
deleted file mode 100644
index 2308cd4..0000000
--- a/location/loc_api/loc_api_v02/Makefile.am
+++ /dev/null
@@ -1,42 +0,0 @@
-AM_CFLAGS = \
- ${QMIF_CFLAGS} \
- -I../../utils \
- -I../../platform_lib_abstractions \
- -I../libloc_api_50001
-
-requiredlibs = \
- ${QMIF_LIBS} \
- ../libloc_api_50001/libloc_adapter_so.la \
- ../../utils/libgps_utils_so.la
-
-h_sources = LocApiV02Adapter.h \
- loc_util_log.h \
- location_service_v02.h \
- loc_api_sync_req.h \
- loc_api_v02_client.h \
- loc_api_v02_log.h
-
-c_sources = LocApiV02Adapter.cpp \
- loc_api_v02_log.c \
- loc_api_v02_client.c \
- loc_api_sync_req.c \
- location_service_v02.c
-
-library_includedir = $(pkgincludedir)
-library_include_HEADERS = $(h_sources)
-
-libloc_api_la_SOURCES = $(c_sources) $(h_sources)
-
-if USE_GLIB
-libloc_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@
-libloc_api_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0
-libloc_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@
-else
-libloc_api_la_CFLAGS = $(AM_CFLAGS)
-libloc_api_la_LDFLAGS = -shared -version-info 1:0:0
-libloc_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
-endif
-
-libloc_api_la_LIBADD = $(requiredlibs) -lstdc++
-
-lib_LTLIBRARIES = libloc_api.la
diff --git a/location/loc_api/loc_api_v02/loc_api_sync_req.c b/location/loc_api/loc_api_v02/loc_api_sync_req.c
deleted file mode 100644
index 1b2b69e..0000000
--- a/location/loc_api/loc_api_v02/loc_api_sync_req.c
+++ /dev/null
@@ -1,555 +0,0 @@
-/* Copyright (c) 2011-2012, 2015-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include "loc_api_v02_client.h"
-#include "loc_api_sync_req.h"
-
-/* Logging */
-// Uncomment to log verbose logs
-#define LOG_NDEBUG 1
-
-// log debug logs
-#define LOG_NDDEBUG 1
-#define LOG_TAG "LocSvc_api_v02"
-#include "loc_util_log.h"
-
-#define LOC_SYNC_REQ_BUFFER_SIZE 8
-#define GPS_CONF_FILE "/etc/gps.conf"
-pthread_mutex_t loc_sync_call_mutex = PTHREAD_MUTEX_INITIALIZER;
-
-static bool loc_sync_call_initialized = false;
-
-typedef struct {
- pthread_mutex_t sync_req_lock;
-
- /* Client ID */
- locClientHandleType client_handle;
-
- /* waiting conditional variable */
- pthread_cond_t ind_arrived_cond;
-
- /* Callback waiting data block, protected by loc_cb_data_mutex */
- bool ind_is_selected; /* is cb selected? */
- bool ind_is_waiting; /* is waiting? */
- bool ind_has_arrived; /* callback has arrived */
- uint32_t req_id; /* sync request */
- void *recv_ind_payload_ptr; /* received payload */
- uint32_t recv_ind_id; /* received ind */
-
-} loc_sync_req_data_s_type;
-
-typedef struct {
- bool in_use; /* at least one sync call is active */
- bool slot_in_use[LOC_SYNC_REQ_BUFFER_SIZE];
- loc_sync_req_data_s_type slots[LOC_SYNC_REQ_BUFFER_SIZE];
-} loc_sync_req_array_s_type;
-
-/***************************************************************************
- * DATA FOR ASYNCHRONOUS RPC PROCESSING
- **************************************************************************/
-loc_sync_req_array_s_type loc_sync_array;
-
-/*===========================================================================
-
-FUNCTION loc_sync_req_init
-
-DESCRIPTION
- Initialize this module
-
-DEPENDENCIES
- N/A
-
-RETURN VALUE
- none
-
-SIDE EFFECTS
- N/A
-
-===========================================================================*/
-void loc_sync_req_init()
-{
- LOC_LOGV(" %s:%d]:\n", __func__, __LINE__);
- UTIL_READ_CONF_DEFAULT(GPS_CONF_FILE);
- pthread_mutex_lock(&loc_sync_call_mutex);
- if(true == loc_sync_call_initialized)
- {
- LOC_LOGD("%s:%d]:already initialized\n", __func__, __LINE__);
- pthread_mutex_unlock(&loc_sync_call_mutex);
- return;
- }
-
- loc_sync_array.in_use = false;
-
- memset(loc_sync_array.slot_in_use, 0, sizeof(loc_sync_array.slot_in_use));
-
- int i;
- for (i = 0; i < LOC_SYNC_REQ_BUFFER_SIZE; i++)
- {
- loc_sync_req_data_s_type *slot = &loc_sync_array.slots[i];
-
- pthread_mutex_init(&slot->sync_req_lock, NULL);
- pthread_cond_init(&slot->ind_arrived_cond, NULL);
-
- slot->client_handle = LOC_CLIENT_INVALID_HANDLE_VALUE;
- slot->ind_is_selected = false; /* is ind selected? */
- slot->ind_is_waiting = false; /* is waiting? */
- slot->ind_has_arrived = false; /* callback has arrived */
- slot->recv_ind_id = 0; /* ind to wait for */
- slot->recv_ind_payload_ptr = NULL;
- slot->req_id = 0; /* req id */
- }
-
- loc_sync_call_initialized = true;
- pthread_mutex_unlock(&loc_sync_call_mutex);
-}
-
-
-/*===========================================================================
-
-FUNCTION loc_sync_process_ind
-
-DESCRIPTION
- Wakes up blocked API calls to check if the needed callback has arrived
-
-DEPENDENCIES
- N/A
-
-RETURN VALUE
- none
-
-SIDE EFFECTS
- N/A
-
-===========================================================================*/
-void loc_sync_process_ind(
- locClientHandleType client_handle, /* handle of the client */
- uint32_t ind_id , /* ind id */
- void *ind_payload_ptr, /* payload */
- uint32_t ind_payload_size /* payload size */
-)
-{
-
- LOC_LOGV("%s:%d]: received indication, handle = %p ind_id = %u \n",
- __func__,__LINE__, client_handle, ind_id);
-
- pthread_mutex_lock(&loc_sync_call_mutex);
-
- if (!loc_sync_array.in_use)
- {
- LOC_LOGD("%s:%d]: loc_sync_array not in use \n",
- __func__, __LINE__);
- pthread_mutex_unlock(&loc_sync_call_mutex);
- return;
- }
-
- bool in_use = false, consumed = false;
- int i;
-
- for (i = 0; i < LOC_SYNC_REQ_BUFFER_SIZE && !consumed; i++)
- {
- loc_sync_req_data_s_type *slot = &loc_sync_array.slots[i];
-
- in_use |= loc_sync_array.slot_in_use[i];
-
- pthread_mutex_lock(&slot->sync_req_lock);
-
- if ( (loc_sync_array.slot_in_use[i]) && (slot->client_handle == client_handle)
- && (ind_id == slot->recv_ind_id) && (!slot->ind_has_arrived))
- {
- LOC_LOGV("%s:%d]: found slot %d selected for ind %u \n",
- __func__, __LINE__, i, ind_id);
-
- if( NULL != slot->recv_ind_payload_ptr &&
- NULL != ind_payload_ptr && ind_payload_size > 0 )
- {
- LOC_LOGV("%s:%d]: copying ind payload size = %zu \n",
- __func__, __LINE__, ind_payload_size);
-
- memcpy(slot->recv_ind_payload_ptr, ind_payload_ptr, ind_payload_size);
-
- consumed = true;
- }
- /* Received a callback while waiting, wake up thread to check it */
- if (slot->ind_is_waiting)
- {
- slot->recv_ind_id = ind_id;
-
- pthread_cond_signal(&slot->ind_arrived_cond);
- }
- else
- {
- /* If callback arrives before wait, remember it */
- LOC_LOGV("%s:%d]: ind %u arrived before wait was called \n",
- __func__, __LINE__, ind_id);
-
- slot->ind_has_arrived = true;
- }
- }
- pthread_mutex_unlock(&slot->sync_req_lock);
- }
-
- if (!in_use) {
- loc_sync_array.in_use = false;
- }
-
- pthread_mutex_unlock(&loc_sync_call_mutex);
-}
-
-/*===========================================================================
-
-FUNCTION loc_alloc_slot
-
-DESCRIPTION
- Allocates a buffer slot for the synchronous API call
-
-DEPENDENCIES
- N/A
-
-RETURN VALUE
- Select ID (>=0) : successful
- -1 : buffer full
-
-SIDE EFFECTS
- N/A
-
-===========================================================================*/
-static int loc_alloc_slot()
-{
- int i, select_id = -1; /* no free buffer */
-
- pthread_mutex_lock(&loc_sync_call_mutex);
-
- for (i = 0; i < LOC_SYNC_REQ_BUFFER_SIZE; i++)
- {
- if (!loc_sync_array.slot_in_use[i])
- {
- select_id = i;
- loc_sync_array.slot_in_use[i] = 1;
- loc_sync_array.in_use = true;
- break;
- }
- }
-
- pthread_mutex_unlock(&loc_sync_call_mutex);
- LOC_LOGV("%s:%d]: returning slot %d\n",
- __func__, __LINE__, select_id);
- return select_id;
-}
-
-/*===========================================================================
-
-FUNCTION loc_free_slot
-
-DESCRIPTION
- Frees a buffer slot after the synchronous API call
-
-DEPENDENCIES
- N/A
-
-RETURN VALUE
- None
-
-SIDE EFFECTS
- N/A
-
-===========================================================================*/
-static void loc_free_slot(int select_id)
-{
- int i;
- loc_sync_req_data_s_type *slot;
-
- pthread_mutex_lock(&loc_sync_call_mutex);
-
- LOC_LOGD("%s:%d]: freeing slot %d\n", __func__, __LINE__, select_id);
-
- loc_sync_array.slot_in_use[select_id] = 0;
-
- slot = &loc_sync_array.slots[select_id];
-
- slot->client_handle = LOC_CLIENT_INVALID_HANDLE_VALUE;
- slot->ind_is_selected = false; /* is ind selected? */
- slot->ind_is_waiting = false; /* is waiting? */
- slot->ind_has_arrived = false; /* callback has arrived */
- slot->recv_ind_id = 0; /* ind to wait for */
- slot->recv_ind_payload_ptr = NULL;
- slot->req_id = 0;
-
- // check if all slots are now free
- for (i = 0; i < LOC_SYNC_REQ_BUFFER_SIZE; i++)
- {
- if (loc_sync_array.slot_in_use[i]) break;
- }
-
- if (i >= LOC_SYNC_REQ_BUFFER_SIZE)
- {
- loc_sync_array.in_use = false;
- }
-
- pthread_mutex_unlock(&loc_sync_call_mutex);
-}
-
-/*===========================================================================
-
-FUNCTION loc_sync_select_ind
-
-DESCRIPTION
- Selects which indication to wait for.
-
-
-DEPENDENCIES
- N/A
-
-RETURN VALUE
- Select ID (>=0) : successful
- -ENOMEM : out of buffer
-
-SIDE EFFECTS
- N/A
-
-===========================================================================*/
-static int loc_sync_select_ind(
- locClientHandleType client_handle, /* Client handle */
- uint32_t ind_id, /* ind Id wait for */
- uint32_t req_id, /* req id */
- void * ind_payload_ptr /* ptr where payload should be copied to*/
-)
-{
- int select_id = loc_alloc_slot();
-
- LOC_LOGV("%s:%d]: client handle %p, ind_id %u, req_id %u \n",
- __func__, __LINE__, client_handle, ind_id, req_id);
-
- if (select_id < 0)
- {
- LOC_LOGE("%s:%d]: buffer full for this synchronous req %s \n",
- __func__, __LINE__, loc_get_v02_event_name(req_id));
- return -ENOMEM;
- }
-
- loc_sync_req_data_s_type *slot = &loc_sync_array.slots[select_id];
-
- pthread_mutex_lock(&slot->sync_req_lock);
-
- slot->client_handle = client_handle;
- slot->ind_is_selected = true;
- slot->ind_is_waiting = false;
- slot->ind_has_arrived = false;
-
- slot->recv_ind_id = ind_id;
- slot->req_id = req_id;
- slot->recv_ind_payload_ptr = ind_payload_ptr; //store the payload ptr
-
- pthread_mutex_unlock(&slot->sync_req_lock);
-
- return select_id;
-}
-
-
-/*===========================================================================
-
-FUNCTION loc_sync_wait_for_ind
-
-DESCRIPTION
- Waits for a selected indication. The wait expires in timeout_seconds seconds.
- If the function is called before an existing wait has finished, it will
- immediately return error.
-
-DEPENDENCIES
- N/A
-
-RETURN VALUE
- 0 on SUCCESS, -ve value on failure
-
-SIDE EFFECTS
- N/A
-
-===========================================================================*/
-static int loc_sync_wait_for_ind(
- int select_id, /* ID from loc_sync_select_ind() */
- int timeout_seconds, /* Timeout in this number of seconds */
- uint32_t ind_id
-)
-{
- if (select_id < 0 || select_id >= LOC_SYNC_REQ_BUFFER_SIZE || !loc_sync_array.slot_in_use[select_id])
- {
- LOC_LOGE("%s:%d]: invalid select_id: %d \n",
- __func__, __LINE__, select_id);
-
- return (-EINVAL);
- }
-
- loc_sync_req_data_s_type *slot = &loc_sync_array.slots[select_id];
-
- int ret_val = 0; /* the return value of this function: 0 = no error */
- int rc; /* return code from pthread calls */
-
- struct timeval present_time;
- struct timespec expire_time;
-
- pthread_mutex_lock(&slot->sync_req_lock);
-
- do
- {
- if (slot->ind_has_arrived)
- {
- ret_val = 0; /* success */
- break;
- }
-
- if (slot->ind_is_waiting)
- {
- LOC_LOGW("%s:%d]: already waiting in this slot %d\n", __func__,
- __LINE__, select_id);
- ret_val = -EBUSY; // busy
- break;
- }
-
- /* Calculate absolute expire time */
- gettimeofday(&present_time, NULL);
- expire_time.tv_sec = present_time.tv_sec;
- expire_time.tv_nsec = present_time.tv_usec * 1000;
- expire_time.tv_sec += timeout_seconds;
-
- /* Take new wait request */
- slot->ind_is_waiting = true;
-
- /* Waiting */
- rc = pthread_cond_timedwait(&slot->ind_arrived_cond,
- &slot->sync_req_lock, &expire_time);
-
- slot->ind_is_waiting = false;
-
- if(rc == ETIMEDOUT)
- {
- LOC_LOGE("%s:%d]: slot %d, timed out for ind_id %s\n",
- __func__, __LINE__, select_id, loc_get_v02_event_name(ind_id));
- ret_val = -ETIMEDOUT; //time out
- }
-
- } while (0);
-
- pthread_mutex_unlock(&slot->sync_req_lock);
- loc_free_slot(select_id);
-
- return ret_val;
-}
-
-/*===========================================================================
-
-FUNCTION loc_sync_send_req
-
-DESCRIPTION
- Synchronous req call (thread safe)
-
-DEPENDENCIES
- N/A
-
-RETURN VALUE
- Loc API 2.0 status
-
-SIDE EFFECTS
- N/A
-
-===========================================================================*/
-locClientStatusEnumType loc_sync_send_req
-(
- locClientHandleType client_handle,
- uint32_t req_id, /* req id */
- locClientReqUnionType req_payload,
- uint32_t timeout_msec,
- uint32_t ind_id, //ind ID to block for, usually the same as req_id */
- void *ind_payload_ptr /* can be NULL*/
-)
-{
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS ;
- int select_id;
- int rc = 0;
- int sendReqRetryRem = 5; // Number of retries remaining
-
- // Select the callback we are waiting for
- select_id = loc_sync_select_ind(client_handle, ind_id, req_id,
- ind_payload_ptr);
-
- if (select_id >= 0)
- {
- // Loop to retry few times in case of failures
- do
- {
- status = locClientSendReq (client_handle, req_id, req_payload);
- LOC_LOGV("%s:%d]: select_id = %d,locClientSendReq returned %d\n",
- __func__, __LINE__, select_id, status);
-
- if (status == eLOC_CLIENT_SUCCESS )
- {
- // Wait for the indication callback
- if (( rc = loc_sync_wait_for_ind( select_id,
- timeout_msec / 1000,
- ind_id) ) < 0)
- {
- if ( rc == -ETIMEDOUT)
- status = eLOC_CLIENT_FAILURE_TIMEOUT;
- else
- status = eLOC_CLIENT_FAILURE_INTERNAL;
-
- // Callback waiting failed
- LOC_LOGE("%s:%d]: loc_api_wait_for_ind failed, err %d, "
- "select id %d, status %s", __func__, __LINE__, rc ,
- select_id, loc_get_v02_client_status_name(status));
- }
- else
- {
- status = eLOC_CLIENT_SUCCESS;
- LOC_LOGV("%s:%d]: success (select id %d)\n",
- __func__, __LINE__, select_id);
- }
- }
-
- } while(( status == eLOC_CLIENT_FAILURE_ENGINE_BUSY ||
- status == eLOC_CLIENT_FAILURE_PHONE_OFFLINE ||
- status == eLOC_CLIENT_FAILURE_INTERNAL ) &&
- sendReqRetryRem-- > 0);
-
- if (status != eLOC_CLIENT_SUCCESS )
- {
- loc_free_slot(select_id);
- }
-
- } /* select id */
-
- return status;
-}
-
-
diff --git a/location/loc_api/loc_api_v02/loc_api_sync_req.h b/location/loc_api/loc_api_v02/loc_api_sync_req.h
deleted file mode 100644
index b7908f8..0000000
--- a/location/loc_api/loc_api_v02/loc_api_sync_req.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/* Copyright (c) 2011,2013,2016, The Linux Foundation. All rights reserved
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef LOC_SYNC_REQ_H
-#define LOC_SYNC_REQ_H
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-#include
-#include
-#include "loc_api_v02_client.h"
-
-#define LOC_ENGINE_SYNC_REQUEST_TIMEOUT (1000) // 1 second
-
-#define LOC_SEND_SYNC_REQ(NAME, ID, REQ, HANDLE) \
- int rv = true; \
- locClientStatusEnumType st; \
- locClientReqUnionType reqUnion; \
- qmiLoc##NAME##IndMsgT_v02 ind; \
-\
- memset(&ind, 0, sizeof(ind)); \
- reqUnion.p##NAME##Req = &REQ; \
-\
- st = loc_sync_send_req(HANDLE, \
- QMI_LOC_##ID##_REQ_V02, \
- reqUnion, \
- LOC_ENGINE_SYNC_REQUEST_TIMEOUT, \
- QMI_LOC_##ID##_IND_V02, \
- &ind); \
-\
- if (st != eLOC_CLIENT_SUCCESS || \
- eQMI_LOC_SUCCESS_V02 != ind.status) { \
- LOC_LOGE ("%s:%d]: Error : st = %d, ind.status = %d", \
- __func__, __LINE__, st, ind.status); \
- rv = false; \
- }
-
-/* Init function */
-extern void loc_sync_req_init();
-
-
-/* Process Loc API indications to wake up blocked user threads */
-extern void loc_sync_process_ind(
- locClientHandleType client_handle, /* handle of the client */
- uint32_t ind_id , /* respInd id */
- void *ind_payload_ptr, /* payload */
- uint32_t ind_payload_size /* payload size */
-);
-
-/* Thread safe synchronous request, using Loc API status return code */
-extern locClientStatusEnumType loc_sync_send_req
-(
- locClientHandleType client_handle,
- uint32_t req_id, /* req id */
- locClientReqUnionType req_payload,
- uint32_t timeout_msec,
- uint32_t ind_id, //ind ID to block for, usually the same as req_id */
- void *ind_payload_ptr /* can be NULL*/
-);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* LOC_SYNC_REQ_H */
diff --git a/location/loc_api/loc_api_v02/loc_api_v02_client.c b/location/loc_api/loc_api_v02/loc_api_v02_client.c
deleted file mode 100644
index 2ff0fbc..0000000
--- a/location/loc_api/loc_api_v02/loc_api_v02_client.c
+++ /dev/null
@@ -1,2303 +0,0 @@
-/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include
-#include
-#include
-
-#include
-#include
-
-#include "qmi_client.h"
-#include "qmi_idl_lib.h"
-#include "qmi_cci_target_ext.h"
-
-#if defined( _ANDROID_)
-#include "qmi_cci_target.h"
-#include "qmi_cci_common.h"
-#define LOG_NDEBUG 0
-#define LOG_TAG "LocSvc_api_v02"
-#endif //_ANDROID_
-
-
-#include "loc_api_v02_client.h"
-#include "loc_util_log.h"
-
-#ifdef LOC_UTIL_TARGET_OFF_TARGET
-
-// timeout in ms before send_msg_sync should return
-#define LOC_CLIENT_ACK_TIMEOUT (5000)
-
-#else
-
-// timeout in ms before send_msg_sync should return
-#define LOC_CLIENT_ACK_TIMEOUT (1000)
-
-#endif //LOC_UTIL_TARGET_OFF_TARGET
-
-#define LOC_CLIENT_MAX_OPEN_RETRIES (20)
-#define LOC_CLIENT_TIME_BETWEEN_OPEN_RETRIES (1)
-
-enum
-{
- //! Special value for selecting any available service
- /** This value enables selection of any available service */
- eLOC_CLIENT_INSTANCE_ID_ANY = -1,
- //! qca1530 service id value
- /** qca1530 service daemon uses service id value 1 */
- eLOC_CLIENT_INSTANCE_ID_QCA1530 = 1,
- //! GSS service id value
- /* GSS service id value is 0, but here it is set to -1 for compatibitily */
- eLOC_CLIENT_INSTANCE_ID_GSS = eLOC_CLIENT_INSTANCE_ID_ANY,
- //! MSM service id value
- /** MSM service id value is 0, but here it is set to -1 for compatibitily */
- eLOC_CLIENT_INSTANCE_ID_MSM = eLOC_CLIENT_INSTANCE_ID_ANY,
- //! MDM service id value
- /** MDM connects using QMUXD and assigned a value of
- QMI_CLIENT_QMUX_RMNET_USB_INSTANCE_0 ("qmi_client_instance_defs.h", 37).
- -1 for compatibility */
- eLOC_CLIENT_INSTANCE_ID_MDM = eLOC_CLIENT_INSTANCE_ID_ANY,
- /* GSS service id value is 0, for auto config */
- eLOC_CLIENT_INSTANCE_ID_GSS_AUTO = 0
-};
-
-/* Table to relate eventId, size and mask value used to enable the event*/
-typedef struct
-{
- uint32_t eventId;
- size_t eventSize;
- locClientEventMaskType eventMask;
-}locClientEventIndTableStructT;
-
-
-static const locClientEventIndTableStructT locClientEventIndTable[]= {
-
- // position report ind
- { QMI_LOC_EVENT_POSITION_REPORT_IND_V02,
- sizeof(qmiLocEventPositionReportIndMsgT_v02),
- QMI_LOC_EVENT_MASK_POSITION_REPORT_V02 },
-
- // satellite report ind
- { QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02,
- sizeof(qmiLocEventGnssSvInfoIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GNSS_SV_INFO_V02 },
-
- // NMEA report ind
- { QMI_LOC_EVENT_NMEA_IND_V02,
- sizeof(qmiLocEventNmeaIndMsgT_v02),
- QMI_LOC_EVENT_MASK_NMEA_V02 },
-
- //NI event ind
- { QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02,
- sizeof(qmiLocEventNiNotifyVerifyReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_NI_NOTIFY_VERIFY_REQ_V02 },
-
- //Time Injection Request Ind
- { QMI_LOC_EVENT_INJECT_TIME_REQ_IND_V02,
- sizeof(qmiLocEventInjectTimeReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_INJECT_TIME_REQ_V02 },
-
- //Predicted Orbits Injection Request
- { QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_IND_V02,
- sizeof(qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_INJECT_PREDICTED_ORBITS_REQ_V02 },
-
- //Position Injection Request Ind
- { QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02,
- sizeof(qmiLocEventInjectPositionReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_INJECT_POSITION_REQ_V02 } ,
-
- //Engine State Report Ind
- { QMI_LOC_EVENT_ENGINE_STATE_IND_V02,
- sizeof(qmiLocEventEngineStateIndMsgT_v02),
- QMI_LOC_EVENT_MASK_ENGINE_STATE_V02 },
-
- //Fix Session State Report Ind
- { QMI_LOC_EVENT_FIX_SESSION_STATE_IND_V02,
- sizeof(qmiLocEventFixSessionStateIndMsgT_v02),
- QMI_LOC_EVENT_MASK_FIX_SESSION_STATE_V02 },
-
- //Wifi Request Indication
- { QMI_LOC_EVENT_WIFI_REQ_IND_V02,
- sizeof(qmiLocEventWifiReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_WIFI_REQ_V02 },
-
- //Sensor Streaming Ready Status Ind
- { QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_IND_V02,
- sizeof(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02),
- QMI_LOC_EVENT_MASK_SENSOR_STREAMING_READY_STATUS_V02 },
-
- // Time Sync Request Indication
- { QMI_LOC_EVENT_TIME_SYNC_REQ_IND_V02,
- sizeof(qmiLocEventTimeSyncReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_TIME_SYNC_REQ_V02 },
-
- //Set Spi Streaming Report Event
- { QMI_LOC_EVENT_SET_SPI_STREAMING_REPORT_IND_V02,
- sizeof(qmiLocEventSetSpiStreamingReportIndMsgT_v02),
- QMI_LOC_EVENT_MASK_SET_SPI_STREAMING_REPORT_V02 },
-
- //Location Server Connection Request event
- { QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02,
- sizeof(qmiLocEventLocationServerConnectionReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_LOCATION_SERVER_CONNECTION_REQ_V02 },
-
- // NI Geofence Event
- { QMI_LOC_EVENT_NI_GEOFENCE_NOTIFICATION_IND_V02,
- sizeof(qmiLocEventNiGeofenceNotificationIndMsgT_v02),
- QMI_LOC_EVENT_MASK_NI_GEOFENCE_NOTIFICATION_V02},
-
- // Geofence General Alert Event
- { QMI_LOC_EVENT_GEOFENCE_GEN_ALERT_IND_V02,
- sizeof(qmiLocEventGeofenceGenAlertIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GEOFENCE_GEN_ALERT_V02},
-
- //Geofence Breach event
- { QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_IND_V02,
- sizeof(qmiLocEventGeofenceBreachIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GEOFENCE_BREACH_NOTIFICATION_V02},
-
- //Geofence Batched Breach event
- { QMI_LOC_EVENT_GEOFENCE_BATCHED_BREACH_NOTIFICATION_IND_V02,
- sizeof(qmiLocEventGeofenceBatchedBreachIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_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 },
-
- //Wifi AP data request event
- { QMI_LOC_EVENT_INJECT_WIFI_AP_DATA_REQ_IND_V02,
- sizeof(qmiLocEventInjectWifiApDataReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_INJECT_WIFI_AP_DATA_REQ_V02 },
-
- //Get Batching On Fix Event
- { QMI_LOC_EVENT_LIVE_BATCHED_POSITION_REPORT_IND_V02,
- sizeof(qmiLocEventLiveBatchedPositionReportIndMsgT_v02),
- QMI_LOC_EVENT_MASK_LIVE_BATCHED_POSITION_REPORT_V02 },
-
- //Get Batching On Full Event
- { QMI_LOC_EVENT_BATCH_FULL_NOTIFICATION_IND_V02,
- sizeof(qmiLocEventBatchFullIndMsgT_v02),
- QMI_LOC_EVENT_MASK_BATCH_FULL_NOTIFICATION_V02 },
-
- //Vehicle Data Readiness event
- { QMI_LOC_EVENT_VEHICLE_DATA_READY_STATUS_IND_V02,
- sizeof(qmiLocEventVehicleDataReadyIndMsgT_v02),
- QMI_LOC_EVENT_MASK_VEHICLE_DATA_READY_STATUS_V02 },
-
- //Geofence Proximity event
- { QMI_LOC_EVENT_GEOFENCE_PROXIMITY_NOTIFICATION_IND_V02,
- sizeof(qmiLocEventGeofenceProximityIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GEOFENCE_PROXIMITY_NOTIFICATION_V02},
-
- //GNSS Measurement Indication
- { QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02,
- sizeof(qmiLocEventGnssSvMeasInfoIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT_V02 },
-
- //GNSS Measurement Indication
- { QMI_LOC_EVENT_SV_POLYNOMIAL_REPORT_IND_V02,
- sizeof(qmiLocEventGnssSvPolyIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GNSS_SV_POLYNOMIAL_REPORT_V02 },
-
- // for GDT
- { QMI_LOC_EVENT_GDT_UPLOAD_BEGIN_STATUS_REQ_IND_V02,
- sizeof(qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GDT_UPLOAD_BEGIN_REQ_V02,
- },
-
- { QMI_LOC_EVENT_GDT_UPLOAD_END_REQ_IND_V02,
- sizeof(qmiLocEventGdtUploadEndReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GDT_UPLOAD_END_REQ_V02,
- },
-
- //GNSS measurement event
- { QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02 ,
- sizeof(qmiLocEventGnssSvMeasInfoIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT_V02},
-
- { QMI_LOC_EVENT_DBT_POSITION_REPORT_IND_V02,
- sizeof(qmiLocEventDbtPositionReportIndMsgT_v02),
- 0},
-
- { QMI_LOC_EVENT_GEOFENCE_BATCHED_DWELL_NOTIFICATION_IND_V02,
- sizeof(qmiLocEventGeofenceBatchedDwellIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_DWELL_NOTIFICATION_V02},
-
- { QMI_LOC_EVENT_GET_TIME_ZONE_INFO_IND_V02,
- sizeof(qmiLocEventGetTimeZoneReqIndMsgT_v02),
- QMI_LOC_EVENT_MASK_GET_TIME_ZONE_REQ_V02},
-
- // Batching Status event
- { QMI_LOC_EVENT_BATCHING_STATUS_IND_V02,
- sizeof(qmiLocEventBatchingStatusIndMsgT_v02),
- QMI_LOC_EVENT_MASK_BATCHING_STATUS_V02},
-
- // TDP download
- { QMI_LOC_EVENT_GDT_DOWNLOAD_BEGIN_REQ_IND_V02,
- sizeof(qmiLocEventGdtDownloadBeginReqIndMsgT_v02),
- 0},
-
- { QMI_LOC_EVENT_GDT_RECEIVE_DONE_IND_V02,
- sizeof(qmiLocEventGdtReceiveDoneIndMsgT_v02),
- 0},
-
- { QMI_LOC_EVENT_GDT_DOWNLOAD_END_REQ_IND_V02,
- sizeof(qmiLocEventGdtDownloadEndReqIndMsgT_v02),
- 0}
-};
-
-/* table to relate the respInd Id with its size */
-typedef struct
-{
- uint32_t respIndId;
- size_t respIndSize;
-}locClientRespIndTableStructT;
-
-static const locClientRespIndTableStructT locClientRespIndTable[]= {
-
- // get service revision ind
- { QMI_LOC_GET_SERVICE_REVISION_IND_V02,
- sizeof(qmiLocGetServiceRevisionIndMsgT_v02)},
-
- // Get Fix Criteria Resp Ind
- { QMI_LOC_GET_FIX_CRITERIA_IND_V02,
- sizeof(qmiLocGetFixCriteriaIndMsgT_v02)},
-
- // NI User Resp In
- { QMI_LOC_NI_USER_RESPONSE_IND_V02,
- sizeof(qmiLocNiUserRespIndMsgT_v02)},
-
- //Inject Predicted Orbits Data Resp Ind
- { QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_IND_V02,
- sizeof(qmiLocInjectPredictedOrbitsDataIndMsgT_v02)},
-
- //Get Predicted Orbits Data Src Resp Ind
- { QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_IND_V02,
- sizeof(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02)},
-
- // Get Predicted Orbits Data Validity Resp Ind
- { QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_IND_V02,
- sizeof(qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02)},
-
- // Inject UTC Time Resp Ind
- { QMI_LOC_INJECT_UTC_TIME_IND_V02,
- sizeof(qmiLocInjectUtcTimeIndMsgT_v02)},
-
- //Inject Position Resp Ind
- { QMI_LOC_INJECT_POSITION_IND_V02,
- sizeof(qmiLocInjectPositionIndMsgT_v02)},
-
- //Set Engine Lock Resp Ind
- { QMI_LOC_SET_ENGINE_LOCK_IND_V02,
- sizeof(qmiLocSetEngineLockIndMsgT_v02)},
-
- //Get Engine Lock Resp Ind
- { QMI_LOC_GET_ENGINE_LOCK_IND_V02,
- sizeof(qmiLocGetEngineLockIndMsgT_v02)},
-
- //Set SBAS Config Resp Ind
- { QMI_LOC_SET_SBAS_CONFIG_IND_V02,
- sizeof(qmiLocSetSbasConfigIndMsgT_v02)},
-
- //Get SBAS Config Resp Ind
- { QMI_LOC_GET_SBAS_CONFIG_IND_V02,
- sizeof(qmiLocGetSbasConfigIndMsgT_v02)},
-
- //Set NMEA Types Resp Ind
- { QMI_LOC_SET_NMEA_TYPES_IND_V02,
- sizeof(qmiLocSetNmeaTypesIndMsgT_v02)},
-
- //Get NMEA Types Resp Ind
- { QMI_LOC_GET_NMEA_TYPES_IND_V02,
- sizeof(qmiLocGetNmeaTypesIndMsgT_v02)},
-
- //Set Low Power Mode Resp Ind
- { QMI_LOC_SET_LOW_POWER_MODE_IND_V02,
- sizeof(qmiLocSetLowPowerModeIndMsgT_v02)},
-
- //Get Low Power Mode Resp Ind
- { QMI_LOC_GET_LOW_POWER_MODE_IND_V02,
- sizeof(qmiLocGetLowPowerModeIndMsgT_v02)},
-
- //Set Server Resp Ind
- { QMI_LOC_SET_SERVER_IND_V02,
- sizeof(qmiLocSetServerIndMsgT_v02)},
-
- //Get Server Resp Ind
- { QMI_LOC_GET_SERVER_IND_V02,
- sizeof(qmiLocGetServerIndMsgT_v02)},
-
- //Delete Assist Data Resp Ind
- { QMI_LOC_DELETE_ASSIST_DATA_IND_V02,
- sizeof(qmiLocDeleteAssistDataIndMsgT_v02)},
-
- //Set AP cache injection Resp Ind
- { QMI_LOC_INJECT_APCACHE_DATA_IND_V02,
- sizeof(qmiLocInjectApCacheDataIndMsgT_v02)},
-
- //Set No AP cache injection Resp Ind
- { QMI_LOC_INJECT_APDONOTCACHE_DATA_IND_V02,
- sizeof(qmiLocInjectApDoNotCacheDataIndMsgT_v02)},
-
- //Set XTRA-T Session Control Resp Ind
- { QMI_LOC_SET_XTRA_T_SESSION_CONTROL_IND_V02,
- sizeof(qmiLocSetXtraTSessionControlIndMsgT_v02)},
-
- //Get XTRA-T Session Control Resp Ind
- { QMI_LOC_GET_XTRA_T_SESSION_CONTROL_IND_V02,
- sizeof(qmiLocGetXtraTSessionControlIndMsgT_v02)},
-
- //Inject Wifi Position Resp Ind
- { QMI_LOC_INJECT_WIFI_POSITION_IND_V02,
- sizeof(qmiLocInjectWifiPositionIndMsgT_v02)},
-
- //Notify Wifi Status Resp Ind
- { QMI_LOC_NOTIFY_WIFI_STATUS_IND_V02,
- sizeof(qmiLocNotifyWifiStatusIndMsgT_v02)},
-
- //Get Registered Events Resp Ind
- { QMI_LOC_GET_REGISTERED_EVENTS_IND_V02,
- sizeof(qmiLocGetRegisteredEventsIndMsgT_v02)},
-
- //Set Operation Mode Resp Ind
- { QMI_LOC_SET_OPERATION_MODE_IND_V02,
- sizeof(qmiLocSetOperationModeIndMsgT_v02)},
-
- //Get Operation Mode Resp Ind
- { QMI_LOC_GET_OPERATION_MODE_IND_V02,
- sizeof(qmiLocGetOperationModeIndMsgT_v02)},
-
- //Set SPI Status Resp Ind
- { QMI_LOC_SET_SPI_STATUS_IND_V02,
- sizeof(qmiLocSetSpiStatusIndMsgT_v02)},
-
- //Inject Sensor Data Resp Ind
- { QMI_LOC_INJECT_SENSOR_DATA_IND_V02,
- sizeof(qmiLocInjectSensorDataIndMsgT_v02)},
-
- //Inject Time Sync Data Resp Ind
- { QMI_LOC_INJECT_TIME_SYNC_DATA_IND_V02,
- sizeof(qmiLocInjectTimeSyncDataIndMsgT_v02)},
-
- //Set Cradle Mount config Resp Ind
- { QMI_LOC_SET_CRADLE_MOUNT_CONFIG_IND_V02,
- sizeof(qmiLocSetCradleMountConfigIndMsgT_v02)},
-
- //Get Cradle Mount config Resp Ind
- { QMI_LOC_GET_CRADLE_MOUNT_CONFIG_IND_V02,
- sizeof(qmiLocGetCradleMountConfigIndMsgT_v02)},
-
- //Set External Power config Resp Ind
- { QMI_LOC_SET_EXTERNAL_POWER_CONFIG_IND_V02,
- sizeof(qmiLocSetExternalPowerConfigIndMsgT_v02)},
-
- //Get External Power config Resp Ind
- { QMI_LOC_GET_EXTERNAL_POWER_CONFIG_IND_V02,
- sizeof(qmiLocGetExternalPowerConfigIndMsgT_v02)},
-
- //Location server connection status
- { QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02,
- sizeof(qmiLocInformLocationServerConnStatusIndMsgT_v02)},
-
- //Set Protocol Config Parameters
- { QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02,
- sizeof(qmiLocSetProtocolConfigParametersIndMsgT_v02)},
-
- //Get Protocol Config Parameters
- { QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02,
- sizeof(qmiLocGetProtocolConfigParametersIndMsgT_v02)},
-
- //Set Sensor Control Config
- { QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02,
- sizeof(qmiLocSetSensorControlConfigIndMsgT_v02)},
-
- //Get Sensor Control Config
- { QMI_LOC_GET_SENSOR_CONTROL_CONFIG_IND_V02,
- sizeof(qmiLocGetSensorControlConfigIndMsgT_v02)},
-
- //Set Sensor Properties
- { QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02,
- sizeof(qmiLocSetSensorPropertiesIndMsgT_v02)},
-
- //Get Sensor Properties
- { QMI_LOC_GET_SENSOR_PROPERTIES_IND_V02,
- sizeof(qmiLocGetSensorPropertiesIndMsgT_v02)},
-
- //Set Sensor Performance Control Config
- { QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02,
- sizeof(qmiLocSetSensorPerformanceControlConfigIndMsgT_v02)},
-
- //Get Sensor Performance Control Config
- { QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02,
- sizeof(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02)},
- //Inject SUPL certificate
- { QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02,
- sizeof(qmiLocInjectSuplCertificateIndMsgT_v02) },
-
- //Delete SUPL certificate
- { QMI_LOC_DELETE_SUPL_CERTIFICATE_IND_V02,
- sizeof(qmiLocDeleteSuplCertificateIndMsgT_v02) },
-
- // Set Position Engine Config
- { QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02,
- sizeof(qmiLocSetPositionEngineConfigParametersIndMsgT_v02)},
-
- // Get Position Engine Config
- { QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02,
- sizeof(qmiLocGetPositionEngineConfigParametersIndMsgT_v02)},
-
- //Add a Circular Geofence
- { QMI_LOC_ADD_CIRCULAR_GEOFENCE_IND_V02,
- sizeof(qmiLocAddCircularGeofenceIndMsgT_v02)},
-
- //Delete a Geofence
- { QMI_LOC_DELETE_GEOFENCE_IND_V02,
- sizeof(qmiLocDeleteGeofenceIndMsgT_v02)} ,
-
- //Query a Geofence
- { QMI_LOC_QUERY_GEOFENCE_IND_V02,
- sizeof(qmiLocQueryGeofenceIndMsgT_v02)},
-
- //Edit a Geofence
- { QMI_LOC_EDIT_GEOFENCE_IND_V02,
- sizeof(qmiLocEditGeofenceIndMsgT_v02)},
-
- //Get best available position
- { QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02,
- sizeof(qmiLocGetBestAvailablePositionIndMsgT_v02)},
-
- //Secure Get available position
- { QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_V02,
- sizeof(qmiLocSecureGetAvailablePositionIndMsgT_v02)},
-
- //Inject motion data
- { QMI_LOC_INJECT_MOTION_DATA_IND_V02,
- sizeof(qmiLocInjectMotionDataIndMsgT_v02)},
-
- //Get NI Geofence list
- { QMI_LOC_GET_NI_GEOFENCE_ID_LIST_IND_V02,
- sizeof(qmiLocGetNiGeofenceIdListIndMsgT_v02)},
-
- //Inject GSM Cell Info
- { QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02,
- sizeof(qmiLocInjectGSMCellInfoIndMsgT_v02)},
-
- //Inject Network Initiated Message
- { QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02,
- sizeof(qmiLocInjectNetworkInitiatedMessageIndMsgT_v02)},
-
- //WWAN Out of Service Notification
- { QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02,
- sizeof(qmiLocWWANOutOfServiceNotificationIndMsgT_v02)},
-
- //Pedomete Report
- { QMI_LOC_PEDOMETER_REPORT_IND_V02,
- sizeof(qmiLocPedometerReportIndMsgT_v02)},
-
- { QMI_LOC_INJECT_WCDMA_CELL_INFO_IND_V02,
- sizeof(qmiLocInjectWCDMACellInfoIndMsgT_v02)},
-
- { QMI_LOC_INJECT_TDSCDMA_CELL_INFO_IND_V02,
- sizeof(qmiLocInjectTDSCDMACellInfoIndMsgT_v02)},
-
- { QMI_LOC_INJECT_SUBSCRIBER_ID_IND_V02,
- sizeof(qmiLocInjectSubscriberIDIndMsgT_v02)},
-
- //Inject Wifi AP data Resp Ind
- { QMI_LOC_INJECT_WIFI_AP_DATA_IND_V02,
- sizeof(qmiLocInjectWifiApDataIndMsgT_v02)},
-
- { QMI_LOC_START_BATCHING_IND_V02,
- sizeof(qmiLocStartBatchingIndMsgT_v02)},
-
- { QMI_LOC_STOP_BATCHING_IND_V02,
- sizeof(qmiLocStopBatchingIndMsgT_v02)},
-
- { QMI_LOC_GET_BATCH_SIZE_IND_V02,
- sizeof(qmiLocGetBatchSizeIndMsgT_v02)},
-
- { QMI_LOC_EVENT_LIVE_BATCHED_POSITION_REPORT_IND_V02,
- sizeof(qmiLocEventPositionReportIndMsgT_v02)},
-
- { QMI_LOC_EVENT_BATCH_FULL_NOTIFICATION_IND_V02,
- sizeof(qmiLocEventBatchFullIndMsgT_v02)},
-
- { QMI_LOC_READ_FROM_BATCH_IND_V02,
- sizeof(qmiLocReadFromBatchIndMsgT_v02)},
-
- { QMI_LOC_RELEASE_BATCH_IND_V02,
- sizeof(qmiLocReleaseBatchIndMsgT_v02)},
-
- { QMI_LOC_SET_XTRA_VERSION_CHECK_IND_V02,
- sizeof(qmiLocSetXtraVersionCheckIndMsgT_v02)},
-
- //Vehicle Sensor Data
- { QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_IND_V02,
- sizeof(qmiLocInjectVehicleSensorDataIndMsgT_v02)},
-
- { QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_IND_V02,
- sizeof(qmiLocNotifyWifiAttachmentStatusIndMsgT_v02)},
-
- { QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_IND_V02,
- sizeof(qmiLocNotifyWifiEnabledStatusIndMsgT_v02)},
-
- { QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_IND_V02,
- sizeof(qmiLocSetPremiumServicesCfgReqMsgT_v02)},
-
- { QMI_LOC_GET_AVAILABLE_WWAN_POSITION_IND_V02,
- sizeof(qmiLocGetAvailWwanPositionIndMsgT_v02)},
-
- // for TDP
- { QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_IND_V02,
- sizeof(qmiLocInjectGtpClientDownloadedDataIndMsgT_v02) },
-
- // for GDT
- { QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_IND_V02,
- sizeof(qmiLocGdtUploadBeginStatusIndMsgT_v02) },
-
- { QMI_LOC_GDT_UPLOAD_END_IND_V02,
- sizeof(qmiLocGdtUploadEndIndMsgT_v02) },
-
- { QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_IND_V02,
- sizeof(qmiLocSetGNSSConstRepConfigIndMsgT_v02)},
-
- { QMI_LOC_START_DBT_IND_V02,
- sizeof(qmiLocStartDbtIndMsgT_v02)},
-
- { QMI_LOC_STOP_DBT_IND_V02,
- sizeof(qmiLocStopDbtIndMsgT_v02)},
-
- { QMI_LOC_INJECT_TIME_ZONE_INFO_IND_V02,
- sizeof(qmiLocInjectTimeZoneInfoIndMsgT_v02)},
-
- { QMI_LOC_QUERY_AON_CONFIG_IND_V02,
- sizeof(qmiLocQueryAonConfigIndMsgT_v02)},
-
- // for GTP
- { QMI_LOC_GTP_AP_STATUS_IND_V02,
- sizeof(qmiLocGtpApStatusIndMsgT_v02) },
-
- // for GDT
- { QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_IND_V02,
- sizeof(qmiLocGdtDownloadBeginStatusIndMsgT_v02) },
-
- { QMI_LOC_GDT_DOWNLOAD_READY_STATUS_IND_V02,
- sizeof(qmiLocGdtDownloadReadyStatusIndMsgT_v02) },
-
- { QMI_LOC_GDT_RECEIVE_DONE_STATUS_IND_V02,
- sizeof(qmiLocGdtReceiveDoneStatusIndMsgT_v02) },
-
- { QMI_LOC_GDT_DOWNLOAD_END_STATUS_IND_V02,
- sizeof(qmiLocGdtDownloadEndStatusIndMsgT_v02) },
-
- { QMI_LOC_GET_SUPPORTED_FEATURE_IND_V02,
- sizeof(qmiLocGetSupportedFeatureIndMsgT_v02) },
-
- //Delete Gnss Service Data Resp Ind
- { QMI_LOC_DELETE_GNSS_SERVICE_DATA_IND_V02,
- sizeof(qmiLocDeleteGNSSServiceDataIndMsgT_v02) },
-
- // for XTRA Client 2.0
- { QMI_LOC_INJECT_XTRA_DATA_IND_V02,
- sizeof(qmiLocInjectXtraDataIndMsgT_v02) },
-
- { QMI_LOC_INJECT_XTRA_PCID_IND_V02,
- sizeof(qmiLocInjectXtraPcidIndMsgT_v02) }
-};
-
-
-/** whether indication is an event or a response */
-typedef enum { eventIndType =0, respIndType = 1 } locClientIndEnumT;
-
-
-/** @struct locClientInternalState
- */
-
-typedef struct locClientCbDataStructT locClientCallbackDataType;
-
-struct locClientCbDataStructT
-{
- // client cookie
- void *pClientCookie;
- //QCCI handle for this control point
- qmi_client_type userHandle;
-
- // callbacks registered by the clients
- locClientEventIndCbType eventCallback;
- locClientRespIndCbType respCallback;
- locClientErrorCbType errorCallback;
-
- // the event mask the client has registered for
- locClientEventMaskType eventRegMask;
-
- //pointer to itself for checking consistency data
- locClientCallbackDataType *pMe;
-};
-
-
-/*===========================================================================
- *
- * FUNCTION DECLARATION
- *
- *==========================================================================*/
-
-/** locClientGetSizeAndTypeByIndId
- * @brief this function gets the size and the type (event,
- * response)of the indication structure from its ID
- * @param [in] indId ID of the indication
- * @param [out] type event or response indication
- * @param [out] size size of the indications
- *
- * @return true if the ID was found, false otherwise */
-
-static bool locClientGetSizeAndTypeByIndId (uint32_t indId, size_t *pIndSize,
- locClientIndEnumT *pIndType)
-{
- // look in the event table
- if(true == locClientGetSizeByEventIndId(indId, pIndSize))
- {
- *pIndType = eventIndType;
-
- LOC_LOGV("%s:%d]: indId %d is an event size = %d\n", __func__, __LINE__,
- indId, (uint32_t)*pIndSize);
- return true;
- }
-
- //else look in response table
- if(true == locClientGetSizeByRespIndId(indId, pIndSize))
- {
- *pIndType = respIndType;
-
- LOC_LOGV("%s:%d]: indId %d is a resp size = %d\n", __func__, __LINE__,
- indId, (uint32_t)*pIndSize);
- return true;
- }
-
- // Id not found
- LOC_LOGW("%s:%d]: indId %d not found\n", __func__, __LINE__, indId);
- return false;
-}
-
-/** checkQmiMsgsSupported
- @brief check the qmi service is supported or not.
- @param [in] pResponse pointer to the response received from
- QMI_LOC service.
-*/
-static void checkQmiMsgsSupported(
- const uint32_t* reqIdArray,
- int reqIdArrayLength,
- qmiLocGetSupportMsgT_v02 *pResponse,
- uint64_t* supportedMsg)
-{
- uint64_t result = 0;
- if (pResponse->resp.supported_msgs_valid) {
-
- /* For example, if a service supports exactly four messages with
- IDs 0, 1, 30, and 31 (decimal), the array (in hexadecimal) is
- 4 bytes [03 00 00 c0]. */
-
- size_t idx = 0;
- uint32_t reqId = 0;
- uint32_t length = 0;
- uint32_t supportedMsgsLen = pResponse->resp.supported_msgs_len;
-
- // every bit saves a checked message result
- uint32_t maxCheckedMsgsSavedNum = sizeof(result)<<3;
-
- uint32_t loopSize = reqIdArrayLength;
- loopSize =
- loopSize < supportedMsgsLen ? loopSize : supportedMsgsLen;
- loopSize =
- loopSize < maxCheckedMsgsSavedNum ? loopSize : maxCheckedMsgsSavedNum;
-
- for (idx = 0; idx < loopSize; idx++) {
- reqId = reqIdArray[idx];
- length = reqId >> 3;
- if(supportedMsgsLen > length) {
- uint32_t bit = reqId & ((uint32_t)7);
- if (pResponse->resp.supported_msgs[length] & (1<resp.result == QMI_RESULT_SUCCESS_V01 )
- {
- status = eLOC_CLIENT_SUCCESS;
- }
- else
- {
- switch(pResponse->resp.error)
- {
- case QMI_ERR_MALFORMED_MSG_V01:
- case QMI_ERR_INVALID_ARG_V01:
- status = eLOC_CLIENT_FAILURE_INVALID_PARAMETER;
- break;
-
- case QMI_ERR_DEVICE_IN_USE_V01:
- status = eLOC_CLIENT_FAILURE_ENGINE_BUSY;
- break;
-
- case QMI_ERR_NOT_SUPPORTED_V01:
- status = eLOC_CLIENT_FAILURE_UNSUPPORTED;
- break;
-
- default:
- status = eLOC_CLIENT_FAILURE_INTERNAL;
- break;
- }
- }
- LOC_LOGV("%s:%d]: result = %d, error = %d, status = %d\n",
- __func__, __LINE__, pResponse->resp.result,
- pResponse->resp.error, status);
- return status;
-}
-
-/** convertQmiErrorToLocError
- @brief converts a qmi service error type to
- locClientErrorEnumType
- @param [in] error received QMI service.
- @return locClientErrorEnumType corresponding to the error.
-*/
-
-static locClientErrorEnumType convertQmiErrorToLocError(
- qmi_client_error_type error)
-{
- locClientErrorEnumType locError ;
- switch(error)
- {
- case QMI_SERVICE_ERR:
- locError = eLOC_CLIENT_ERROR_SERVICE_UNAVAILABLE;
- break;
-
- default:
- locError = eLOC_CLIENT_ERROR_SERVICE_UNAVAILABLE;
- break;
- }
- LOC_LOGV("%s:%d]: qmi error = %d, loc error = %d\n",
- __func__, __LINE__, error, locError);
- return locError;
-}
-
-/** locClientErrorCb
- * @brief handles the QCCI error events, this is called by the
- * QCCI infrastructure when the service is no longer
- * available.
- * @param [in] user handle
- * @param [in] error
- * @param [in] *err_cb_data
- */
-
-static void locClientErrorCb
-(
- qmi_client_type user_handle,
- qmi_client_error_type error,
- void *err_cb_data
-)
-{
- locClientCallbackDataType* pCallbackData =
- (locClientCallbackDataType *)err_cb_data;
- locClientErrorCbType localErrorCallback = NULL;
-
- /* copy the errorCallback function pointer from the callback
- * data to local variable. This is to protect against the race
- * condition between open/close and error callback.
- */
- if(NULL != pCallbackData)
- {
- localErrorCallback = pCallbackData->errorCallback;
- }
-
- LOC_LOGD("%s:%d]: Service Error %d received, pCallbackData = %p\n",
- __func__, __LINE__, error, err_cb_data);
-
- /* call the error callback
- * To avoid calling the errorCallback after locClientClose
- * is called, check pCallbackData->errorCallback again here
- */
-
- if( (NULL != pCallbackData) &&
- (NULL != localErrorCallback) &&
- (NULL != pCallbackData->errorCallback) &&
- (pCallbackData == pCallbackData->pMe) )
- {
- //invoke the error callback for the corresponding client
- localErrorCallback(
- (locClientHandleType)pCallbackData,
- convertQmiErrorToLocError(error),
- pCallbackData->pClientCookie);
- }
-}
-
-
-/** locClientIndCb
- * @brief handles the indications sent from the service, if a
- * response indication was received then the it is sent
- * to the response callback. If a event indication was
- * received then it is sent to the event callback
- * @param [in] user handle
- * @param [in] msg_id
- * @param [in] ind_buf
- * @param [in] ind_buf_len
- * @param [in] ind_cb_data */
-
-static void locClientIndCb
-(
- qmi_client_type user_handle,
- unsigned int msg_id,
- void *ind_buf,
- unsigned int ind_buf_len,
- void *ind_cb_data
-)
-{
- locClientIndEnumT indType;
- size_t indSize = 0;
- qmi_client_error_type rc ;
- locClientCallbackDataType* pCallbackData =
- (locClientCallbackDataType *)ind_cb_data;
-
- LOC_LOGV("%s:%d]: Indication: msg_id=%d buf_len=%d pCallbackData = %p\n",
- __func__, __LINE__, (uint32_t)msg_id, ind_buf_len,
- pCallbackData);
-
- // check callback data
- if(NULL == pCallbackData ||(pCallbackData != pCallbackData->pMe))
- {
- LOC_LOGE("%s:%d]: invalid callback data", __func__, __LINE__);
- return;
- }
-
- // check user handle
- if(memcmp(&pCallbackData->userHandle, &user_handle, sizeof(user_handle)))
- {
- LOC_LOGE("%s:%d]: invalid user_handle got %p expected %p\n",
- __func__, __LINE__,
- user_handle, pCallbackData->userHandle);
- return;
- }
- // Get the indication size and type ( eventInd or respInd)
- if( true == locClientGetSizeAndTypeByIndId(msg_id, &indSize, &indType))
- {
- void *indBuffer = NULL;
-
- // decode the indication
- indBuffer = malloc(indSize);
-
- if(NULL == indBuffer)
- {
- LOC_LOGE("%s:%d]: memory allocation failed\n", __func__, __LINE__);
- return;
- }
-
- rc = QMI_NO_ERR;
-
- if (ind_buf_len > 0)
- {
- // decode the indication
- rc = qmi_client_message_decode(
- user_handle,
- QMI_IDL_INDICATION,
- msg_id,
- ind_buf,
- ind_buf_len,
- indBuffer,
- indSize);
- }
-
- if( rc == QMI_NO_ERR )
- {
- if(eventIndType == indType)
- {
- locClientEventIndUnionType eventIndUnion;
-
- /* copy the eventCallback function pointer from the callback
- * data to local variable. This is to protect against the race
- * condition between open/close and indication callback.
- */
- locClientEventIndCbType localEventCallback =
- pCallbackData->eventCallback;
-
- // dummy event
- eventIndUnion.pPositionReportEvent =
- (qmiLocEventPositionReportIndMsgT_v02 *)indBuffer;
-
- /* call the event callback
- * To avoid calling the eventCallback after locClientClose
- * is called, check pCallbackData->eventCallback again here
- */
- if((NULL != localEventCallback) &&
- (NULL != pCallbackData->eventCallback))
- {
- localEventCallback(
- (locClientHandleType)pCallbackData,
- msg_id,
- eventIndUnion,
- pCallbackData->pClientCookie);
- }
- }
- else if(respIndType == indType)
- {
- locClientRespIndUnionType respIndUnion;
-
- /* copy the respCallback function pointer from the callback
- * data to local variable. This is to protect against the race
- * condition between open/close and indication callback.
- */
- locClientRespIndCbType localRespCallback =
- pCallbackData->respCallback;
-
- // dummy to suppress compiler warnings
- respIndUnion.pDeleteAssistDataInd =
- (qmiLocDeleteAssistDataIndMsgT_v02 *)indBuffer;
-
- /* call the response callback
- * To avoid calling the respCallback after locClientClose
- * is called, check pCallbackData->respCallback again here
- */
- if((NULL != localRespCallback) &&
- (NULL != pCallbackData->respCallback))
- {
- localRespCallback(
- (locClientHandleType)pCallbackData,
- msg_id,
- respIndUnion,
- indSize,
- pCallbackData->pClientCookie);
- }
- }
- }
- else
- {
- LOC_LOGE("%s:%d]: Error decoding indication %d\n",
- __func__, __LINE__, rc);
- }
- if(indBuffer)
- {
- free (indBuffer);
- }
- }
- else // Id not found
- {
- LOC_LOGE("%s:%d]: Error indication not found %d\n",
- __func__, __LINE__,(uint32_t)msg_id);
- }
- return;
-}
-
-
-/** locClientRegisterEventMask
- * @brief registers the event mask with loc service
- * @param [in] clientHandle
- * @param [in] eventRegMask
- * @return true if indication was validated; else false */
-
-bool locClientRegisterEventMask(
- locClientHandleType clientHandle,
- locClientEventMaskType eventRegMask)
-{
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- locClientReqUnionType reqUnion;
- qmiLocRegEventsReqMsgT_v02 regEventsReq;
-
- memset(®EventsReq, 0, sizeof(regEventsReq));
-
- regEventsReq.eventRegMask = eventRegMask;
- reqUnion.pRegEventsReq = ®EventsReq;
-
- status = locClientSendReq(clientHandle,
- QMI_LOC_REG_EVENTS_REQ_V02,
- reqUnion);
-
- if(eLOC_CLIENT_SUCCESS != status )
- {
- LOC_LOGE("%s:%d] status %s\n", __func__, __LINE__,
- loc_get_v02_client_status_name(status) );
- return false;
- }
-
- return true;
-}
-
-/** validateRequest
- @brief validates the input request
- @param [in] reqId request ID
- @param [in] reqPayload Union of pointers to message payload
- @param [out] ppOutData Pointer to void *data if successful
- @param [out] pOutLen Pointer to length of data if succesful.
- @return false on failure, true on Success
-*/
-
-static bool validateRequest(
- uint32_t reqId,
- const locClientReqUnionType reqPayload,
- void **ppOutData,
- uint32_t *pOutLen )
-
-{
- bool noPayloadFlag = false;
-
- LOC_LOGV("%s:%d]: reqId = %d\n", __func__, __LINE__, reqId);
- switch(reqId)
- {
- case QMI_LOC_INFORM_CLIENT_REVISION_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInformClientRevisionReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_REG_EVENTS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocRegEventsReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_START_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocStartReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_STOP_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocStopReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_NI_USER_RESPONSE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocNiUserRespReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectPredictedOrbitsDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_UTC_TIME_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectUtcTimeReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_POSITION_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectPositionReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_ENGINE_LOCK_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetEngineLockReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_SBAS_CONFIG_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetSbasConfigReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_NMEA_TYPES_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetNmeaTypesReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_LOW_POWER_MODE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetLowPowerModeReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_SERVER_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetServerReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_DELETE_ASSIST_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocDeleteAssistDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_APCACHE_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectApCacheDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_APDONOTCACHE_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectApDoNotCacheDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_XTRA_T_SESSION_CONTROL_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetXtraTSessionControlReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_WIFI_POSITION_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectWifiPositionReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_NOTIFY_WIFI_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocNotifyWifiStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_OPERATION_MODE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetOperationModeReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_SPI_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetSpiStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_SENSOR_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectSensorDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_TIME_SYNC_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectTimeSyncDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_CRADLE_MOUNT_CONFIG_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetCradleMountConfigReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_EXTERNAL_POWER_CONFIG_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetExternalPowerConfigReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInformLocationServerConnStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetProtocolConfigParametersReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetProtocolConfigParametersReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetSensorControlConfigReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GET_SENSOR_PROPERTIES_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetSensorPropertiesReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_SENSOR_PROPERTIES_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetSensorPropertiesReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectSuplCertificateReqMsgT_v02);
- break;
- }
- case QMI_LOC_DELETE_SUPL_CERTIFICATE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocDeleteSuplCertificateReqMsgT_v02);
- break;
- }
- case QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetPositionEngineConfigParametersReqMsgT_v02);
- break;
- }
- case QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetPositionEngineConfigParametersReqMsgT_v02);
- break;
- }
- case QMI_LOC_ADD_CIRCULAR_GEOFENCE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocAddCircularGeofenceReqMsgT_v02);
- break;
- }
- case QMI_LOC_DELETE_GEOFENCE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocDeleteGeofenceReqMsgT_v02);
- break;
- }
- case QMI_LOC_QUERY_GEOFENCE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocQueryGeofenceReqMsgT_v02);
- break;
- }
- case QMI_LOC_EDIT_GEOFENCE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocEditGeofenceReqMsgT_v02);
- break;
- }
- case QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetBestAvailablePositionReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SECURE_GET_AVAILABLE_POSITION_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSecureGetAvailablePositionReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_MOTION_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectMotionDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GET_NI_GEOFENCE_ID_LIST_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetNiGeofenceIdListReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_GSM_CELL_INFO_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectGSMCellInfoReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectNetworkInitiatedMessageReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_PEDOMETER_REPORT_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocPedometerReportReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_WCDMA_CELL_INFO_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectWCDMACellInfoReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_TDSCDMA_CELL_INFO_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectTDSCDMACellInfoReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_SUBSCRIBER_ID_IND_V02:
- {
- *pOutLen = sizeof(qmiLocInjectSubscriberIDReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_WIFI_AP_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectWifiApDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GET_BATCH_SIZE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetBatchSizeReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_START_BATCHING_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocStartBatchingReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_READ_FROM_BATCH_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocReadFromBatchReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_STOP_BATCHING_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocStopBatchingReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_RELEASE_BATCH_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocReleaseBatchReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_XTRA_VERSION_CHECK_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetXtraVersionCheckReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectVehicleSensorDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocNotifyWifiEnabledStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocSetPremiumServicesCfgReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GET_AVAILABLE_WWAN_POSITION_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetAvailWwanPositionReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectGtpClientDownloadedDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGdtUploadBeginStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GDT_UPLOAD_END_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGdtUploadEndReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02:
- {
- *pOutLen = sizeof(qmiLocSetGNSSConstRepConfigReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_START_DBT_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocStartDbtReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_STOP_DBT_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocStopDbtReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_TIME_ZONE_INFO_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectTimeZoneInfoReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_QUERY_AON_CONFIG_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocQueryAonConfigReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GTP_AP_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGtpApStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGdtDownloadBeginStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GDT_DOWNLOAD_READY_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGdtDownloadReadyStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GDT_RECEIVE_DONE_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGdtReceiveDoneStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GDT_DOWNLOAD_END_STATUS_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGdtDownloadEndStatusReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_GET_SUPPORTED_FEATURE_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocGetSupportedFeatureReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocDeleteGNSSServiceDataReqMsgT_v02);
- break;
- }
-
- // XTRA Client 2.0
- case QMI_LOC_INJECT_XTRA_DATA_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectXtraDataReqMsgT_v02);
- break;
- }
-
- case QMI_LOC_INJECT_XTRA_PCID_REQ_V02:
- {
- *pOutLen = sizeof(qmiLocInjectXtraPcidReqMsgT_v02);
- break;
- }
-
- // ALL requests with no payload
- case QMI_LOC_GET_SERVICE_REVISION_REQ_V02:
- case QMI_LOC_GET_FIX_CRITERIA_REQ_V02:
- case QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_REQ_V02:
- case QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_REQ_V02:
- case QMI_LOC_GET_ENGINE_LOCK_REQ_V02:
- case QMI_LOC_GET_SBAS_CONFIG_REQ_V02:
- case QMI_LOC_GET_NMEA_TYPES_REQ_V02:
- case QMI_LOC_GET_LOW_POWER_MODE_REQ_V02:
- case QMI_LOC_GET_SERVER_REQ_V02:
- case QMI_LOC_GET_XTRA_T_SESSION_CONTROL_REQ_V02:
- case QMI_LOC_GET_REGISTERED_EVENTS_REQ_V02:
- case QMI_LOC_GET_OPERATION_MODE_REQ_V02:
- case QMI_LOC_GET_CRADLE_MOUNT_CONFIG_REQ_V02:
- case QMI_LOC_GET_EXTERNAL_POWER_CONFIG_REQ_V02:
- case QMI_LOC_GET_SENSOR_CONTROL_CONFIG_REQ_V02:
- case QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02:
- case QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_REQ_V02:
- case QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02:
- case QMI_LOC_GET_SUPPORTED_FIELDS_REQ_V02:
- {
- noPayloadFlag = true;
- break;
- }
-
- default:
- LOC_LOGW("%s:%d]: Error unknown reqId=%d\n", __func__, __LINE__,
- reqId);
- return false;
- }
- if(true == noPayloadFlag)
- {
- *ppOutData = NULL;
- *pOutLen = 0;
- }
- else
- {
- //set dummy pointer for request union
- *ppOutData = (void*) reqPayload.pInformClientRevisionReq;
- }
- LOC_LOGV("%s:%d]: reqId=%d, len = %d\n", __func__, __LINE__,
- reqId, *pOutLen);
- return true;
-}
-
-/** locClientQmiCtrlPointInit
- @brief wait for the service to come up or timeout; when the
- service comes up initialize the control point and set
- internal handle and indication callback.
- @param pQmiClient,
-*/
-
-static locClientStatusEnumType locClientQmiCtrlPointInit(
- locClientCallbackDataType *pLocClientCbData,
- int instanceId)
-{
- qmi_client_type clnt, notifier;
- bool notifierInitFlag = false;
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- // os_params must stay in the same scope as notifier
- // because when notifier is initialized, the pointer
- // of os_params is retained in QMI framework, and it
- // used when notifier is released.
- qmi_client_os_params os_params;
- // instances of this service
- qmi_service_info serviceInfo;
-
- do
- {
- qmi_client_error_type rc = QMI_NO_ERR;
-
- // Get the service object for the qmiLoc Service
- qmi_idl_service_object_type locClientServiceObject =
- loc_get_service_object_v02();
-
- // Verify that qmiLoc_get_service_object did not return NULL
- if (NULL == locClientServiceObject)
- {
- LOC_LOGE("%s:%d]: qmiLoc_get_service_object_v02 failed\n" ,
- __func__, __LINE__ );
- status = eLOC_CLIENT_FAILURE_INTERNAL;
- break;
- }
-
- // register for service notification
- rc = qmi_client_notifier_init(locClientServiceObject, &os_params, ¬ifier);
- notifierInitFlag = (NULL != notifier);
-
- if (rc != QMI_NO_ERR) {
- LOC_LOGE("%s:%d]: qmi_client_notifier_init failed %d\n",
- __func__, __LINE__, rc);
- status = eLOC_CLIENT_FAILURE_INTERNAL;
- break;
- }
-
- while (1) {
- QMI_CCI_OS_SIGNAL_CLEAR(&os_params);
-
- if (instanceId >= 0) {
- // use instance-specific lookup
- rc = qmi_client_get_service_instance(locClientServiceObject, instanceId, &serviceInfo);
- } else {
- // lookup service with any instance id
- rc = qmi_client_get_any_service(locClientServiceObject, &serviceInfo);
- }
-
- // get the service addressing information
- LOC_LOGV("%s:%d]: qmi_client_get_service() rc: %d ", __func__, __LINE__, rc);
-
- if(rc == QMI_NO_ERR)
- break;
-
- QMI_CCI_OS_SIGNAL_WAIT(&os_params, 0);
- }
-
- LOC_LOGV("%s:%d]: passing the pointer %p to qmi_client_init \n",
- __func__, __LINE__, pLocClientCbData);
-
- // initialize the client
- //sent the address of the first service found
- // if IPC router is present, this will go to the service instance
- // enumerated over IPC router, else it will go over the next transport where
- // the service was enumerated.
- rc = qmi_client_init(&serviceInfo, locClientServiceObject,
- locClientIndCb, (void *) pLocClientCbData,
- NULL, &clnt);
-
- if(rc != QMI_NO_ERR)
- {
- LOC_LOGE("%s:%d]: qmi_client_init error %d\n",
- __func__, __LINE__, rc);
-
- status = eLOC_CLIENT_FAILURE_INTERNAL;
- break;
- }
-
- LOC_LOGV("%s:%d]: passing the pointer %p to"
- "qmi_client_register_error_cb \n",
- __func__, __LINE__, pLocClientCbData);
-
- // register error callback
- rc = qmi_client_register_error_cb(clnt,
- locClientErrorCb, (void *) pLocClientCbData);
-
- if( QMI_NO_ERR != rc)
- {
- LOC_LOGE("%s:%d]: could not register QCCI error callback error:%d\n",
- __func__, __LINE__, rc);
-
- status = eLOC_CLIENT_FAILURE_INTERNAL;
- break;
- }
-
- // copy the clnt handle returned in qmi_client_init
- memcpy(&(pLocClientCbData->userHandle), &clnt, sizeof(qmi_client_type));
-
- status = eLOC_CLIENT_SUCCESS;
-
- } while(0);
-
- /* release the notifier handle */
- if(true == notifierInitFlag)
- {
- qmi_client_release(notifier);
- }
-
- return status;
-}
-//----------------------- END INTERNAL FUNCTIONS ----------------------------------------
-
-/** locClientOpenInstance
- @brief Connects a location client to the location engine. If the connection
- is successful, returns a handle that the location client uses for
- future location operations.
-
- @param [in] eventRegMask Mask of asynchronous events the client is
- interested in receiving
- @param [in] instanceId Value of QMI service instance id to use.
- @param [in] eventIndCb Function to be invoked to handle an event.
- @param [in] respIndCb Function to be invoked to handle a response
- indication.
- @param [out] locClientHandle Handle to be used by the client
- for any subsequent requests.
-
- @return
- One of the following error codes:
- - eLOC_CLIENT_SUCCESS -- If the connection is opened.
- - non-zero error code(see locClientStatusEnumType)-- On failure.
-*/
-locClientStatusEnumType locClientOpenInstance (
- locClientEventMaskType eventRegMask,
- int instanceId,
- const locClientCallbacksType* pLocClientCallbacks,
- locClientHandleType* pLocClientHandle,
- const void* pClientCookie)
-{
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- locClientCallbackDataType *pCallbackData = NULL;
-
- // check input parameters
- if( (NULL == pLocClientCallbacks) || (NULL == pLocClientHandle)
- || (NULL == pLocClientCallbacks->respIndCb) ||
- (pLocClientCallbacks->size != sizeof(locClientCallbacksType)))
- {
- LOC_LOGE("%s:%d]: Invalid parameters in locClientOpen\n",
- __func__, __LINE__);
- return eLOC_CLIENT_FAILURE_INVALID_PARAMETER;
- }
-
- do
- {
- // Allocate memory for the callback data
- pCallbackData =
- ( locClientCallbackDataType*)calloc(
- 1, sizeof(locClientCallbackDataType));
-
- if(NULL == pCallbackData)
- {
- LOC_LOGE("%s:%d]: Could not allocate memory for callback data \n",
- __func__, __LINE__);
- status = eLOC_CLIENT_FAILURE_INTERNAL;
- break;
- }
-
- /* Initialize the QMI control point; this function will block
- * until a service is up or a timeout occurs. If the connection to
- * the service succeeds the callback data will be filled in with
- * a qmi_client value.
- */
-
-
- EXIT_LOG_CALLFLOW(%s, "loc client open");
- status = locClientQmiCtrlPointInit(pCallbackData, instanceId);
-
- LOC_LOGV ("%s:%d] locClientQmiCtrlPointInit returned %d\n",
- __func__, __LINE__, status);
-
- if(status != eLOC_CLIENT_SUCCESS)
- {
- free(pCallbackData);
- pCallbackData = NULL;
- LOC_LOGE ("%s:%d] locClientQmiCtrlPointInit returned %d\n",
- __func__, __LINE__, status);
- break;
- }
- // set the self pointer
- pCallbackData->pMe = pCallbackData;
- // set the handle to the callback data
- *pLocClientHandle = (locClientHandleType)pCallbackData;
-
- if(true != locClientRegisterEventMask(*pLocClientHandle,eventRegMask))
- {
- LOC_LOGE("%s:%d]: Error sending registration mask\n",
- __func__, __LINE__);
-
- // release the client
- locClientClose(pLocClientHandle);
-
- status = eLOC_CLIENT_FAILURE_INTERNAL;
- break;
- }
-
- /* Initialize rest of the client structure now that the connection
- * to the service has been created successfully.
- */
-
- //fill in the event callback
- pCallbackData->eventCallback = pLocClientCallbacks->eventIndCb;
-
- //fill in the response callback
- pCallbackData->respCallback = pLocClientCallbacks->respIndCb;
-
- //fill in the error callback
- pCallbackData->errorCallback = pLocClientCallbacks->errorCb;
-
- //set the client event registration mask
- pCallbackData->eventRegMask = eventRegMask;
-
- // set the client cookie
- pCallbackData->pClientCookie = (void *)pClientCookie;
-
- }while(0);
-
- if(eLOC_CLIENT_SUCCESS != status)
- {
- *pLocClientHandle = LOC_CLIENT_INVALID_HANDLE_VALUE;
- LOC_LOGE("%s:%d]: Error! status = %d\n", __func__, __LINE__,status);
- }
-
- else
- {
- LOC_LOGD("%s:%d]: returning handle = %p, user_handle=%p, status = %d\n",
- __func__, __LINE__, *pLocClientHandle,
- pCallbackData->userHandle, status);
- }
-
- return(status);
-}
-
-/** locClientOpen
- @brief Connects a location client to the location engine. If the connection
- is successful, returns a handle that the location client uses for
- future location operations.
-
- @param [in] eventRegMask Mask of asynchronous events the client is
- interested in receiving
- @param [in] eventIndCb Function to be invoked to handle an event.
- @param [in] respIndCb Function to be invoked to handle a response
- indication.
- @param [out] locClientHandle Handle to be used by the client
- for any subsequent requests.
-
- @return
- One of the following error codes:
- - eLOC_CLIENT_SUCCESS -- If the connection is opened.
- - non-zero error code(see locClientStatusEnumType)-- On failure.
-*/
-
-locClientStatusEnumType locClientOpen (
- locClientEventMaskType eventRegMask,
- const locClientCallbacksType* pLocClientCallbacks,
- locClientHandleType* pLocClientHandle,
- const void* pClientCookie)
-{
- int instanceId;
- locClientStatusEnumType status;
- int tries = 1;
-#ifdef _ANDROID_
- switch (getTargetGnssType(loc_get_target()))
- {
- case GNSS_GSS:
- instanceId = eLOC_CLIENT_INSTANCE_ID_GSS;
- break;
- case GNSS_QCA1530:
- instanceId = eLOC_CLIENT_INSTANCE_ID_QCA1530;
- break;
- case GNSS_MSM:
- instanceId = eLOC_CLIENT_INSTANCE_ID_MSM;
- break;
- case GNSS_MDM:
- instanceId = eLOC_CLIENT_INSTANCE_ID_MDM;
- break;
- case GNSS_AUTO:
- instanceId = eLOC_CLIENT_INSTANCE_ID_GSS_AUTO;
- break;
- default:
- instanceId = eLOC_CLIENT_INSTANCE_ID_ANY;
- break;
- }
-
- LOC_LOGI("%s:%d]: Service instance id is %d\n",
- __func__, __LINE__, instanceId);
-#else
- instanceId = eLOC_CLIENT_INSTANCE_ID_ANY;
-#endif
-
- while ((status = locClientOpenInstance(eventRegMask, instanceId, pLocClientCallbacks,
- pLocClientHandle, pClientCookie)) != eLOC_CLIENT_SUCCESS) {
- if (tries <= LOC_CLIENT_MAX_OPEN_RETRIES) {
- LOC_LOGE("%s:%d]: failed with status=%d on try %d",
- __func__, __LINE__, status, tries);
- tries++;
- sleep(LOC_CLIENT_TIME_BETWEEN_OPEN_RETRIES);
- } else {
- LOC_LOGE("%s:%d]: failed with status=%d Aborting...",
- __func__, __LINE__, status);
- break;
- }
- }
-
- return status;
-}
-
-/** locClientClose
- @brief Disconnects a client from the location engine.
- @param [in] pLocClientHandle Pointer to the handle returned by the
- locClientOpen() function.
- @return
- One of the following error codes:
- - 0 (eLOC_CLIENT_SUCCESS) - On success.
- - non-zero error code(see locClientStatusEnumType) - On failure.
-*/
-
-locClientStatusEnumType locClientClose(
- locClientHandleType* pLocClientHandle)
-{
- // convert handle to callback data
- locClientCallbackDataType *pCallbackData;
- qmi_client_error_type rc = QMI_NO_ERR; //No error
-
- if(NULL == pLocClientHandle)
- {
- // invalid handle
- LOC_LOGE("%s:%d]: invalid pointer to handle \n",
- __func__, __LINE__);
-
- return(eLOC_CLIENT_FAILURE_INVALID_PARAMETER);
- }
-
- pCallbackData = (locClientCallbackDataType *)(*pLocClientHandle);
-
- // check the input handle for sanity
- if(NULL == pCallbackData ||
- NULL == pCallbackData->userHandle ||
- pCallbackData != pCallbackData->pMe )
- {
- // invalid handle
- LOC_LOGE("%s:%d]: invalid handle \n",
- __func__, __LINE__);
-
- return(eLOC_CLIENT_FAILURE_INVALID_HANDLE);
- }
-
- LOC_LOGV("locClientClose releasing handle %p, user handle %p\n",
- *pLocClientHandle, pCallbackData->userHandle );
-
- // NEXT call goes out to modem. We log the callflow before it
- // actually happens to ensure the this comes before resp callflow
- // back from the modem, to avoid confusing log order. We trust
- // that the QMI framework is robust.
- EXIT_LOG_CALLFLOW(%s, "loc client close");
-
- // release the handle
- rc = qmi_client_release(pCallbackData->userHandle);
- if(QMI_NO_ERR != rc )
- {
- LOC_LOGW("%s:%d]: qmi_client_release error %d for client %p\n",
- __func__, __LINE__, rc, pCallbackData->userHandle);
- return(eLOC_CLIENT_FAILURE_INTERNAL);
- }
-
- /* clear the memory allocated to callback data to minimize the chances
- * of a race condition occurring between close and the indication
- * callback
- */
- memset(pCallbackData, 0, sizeof(*pCallbackData));
-
- // free the memory assigned in locClientOpen
- free(pCallbackData);
- pCallbackData= NULL;
-
- // set the handle to invalid value
- *pLocClientHandle = LOC_CLIENT_INVALID_HANDLE_VALUE;
- return eLOC_CLIENT_SUCCESS;
-}
-
-/** locClientSendReq
- @brief Sends a message to the location engine. If the locClientSendMsg()
- function is successful, the client should expect an indication
- (except start, stop, event reg and sensor injection messages),
- through the registered callback in the locOpen() function. The
- indication will contain the status of the request and if status is a
- success, indication also contains the payload
- associated with response.
- @param [in] handle Handle returned by the locClientOpen()
- function.
- @param [in] reqId message ID of the request
- @param [in] reqPayload Payload of the request, can be NULL
- if request has no payload
-
- @return
- One of the following error codes:
- - 0 (eLOC_CLIENT_SUCCESS ) - On success.
- - non-zero error code (see locClientStatusEnumType) - On failure.
-*/
-
-locClientStatusEnumType locClientSendReq(
- locClientHandleType handle,
- uint32_t reqId,
- locClientReqUnionType reqPayload )
-{
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- qmi_client_error_type rc = QMI_NO_ERR; //No error
- qmiLocGenRespMsgT_v02 resp;
- uint32_t reqLen = 0;
- void *pReqData = NULL;
- locClientCallbackDataType *pCallbackData =
- (locClientCallbackDataType *)handle;
-
- // check the input handle for sanity
- if(NULL == pCallbackData ||
- NULL == pCallbackData->userHandle ||
- pCallbackData != pCallbackData->pMe )
- {
- // did not find the handle in the client List
- LOC_LOGE("%s:%d]: invalid handle \n",
- __func__, __LINE__);
-
- return(eLOC_CLIENT_FAILURE_INVALID_HANDLE);
- }
-
- // validate that the request is correct
- if (validateRequest(reqId, reqPayload, &pReqData, &reqLen) == false)
- {
-
- LOC_LOGE("%s:%d] error invalid request\n", __func__,
- __LINE__);
-
- return(eLOC_CLIENT_FAILURE_INVALID_PARAMETER);
- }
-
- LOC_LOGV("%s:%d] sending reqId= %d, len = %d\n", __func__,
- __LINE__, reqId, reqLen);
-
- // NEXT call goes out to modem. We log the callflow before it
- // actually happens to ensure the this comes before resp callflow
- // back from the modem, to avoid confusing log order. We trust
- // that the QMI framework is robust.
- EXIT_LOG_CALLFLOW(%s, loc_get_v02_event_name(reqId));
- rc = qmi_client_send_msg_sync(
- pCallbackData->userHandle,
- reqId,
- pReqData,
- reqLen,
- &resp,
- sizeof(resp),
- LOC_CLIENT_ACK_TIMEOUT);
-
- LOC_LOGV("%s:%d] qmi_client_send_msg_sync returned %d\n", __func__,
- __LINE__, rc);
-
- if (QMI_SERVICE_ERR == rc)
- {
- LOC_LOGE("%s:%d]: send_msg_sync error: QMI_SERVICE_ERR\n",__func__, __LINE__);
- return(eLOC_CLIENT_FAILURE_PHONE_OFFLINE);
- }
- else if (rc != QMI_NO_ERR)
- {
- LOC_LOGE("%s:%d]: send_msg_sync error: %d\n",__func__, __LINE__, rc);
- return(eLOC_CLIENT_FAILURE_INTERNAL);
- }
-
- // map the QCCI response to Loc API v02 status
- status = convertQmiResponseToLocStatus(&resp);
-
- // if the request is to change registered events, update the
- // loc api copy of that
- if(eLOC_CLIENT_SUCCESS == status &&
- QMI_LOC_REG_EVENTS_REQ_V02 == reqId)
- {
- if(NULL != reqPayload.pRegEventsReq )
- {
- pCallbackData->eventRegMask =
- (locClientEventMaskType)(reqPayload.pRegEventsReq->eventRegMask);
- }
- }
- return(status);
-}
-
-/** locClientSupportMsgCheck
- @brief Sends a QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02 message to the
- location engine, and then receives a list of all services supported
- by the engine. This function will check if the input service(s) form
- the client is in the list or not. If the locClientSupportMsgCheck()
- function is successful, the client should expect an result of
- the service is supported or not recorded in supportedMsg.
- @param [in] handle Handle returned by the locClientOpen()
- function.
- @param [in] supportedMsg an integer used to record which
- message is supported
-
- @return
- One of the following error codes:
- - 0 (eLOC_CLIENT_SUCCESS) -- On success.
- - Non-zero error code (see \ref locClientStatusEnumType) -- On failure.
-*/
-
-locClientStatusEnumType locClientSupportMsgCheck(
- locClientHandleType handle,
- const uint32_t* msgArray,
- uint32_t msgArrayLength,
- uint64_t* supportedMsg)
-{
-
- // set to true if one client has checked the modem capability.
- static bool isCheckedAlready = false;
- /*
- The 1st bit in supportedMsgChecked indicates if
- QMI_LOC_EVENT_GEOFENCE_BATCHED_BREACH_NOTIFICATION_IND_V02
- is supported or not;
- The 2ed bit in supportedMsgChecked indicates if
- QMI_LOC_GET_BATCH_SIZE_REQ_V02
- is supported or not;
- */
- static uint64_t supportedMsgChecked = 0;
-
- // Validate input arguments
- if(msgArray == NULL || supportedMsg == NULL) {
-
- LOC_LOGE("%s:%d]: Input argument/s NULL", __func__, __LINE__);
- return eLOC_CLIENT_FAILURE_INVALID_PARAMETER;
- }
-
- if (isCheckedAlready) {
- // already checked modem
- LOC_LOGV("%s:%d]: Already checked. The supportedMsgChecked is %" PRId64 "\n",
- __func__, __LINE__, supportedMsgChecked);
- *supportedMsg = supportedMsgChecked;
- return eLOC_CLIENT_SUCCESS;
- }
-
- locClientStatusEnumType status = eLOC_CLIENT_SUCCESS;
- qmi_client_error_type rc = QMI_NO_ERR; //No error
- qmiLocGetSupportMsgT_v02 resp;
-
- uint32_t reqLen = 0;
- void *pReqData = NULL;
- locClientCallbackDataType *pCallbackData =
- (locClientCallbackDataType *)handle;
-
- // check the input handle for sanity
- if( NULL == pCallbackData ||
- NULL == pCallbackData->userHandle ||
- pCallbackData != pCallbackData->pMe ) {
- // did not find the handle in the client List
- LOC_LOGE("%s:%d]: invalid handle \n",
- __func__, __LINE__);
-
- return eLOC_CLIENT_FAILURE_GENERAL;
- }
-
- // NEXT call goes out to modem. We log the callflow before it
- // actually happens to ensure the this comes before resp callflow
- // back from the modem, to avoid confusing log order. We trust
- // that the QMI framework is robust.
-
- EXIT_LOG_CALLFLOW(%s, loc_get_v02_event_name(QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02));
- rc = qmi_client_send_msg_sync(
- pCallbackData->userHandle,
- QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02,
- pReqData,
- reqLen,
- &resp,
- sizeof(resp),
- LOC_CLIENT_ACK_TIMEOUT);
-
- LOC_LOGV("%s:%d] qmi_client_send_msg_sync returned %d\n", __func__,
- __LINE__, rc);
-
- if (rc != QMI_NO_ERR)
- {
- LOC_LOGE("%s:%d]: send_msg_sync error: %d\n",__func__, __LINE__, rc);
- return eLOC_CLIENT_FAILURE_GENERAL;
- }
-
- // map the QCCI response to Loc API v02 status
- status = convertQmiResponseToLocStatus(&resp);
-
- if(eLOC_CLIENT_SUCCESS == status)
- {
- LOC_LOGV("%s:%d]eLOC_CLIENT_SUCCESS == status\n", __func__, __LINE__);
-
- // check every message listed in msgArray supported by modem or not
- checkQmiMsgsSupported(msgArray, msgArrayLength, &resp, &supportedMsgChecked);
-
- LOC_LOGV("%s:%d]: supportedMsgChecked is %" PRId64 "\n",
- __func__, __LINE__, supportedMsgChecked);
- *supportedMsg = supportedMsgChecked;
- isCheckedAlready = true;
- return status;
- } else {
-
- LOC_LOGE("%s:%d]: convertQmiResponseToLocStatus error: %d\n",
- __func__, __LINE__, status);
- return eLOC_CLIENT_FAILURE_GENERAL;
- }
-}
-
-/** locClientGetSizeByRespIndId
- * @brief Get the size of the response indication structure,
- * from a specified id
- * @param [in] respIndId
- * @param [out] pRespIndSize
- * @return true if resp ID was found; else false
-*/
-
-bool locClientGetSizeByRespIndId(uint32_t respIndId, size_t *pRespIndSize)
-{
- size_t idx = 0, respIndTableSize = 0;
-
- // Validate input arguments
- if(pRespIndSize == NULL)
- {
- LOC_LOGE("%s:%d]: size argument NULL !");
- return false;
- }
-
- respIndTableSize = (sizeof(locClientRespIndTable)/sizeof(locClientRespIndTableStructT));
- for(idx=0; idx
-#include
-
-#include "location_service_v02.h" //QMI LOC Service data types definitions
-
-#include
-
-/******************************************************************************
- * Constants and configuration
- *****************************************************************************/
-
-/** @ingroup constants_macros
- Specific value of #locClientHandleType, indicating an invalid handle. */
-#define LOC_CLIENT_INVALID_HANDLE_VALUE (NULL)
-
-
-/** @addtogroup data_types
-@{ */
-
-/** Location client handle used to represent a specific client. Negative values
- are invalid handles.
-*/
-typedef void* locClientHandleType;
-
-/** Data type for events and event masks. */
-typedef uint64_t locClientEventMaskType;
-
-/** Location client status values.
-*/
-typedef enum
-{
- eLOC_CLIENT_SUCCESS = 0,
- /**< Request was successful. */
-
- eLOC_CLIENT_FAILURE_GENERAL = 1,
- /**< Failed because of a general failure. */
-
- eLOC_CLIENT_FAILURE_UNSUPPORTED = 2,
- /**< Failed because the service does not support the command. */
-
- eLOC_CLIENT_FAILURE_INVALID_PARAMETER = 3,
- /**< Failed because the request contained invalid parameters. */
-
- eLOC_CLIENT_FAILURE_ENGINE_BUSY = 4,
- /**< Failed because the engine is busy. */
-
- eLOC_CLIENT_FAILURE_PHONE_OFFLINE = 5,
- /**< Failed because the phone is offline. */
-
- eLOC_CLIENT_FAILURE_TIMEOUT = 6,
- /**< Failed because of a timeout. */
-
- eLOC_CLIENT_FAILURE_SERVICE_NOT_PRESENT = 7,
- /**< Failed because the service is not present. */
-
- eLOC_CLIENT_FAILURE_SERVICE_VERSION_UNSUPPORTED = 8,
- /**< Failed because the service version is unsupported. */
-
- eLOC_CLIENT_FAILURE_CLIENT_VERSION_UNSUPPORTED = 9,
- /**< Failed because the service does not support client version. */
-
- eLOC_CLIENT_FAILURE_INVALID_HANDLE = 10,
- /**< Failed because an invalid handle was specified. */
-
- eLOC_CLIENT_FAILURE_INTERNAL = 11,
- /**< Failed because of an internal error in the service. */
-
- eLOC_CLIENT_FAILURE_NOT_INITIALIZED = 12,
- /**< Failed because the service has not been initialized. */
-
- eLOC_CLIENT_FAILURE_NOT_ENOUGH_MEMORY = 13
- /**< Failed because there is not enough memory to do the operation. */
-
-}locClientStatusEnumType;
-
-/** Location client error values
-*/
-typedef enum
-{
- eLOC_CLIENT_ERROR_SERVICE_UNAVAILABLE = 1
- /**< Service is no longer available. Upon getting this error, the client
- must close the existing connection and reopen the connection. */
-
-}locClientErrorEnumType;
-
-
-/** Request messages the client can send to the location engine.
-
- The following requests do not have any data associated, so they do not have a
- payload structure defined:
-
- - GetServiceRevision
- - GetFixCriteria
- - GetPredictedOrbitsDataSource
- - GetPredictedOrbitsDataValidity
- - GetEngineLock
- - GetSbasConfigReq
- - GetRegisteredEvents
- - GetNmeaTypes
- - GetLowPowerMode
- - GetXtraTSessionControl
- - GetRegisteredEvents
- - GetOperationMode
- - GetCradleMountConfig
- - GetExternalPowerConfig
- - GetSensorControlConfig
- - GetSensorPerformanceControlConfiguration
- - WWANOutOfServiceNotification
-*/
-typedef union
-{
- const qmiLocInformClientRevisionReqMsgT_v02* pInformClientRevisionReq;
- /**< Notifies the service about the revision the client is using.
-
- The client does not receive any indications corresponding to this
- request.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INFORM_CLIENT_REVISION_REQ_V02. */
-
- const qmiLocRegEventsReqMsgT_v02* pRegEventsReq;
- /**< Changes the events the client is interested in receiving.
-
- The client does not receive any indications corresponding to this
- request.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_REG_EVENTS_REQ_V02. */
-
- const qmiLocStartReqMsgT_v02* pStartReq;
- /**< Starts a positioning session.
-
- The client receives the following indications: position report,
- satellite report, fix session report, and NMEA report (if applicable).
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_START_REQ_V02. */
-
- const qmiLocStopReqMsgT_v02* pStopReq;
- /**< Stops a positioning session. The client receives a fix session report
- denoting that the fix session ended after this message was sent.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_STOP_REQ_V02. */
-
- const qmiLocNiUserRespReqMsgT_v02* pNiUserRespReq;
- /**< Informs the service about the user response for a network-initiated call.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_NI_USER_RESPONSE_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_NI_USER_RESPONSE_REQ_V02. */
-
- const qmiLocInjectPredictedOrbitsDataReqMsgT_v02* pInjectPredictedOrbitsDataReq;
- /**< Injects the predicted orbits data into the service.
-
- When all predicted orbits data parts have been injected, the client
- receives the following indication containing a response:
- QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_IND_V02.
-
- The client injects successive data parts without waiting for this
- indication as long as locClientSendReq() returns successfully.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02. */
-
- const qmiLocInjectUtcTimeReqMsgT_v02* pInjectUtcTimeReq;
- /**< Injects UTC time into the service.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_UTC_TIME_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_UTC_TIME_REQ_V02. */
-
- const qmiLocInjectPositionReqMsgT_v02* pInjectPositionReq;
- /**< Injects a position into the service.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_POSITION_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_POSITION_REQ_V02. */
-
- const qmiLocSetEngineLockReqMsgT_v02* pSetEngineLockReq;
- /**< Sets the location engine lock.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_ENGINE_LOCK_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_ENGINE_LOCK_REQ_V02. */
-
- const qmiLocSetSbasConfigReqMsgT_v02* pSetSbasConfigReq;
- /**< Sets the SBAS configuration.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_SBAS_CONFIG_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_SBAS_CONFIG_REQ_V02 . */
-
- const qmiLocSetNmeaTypesReqMsgT_v02* pSetNmeaTypesReq;
- /**< Sets the NMEA types configuration.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_NMEA_TYPES_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_NMEA_TYPES_REQ_V02. */
-
- const qmiLocSetLowPowerModeReqMsgT_v02* pSetLowPowerModeReq;
- /**< Sets the Low Power mode configuration.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_LOW_POWER_MODE_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_LOW_POWER_MODE_REQ_V02. */
-
- const qmiLocSetServerReqMsgT_v02* pSetServerReq;
- /**< Sets the A-GPS server type and address.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_SERVER_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_SERVER_REQ_V02. */
-
- const qmiLocGetServerReqMsgT_v02* pGetServerReq;
- /**< Gets the A-GPS server type and address.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_GET_SERVER_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_GET_SERVER_REQ_V02. */
-
- const qmiLocDeleteAssistDataReqMsgT_v02* pDeleteAssistDataReq;
- /**< Deletes the aiding data from the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_DELETE_ASSIST_DATA_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_DELETE_ASSIST_DATA_REQ_V02. */
-
- const qmiLocInjectApCacheDataReqMsgT_v02 *pInjectApCacheDataReq;
- /**< Inject APcache data into the engine
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_APCACHE_DATA_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_APCACHE_DATA_REQ_V02. */
-
- const qmiLocInjectApDoNotCacheDataReqMsgT_v02 *pInjectApDoNotCacheDataReq;
- /**< Inject blacklist-Apcache data into the engine
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_DONOTAPCACHE_DATA_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_DONOTAPCACHE_DATA_REQ_V02. */
-
-
- const qmiLocSetXtraTSessionControlReqMsgT_v02* pSetXtraTSessionControlReq;
- /**< Sets XTRA-T session control in the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_XTRA_T_SESSION_CONTROL_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_XTRA_T_SESSION_CONTROL_REQ_V02. */
-
- const qmiLocInjectWifiPositionReqMsgT_v02* pInjectWifiPositionReq;
- /**< Injects a WiFi position into the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_WIFI_POSITION_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_WIFI_POSITION_REQ_V02. */
-
- const qmiLocNotifyWifiStatusReqMsgT_v02* pNotifyWifiStatusReq;
- /**< Notifies the engine about the WiFi status.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_NOTIFY_WIFI_STATUS_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_NOTIFY_WIFI_STATUS_REQ_V02. */
-
- const qmiLocSetOperationModeReqMsgT_v02* pSetOperationModeReq;
- /**< Sets the engine Operation mode.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_OPERATION_MODE_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_OPERATION_MODE_REQ_V02. */
-
- const qmiLocSetSpiStatusReqMsgT_v02* pSetSpiStatusReq;
- /**< Sends the stationary position status to the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_SPI_STATUS_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_SPI_STATUS_REQ_V02. */
-
- const qmiLocInjectSensorDataReqMsgT_v02* pInjectSensorDataReq;
- /**< Injects sensor data into the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_SENSOR_DATA_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_SENSOR_DATA_REQ_V02. */
-
- const qmiLocInjectTimeSyncDataReqMsgT_v02* pInjectTimeSyncReq;
- /**< Injects time synchronization information into the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_TIME_SYNC_DATA_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_TIME_SYNC_DATA_REQ_V02. */
-
- const qmiLocSetCradleMountConfigReqMsgT_v02* pSetCradleMountConfigReq;
- /**< Sets the cradle mount state information in the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- SET_CRADLE_MOUNT_CONFIG_REQ_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- SET_CRADLE_MOUNT_CONFIG_IND_V02. */
-
- const qmiLocSetExternalPowerConfigReqMsgT_v02* pSetExternalPowerConfigReq;
- /**< Sets external power configuration state in the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_EXTERNAL_POWER_CONFIG_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_EXTERNAL_POWER_CONFIG_REQ_V02. */
-
- const qmiLocInformLocationServerConnStatusReqMsgT_v02*
- pInformLocationServerConnStatusReq;
- /**< Informs the engine about the connection status to the location server.
-
- This can be sent in response to a
- QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02 request. The
- service sends back a QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02
- response indication for this request.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02. */
-
- const qmiLocSetProtocolConfigParametersReqMsgT_v02*
- pSetProtocolConfigParametersReq;
- /**< Sets the protocol configuration parameters in the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02. */
-
- const qmiLocGetProtocolConfigParametersReqMsgT_v02*
- pGetProtocolConfigParametersReq;
- /**< Retrieves protocol configuration parameters from the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02. */
-
- const qmiLocSetSensorControlConfigReqMsgT_v02*
- pSetSensorControlConfigReq;
- /**< Sets the sensor control configuration parameters in the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02. */
-
- const qmiLocSetSensorPerformanceControlConfigReqMsgT_v02*
- pSetSensorPerformanceControlConfigReq;
- /**< Sets the sensor performance configuration parameters in the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02. */
-
- const qmiLocGetSensorPropertiesReqMsgT_v02* pGetSensorPropertiesReq;
- /**< Retrieves the sensor properties from the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_GET_SENSOR_PROPERTIES_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_GET_SENSOR_PROPERTIES_REQ_V02. */
-
- const qmiLocSetSensorPropertiesReqMsgT_v02* pSetSensorPropertiesReq;
- /**< Sets the sensor properties in the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_SENSOR_PROPERTIES_REQ_V02. */
-
- const qmiLocInjectSuplCertificateReqMsgT_v02* pInjectSuplCertificateReq;
- /**< Injects a SUPL certificate into the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02. */
-
- const qmiLocDeleteSuplCertificateReqMsgT_v02* pDeleteSuplCertificateReq;
- /**< Deletes a SUPL certificate from the engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_DELETE_SUPL_CERTIFICATE_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_DELETE_SUPL_CERTIFICATE_REQ_V02. */
-
- const qmiLocSetPositionEngineConfigParametersReqMsgT_v02*
- pSetPositionEngineConfigParametersReq;
- /**< Sets position engine configuration.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_IND _V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02. */
-
- const qmiLocGetPositionEngineConfigParametersReqMsgT_v02*
- pGetPositionEngineConfigParametersReq;
- /**< Gets position engine configuration.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02. */
-
- const qmiLocAddCircularGeofenceReqMsgT_v02* pAddCircularGeofenceReq;
- /**< Adds a circular geofence.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_ADD_CIRCULAR_GEOFENCE_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_ADD_CIRCULAR_GEOFENCE_REQ_V02 */
-
- const qmiLocDeleteGeofenceReqMsgT_v02* pDeleteGeofenceReq;
- /**< Deletes a geofence.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_DELETE_GEOFENCE_IND_V02.
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_DELETE_GEOFENCE_REQ_V02 */
-
- const qmiLocQueryGeofenceReqMsgT_v02* pQueryGeofenceReq;
- /**< Queries a geofence.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_QUERY_GEOFENCE_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_QUERY_GEOFENCE_REQ_V02. */
-
- const qmiLocEditGeofenceReqMsgT_v02* pEditGeofenceReq;
- /**< Edits geofence parameters.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_EDIT_GEOFENCE_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_EDIT_GEOFENCE_REQ_V02. */
-
- const qmiLocGetBestAvailablePositionReqMsgT_v02*
- pGetBestAvailablePositionReq;
- /**< Get the best available position from location engine
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02. @newpagetable */
-
- const qmiLocSecureGetAvailablePositionReqMsgT_v02*
- pSecureGetBestAvailablePositionReq;
- /**< Get the best available position from location engine
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02. @newpagetable */
-
- const qmiLocInjectMotionDataReqMsgT_v02* pInjectMotionDataReq;
- /**< Inject motion data in the location engine
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_MOTION_DATA_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_MOTION_DATA_REQ_V02 */
-
- const qmiLocGetNiGeofenceIdListReqMsgT_v02* pGetNiGeofenceIdListReq;
- /**< Get the list of Network Initiated Geofences from the location engine.
-
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_GET_NI_GEOFENCE_ID_LIST_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_GET_NI_GEOFENCE_ID_LIST_REQ_V02 */
-
- const qmiLocInjectGSMCellInfoReqMsgT_v02 *pInjectGSMCellInfoReq;
- /**< Inject GSM Cell Information into the location engine.
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_GSM_CELL_INFO_REQ_V02 */
-
- const qmiLocInjectNetworkInitiatedMessageReqMsgT_v02
- *pInjectNetworkInitiatedMessageReq;
- /**< Inject Network Initiated Message into the location engine.
- If the request is accepted by the service, the client receives the
- following indication containing a response:
- QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- 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 */
-
- const qmiLocInjectWCDMACellInfoReqMsgT_v02 *pInjectWCDMACellInfoReq;
- const qmiLocInjectTDSCDMACellInfoReqMsgT_v02 *pInjectTDSCDMACellInfoReq;
- const qmiLocInjectSubscriberIDReqMsgT_v02 *pInjectSubscriberIDReq;
- const qmiLocInjectWifiApDataReqMsgT_v02 *pInjectWifiApDataReq;
- const qmiLocNotifyWifiAttachmentStatusReqMsgT_v02 *pNotifyWifiAttachmentStatusReq;
- const qmiLocNotifyWifiEnabledStatusReqMsgT_v02 *pNotifyWifiEnabledStatusReq;
-
- const qmiLocReadFromBatchReqMsgT_v02 *pReadFromBatchReq;
- const qmiLocGetBatchSizeReqMsgT_v02 *pGetBatchSizeReq;
- const qmiLocStartBatchingReqMsgT_v02 *pStartBatchingReq;
- const qmiLocStopBatchingReqMsgT_v02 *pStopBatchingReq;
- const qmiLocReleaseBatchReqMsgT_v02 *pReleaseBatchReq;
-
- const qmiLocInjectVehicleSensorDataReqMsgT_v02 *pInjectVehicleSensorDataReq;
-
- /**< Send vehicle sensor data to the location engine. If the request is
- accepted by the service, the client receives the following
- indication containing a response:
- QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_IND_V02
-
- To send this request, set the reqId field in locClientSendReq() to
- QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_REQ_V02 */
-
- const qmiLocSetPremiumServicesCfgReqMsgT_v02 *pSetPremiumServicesCfgReq;
- /*QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_REQ_V02*/
-
- const qmiLocGetAvailWwanPositionReqMsgT_v02 *pGetAvailWwanPositionReq;
- /*QMI_LOC_GET_AVAILABLE_WWAN_POSITION_REQ_V02*/
-
- const qmiLocSetXtraVersionCheckReqMsgT_v02 *pSetXtraVersionCheckReq;
-
- const qmiLocGdtUploadBeginStatusReqMsgT_v02* pGdtUploadBeginStatusReq;
- /* QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_REQ_V02 */
-
- const qmiLocGdtUploadEndReqMsgT_v02* pGdtUploadEndReq;
- /* QMI_LOC_GDT_UPLOAD_END_REQ_V02*/
-
- const qmiLocInjectGtpClientDownloadedDataReqMsgT_v02 *pInjectGtpClientDownloadedDataReq;
- /* QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_REQ_V02 */
-
- const qmiLocSetGNSSConstRepConfigReqMsgT_v02 *pSetGNSSConstRepConfigReq;
- /*QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02*/
-
- const qmiLocStartDbtReqMsgT_v02 *pStartDbtReq;
- /*QMI_LOC_START_DBT_REQ_V02*/
-
- const qmiLocStopDbtReqMsgT_v02 *pStopDbtReq;
- /*QMI_LOC_STOP_DBT_REQ_V02*/
-
- const qmiLocInjectTimeZoneInfoReqMsgT_v02 *pInjectTimeZoneInfoReq;
- /*QMI_LOC_INJECT_TIME_ZONE_INFO*/
-
- const qmiLocQueryAonConfigReqMsgT_v02 *pQueryAonConfigReq;
- /*QMI_LOC_QUERY_AON_CONFIG_REQ_V02*/
-
- const qmiLocGetSupportedFeatureReqMsgT_v02 *pGetSupportedFeatureReq;
- /* QMI_LOC_GET_SUPPORTED_FEATURE_REQ_V02*/
-
- const qmiLocGtpApStatusReqMsgT_v02* pGtpApStatusReq;
- /* QMI_LOC_GTP_AP_STATUS_REQ_V02 */
-
- const qmiLocGdtDownloadBeginStatusReqMsgT_v02* pGdtDownloadBeginStatusReq;
- /* QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_REQ_V02 */
-
- const qmiLocGdtDownloadReadyStatusReqMsgT_v02* pGdtDownloadReadyStatusReq;
- /* QMI_LOC_GDT_DOWNLOAD_READY_STATUS_REQ_V02 */
-
- const qmiLocGdtReceiveDoneStatusReqMsgT_v02* pGdtReceiveDoneStatusReq;
- /* QMI_LOC_GDT_RECEIVE_DONE_STATUS_REQ_V02 */
-
- const qmiLocGdtDownloadEndStatusReqMsgT_v02* pGdtDownloadEndStatusReq;
- /* QMI_LOC_GDT_DOWNLOAD_END_STATUS_REQ_V02*/
-
- const qmiLocDeleteGNSSServiceDataReqMsgT_v02* pDeleteGNSSServiceDataReq;
- /* QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02*/
-
- // XTRA Client 2.0
- const qmiLocInjectXtraDataReqMsgT_v02 *pInjectXtraDataReq;
- /*QMI_LOC_INJECT_XTRA_DATA_REQ_V02*/
-
- const qmiLocInjectXtraPcidReqMsgT_v02 *pInjectXtraPcidReq;
- /*QMI_LOC_INJECT_XTRA_PCID_REQ_V02*/
-}locClientReqUnionType;
-
-
-/** Event indications that are sent by the service.
-*/
-typedef union
-{
- const qmiLocEventPositionReportIndMsgT_v02* pPositionReportEvent;
- /**< Contains the position information.
-
- This event is generated after QMI_LOC_START_REQ_V02 is sent. If
- periodic fix criteria is specified, this event is generated multiple
- times periodically at the specified rate until QMI_LOC_STOP_REQ_V02 is
- sent.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_POSITION_REPORT_IND_V02. */
-
- const qmiLocEventGnssSvInfoIndMsgT_v02* pGnssSvInfoReportEvent;
- /**< Contains the GNSS satellite information.
-
- This event is generated after QMI_LOC_START_REQ_V02 is sent. This event
- is generated at 1 Hz if the location engine is tracking satellites to
- make a location fix.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GNSS_INFO_IND_V02. */
-
- const qmiLocEventNmeaIndMsgT_v02* pNmeaReportEvent;
- /**< Contains an NMEA report sentence.
-
- The entire NMEA report consisting of multiple sentences is sent at a
- 1 Hz rate. This event is generated after QMI_LOC_START_REQ_V02 is sent.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_NMEA_IND_V02. */
-
- const qmiLocEventNiNotifyVerifyReqIndMsgT_v02* pNiNotifyVerifyReqEvent;
- /**< Notifies a location client when the network triggers a positioning
- request to the mobile.
-
- Upon getting this event, the location client displays the
- network-initiated fix request in a dialog and prompts the user to
- accept or deny the request. The client responds to this request with
- the message QMI_LOC_NI_USER_RESPONSE_REQ_V02.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02. */
-
- const qmiLocEventInjectTimeReqIndMsgT_v02* pInjectTimeReqEvent;
- /**< Asks the client for time assistance.
-
- The client responds to this request with the message
- QMI_LOC_INJECT_UTC_TIME_REQ_V02.
-
- The eventIndId field in the event indication callback is
- set to QMI_LOC_EVENT_INJECT_TIME_REQ_IND_V02. */
-
- const qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02*
- pInjectPredictedOrbitsReqEvent;
- /**< Asks the client for predicted orbits data assistance.
-
- The client responds to this request with the message
- QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_IND_V02. */
-
- const qmiLocEventInjectPositionReqIndMsgT_v02* pInjectPositionReqEvent;
- /**< Asks the client for position assistance.
-
- The client responds to this request with the message
- QMI_LOC_INJECT_POSITION_REQ_V02.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02. */
-
- const qmiLocEventEngineStateIndMsgT_v02* pEngineState;
- /**< Sent by the engine whenever it turns on or off.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_ENGINE_STATE_IND_V02. */
-
- const qmiLocEventFixSessionStateIndMsgT_v02* pFixSessionState;
- /**< Sent by the engine when a location session begins or ends.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_FIX_SESSION_STATE_IND_V02. */
-
- const qmiLocEventWifiReqIndMsgT_v02* pWifiReqEvent;
- /**< Sent by the engine when it needs WiFi support.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_WIFI_REQ_IND_V02. */
-
- const qmiLocEventSensorStreamingReadyStatusIndMsgT_v02*
- pSensorStreamingReadyStatusEvent;
- /**< Notifies the client that the engine is ready to accept sensor data.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_IND_V02. */
-
- const qmiLocEventTimeSyncReqIndMsgT_v02* pTimeSyncReqEvent;
- /**< Sent by the engine when it needs to synchronize its time with the sensor
- processor time.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_TIME_SYNC_REQ_IND_V02. */
-
- const qmiLocEventSetSpiStreamingReportIndMsgT_v02*
- pSetSpiStreamingReportEvent;
- /**< Asks the client to start/stop sending a Stationary Position Indicator
- (SPI) stream.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_SET_SPI_STREAMING_REPORT_IND_V02. */
-
- const qmiLocEventLocationServerConnectionReqIndMsgT_v02*
- pLocationServerConnReqEvent;
- /**< Sent by the engine to ask the client to open or close a connection to
- a location server.
-
- The client responds to this request by sending the
- QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02 message.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02. */
-
- const qmiLocEventNiGeofenceNotificationIndMsgT_v02*
- pNiGeofenceNotificationEvent;
- /**< Sent by the engine to notify the client about changes to a
- network-initiated geofence.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_NI_GEOFENCE_NOTIFICATION_IND_V02. */
-
- const qmiLocEventGeofenceGenAlertIndMsgT_v02* pGeofenceGenAlertEvent;
- /**< Sent by the engine to notify the client about updates that may
- affect a geofence operation.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GEOFENCE_GEN_ALERT_IND_V02. */
-
- const qmiLocEventGeofenceBreachIndMsgT_v02* pGeofenceBreachEvent;
- /**< Sent by the engine to notify the client about a geofence breach
- event.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_IND_V02. @newpagetable */
-
- const qmiLocEventGeofenceBatchedBreachIndMsgT_v02* pGeofenceBatchedBreachEvent;
- /**< Sent by the engine to notify the client about a geofence breach
- event.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GEOFENCE_BATCHED_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 */
-
- const qmiLocEventInjectWifiApDataReqIndMsgT_v02* pWifiApDataReqEvent;
- const qmiLocEventLiveBatchedPositionReportIndMsgT_v02* pBatchPositionReportEvent;
- /**< Sent by the engine to notify the client that live batch location
- is ready, and the location info.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_LIVE_BATCHED_POSITION_REPORT_IND_V02. */
-
- const qmiLocEventBatchFullIndMsgT_v02* pBatchCount;
- /**< Sent by the engine to notify the client that batch location is
- full, and how many location are available to read.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_BATCH_FULL_IND_V02. */
-
- const qmiLocEventVehicleDataReadyIndMsgT_v02* pVehicleDataReadyEvent;
- /**< Sent by the engine to recommend how vehicle sensor data is
- sent to the location engine.
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_VEHICLE_DATA_READY_STATUS_IND_V02. @newpagetable */
-
- const qmiLocEventGeofenceProximityIndMsgT_v02* pGeofenceProximityEvent;
- /**< Sent by the engine to notify the client about a geofence proximity
- event.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GEOFENCE_PROXIMITY_NOTIFICATION_IND_V02. @newpagetable */
-
- const qmiLocEventGnssSvMeasInfoIndMsgT_v02* pGnssSvRawInfoEvent;
-
- /**< Sent by the engine when GNSS measurements are available
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02. @newpagetable */
-
- const qmiLocEventGnssSvPolyIndMsgT_v02* pGnssSvPolyInfoEvent;
-
- /**< Sent by the engine when GNSS measurements are available
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_SV_POLYNOMIAL_REPORT_IND_V02. @newpagetable */
-
- const qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02* pGdtUploadBeginEvent;
- /**< Sent by the engine to notify the client about a GDT upload
- begine event.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GDT_UPLOAD_BEGIN_STATUS_REQ_IND_V02. @newpagetable */
-
- const qmiLocEventGdtUploadEndReqIndMsgT_v02* pGdtUploadEndEvent;
- /**< Sent by the engine to notify the client about a GDT upload
- end event.
-
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_GDT_UPLOAD_END_REQ_IND_V02. @newpagetable */
-
- const qmiLocEventDbtPositionReportIndMsgT_v02 *pDbtPositionReportEvent;
- /**< Sent by the engine to notify the client of a distance based
- tracking position report.
- QMI_LOC_EVENT_DBT_POSITION_REPORT_IND_V02*/
-
- const qmiLocEventDbtSessionStatusIndMsgT_v02 *pDbtSessionStatusEvent;
- /**< Sent by the engine to notify the client of the status of the
- DBT session.
- QMI_LOC_EVENT_DBT_SESSION_STATUS_IND_V02*/
-
- const qmiLocEventGeofenceBatchedDwellIndMsgT_v02 *pGeofenceBatchedDwellEvent;
- /**< Sent by the engine to notify the client of the dwell time inside
- or outside of a Geofence for a specified time.
- QMI_LOC_EVENT_GEOFENCE_BATCHED_DWELL_NOTIFICATION_IND_V02*/
-
- const qmiLocEventGetTimeZoneReqIndMsgT_v02 *pGetTimeZoneReqEvent;
- /**< Sent by the engine to request injection of time zone info
- QMI_LOC_EVENT_GET_TIME_ZONE_INFO_IND_V02>*/
-
- const qmiLocEventBatchingStatusIndMsgT_v02* pBatchingStatusEvent;
- /**< Sent by the engine to notify the control point of the batching status.
- The eventIndId field in the event indication callback is set to
- QMI_LOC_EVENT_BATCHING_STATUS_IND_V02. */
-
- const qmiLocEventGdtDownloadBeginReqIndMsgT_v02 *pGdtDownloadBeginReqEvent;
- /**< Sent by the engine to notify the client about a GDT download
- begin event.
- QMI_LOC_EVENT_GDT_DOWNLOAD_BEGIN_REQ_IND_V02. */
-
- const qmiLocEventGdtReceiveDoneIndMsgT_v02 *pGdtReceiveDoneEvent;
- /**< Sent by the engine to notify the client about a GDT download
- receive done event.
- QMI_LOC_EVENT_GDT_RECEIVE_DONE_IND_V02. */
-
- const qmiLocEventGdtDownloadEndReqIndMsgT_v02 *pGdtDownloadEndReqEvent;
- /**< Sent by the engine to notify the client about a GDT download
- end event.
- QMI_LOC_EVENT_GDT_DOWNLOAD_END_REQ_IND_V02. */
-
-}locClientEventIndUnionType;
-
-
-/** Response indications that are sent by the service.
-*/
-typedef union
-{
- const qmiLocGetServiceRevisionIndMsgT_v02* pGetServiceRevisionInd;
- /**< Response to the QMI_LOC_GET_SERVICE_REVISION_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_SERVICE_REVISION_IND_V02. */
-
- const qmiLocGetFixCriteriaIndMsgT_v02* pGetFixCriteriaInd;
- /**< Response to the QMI_LOC_GET_FIX_CRITERIA_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_FIX_CRITERIA_IND_V02. */
-
- const qmiLocNiUserRespIndMsgT_v02* pNiUserRespInd;
- /**< Response to the QMI_LOC_NI_USER_RESPONSE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_NI_USER_RESPONSE_IND_V02. */
-
- const qmiLocInjectPredictedOrbitsDataIndMsgT_v02*
- pInjectPredictedOrbitsDataInd;
- /**< Sent after a predicted orbits data part has been successfully injected.
-
- The client waits for this indication before injecting the next part.
- This indication is sent in response to
- QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_IND_V02. */
-
- const qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02*
- pGetPredictedOrbitsDataSourceInd;
- /**< Response to the QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_REQ_V02
- request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_IND_V02. */
-
- const qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02*
- pGetPredictedOrbitsDataValidityInd;
- /**< Response to the QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_REQ_V02
- request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_IND_V02. */
-
- const qmiLocInjectUtcTimeIndMsgT_v02* pInjectUtcTimeInd;
- /**< Response to the QMI_LOC_INJECT_UTC_TIME_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_UTC_TIME_IND_V02. */
-
- const qmiLocInjectPositionIndMsgT_v02* pInjectPositionInd;
- /**< Response to the QMI_LOC_INJECT_POSITION_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_POSITION_IND_V02. */
-
- const qmiLocSetEngineLockIndMsgT_v02* pSetEngineLockInd;
- /**< Response to the QMI_LOC_SET_ENGINE_LOCK_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_ENGINE_LOCK_IND_V02. */
-
- const qmiLocGetEngineLockIndMsgT_v02* pGetEngineLockInd;
- /**< Response to the QMI_LOC_GET_ENGINE_LOCK_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_ENGINE_LOCK_IND_V02. */
-
- const qmiLocSetSbasConfigIndMsgT_v02* pSetSbasConfigInd;
- /**< Response to the QMI_LOC_SET_SBAS_CONFIG_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_SBAS_CONFIG_IND_V02. */
-
- const qmiLocGetSbasConfigIndMsgT_v02* pGetSbasConfigInd;
- /**< Response to the QMI_LOC_GET_SBAS_CONFIG_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_SBAS_CONFIG_IND_V02. */
-
- const qmiLocSetNmeaTypesIndMsgT_v02* pSetNmeaTypesInd;
- /**< Response to the QMI_LOC_SET_NMEA_TYPES_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_NMEA_TYPES_IND_V02. */
-
- const qmiLocGetNmeaTypesIndMsgT_v02* pGetNmeaTypesInd;
- /**< Response to the QMI_LOC_GET_NMEA_TYPES_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_NMEA_TYPES_IND_V02. */
-
- const qmiLocSetLowPowerModeIndMsgT_v02* pSetLowPowerModeInd;
- /**< Response to the QMI_LOC_SET_LOW_POWER_MODE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_LOW_POWER_MODE_IND_V02. */
-
- const qmiLocGetLowPowerModeIndMsgT_v02* pGetLowPowerModeInd;
- /**< Response to the QMI_LOC_GET_LOW_POWER_MODE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_LOW_POWER_MODE_IND_V02. */
-
- const qmiLocSetServerIndMsgT_v02* pSetServerInd;
- /**< Response to the QMI_LOC_SET_SERVER_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_SERVER_IND_V02. */
-
- const qmiLocGetServerIndMsgT_v02* pGetServerInd;
- /**< Response to the QMI_LOC_GET_SERVER_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_SERVER_IND_V02. */
-
- const qmiLocDeleteAssistDataIndMsgT_v02* pDeleteAssistDataInd;
- /**< Response to the QMI_LOC_DELETE_ASSIST_DATA_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_DELETE_ASSIST_DATA_IND_V02. */
-
- const qmiLocInjectApCacheDataIndMsgT_v02 *pInjectApCacheDataInd;
- /**< Response to the QMI_LOC_INJECT_APCACHE_DATA_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_APCACHE_DATA_IND_V02. */
-
- const qmiLocInjectApDoNotCacheDataIndMsgT_v02 *pInjectApDoNotCacheDataInd;
- /**< Response to the QMI_LOC_INJECT_DONOTAPCACHE_DATA_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_DONOTAPCACHE_DATA_IND_V02. */
-
- const qmiLocSetXtraTSessionControlIndMsgT_v02* pSetXtraTSessionControlInd;
- /**< Response to the QMI_LOC_SET_XTRA_T_SESSION_CONTROL_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_XTRA_T_SESSION_CONTROL_IND_V02. */
-
- const qmiLocGetXtraTSessionControlIndMsgT_v02* pGetXtraTSessionControlInd;
- /**< Response to the QMI_LOC_GET_XTRA_T_SESSION_CONTROL_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_XTRA_T_SESSION_CONTROL_IND_V02. */
-
- const qmiLocInjectWifiPositionIndMsgT_v02* pInjectWifiPositionInd;
- /**< Response to the QMI_LOC_INJECT_WIFI_POSITION_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_WIFI_POSITION_IND_V02. */
-
- const qmiLocNotifyWifiStatusIndMsgT_v02* pNotifyWifiStatusInd;
- /**< Response to the QMI_LOC_NOTIFY_WIFI_STATUS_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_NOTIFY_WIFI_STATUS_IND_V02. */
-
- const qmiLocGetRegisteredEventsIndMsgT_v02* pGetRegisteredEventsInd;
- /**< Response to the QMI_LOC_GET_REGISTERED_EVENTS_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_REGISTERED_EVENTS_IND_V02. */
-
- const qmiLocSetOperationModeIndMsgT_v02* pSetOperationModeInd;
- /**< Response to the QMI_LOC_SET_OPERATION_MODE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_OPERATION_MODE_IND_V02. */
-
- const qmiLocGetOperationModeIndMsgT_v02* pGetOperationModeInd;
- /**< Response to the QMI_LOC_GET_OPERATION_MODE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_OPERATION_MODE_IND_V02. */
-
- const qmiLocSetSpiStatusIndMsgT_v02* pSetSpiStatusInd;
- /**< Response to the QMI_LOC_SET_SPI_STATUS_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_SPI_STATUS_IND_V02. */
-
- const qmiLocInjectSensorDataIndMsgT_v02* pInjectSensorDataInd;
- /**< Response to the QMI_LOC_INJECT_SENSOR_DATA_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_SENSOR_DATA_IND_V02. */
-
- const qmiLocInjectTimeSyncDataIndMsgT_v02* pInjectTimeSyncDataInd;
- /**< Response to the QMI_LOC_INJECT_TIME_SYNC_DATA_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_TIME_SYNC_DATA_IND_V02. */
-
- const qmiLocSetCradleMountConfigIndMsgT_v02* pSetCradleMountConfigInd;
- /**< Response to the QMI_LOC_SET_CRADLE_MOUNT_CONFIG_IND_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_CRADLE_MOUNT_CONFIG_REQ_V02. */
-
- const qmiLocGetCradleMountConfigIndMsgT_v02* pGetCradleMountConfigInd;
- /**< Response to the QMI_LOC_GET_CRADLE_MOUNT_CONFIG_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_CRADLE_MOUNT_CONFIG_IND_V02. */
-
- const qmiLocSetExternalPowerConfigIndMsgT_v02* pSetExternalPowerConfigInd;
- /**< Response to the QMI_LOC_SET_EXTERNAL_POWER_CONFIG_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_EXTERNAL_POWER_CONFIG_IND_V02. */
-
- const qmiLocGetExternalPowerConfigIndMsgT_v02* pGetExternalPowerConfigInd;
- /**< Response to the QMI_LOC_GET_EXTERNAL_POWER_CONFIG_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_EXTERNAL_POWER_CONFIG_IND_V02. */
-
- const qmiLocInformLocationServerConnStatusIndMsgT_v02*
- pInformLocationServerConnStatusInd;
- /**< Response to the QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02
- request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02.*/
-
- const qmiLocSetProtocolConfigParametersIndMsgT_v02*
- pSetProtocolConfigParametersInd;
- /**< Response to the QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02. */
-
- const qmiLocGetProtocolConfigParametersIndMsgT_v02*
- pGetProtocolConfigParametersInd;
- /**< Response to the QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02. */
-
- const qmiLocSetSensorControlConfigIndMsgT_v02* pSetSensorControlConfigInd;
- /**< Response to the QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02.
- */
-
- const qmiLocGetSensorControlConfigIndMsgT_v02* pGetSensorControlConfigInd;
- /**< Response to the QMI_LOC_GET_SENSOR_CONTROL_CONFIG_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_SENSOR_CONTROL_CONFIG_IND_V02.
- */
-
- const qmiLocSetSensorPropertiesIndMsgT_v02* pSetSensorPropertiesInd;
- /**< Response to the QMI_LOC_SET_SENSOR_PROPERTIES_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02.
- */
-
- const qmiLocGetSensorPropertiesIndMsgT_v02* pGetSensorPropertiesInd;
- /**< Response to the QMI_LOC_GET_SENSOR_PROPERTIES_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_SENSOR_PROPERTIES_IND_V02.
- */
-
- const qmiLocSetSensorPerformanceControlConfigIndMsgT_v02*
- pSetSensorPerformanceControlConfigInd;
- /**< Response to the
- QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02. */
-
- const qmiLocGetSensorPerformanceControlConfigIndMsgT_v02*
- pGetSensorPerformanceControlConfigInd;
- /**< Response to the
- QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02. */
-
- const qmiLocInjectSuplCertificateIndMsgT_v02* pInjectSuplCertificateInd;
- /**< Response to the QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02. */
-
- const qmiLocDeleteSuplCertificateIndMsgT_v02* pDeleteSuplCertificateInd;
- /**< Response to the QMI_LOC_DELETE_SUPL_CERTIFICATE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_DELETE_SUPL_CERTIFICATE_IND_V02. */
-
- const qmiLocSetPositionEngineConfigParametersIndMsgT_v02*
- pSetPositionEngineConfigParametersInd;
- /**< Response to the QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02
- request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02. */
-
- const qmiLocGetPositionEngineConfigParametersIndMsgT_v02*
- pGetPositionEngineConfigParametersInd;
- /**< Response to the QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02
- request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02. */
-
- const qmiLocAddCircularGeofenceIndMsgT_v02* pAddCircularGeofenceInd;
- /**< Response to the QMI_LOC_ADD_CIRCULAR_GEOFENCE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_ADD_CIRCULAR_GEOFENCE_IND_V02. */
-
- const qmiLocDeleteGeofenceIndMsgT_v02* pDeleteGeofenceInd;
- /**< Response to the QMI_LOC_DELETE_GEOFENCE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_DELETE_GEOFENCE_IND_V02. */
-
- const qmiLocQueryGeofenceIndMsgT_v02* pQueryGeofenceInd;
- /**< Response to the QMI_LOC_QUERY_GEOFENCE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_QUERY_GEOFENCE_IND_V02. */
-
- const qmiLocEditGeofenceIndMsgT_v02* pEditGeofenceInd;
- /**< Response to the QMI_LOC_EDIT_GEOFENCE_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_EDIT_GEOFENCE_IND_V02. */
-
- const qmiLocGetBestAvailablePositionIndMsgT_v02*
- pGetBestAvailablePositionInd;
- /**< Response to the QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02. */
-
- const qmiLocSecureGetAvailablePositionIndMsgT_v02*
- pSecureGetBestAvailablePositionInd;
- /**< Response to the QMI_LOC_SECURE_GET_AVAILABLE_POSITION_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_V02. */
-
- const qmiLocInjectMotionDataIndMsgT_v02* pInjectMotionDataInd;
- /**< Response to the QMI_LOC_INJECT_MOTION_DATA_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_MOTION_DATA_IND_V02. */
-
- const qmiLocGetNiGeofenceIdListIndMsgT_v02* pGetNiGeofenceIdListInd;
- /**< Response to the QMI_LOC_GET_NI_GEOFENCE_ID_LIST_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_GET_NI_GEOFENCE_ID_LIST_IND_V02. */
-
- const qmiLocInjectGSMCellInfoIndMsgT_v02* pInjectGSMCellInfoInd;
- /**< Response to the QMI_LOC_INJECT_GSM_CELL_INFO_REQ_V02 request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02. */
-
- const qmiLocInjectNetworkInitiatedMessageIndMsgT_v02*
- pInjectNetworkInitiatedMessageInd;
-
- /**< Response to the QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_REQ_V02
- request.
-
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02. */
-
- const qmiLocWWANOutOfServiceNotificationIndMsgT_v02*
- pWWANOutOfServiceNotificationInd;
-
- /**< Response to the QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_REQ_V02
- request.
- 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. */
-
- const qmiLocInjectWCDMACellInfoIndMsgT_v02 *pInjectWCDMACellInfoInd;
- const qmiLocInjectTDSCDMACellInfoIndMsgT_v02 *pInjectTDSCDMACellInfoInd;
- const qmiLocInjectSubscriberIDIndMsgT_v02 *pInjectSubscriberIDInd;
- const qmiLocInjectWifiApDataIndMsgT_v02 *pInjectWifiApDataInd;
- const qmiLocNotifyWifiAttachmentStatusIndMsgT_v02 *pNotifyWifiAttachmentStatusInd;
- const qmiLocNotifyWifiEnabledStatusIndMsgT_v02 *pNotifyWifiEnabledStatusInd;
-
- const qmiLocInjectVehicleSensorDataIndMsgT_v02 *pInjectVehicleSensorDataInd;
-
- /**< Response to the QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_REQ_V02 request.
- The respIndId field in the response indication callback is set to
- QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_IND_V02. */
-
- const qmiLocGetAvailWwanPositionIndMsgT_v02 *pGetAvailWwanPositionInd;
- /*QMI_LOC_GET_AVAILABLE_WWAN_POSITION_IND_V02*/
-
- const qmiLocSetXtraVersionCheckIndMsgT_v02 *pSetXtraVersionCheckInd;
- /*QMI_LOC_SET_XTRA_VERSION_CHECK_IND_V02*/
-
- const qmiLocSetGNSSConstRepConfigIndMsgT_v02 *pSetGNSSConstRepConfigInd;
- /*QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_IND_V02*/
-
- const qmiLocStartDbtIndMsgT_v02 *pStartDbtInd;
- /*QMI_LOC_START_DBT_IND_V02*/
-
- const qmiLocStopDbtIndMsgT_v02 *pStopDbtInd;
- /*QMI_LOC_STOP_DBT_IND_V02*/
-
- const qmiLocInjectTimeZoneInfoIndMsgT_v02 *pInjectTimeZoneInfoInd;
- /*QMI_LOC_INJECT_TIME_ZONE_INFO_IND_V02*/
-
- const qmiLocQueryAonConfigIndMsgT_v02 *pQueryAonConfigInd;
- /*QMI_LOC_QUERY_AON_CONFIG_IND_V02*/
-
- const qmiLocGetSupportedFeatureIndMsgT_v02 *pGetSupportedFeatureInd;
- /*QMI_LOC_GET_SUPPORTED_FEATURE_IND_V02*/
-
- const qmiLocGtpApStatusIndMsgT_v02 *pGtpApStatusInd;
- /*QMI_LOC_GTP_AP_STATUS_IND_V02*/
-
- const qmiLocGdtDownloadBeginStatusIndMsgT_v02 *pGdtDownloadBeginStatusInd;
- /*QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_IND_V02*/
-
- const qmiLocGdtDownloadReadyStatusIndMsgT_v02 *pGdtDownloadReadyStatusInd;
- /*QMI_LOC_GDT_DOWNLOAD_READY_STATUS_IND_V02*/
-
- const qmiLocGdtReceiveDoneStatusIndMsgT_v02 *pGdtReceiveDoneStatusInd;
- /*QMI_LOC_GDT_RECEIVE_DONE_STATUS_IND_V02*/
-
- const qmiLocGdtDownloadEndStatusIndMsgT_v02 *pGdtDownloadEndStatusInd;
- /*QMI_LOC_GDT_DOWNLOAD_END_STATUS_IND_V02*/
-
- const qmiLocDeleteGNSSServiceDataIndMsgT_v02 *pDeleteGNSSServiceDataInd;
- /* QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02*/
-}locClientRespIndUnionType;
-
-/** @} */ /* end_addtogroup data_types */
-
-/** @addtogroup callback_functions
-@{ */
-/**
- Location event indication callback function type. The Location service can
- generate two types of indications:
-
- - Asynchronous events indications, such as time injection request and satellite
- reports. The client specifies the asynchronous events it is interested in
- receiving through the event mask (see locClientOpen()).
- - Response indications that are generated as a response to a request. For
- example, the QMI_LOC_GET_FIX_CRITERIA_REQ_V02 request generates the
- indication, QMI_LOC_GET_FIX_CRITERIA_IND_V02.
-
- This callback handles the asynchronous event indications.
-
- @datatypes
- #locClientHandleType \n
- #locClientEventIndUnionType
-
- @param handle Location client for this event. Only the client who
- registered for the corresponding event receives
- this callback.
- @param eventIndId ID of the event indication.
- @param eventIndPayload Event indication payload.
- @param pClientCookie Pointer to the cookie the client specified during
- registration.
-
- @return
- None.
-
- @dependencies
- None. @newpage
-*/
-typedef void (*locClientEventIndCbType)(
- locClientHandleType handle,
- uint32_t eventIndId,
- const locClientEventIndUnionType eventIndPayload,
- void *pClientCookie
-);
-
-/**
- Location response indication callback function type. The Location service can
- generate two types of indications:
-
- - Asynchronous events indications, such as time injection request and satellite
- reports. The client specifies the asynchronous events it is interested in
- receiving through the event mask (see locClientOpen()).
- - Response indications that are generated as a response to a request. For
- example, the QMI_LOC_GET_FIX_CRITERIA_REQ_V02 request generates the
- indication, QMI_LOC_GET_FIX_CRITERIA_IND_V02.
-
- This callback handles the response indications.
-
- @datatypes
- #locClientHandleType \n
- #locClientRespIndUnionType
-
- @param handle Location client who sent the request for which this
- response indication is generated.
- @param respIndId ID of the response. It is the same value as the ID
- of request sent to the engine.
- @param respIndPayload Payload of the response indication.
- @param pClientCookie Pointer to the cookie the client specified during
- registration.
-
- @return
- None.
-
- @dependencies
- None. @newpage
-*/
-typedef void (*locClientRespIndCbType)(
- locClientHandleType handle,
- uint32_t respIndId,
- const locClientRespIndUnionType respIndPayload,
- uint32_t respIndPayloadSize,
- void *pClientCookie
-);
-
-/**
- Location error callback function type. This function is called to inform
- the client that the service is no longer available. When the client
- receives this callback, it must close the existing connection and reopen
- the client connection.
-
- @datatypes
- #locClientHandleType \n
- #locClientErrorEnumType
-
- @param handle Location client who sent the request for which this
- error indication is generated.
- @param errorId Error ID.
- @param pClientCookie Payload associated with the error indication.
-
- @return
- None.
-
- @dependencies
- None.
-*/
-typedef void (*locClientErrorCbType)(
- locClientHandleType handle,
- locClientErrorEnumType errorId,
- void* pClientCookie
- );
-/** @} */ /* end_addtogroup callback_functions */
-
-
-/** @ingroup data_types
- Callback functions to be registered during locClientOpen().
-*/
-typedef struct
-{
- uint32_t size; /**< Size of the structure. */
- locClientEventIndCbType eventIndCb; /**< Event indication callback. */
- locClientRespIndCbType respIndCb; /**< Response indication callback. */
- locClientErrorCbType errorCb; /**< Error indication callback.
- @newpagetable */
-}locClientCallbacksType;
-
-/**
- Response for getting qmi service list
-*/
-typedef struct
-{
- qmi_get_supported_msgs_resp_v01 resp; /**< Response */
-}qmiLocGetSupportMsgT_v02;
-
-/*===========================================================================
- *
- * FUNCTION DECLARATION
- *
- *==========================================================================*/
-/** @addtogroup operation_functions
-@{ */
-/*==========================================================================
- locClientOpen */
-/** @xreflabel{hdr:locClientOpenFunction}
- Connects a location client to the location engine. If the connection is
- successful, this function returns a handle that the location client uses for
- future location operations.
-
- @datatypes
- #locClientStatusEnumType \n
- #locClientEventMaskType \n
- #locClientCallbacksType \n
- #locClientHandleType
-
- @param[in] eventRegMask Mask of asynchronous events the client is
- interested in receiving.
- @param[in] pLocClientCallbacks Pointer to structure containing the
- callbacks.
- @param[out] pLocClientHandle Pointer to the handle to be used by the
- client for any subsequent requests.
- @param[in] pLocClientCookie Pointer to a cookie to be returned to the
- client along with the callbacks.
-
- @return
- One of the following error codes:
- - eLOC_CLIENT_SUCCESS -- If the connection is opened.
- - Non-zero error code (see #locClientStatusEnumType) -- On failure.
-
- @dependencies
- None. @newpage
-*/
-extern locClientStatusEnumType locClientOpen (
- locClientEventMaskType eventRegMask,
- const locClientCallbacksType* pLocClientCallbacks,
- locClientHandleType* pLocClientHandle,
- const void* pLocClientCookie
-);
-
-
-/*==========================================================================
- locClientClose */
-/** @xreflabel{hdr:locClientCloseFunction}
- Disconnects a client from the location engine and sets the handle to
- LOC_CLIENT_INVALID_HANDLE_VALUE.
-
- @datatypes
- #locClientStatusEnumType \n
- #locClientHandleType
-
- @param[in] pLocClientHandle Pointer to the handle returned by the
- locClientOpen() function.
-
- @return
- One of the following error codes:
- - 0 (eLOC_CLIENT_SUCCESS) -- On success.
- - Non-zero error code (see \ref locClientStatusEnumType) -- On failure.
-
- @dependencies
- None. @newpage
-*/
-extern locClientStatusEnumType locClientClose (
- locClientHandleType* pLocClientHandle
-);
-
-/*=============================================================================
- locClientSendReq */
-/** @xreflabel{hdr:locClientSendReqFunction}
- Sends a message to the location engine. If this function is successful, the
- client expects an indication (except start, stop, event registration, and
- sensor injection messages) through the registered callback in the
- locClientOpen() function.
-
- The indication contains the status of the request. If the status is a success,
- the indication also contains the payload associated with response.
-
- @datatypes
- #locClientStatusEnumType \n
- #locClientHandleType \n
- #locClientReqUnionType
-
- @param[in] handle Handle returned by the locClientOpen() function.
- @param[in] reqId QMI_LOC service message ID of the request.
- @param[in] reqPayload Payload of the request. This can be NULL if the
- request has no payload.
-
- @return
- One of the following error codes:
- - 0 (eLOC_CLIENT_SUCCESS) -- On success.
- - Non-zero error code (see \ref locClientStatusEnumType) -- On failure.
-
- @dependencies
- None. @newpage
-*/
-extern locClientStatusEnumType locClientSendReq(
- locClientHandleType handle,
- uint32_t reqId,
- locClientReqUnionType reqPayload
-);
-
-/*=============================================================================
- locClientSupportMsgCheck */
-/**
- @brief Sends a QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02 message to the
- location engine, and then receives a list of all services supported
- by the engine. This function will check if the input service(s) form
- the client is in the list or not. If the locClientSupportMsgCheck()
- function is successful, the client should expect an result of
- the service is supported or not recorded in supportedMsg.
- @param [in] handle Handle returned by the locClientOpen()
- function.
- @param [in] supportedMsg a integer used to record which
- message is supported
-
- @return
- One of the following error codes:
- - 0 (eLOC_CLIENT_SUCCESS) -- On success.
- - Non-zero error code (see \ref locClientStatusEnumType) -- On failure.
-
- @dependencies
- None. @newpage
-*/
-extern locClientStatusEnumType locClientSupportMsgCheck(
- locClientHandleType handle,
- const uint32_t* msgArray,
- uint32_t msgArrayLength,
- uint64_t* supportedMsg
-);
-
-/*=============================================================================
- locClientGetSizeByEventIndId */
-/** Gets the size of the event indication structure from a specified ID.
-
- @param[in] eventIndId Event indicator ID.
- @param[out] pEventIndSize Pointer to the size of the structure.
-
- @return
- TRUE -- The event ID was found. \n
- FALSE -- Otherwise.
-
- @dependencies
- None. @newpage
-*/
-extern bool locClientGetSizeByEventIndId(
- uint32_t eventIndId,
- size_t *pEventIndSize);
-
-
-/*=============================================================================
- locClientGetSizeByRespIndId */
-/** Gets the size of the response indication structure from a specified ID.
-
- @param[in] respIndId Response indicator ID.
- @param[out] pRespIndSize Pointer to the size of the structure.
-
- @return
- TRUE -- The response ID was found. \n
- FALSE -- Otherwise.
-
- @dependencies
- None.
-*/
-extern bool locClientGetSizeByRespIndId(
- uint32_t respIndId,
- size_t *pRespIndSize);
-
-/** locClientRegisterEventMask
- * @brief registers the event mask with loc service
- * @param [in] clientHandle
- * @param [in] eventRegMask
- * @return true if indication was validated; else false */
-
-extern bool locClientRegisterEventMask(
- locClientHandleType clientHandle,
- locClientEventMaskType eventRegMask);
-
-/*=============================================================================*/
-/** @} */ /* end_addtogroup operation_functions */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* LOC_API_V02_CLIENT_H*/
diff --git a/location/loc_api/loc_api_v02/loc_api_v02_log.c b/location/loc_api/loc_api_v02/loc_api_v02_log.c
deleted file mode 100644
index 763470c..0000000
--- a/location/loc_api/loc_api_v02/loc_api_v02_log.c
+++ /dev/null
@@ -1,401 +0,0 @@
-/* Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-#include
-#include
-
-static const loc_name_val_s_type loc_v02_event_name[] =
-{
- NAME_VAL(QMI_LOC_INFORM_CLIENT_REVISION_REQ_V02),
- NAME_VAL(QMI_LOC_INFORM_CLIENT_REVISION_RESP_V02),
- NAME_VAL(QMI_LOC_REG_EVENTS_REQ_V02),
- NAME_VAL(QMI_LOC_REG_EVENTS_RESP_V02),
- NAME_VAL(QMI_LOC_START_REQ_V02),
- NAME_VAL(QMI_LOC_START_RESP_V02),
- NAME_VAL(QMI_LOC_STOP_REQ_V02),
- NAME_VAL(QMI_LOC_STOP_RESP_V02),
- NAME_VAL(QMI_LOC_EVENT_POSITION_REPORT_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_NMEA_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_INJECT_TIME_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_ENGINE_STATE_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_FIX_SESSION_STATE_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_WIFI_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_TIME_SYNC_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_SET_SPI_STREAMING_REPORT_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_INJECT_WIFI_AP_DATA_REQ_IND_V02),
- NAME_VAL(QMI_LOC_GET_SERVICE_REVISION_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SERVICE_REVISION_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SERVICE_REVISION_IND_V02),
- NAME_VAL(QMI_LOC_GET_FIX_CRITERIA_REQ_V02),
- NAME_VAL(QMI_LOC_GET_FIX_CRITERIA_RESP_V02),
- NAME_VAL(QMI_LOC_GET_FIX_CRITERIA_IND_V02),
- NAME_VAL(QMI_LOC_NI_USER_RESPONSE_REQ_V02),
- NAME_VAL(QMI_LOC_NI_USER_RESPONSE_RESP_V02),
- NAME_VAL(QMI_LOC_NI_USER_RESPONSE_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_IND_V02),
- NAME_VAL(QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_REQ_V02),
- NAME_VAL(QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_RESP_V02),
- NAME_VAL(QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_IND_V02),
- NAME_VAL(QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_REQ_V02),
- NAME_VAL(QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_RESP_V02),
- NAME_VAL(QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_UTC_TIME_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_UTC_TIME_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_UTC_TIME_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_POSITION_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_POSITION_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_POSITION_IND_V02),
- NAME_VAL(QMI_LOC_SET_ENGINE_LOCK_REQ_V02),
- NAME_VAL(QMI_LOC_SET_ENGINE_LOCK_RESP_V02),
- NAME_VAL(QMI_LOC_SET_ENGINE_LOCK_IND_V02),
- NAME_VAL(QMI_LOC_GET_ENGINE_LOCK_REQ_V02),
- NAME_VAL(QMI_LOC_GET_ENGINE_LOCK_RESP_V02),
- NAME_VAL(QMI_LOC_GET_ENGINE_LOCK_IND_V02),
- NAME_VAL(QMI_LOC_SET_SBAS_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_SET_SBAS_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_SET_SBAS_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_GET_SBAS_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SBAS_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SBAS_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_SET_NMEA_TYPES_REQ_V02),
- NAME_VAL(QMI_LOC_SET_NMEA_TYPES_RESP_V02),
- NAME_VAL(QMI_LOC_SET_NMEA_TYPES_IND_V02),
- NAME_VAL(QMI_LOC_GET_NMEA_TYPES_REQ_V02),
- NAME_VAL(QMI_LOC_GET_NMEA_TYPES_RESP_V02),
- NAME_VAL(QMI_LOC_GET_NMEA_TYPES_IND_V02),
- NAME_VAL(QMI_LOC_SET_LOW_POWER_MODE_REQ_V02),
- NAME_VAL(QMI_LOC_SET_LOW_POWER_MODE_RESP_V02),
- NAME_VAL(QMI_LOC_SET_LOW_POWER_MODE_IND_V02),
- NAME_VAL(QMI_LOC_GET_LOW_POWER_MODE_REQ_V02),
- NAME_VAL(QMI_LOC_GET_LOW_POWER_MODE_RESP_V02),
- NAME_VAL(QMI_LOC_GET_LOW_POWER_MODE_IND_V02),
- NAME_VAL(QMI_LOC_SET_SERVER_REQ_V02),
- NAME_VAL(QMI_LOC_SET_SERVER_RESP_V02),
- NAME_VAL(QMI_LOC_SET_SERVER_IND_V02),
- NAME_VAL(QMI_LOC_GET_SERVER_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SERVER_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SERVER_IND_V02),
- NAME_VAL(QMI_LOC_DELETE_ASSIST_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_DELETE_ASSIST_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_DELETE_ASSIST_DATA_IND_V02),
- NAME_VAL(QMI_LOC_SET_XTRA_T_SESSION_CONTROL_REQ_V02),
- NAME_VAL(QMI_LOC_SET_XTRA_T_SESSION_CONTROL_RESP_V02),
- NAME_VAL(QMI_LOC_SET_XTRA_T_SESSION_CONTROL_IND_V02),
- NAME_VAL(QMI_LOC_GET_XTRA_T_SESSION_CONTROL_REQ_V02),
- NAME_VAL(QMI_LOC_GET_XTRA_T_SESSION_CONTROL_RESP_V02),
- NAME_VAL(QMI_LOC_GET_XTRA_T_SESSION_CONTROL_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_WIFI_POSITION_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_WIFI_POSITION_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_WIFI_POSITION_IND_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_GET_REGISTERED_EVENTS_REQ_V02),
- NAME_VAL(QMI_LOC_GET_REGISTERED_EVENTS_RESP_V02),
- NAME_VAL(QMI_LOC_GET_REGISTERED_EVENTS_IND_V02),
- NAME_VAL(QMI_LOC_SET_OPERATION_MODE_REQ_V02),
- NAME_VAL(QMI_LOC_SET_OPERATION_MODE_RESP_V02),
- NAME_VAL(QMI_LOC_SET_OPERATION_MODE_IND_V02),
- NAME_VAL(QMI_LOC_GET_OPERATION_MODE_REQ_V02),
- NAME_VAL(QMI_LOC_GET_OPERATION_MODE_RESP_V02),
- NAME_VAL(QMI_LOC_GET_OPERATION_MODE_IND_V02),
- NAME_VAL(QMI_LOC_SET_SPI_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_SET_SPI_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_SET_SPI_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_SENSOR_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_SENSOR_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_SENSOR_DATA_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_TIME_SYNC_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_TIME_SYNC_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_TIME_SYNC_DATA_IND_V02),
- NAME_VAL(QMI_LOC_SET_CRADLE_MOUNT_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_SET_CRADLE_MOUNT_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_SET_CRADLE_MOUNT_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_GET_CRADLE_MOUNT_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_GET_CRADLE_MOUNT_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_GET_CRADLE_MOUNT_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_SET_EXTERNAL_POWER_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_SET_EXTERNAL_POWER_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_SET_EXTERNAL_POWER_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_GET_EXTERNAL_POWER_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_GET_EXTERNAL_POWER_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_GET_EXTERNAL_POWER_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02),
- NAME_VAL(QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_RESP_V02),
- NAME_VAL(QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02),
- NAME_VAL(QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02),
- NAME_VAL(QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_RESP_V02),
- NAME_VAL(QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_CONTROL_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_CONTROL_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_CONTROL_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_CONTROL_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_PROPERTIES_REQ_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_PROPERTIES_RESP_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_PROPERTIES_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_PROPERTIES_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_PROPERTIES_IND_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_RESP_V02),
- NAME_VAL(QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_SUPL_CERTIFICATE_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02),
- NAME_VAL(QMI_LOC_DELETE_SUPL_CERTIFICATE_REQ_V02),
- NAME_VAL(QMI_LOC_DELETE_SUPL_CERTIFICATE_RESP_V02),
- NAME_VAL(QMI_LOC_DELETE_SUPL_CERTIFICATE_IND_V02),
- NAME_VAL(QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02),
- NAME_VAL(QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_RESP_V02),
- NAME_VAL(QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02),
- NAME_VAL(QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02),
- NAME_VAL(QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_RESP_V02),
- NAME_VAL(QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_NI_GEOFENCE_NOTIFICATION_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GEOFENCE_GEN_ALERT_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GEOFENCE_BATCHED_BREACH_NOTIFICATION_IND_V02),
- NAME_VAL(QMI_LOC_ADD_CIRCULAR_GEOFENCE_REQ_V02),
- NAME_VAL(QMI_LOC_ADD_CIRCULAR_GEOFENCE_RESP_V02),
- NAME_VAL(QMI_LOC_ADD_CIRCULAR_GEOFENCE_IND_V02),
- NAME_VAL(QMI_LOC_DELETE_GEOFENCE_REQ_V02),
- NAME_VAL(QMI_LOC_DELETE_GEOFENCE_RESP_V02),
- NAME_VAL(QMI_LOC_DELETE_GEOFENCE_IND_V02),
- NAME_VAL(QMI_LOC_QUERY_GEOFENCE_REQ_V02),
- NAME_VAL(QMI_LOC_QUERY_GEOFENCE_RESP_V02),
- NAME_VAL(QMI_LOC_QUERY_GEOFENCE_IND_V02),
- NAME_VAL(QMI_LOC_EDIT_GEOFENCE_REQ_V02),
- NAME_VAL(QMI_LOC_EDIT_GEOFENCE_RESP_V02),
- NAME_VAL(QMI_LOC_EDIT_GEOFENCE_IND_V02),
- 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),
- NAME_VAL(QMI_LOC_INJECT_WCDMA_CELL_INFO_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_WCDMA_CELL_INFO_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_WCDMA_CELL_INFO_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_TDSCDMA_CELL_INFO_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_TDSCDMA_CELL_INFO_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_TDSCDMA_CELL_INFO_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_SUBSCRIBER_ID_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_SUBSCRIBER_ID_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_SUBSCRIBER_ID_IND_V02),
- NAME_VAL(QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SUPPORTED_MSGS_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SUPPORTED_FIELDS_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SUPPORTED_FIELDS_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_WIFI_AP_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_WIFI_AP_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_WIFI_AP_DATA_IND_V02),
- NAME_VAL(QMI_LOC_GET_BATCH_SIZE_REQ_V02),
- NAME_VAL(QMI_LOC_GET_BATCH_SIZE_RESP_V02),
- NAME_VAL(QMI_LOC_GET_BATCH_SIZE_IND_V02),
- NAME_VAL(QMI_LOC_START_BATCHING_REQ_V02),
- NAME_VAL(QMI_LOC_START_BATCHING_RESP_V02),
- NAME_VAL(QMI_LOC_START_BATCHING_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_BATCH_FULL_NOTIFICATION_IND_V02),
- NAME_VAL(QMI_LOC_READ_FROM_BATCH_REQ_V02),
- NAME_VAL(QMI_LOC_READ_FROM_BATCH_RESP_V02),
- NAME_VAL(QMI_LOC_READ_FROM_BATCH_IND_V02),
- NAME_VAL(QMI_LOC_STOP_BATCHING_REQ_V02),
- NAME_VAL(QMI_LOC_STOP_BATCHING_RESP_V02),
- NAME_VAL(QMI_LOC_STOP_BATCHING_IND_V02),
- NAME_VAL(QMI_LOC_RELEASE_BATCH_REQ_V02),
- NAME_VAL(QMI_LOC_RELEASE_BATCH_RESP_V02),
- NAME_VAL(QMI_LOC_RELEASE_BATCH_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_IND_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_GET_AVAILABLE_WWAN_POSITION_REQ_V02),
- NAME_VAL(QMI_LOC_GET_AVAILABLE_WWAN_POSITION_RESP_V02),
- NAME_VAL(QMI_LOC_GET_AVAILABLE_WWAN_POSITION_IND_V02),
- NAME_VAL(QMI_LOC_SET_XTRA_VERSION_CHECK_REQ_V02),
- NAME_VAL(QMI_LOC_SET_XTRA_VERSION_CHECK_RESP_V02),
- NAME_VAL(QMI_LOC_SET_XTRA_VERSION_CHECK_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GEOFENCE_PROXIMITY_NOTIFICATION_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_IND_V02),
- NAME_VAL(QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_GDT_UPLOAD_END_REQ_V02),
- NAME_VAL(QMI_LOC_GDT_UPLOAD_END_RESP_V02),
- NAME_VAL(QMI_LOC_GDT_UPLOAD_END_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GDT_UPLOAD_BEGIN_STATUS_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GDT_UPLOAD_END_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02),
- NAME_VAL(QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02),
- NAME_VAL(QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_START_DBT_REQ_V02),
- NAME_VAL(QMI_LOC_START_DBT_RESP_V02),
- NAME_VAL(QMI_LOC_START_DBT_IND_V02),
- NAME_VAL(QMI_LOC_STOP_DBT_REQ_V02),
- NAME_VAL(QMI_LOC_STOP_DBT_RESP_V02),
- NAME_VAL(QMI_LOC_STOP_DBT_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_DBT_POSITION_REPORT_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_DBT_SESSION_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GEOFENCE_BATCHED_DWELL_NOTIFICATION_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GET_TIME_ZONE_INFO_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_TIME_ZONE_INFO_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_TIME_ZONE_INFO_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_TIME_ZONE_INFO_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_APCACHE_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_APCACHE_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_APCACHE_DATA_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_APDONOTCACHE_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_APDONOTCACHE_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_APDONOTCACHE_DATA_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_BATCHING_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_QUERY_AON_CONFIG_REQ_V02),
- NAME_VAL(QMI_LOC_QUERY_AON_CONFIG_RESP_V02),
- NAME_VAL(QMI_LOC_QUERY_AON_CONFIG_IND_V02),
- NAME_VAL(QMI_LOC_GTP_AP_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_GTP_AP_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_GTP_AP_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_READY_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_READY_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_READY_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_GDT_RECEIVE_DONE_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_GDT_RECEIVE_DONE_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_GDT_RECEIVE_DONE_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_END_STATUS_REQ_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_END_STATUS_RESP_V02),
- NAME_VAL(QMI_LOC_GDT_DOWNLOAD_END_STATUS_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GDT_DOWNLOAD_BEGIN_REQ_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GDT_RECEIVE_DONE_IND_V02),
- NAME_VAL(QMI_LOC_EVENT_GDT_DOWNLOAD_END_REQ_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_XTRA_DATA_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_XTRA_DATA_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_XTRA_DATA_IND_V02),
- NAME_VAL(QMI_LOC_INJECT_XTRA_PCID_REQ_V02),
- NAME_VAL(QMI_LOC_INJECT_XTRA_PCID_RESP_V02),
- NAME_VAL(QMI_LOC_INJECT_XTRA_PCID_IND_V02),
- NAME_VAL(QMI_LOC_GET_SUPPORTED_FEATURE_REQ_V02),
- NAME_VAL(QMI_LOC_GET_SUPPORTED_FEATURE_RESP_V02),
- NAME_VAL(QMI_LOC_GET_SUPPORTED_FEATURE_IND_V02),
-};
-static const int loc_v02_event_num = sizeof(loc_v02_event_name) / sizeof(loc_name_val_s_type);
-
-const char* loc_get_v02_event_name(uint32_t event)
-{
- return loc_get_name_from_val(loc_v02_event_name, loc_v02_event_num, (long) event);
-}
-
-static const loc_name_val_s_type loc_v02_client_status_name[] =
-{
- NAME_VAL(eLOC_CLIENT_SUCCESS),
- NAME_VAL(eLOC_CLIENT_FAILURE_GENERAL),
- NAME_VAL(eLOC_CLIENT_FAILURE_UNSUPPORTED),
- NAME_VAL(eLOC_CLIENT_FAILURE_INVALID_PARAMETER),
- NAME_VAL(eLOC_CLIENT_FAILURE_ENGINE_BUSY),
- NAME_VAL(eLOC_CLIENT_FAILURE_PHONE_OFFLINE),
- NAME_VAL(eLOC_CLIENT_FAILURE_TIMEOUT),
- NAME_VAL(eLOC_CLIENT_FAILURE_SERVICE_NOT_PRESENT),
- NAME_VAL(eLOC_CLIENT_FAILURE_SERVICE_VERSION_UNSUPPORTED),
- NAME_VAL(eLOC_CLIENT_FAILURE_CLIENT_VERSION_UNSUPPORTED),
- NAME_VAL(eLOC_CLIENT_FAILURE_INVALID_HANDLE),
- NAME_VAL(eLOC_CLIENT_FAILURE_INTERNAL),
- NAME_VAL(eLOC_CLIENT_FAILURE_NOT_INITIALIZED),
- NAME_VAL(eLOC_CLIENT_FAILURE_NOT_ENOUGH_MEMORY),
-};
-static const int loc_v02_client_status_num = sizeof(loc_v02_client_status_name) / sizeof(loc_name_val_s_type);
-
-const char* loc_get_v02_client_status_name(locClientStatusEnumType status)
-{
- return loc_get_name_from_val(loc_v02_client_status_name, loc_v02_client_status_num, (long) status);
-}
-
-
-static const loc_name_val_s_type loc_v02_qmi_status_name[] =
-{
- NAME_VAL(eQMI_LOC_SUCCESS_V02),
- NAME_VAL(eQMI_LOC_GENERAL_FAILURE_V02),
- NAME_VAL(eQMI_LOC_UNSUPPORTED_V02),
- NAME_VAL(eQMI_LOC_INVALID_PARAMETER_V02),
- NAME_VAL(eQMI_LOC_ENGINE_BUSY_V02),
- NAME_VAL(eQMI_LOC_PHONE_OFFLINE_V02),
- NAME_VAL(eQMI_LOC_TIMEOUT_V02),
- NAME_VAL(eQMI_LOC_CONFIG_NOT_SUPPORTED_V02),
- NAME_VAL(eQMI_LOC_INSUFFICIENT_MEMORY_V02),
-};
-static const int loc_v02_qmi_status_num = sizeof(loc_v02_qmi_status_name) / sizeof(loc_name_val_s_type);
-
-const char* loc_get_v02_qmi_status_name(qmiLocStatusEnumT_v02 status)
-{
- return loc_get_name_from_val(loc_v02_qmi_status_name, loc_v02_qmi_status_num, (long) status);
-}
diff --git a/location/loc_api/loc_api_v02/loc_api_v02_log.h b/location/loc_api/loc_api_v02/loc_api_v02_log.h
deleted file mode 100644
index 8d4670c..0000000
--- a/location/loc_api/loc_api_v02/loc_api_v02_log.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#ifndef LOC_API_V02_LOG_H
-#define LOC_API_V02_LOG_H
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#include
-#include
-
-const char* loc_get_v02_event_name(uint32_t event);
-const char* loc_get_v02_client_status_name(locClientStatusEnumType status);
-const char* loc_get_v02_qmi_status_name(qmiLocStatusEnumT_v02 status);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* LOC_API_V02_LOG_H */
diff --git a/location/loc_api/loc_api_v02/loc_util_log.h b/location/loc_api/loc_api_v02/loc_util_log.h
deleted file mode 100644
index f3deed4..0000000
--- a/location/loc_api/loc_api_v02/loc_util_log.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/* Copyright (c) 2011-2012, 2014, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#ifndef LOC_UTIL_LOG_H
-#define LOC_UTIL_LOG_H
-
-#include
-
-#if defined(_ANDROID_)
-#include "loc_api_v02_log.h"
-
-#else // no _ANDROID_
-
-#if defined(__LOC_API_V02_LOG_SILENT__)
-#define MSG_LOG
-#define LOC_LOGE(...) MSG_LOG(__VA_ARGS__);
-#define LOC_LOGW(...) MSG_LOG(__VA_ARGS__);
-#define LOC_LOGD(...) MSG_LOG(__VA_ARGS__);
-#define LOC_LOGI(...) MSG_LOG(__VA_ARGS__);
-#define LOC_LOGV(...) MSG_LOG(__VA_ARGS__);
-#elif !defined(USE_GLIB)
-
-// common for QNX and Griffon
-
-//error logs
-#define LOC_LOGE(...) printf(__VA_ARGS__)
-//warning logs
-#define LOC_LOGW(...) printf(__VA_ARGS__)
-// debug logs
-#define LOC_LOGD(...) printf(__VA_ARGS__)
-//info logs
-#define LOC_LOGI(...) printf(__VA_ARGS__)
-//verbose logs
-#define LOC_LOGV(...) printf(__VA_ARGS__)
-#endif //__LOC_API_V02_LOG_SILENT__
-
-#define MODEM_LOG_CALLFLOW(SPEC, VAL)
-#define EXIT_LOG_CALLFLOW(SPEC, VAL)
-
-#define loc_get_v02_event_name(X) #X
-#define loc_get_v02_client_status_name(X) #X
-
-#define loc_get_v02_qmi_status_name(X) #X
-
-//specific to OFF TARGET
-#ifdef LOC_UTIL_TARGET_OFF_TARGET
-
-# include
-# include
-# include
-
-// get around strl*: not found in glibc
-// TBD:look for presence of eglibc other libraries
-// with strlcpy supported.
-#define strlcpy(X,Y,Z) strcpy(X,Y)
-#define strlcat(X,Y,Z) strcat(X,Y)
-
-#endif //LOC_UTIL_TARGET_OFF_TARGET
-
-#endif //_ANDROID_
-
-#endif //LOC_UTIL_LOG_H
diff --git a/location/loc_api/loc_api_v02/location_service_v02.c b/location/loc_api/loc_api_v02/location_service_v02.c
deleted file mode 100644
index f41ee05..0000000
--- a/location/loc_api/loc_api_v02/location_service_v02.c
+++ /dev/null
@@ -1,6173 +0,0 @@
-/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
- *THIS IS AN AUTO GENERATED FILE. DO NOT ALTER IN ANY WAY
- *====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/
-
-/* This file was generated with Tool version 6.14.7
- It was generated on: Fri Oct 21 2016 (Spin 0)
- From IDL File: location_service_v02.idl */
-
-#include "stdint.h"
-#include "qmi_idl_lib_internal.h"
-#include "location_service_v02.h"
-#include "common_v01.h"
-
-
-/*Type Definitions*/
-static const uint8_t qmiLocApplicationIdStructT_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocApplicationIdStructT_v02, applicationProvider),
- QMI_LOC_MAX_APP_ID_PROVIDER_LENGTH_V02,
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocApplicationIdStructT_v02, applicationName),
- QMI_LOC_MAX_APP_ID_NAME_LENGTH_V02,
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocApplicationIdStructT_v02, applicationVersion_valid),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocApplicationIdStructT_v02, applicationVersion),
- QMI_LOC_MAX_APP_ID_VERSION_LENGTH_V02,
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGPSTimeStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocGPSTimeStructT_v02, gpsWeek),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGPSTimeStructT_v02, gpsTimeOfWeekMs),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocDOPStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDOPStructT_v02, PDOP),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDOPStructT_v02, HDOP),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDOPStructT_v02, VDOP),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocSensorUsageIndicatorStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSensorUsageIndicatorStructT_v02, usageMask),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSensorUsageIndicatorStructT_v02, aidingIndicatorMask),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocSvInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, validMask),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, system),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, gnssSvId),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, healthStatus),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, svStatus),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, svInfoMask),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, elevation),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, azimuth),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSvInfoStructT_v02, snr),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiVxNotifyVerifyStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, posQosIncl),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, posQos),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, numFixes),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, timeBetweenFixes),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, posMode),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, encodingScheme),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, requestorId),
- QMI_LOC_NI_MAX_REQUESTOR_ID_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, requestorId) - QMI_IDL_OFFSET8(qmiLocNiVxNotifyVerifyStructT_v02, requestorId_len),
-
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiVxNotifyVerifyStructT_v02, userRespTimerInSeconds),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiSuplFormattedStringStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplFormattedStringStructT_v02, formatType),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplFormattedStringStructT_v02, formattedString),
- QMI_LOC_NI_MAX_CLIENT_NAME_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocNiSuplFormattedStringStructT_v02, formattedString) - QMI_IDL_OFFSET8(qmiLocNiSuplFormattedStringStructT_v02, formattedString_len),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiSuplQopStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplQopStructT_v02, validMask),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplQopStructT_v02, horizontalAccuracy),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplQopStructT_v02, verticalAccuracy),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplQopStructT_v02, maxLocAge),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplQopStructT_v02, delay),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocIpV4AddrStructType_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocIpV4AddrStructType_v02, addr),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocIpV4AddrStructType_v02, port),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocIpV6AddrStructType_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY |QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocIpV6AddrStructType_v02, addr),
- QMI_LOC_IPV6_ADDR_LENGTH_V02,
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocIpV6AddrStructType_v02, port),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiSuplServerInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplServerInfoStructT_v02, suplServerAddrTypeMask),
-
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocNiSuplServerInfoStructT_v02, ipv4Addr),
- QMI_IDL_TYPE88(0, 8),
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocNiSuplServerInfoStructT_v02, ipv6Addr),
- QMI_IDL_TYPE88(0, 9),
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocNiSuplServerInfoStructT_v02, urlAddr),
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02,
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiSuplNotifyVerifyStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplNotifyVerifyStructT_v02, valid_flags),
-
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocNiSuplNotifyVerifyStructT_v02, suplServerInfo),
- QMI_IDL_TYPE88(0, 10),
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_FLAGS_IS_ARRAY |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, suplSessionId),
- QMI_LOC_NI_SUPL_SLP_SESSION_ID_BYTE_LENGTH_V02,
-
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_FLAGS_IS_ARRAY |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, suplHash),
- QMI_LOC_NI_SUPL_HASH_LENGTH_V02,
-
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, posMethod),
-
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, dataCodingScheme),
-
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, requestorId),
- QMI_IDL_TYPE88(0, 6),
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, clientName),
- QMI_IDL_TYPE88(0, 6),
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, suplQop),
- QMI_IDL_TYPE88(0, 7),
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiSuplNotifyVerifyStructT_v02, userResponseTimer),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiUmtsCpCodedStringStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpCodedStringStructT_v02, dataCodingScheme),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpCodedStringStructT_v02, codedString),
- QMI_LOC_NI_CODEWORD_MAX_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpCodedStringStructT_v02, codedString) - QMI_IDL_OFFSET8(qmiLocNiUmtsCpCodedStringStructT_v02, codedString_len),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiUmtsCpNotifyVerifyStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, valid_flags),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, invokeId),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, dataCodingScheme),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, notificationText),
- QMI_LOC_NI_MAX_CLIENT_NAME_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, notificationText) - QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, notificationText_len),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, clientAddress),
- QMI_LOC_NI_MAX_EXT_CLIENT_ADDRESS_V02,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, clientAddress) - QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, clientAddress_len),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, locationType),
-
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, requestorId),
- QMI_IDL_TYPE88(0, 12),
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, codewordString),
- QMI_IDL_TYPE88(0, 12),
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, lcsServiceTypeId),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUmtsCpNotifyVerifyStructT_v02, userResponseTimer),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiVxServiceInteractionStructT_data_v02[] = {
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocNiVxServiceInteractionStructT_v02, niVxReq),
- QMI_IDL_TYPE88(0, 5),
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiVxServiceInteractionStructT_v02, serviceInteractionType),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocNiSuplVer2ExtStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplVer2ExtStructT_v02, supportedNetworksMask),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplVer2ExtStructT_v02, triggerType),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiSuplVer2ExtStructT_v02, gnssType),
-
- 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 qmiLocAssistanceServerUrlStructT_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocAssistanceServerUrlStructT_v02, serverUrl),
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02,
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocTimeServerListStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocTimeServerListStructT_v02, delayThreshold),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocTimeServerListStructT_v02, timeServerList),
- QMI_LOC_MAX_NTP_SERVERS_V02,
- QMI_IDL_OFFSET8(qmiLocTimeServerListStructT_v02, timeServerList) - QMI_IDL_OFFSET8(qmiLocTimeServerListStructT_v02, timeServerList_len),
- QMI_IDL_TYPE88(0, 17),
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocPredictedOrbitsAllowedSizesStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocPredictedOrbitsAllowedSizesStructT_v02, maxFileSizeInBytes),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocPredictedOrbitsAllowedSizesStructT_v02, maxPartSize),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocPredictedOrbitsServerListStructT_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocPredictedOrbitsServerListStructT_v02, serverList),
- QMI_LOC_MAX_PREDICTED_ORBITS_SERVERS_V02,
- QMI_IDL_OFFSET8(qmiLocPredictedOrbitsServerListStructT_v02, serverList) - QMI_IDL_OFFSET8(qmiLocPredictedOrbitsServerListStructT_v02, serverList_len),
- QMI_IDL_TYPE88(0, 17),
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocSensorControlConfigSamplingSpecStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocSensorControlConfigSamplingSpecStructT_v02, samplesPerBatch),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocSensorControlConfigSamplingSpecStructT_v02, batchesPerSecond),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocSensorReadyStatusStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSensorReadyStatusStructT_v02, injectEnable),
-
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSensorReadyStatusStructT_v02, dataFrequency),
- QMI_IDL_TYPE88(0, 21),
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGeofencePositionStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, timestampUtc),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, latitude),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, longitude),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, horUncEllipseSemiMinor),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, horUncEllipseSemiMajor),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, horUncEllipseOrientAzimuth),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, speedHorizontal_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, speedHorizontal),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, altitudeWrtEllipsoid_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, altitudeWrtEllipsoid),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, vertUnc_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, vertUnc),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, speedVertical_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, speedVertical),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, heading_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofencePositionStructT_v02, heading),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGeofenceIdContinuousStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofenceIdContinuousStructT_v02, idLow),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofenceIdContinuousStructT_v02, idHigh),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocPredictedOrbitsDataValidityStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocPredictedOrbitsDataValidityStructT_v02, startTimeInUTC),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocPredictedOrbitsDataValidityStructT_v02, durationHours),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocAltitudeSrcInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAltitudeSrcInfoStructT_v02, source),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAltitudeSrcInfoStructT_v02, linkage),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAltitudeSrcInfoStructT_v02, coverage),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocDeleteSvInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteSvInfoStructT_v02, gnssSvId),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteSvInfoStructT_v02, system),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteSvInfoStructT_v02, deleteSvInfoMask),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocDeleteBDSSvInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteBDSSvInfoStructT_v02, gnssSvId),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteBDSSvInfoStructT_v02, deleteSvInfoMask),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocDeleteGALSvInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGALSvInfoStructT_v02, gnssSvId),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGALSvInfoStructT_v02, deleteSvInfoMask),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWifiFixTimeStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiFixTimeStructT_v02, wifiPositionTime),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWifiFixPosStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiFixPosStructT_v02, lat),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiFixPosStructT_v02, lon),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiFixPosStructT_v02, hepe),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiFixPosStructT_v02, numApsUsed),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiFixPosStructT_v02, fixErrorCode),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWifiApInfoStructT_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApInfoStructT_v02, macAddr),
- QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02,
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApInfoStructT_v02, rssi),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApInfoStructT_v02, channel),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApInfoStructT_v02, apQualifier),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWifiApSsidStructT_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocWifiApSsidStructT_v02, ssid),
- QMI_LOC_MAX_WIFI_AP_SSID_STR_LENGTH_V02,
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLoc3AxisSensorSampleStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleStructT_v02, timeOffset),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleStructT_v02, xAxis),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleStructT_v02, yAxis),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleStructT_v02, zAxis),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLoc3AxisSensorSampleListStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleListStructT_v02, timeOfFirstSample),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleListStructT_v02, flags),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleListStructT_v02, sensorData),
- QMI_LOC_SENSOR_DATA_MAX_SAMPLES_V02,
- QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleListStructT_v02, sensorData) - QMI_IDL_OFFSET8(qmiLoc3AxisSensorSampleListStructT_v02, sensorData_len),
- QMI_IDL_TYPE88(0, 34),
- 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),
- QMI_IDL_TYPE88(0, 36),
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocApnProfilesStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocApnProfilesStructT_v02, pdnType),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocApnProfilesStructT_v02, apnName),
- QMI_LOC_MAX_APN_NAME_LENGTH_V02,
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocCircularGeofenceArgsStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocCircularGeofenceArgsStructT_v02, latitude),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocCircularGeofenceArgsStructT_v02, longitude),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocCircularGeofenceArgsStructT_v02, radius),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGeofenceMotionStateConfigStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofenceMotionStateConfigStructT_v02, motionState),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGeofenceMotionStateConfigStructT_v02, motionStateSpeed),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocTimeZoneStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocTimeZoneStructT_v02, dstOffset),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocTimeZoneStructT_v02, rawOffset),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocMotionDataStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocMotionDataStructT_v02, motion_state),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocMotionDataStructT_v02, motion_mode),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocMotionDataStructT_v02, probability_of_state),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocMotionDataStructT_v02, age),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocMotionDataStructT_v02, timeout),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGSMCellIdStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGSMCellIdStructT_v02, MCC),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGSMCellIdStructT_v02, MNC),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGSMCellIdStructT_v02, LAC),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGSMCellIdStructT_v02, CID),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWCDMACellIdStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWCDMACellIdStructT_v02, mcc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWCDMACellIdStructT_v02, mnc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWCDMACellIdStructT_v02, cid),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocTDSCDMACellIdStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocTDSCDMACellIdStructT_v02, mcc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocTDSCDMACellIdStructT_v02, mnc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocTDSCDMACellIdStructT_v02, cid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocTDSCDMACellIdStructT_v02, lac),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocBatchedReportStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, fixId),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, validFields),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, latitude),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, longitude),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, horUncCircular),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, speedHorizontal),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, speedUnc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, altitudeWrtEllipsoid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, speedVertical),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, heading),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, headingUnc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, technologyMask),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, timestampUtc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, timeUnc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, magneticDeviation),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, vertUnc),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, horConfidence),
-
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocBatchedReportStructT_v02, gpsTime),
- QMI_IDL_TYPE88(0, 1),
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWifiApDataStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, wifiApDataMask),
-
- QMI_IDL_FLAGS_IS_ARRAY |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, macAddress),
- QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02,
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apTransmitPower),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apAntennaGain),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apSignalToNoise),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apDeviceType),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apRssi),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apChannel),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apRoundTripDelay),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apRoundTripDelayUnit),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, apRoundTripDelayAccuracy),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, mobileSignalToNoise),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApDataStructT_v02, mobileRssi),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWifiApAdditionalDataStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApAdditionalDataStructT_v02, rssiTimestamp),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApAdditionalDataStructT_v02, measAge),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApAdditionalDataStructT_v02, servingAccessPoint),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApAdditionalDataStructT_v02, channelFrequency),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocWifiApAdditionalDataStructT_v02, ssid),
- QMI_LOC_MAX_WIFI_AP_SSID_STR_LENGTH_V02,
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApAdditionalDataStructT_v02, apHighResolutionRssi),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocVehicleSensorSampleStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleStructT_v02, timeOffset),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleStructT_v02, axisSample),
- QMI_LOC_VEHICLE_SENSOR_DATA_MAX_AXES_V02,
- QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleStructT_v02, axisSample) - QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleStructT_v02, axisSample_len),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocVehicleSensorSampleListStructType_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleListStructType_v02, sampleTimeBase),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleListStructType_v02, axesValidity),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleListStructType_v02, sensorData),
- QMI_LOC_VEHICLE_SENSOR_DATA_MAX_SAMPLES_V02,
- QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleListStructType_v02, sensorData) - QMI_IDL_OFFSET8(qmiLocVehicleSensorSampleListStructType_v02, sensorData_len),
- QMI_IDL_TYPE88(0, 49),
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocVehicleOdometrySampleStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleStructT_v02, timeOffset),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleStructT_v02, distanceTravelled),
- QMI_LOC_VEHICLE_ODOMETRY_MAX_MEASUREMENTS_V02,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleStructT_v02, distanceTravelled) - QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleStructT_v02, distanceTravelled_len),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocVehicleOdometrySampleListStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleListStructT_v02, sampleTimeBase),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleListStructT_v02, flags),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleListStructT_v02, wheelFlags),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleListStructT_v02, distanceTravelledBase),
-
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleListStructT_v02, odometryData),
- QMI_LOC_VEHICLE_SENSOR_DATA_MAX_SAMPLES_V02,
- QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleListStructT_v02, odometryData) - QMI_IDL_OFFSET8(qmiLocVehicleOdometrySampleListStructT_v02, odometryData_len),
- QMI_IDL_TYPE88(0, 51),
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocRcvrClockFrequencyInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocRcvrClockFrequencyInfoStructT_v02, clockDrift),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocRcvrClockFrequencyInfoStructT_v02, clockDriftUnc),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocRcvrClockFrequencyInfoStructT_v02, sourceOfFreq),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocLeapSecondInfoStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocLeapSecondInfoStructT_v02, leapSec),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocLeapSecondInfoStructT_v02, leapSecUnc),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocInterSystemBiasStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInterSystemBiasStructT_v02, validMask),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInterSystemBiasStructT_v02, timeBias),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInterSystemBiasStructT_v02, timeBiasUnc),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGnssTimeStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeStructT_v02, system),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeStructT_v02, systemWeek),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeStructT_v02, systemMsec),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeStructT_v02, systemClkTimeBias),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeStructT_v02, systemClkTimeUncMs),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGloTimeStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGloTimeStructT_v02, gloFourYear),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocGloTimeStructT_v02, gloDays),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGloTimeStructT_v02, gloMsec),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGloTimeStructT_v02, gloClkTimeBias),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGloTimeStructT_v02, gloClkTimeUncMs),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGnssTimeExtStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeExtStructT_v02, refFCount),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeExtStructT_v02, systemRtc_valid),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeExtStructT_v02, systemRtcMs),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGnssTimeExtStructT_v02, sourceOfTime),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocSVTimeSpeedStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVTimeSpeedStructT_v02, svTimeMs),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVTimeSpeedStructT_v02, svTimeSubMs),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVTimeSpeedStructT_v02, svTimeUncMs),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVTimeSpeedStructT_v02, dopplerShift),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVTimeSpeedStructT_v02, dopplerShiftUnc),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVTimeSpeedStructT_v02, dopplerAccel_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVTimeSpeedStructT_v02, dopplerAccel),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocSVMeasurementStructT_data_v02[] = {
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, gnssSvId),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, gloFrequency),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, svStatus),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, validMask),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, healthStatus),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, svInfoMask),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, validMeasStatusMask),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, measurementStatus),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, CNo),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, gloRfLoss),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, measLatency),
-
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, svTimeSpeed),
- QMI_IDL_TYPE88(0, 59),
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, lossOfLock),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, multipathEstimate),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, fineSpeed),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, fineSpeedUnc),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, carrierPhase),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, cycleSlipCount),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, svAzimuth),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSVMeasurementStructT_v02, svElevation),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocWifiApMacAddressStructT_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY |QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocWifiApMacAddressStructT_v02, wifiApMacAddress),
- QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02,
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocIBeaconIdStructT_data_v02[] = {
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN |QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocIBeaconIdStructT_v02, uuid),
- QMI_LOC_MAX_IBEACON_UUID_STR_LENGTH_V02,
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocIBeaconIdStructT_v02, majorNumber),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocIBeaconIdStructT_v02, minorNumber),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocGtpAsnVerStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpAsnVerStructT_v02, asnMajorVersion),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpAsnVerStructT_v02, asnMinorVersion),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpAsnVerStructT_v02, asnPointVersion),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocDbtPositionStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, timestampUtc),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, latitude),
-
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, longitude),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, horUncEllipseSemiMinor),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, horUncEllipseSemiMajor),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, horUncEllipseOrientAzimuth),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, speedHorizontal_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, speedHorizontal),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, altitudeWrtEllipsoid_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, altitudeWrtEllipsoid),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, vertUnc_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, vertUnc),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, speedVertical_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, speedVertical),
-
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, heading_valid),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDbtPositionStructT_v02, heading),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocApCacheStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocApCacheStructT_v02, macAddress),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocApCacheStructT_v02, xLat),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocApCacheStructT_v02, yLon),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocApCacheStructT_v02, mar),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocApCacheHepeRelStructT_data_v02[] = {
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocApCacheHepeRelStructT_v02, hepeValid),
-
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocApCacheHepeRelStructT_v02, hepe),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocApCacheHepeRelStructT_v02, apReliability),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocApDoNotCacheStructT_data_v02[] = {
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocApDoNotCacheStructT_v02, macAddress),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-static const uint8_t qmiLocDeleteSatelliteDataStructT_data_v02[] = {
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteSatelliteDataStructT_v02, system),
-
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteSatelliteDataStructT_v02, deleteSatelliteDataMask),
-
- QMI_IDL_FLAG_END_VALUE
-};
-
-/*Message Definitions*/
-static const uint8_t qmiLocGenRespMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGenRespMsgT_v02, resp),
- QMI_IDL_TYPE88(1, 0)
-};
-
-static const uint8_t qmiLocInformClientRevisionReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInformClientRevisionReqMsgT_v02, revision)
-};
-
-static const uint8_t qmiLocRegEventsReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocRegEventsReqMsgT_v02, eventRegMask)
-};
-
-static const uint8_t qmiLocStartReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, fixRecurrence) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, fixRecurrence_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, fixRecurrence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, horizontalAccuracyLevel) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, horizontalAccuracyLevel_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, horizontalAccuracyLevel),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, intermediateReportState) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, intermediateReportState_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, intermediateReportState),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, minInterval) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, minInterval_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, minInterval),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, applicationId) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, applicationId_valid)),
- 0x14,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, applicationId),
- QMI_IDL_TYPE88(0, 0),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, configAltitudeAssumed) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, configAltitudeAssumed_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, configAltitudeAssumed),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, minIntermediatePositionReportInterval) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, minIntermediatePositionReportInterval_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, minIntermediatePositionReportInterval),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, positionReportTimeout) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, positionReportTimeout_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, positionReportTimeout),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, sharePosition) - QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, sharePosition_valid)),
- 0x18,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartReqMsgT_v02, sharePosition)
-};
-
-static const uint8_t qmiLocStopReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopReqMsgT_v02, sessionId)
-};
-
-static const uint8_t qmiLocEventPositionReportIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, sessionStatus),
-
- 0x02,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, latitude) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, latitude_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, latitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, longitude) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, longitude_valid)),
- 0x11,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, longitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncCircular) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncCircular_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncCircular),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseSemiMinor) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseSemiMinor_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseSemiMinor),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseSemiMajor) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseSemiMajor_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseSemiMajor),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseOrientAzimuth) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseOrientAzimuth_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horUncEllipseOrientAzimuth),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horConfidence) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horConfidence_valid)),
- 0x16,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horReliability) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horReliability_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, horReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedHorizontal) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedHorizontal_valid)),
- 0x18,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedHorizontal),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedUnc) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedUnc_valid)),
- 0x19,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, altitudeWrtEllipsoid) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, altitudeWrtEllipsoid_valid)),
- 0x1A,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, altitudeWrtEllipsoid),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, altitudeWrtMeanSeaLevel) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, altitudeWrtMeanSeaLevel_valid)),
- 0x1B,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, altitudeWrtMeanSeaLevel),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertUnc) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertUnc_valid)),
- 0x1C,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertConfidence) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertConfidence_valid)),
- 0x1D,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertReliability) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertReliability_valid)),
- 0x1E,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, vertReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedVertical) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedVertical_valid)),
- 0x1F,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, speedVertical),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, heading) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, heading_valid)),
- 0x20,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, heading),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, headingUnc) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, headingUnc_valid)),
- 0x21,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, headingUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, magneticDeviation) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, magneticDeviation_valid)),
- 0x22,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, magneticDeviation),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, technologyMask) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, technologyMask_valid)),
- 0x23,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, technologyMask),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, DOP) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, DOP_valid)),
- 0x24,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, DOP),
- QMI_IDL_TYPE88(0, 2),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, timestampUtc) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, timestampUtc_valid)),
- 0x25,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, timestampUtc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, leapSeconds) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, leapSeconds_valid)),
- 0x26,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, leapSeconds),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, gpsTime) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, gpsTime_valid)),
- 0x27,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, gpsTime),
- QMI_IDL_TYPE88(0, 1),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, timeUnc) - QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, timeUnc_valid)),
- 0x28,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventPositionReportIndMsgT_v02, timeUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, timeSrc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, timeSrc_valid)),
- 0x29,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventPositionReportIndMsgT_v02, timeSrc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, sensorDataUsage) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, sensorDataUsage_valid)),
- 0x2A,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventPositionReportIndMsgT_v02, sensorDataUsage),
- QMI_IDL_TYPE88(0, 3),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, fixId) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, fixId_valid)),
- 0x2B,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventPositionReportIndMsgT_v02, fixId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, gnssSvUsedList_valid)),
- 0x2C,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventPositionReportIndMsgT_v02, gnssSvUsedList),
- QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, gnssSvUsedList_len),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, altitudeAssumed) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, altitudeAssumed_valid)),
- 0x2D,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventPositionReportIndMsgT_v02, altitudeAssumed),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, velEnu) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, velEnu_valid)),
- 0x2E,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventPositionReportIndMsgT_v02, velEnu),
- QMI_LOC_ENU_ARRAY_LENGTH_V02,
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, velUncEnu) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventPositionReportIndMsgT_v02, velUncEnu_valid)),
- 0x2F,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventPositionReportIndMsgT_v02, velUncEnu),
- QMI_LOC_ENU_ARRAY_LENGTH_V02
-};
-
-static const uint8_t qmiLocEventGnssSvInfoIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvInfoIndMsgT_v02, altitudeAssumed),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvInfoIndMsgT_v02, svList) - QMI_IDL_OFFSET8(qmiLocEventGnssSvInfoIndMsgT_v02, svList_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvInfoIndMsgT_v02, svList),
- QMI_LOC_SV_INFO_LIST_MAX_SIZE_V02,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvInfoIndMsgT_v02, svList) - QMI_IDL_OFFSET8(qmiLocEventGnssSvInfoIndMsgT_v02, svList_len),
- QMI_IDL_TYPE88(0, 4)
-};
-
-static const uint8_t qmiLocEventNmeaIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocEventNmeaIndMsgT_v02, nmea),
- QMI_LOC_NMEA_STRING_MAX_LENGTH_V02
-};
-
-static const uint8_t qmiLocEventNiNotifyVerifyReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, notificationType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiVxInd) - QMI_IDL_OFFSET8(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiVxInd_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiVxInd),
- QMI_IDL_TYPE88(0, 5),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplInd) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplInd_valid)),
- 0x11,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiSuplInd),
- QMI_IDL_TYPE88(0, 11),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiUmtsCpInd) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiUmtsCpInd_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiUmtsCpInd),
- QMI_IDL_TYPE88(0, 13),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiVxServiceInteractionInd) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiVxServiceInteractionInd_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventNiNotifyVerifyReqIndMsgT_v02, NiVxServiceInteractionInd),
- QMI_IDL_TYPE88(0, 14),
-
- 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),
- QMI_IDL_TYPE88(0, 15),
-
- 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),
- QMI_IDL_TYPE88(0, 16)
-};
-
-static const uint8_t qmiLocEventInjectTimeReqIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventInjectTimeReqIndMsgT_v02, timeServerInfo) - QMI_IDL_OFFSET8(qmiLocEventInjectTimeReqIndMsgT_v02, timeServerInfo_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventInjectTimeReqIndMsgT_v02, timeServerInfo),
- QMI_IDL_TYPE88(0, 18)
-};
-
-static const uint8_t qmiLocEventInjectPredictedOrbitsReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02, allowedSizes),
- QMI_IDL_TYPE88(0, 19),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02, serverList) - QMI_IDL_OFFSET8(qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02, serverList_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02, serverList),
- QMI_IDL_TYPE88(0, 20)
-};
-
-static const uint8_t qmiLocEventInjectPositionReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventInjectPositionReqIndMsgT_v02, latitude),
-
- 0x02,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventInjectPositionReqIndMsgT_v02, longitude),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventInjectPositionReqIndMsgT_v02, horUncCircular),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x04,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventInjectPositionReqIndMsgT_v02, timestampUtc)
-};
-
-static const uint8_t qmiLocEventEngineStateIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventEngineStateIndMsgT_v02, engineState)
-};
-
-static const uint8_t qmiLocEventFixSessionStateIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventFixSessionStateIndMsgT_v02, sessionState),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventFixSessionStateIndMsgT_v02, sessionId) - QMI_IDL_OFFSET8(qmiLocEventFixSessionStateIndMsgT_v02, sessionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventFixSessionStateIndMsgT_v02, sessionId)
-};
-
-static const uint8_t qmiLocEventWifiReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventWifiReqIndMsgT_v02, requestType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventWifiReqIndMsgT_v02, tbfInMs) - QMI_IDL_OFFSET8(qmiLocEventWifiReqIndMsgT_v02, tbfInMs_valid)),
- 0x10,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventWifiReqIndMsgT_v02, tbfInMs),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventWifiReqIndMsgT_v02, e911Mode) - QMI_IDL_OFFSET8(qmiLocEventWifiReqIndMsgT_v02, e911Mode_valid)),
- 0x11,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventWifiReqIndMsgT_v02, e911Mode)
-};
-
-static const uint8_t qmiLocEventSensorStreamingReadyStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, accelReady) - QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, accelReady_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, accelReady),
- QMI_IDL_TYPE88(0, 22),
-
- 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),
- QMI_IDL_TYPE88(0, 22),
-
- 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),
- QMI_IDL_TYPE88(0, 22),
-
- 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),
- QMI_IDL_TYPE88(0, 22),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, calibratedMagReady) - QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, calibratedMagReady_valid)),
- 0x14,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, calibratedMagReady),
- QMI_IDL_TYPE88(0, 22),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, uncalibratedMagReady) - QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, uncalibratedMagReady_valid)),
- 0x15,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02, uncalibratedMagReady),
- QMI_IDL_TYPE88(0, 22)
-};
-
-static const uint8_t qmiLocEventTimeSyncReqIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventTimeSyncReqIndMsgT_v02, refCounter)
-};
-
-static const uint8_t qmiLocEventSetSpiStreamingReportIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventSetSpiStreamingReportIndMsgT_v02, enable)
-};
-
-static const uint8_t qmiLocEventLocationServerConnectionReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventLocationServerConnectionReqIndMsgT_v02, connHandle),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventLocationServerConnectionReqIndMsgT_v02, requestType),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventLocationServerConnectionReqIndMsgT_v02, wwanType)
-};
-
-static const uint8_t qmiLocEventNiGeofenceNotificationIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventNiGeofenceNotificationIndMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventNiGeofenceNotificationIndMsgT_v02, operationType)
-};
-
-static const uint8_t qmiLocEventGeofenceGenAlertIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceGenAlertIndMsgT_v02, geofenceAlert)
-};
-
-static const uint8_t qmiLocEventGeofenceBreachIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, geofenceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, breachType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, geofencePosition) - QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, geofencePosition_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, geofencePosition),
- QMI_IDL_TYPE88(0, 23),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, breachConfidence) - QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, breachConfidence_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBreachIndMsgT_v02, breachConfidence)
-};
-
-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 qmiLocEventGeofenceBatchedBreachIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, breachType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdContinuousList) - QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdContinuousList_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdContinuousList),
- QMI_LOC_MAX_GEOFENCE_ID_CONTINUOUS_LIST_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdContinuousList) - QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdContinuousList_len),
- QMI_IDL_TYPE88(0, 24),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdDiscreteList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdDiscreteList_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdDiscreteList),
- QMI_LOC_MAX_GEOFENCE_ID_DISCRETE_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdDiscreteList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofenceIdDiscreteList_len),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofencePosition) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofencePosition_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, geofencePosition),
- QMI_IDL_TYPE88(0, 23),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, breachConfidence) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, breachConfidence_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, breachConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, headingUnc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, headingUnc_valid)),
- 0x14,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, headingUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, vertUnc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, vertUnc_valid)),
- 0x15,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, vertUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, speedUnc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, speedUnc_valid)),
- 0x16,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, speedUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, horConfidence) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, horConfidence_valid)),
- 0x17,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, horConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, vertConfidence) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, vertConfidence_valid)),
- 0x18,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, vertConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, DOP) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, DOP_valid)),
- 0x19,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, DOP),
- QMI_IDL_TYPE88(0, 2),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, gnssSvUsedList_valid)),
- 0x1A,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, gnssSvUsedList),
- QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedBreachIndMsgT_v02, gnssSvUsedList_len)
-};
-
-static const uint8_t qmiLocEventGeofenceProximityIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceProximityIndMsgT_v02, proximityType),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceProximityIndMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGeofenceProximityIndMsgT_v02, contextId) - QMI_IDL_OFFSET8(qmiLocEventGeofenceProximityIndMsgT_v02, contextId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceProximityIndMsgT_v02, contextId)
-};
-
-static const uint8_t qmiLocEventGeofenceBatchedDwellIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, dwellType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdContinuousList) - QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdContinuousList_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdContinuousList),
- QMI_LOC_MAX_GEOFENCE_ID_CONTINUOUS_LIST_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdContinuousList) - QMI_IDL_OFFSET8(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdContinuousList_len),
- QMI_IDL_TYPE88(0, 24),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdDiscreteList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdDiscreteList_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdDiscreteList),
- QMI_LOC_MAX_GEOFENCE_ID_DISCRETE_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdDiscreteList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofenceIdDiscreteList_len),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofencePosition) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofencePosition_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, geofencePosition),
- QMI_IDL_TYPE88(0, 23),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, headingUnc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, headingUnc_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, headingUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, vertUnc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, vertUnc_valid)),
- 0x14,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, vertUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, speedUnc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, speedUnc_valid)),
- 0x15,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, speedUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, horConfidence) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, horConfidence_valid)),
- 0x16,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, horConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, vertConfidence) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, vertConfidence_valid)),
- 0x17,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, vertConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, DOP) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, DOP_valid)),
- 0x18,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, DOP),
- QMI_IDL_TYPE88(0, 2),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, gnssSvUsedList_valid)),
- 0x19,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, gnssSvUsedList),
- QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGeofenceBatchedDwellIndMsgT_v02, gnssSvUsedList_len)
-};
-
-static const uint8_t qmiLocEventGdtUploadBeginStatusReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02, filePath),
- QMI_LOC_MAX_GDT_PATH_LEN_V02,
- QMI_IDL_OFFSET8(qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02, filePath) - QMI_IDL_OFFSET8(qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02, filePath_len)
-};
-
-static const uint8_t qmiLocEventGdtUploadEndReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtUploadEndReqIndMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtUploadEndReqIndMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtUploadEndReqIndMsgT_v02, endStatus)
-};
-
-static const uint8_t qmiLocEventGdtDownloadBeginReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, sessionId),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, respTimeoutInterval),
-
- 0x04,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, clientInfo),
- ((QMI_LOC_MAX_GTP_CL_INFO_LEN_V02) & 0xFF), ((QMI_LOC_MAX_GTP_CL_INFO_LEN_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, clientInfo) - QMI_IDL_OFFSET8(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, clientInfo_len),
-
- 0x05,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, mobileStatusData),
- ((QMI_LOC_MAX_GTP_MSD_LEN_V02) & 0xFF), ((QMI_LOC_MAX_GTP_MSD_LEN_V02) >> 8),
- QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, mobileStatusData) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, mobileStatusData_len),
-
- 0x06,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, filePath),
- QMI_LOC_MAX_GDT_PATH_LEN_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, filePath) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, filePath_len),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, powerBudgetInfo) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, powerBudgetInfo_valid)),
- 0x10,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, powerBudgetInfo),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, powerBudgetAllowance) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, powerBudgetAllowance_valid)),
- 0x11,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, powerBudgetAllowance),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, downloadRequestMask) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, downloadRequestMask_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGdtDownloadBeginReqIndMsgT_v02, downloadRequestMask)
-};
-
-static const uint8_t qmiLocEventGdtReceiveDoneIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtReceiveDoneIndMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtReceiveDoneIndMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtReceiveDoneIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocEventGdtDownloadEndReqIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadEndReqIndMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadEndReqIndMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGdtDownloadEndReqIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetServiceRevisionReqMsgT is empty
- * static const uint8_t qmiLocGetServiceRevisionReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetServiceRevisionIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, status),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, revision),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, gnssMeFWVerString) - QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, gnssMeFWVerString_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, gnssMeFWVerString),
- QMI_LOC_GNSS_ME_VERSION_STRING_MAX_LENGTH_V02,
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, gnssHostSWVerString) - QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, gnssHostSWVerString_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocGetServiceRevisionIndMsgT_v02, gnssHostSWVerString),
- QMI_LOC_GNSS_HOSTED_SW_VERSION_STRING_MAX_LENGTH_V02,
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocGetServiceRevisionIndMsgT_v02, gnssSWVerString) - QMI_IDL_OFFSET16RELATIVE(qmiLocGetServiceRevisionIndMsgT_v02, gnssSWVerString_valid)),
- 0x12,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_STRING,
- QMI_IDL_OFFSET16ARRAY(qmiLocGetServiceRevisionIndMsgT_v02, gnssSWVerString),
- QMI_LOC_GNSS_SW_VERSION_STRING_MAX_LENGTH_V02
-};
-
-/*
- * qmiLocGetFixCriteriaReqMsgT is empty
- * static const uint8_t qmiLocGetFixCriteriaReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetFixCriteriaIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, horizontalAccuracyLevel) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, horizontalAccuracyLevel_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, horizontalAccuracyLevel),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, intermediateReportState) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, intermediateReportState_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, intermediateReportState),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, minInterval) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, minInterval_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, minInterval),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, applicationId) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, applicationId_valid)),
- 0x13,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, applicationId),
- QMI_IDL_TYPE88(0, 0),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, configAltitudeAssumed) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, configAltitudeAssumed_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, configAltitudeAssumed),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, minIntermediatePositionReportInterval) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, minIntermediatePositionReportInterval_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, minIntermediatePositionReportInterval),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, positionReportTimeout) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, positionReportTimeout_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, positionReportTimeout),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, sharePosition) - QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, sharePosition_valid)),
- 0x17,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetFixCriteriaIndMsgT_v02, sharePosition)
-};
-
-static const uint8_t qmiLocNiUserRespReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUserRespReqMsgT_v02, userResp),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUserRespReqMsgT_v02, notificationType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocNiUserRespReqMsgT_v02, NiVxPayload) - QMI_IDL_OFFSET8(qmiLocNiUserRespReqMsgT_v02, NiVxPayload_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocNiUserRespReqMsgT_v02, NiVxPayload),
- QMI_IDL_TYPE88(0, 5),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiSuplPayload) - QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiSuplPayload_valid)),
- 0x11,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiUserRespReqMsgT_v02, NiSuplPayload),
- QMI_IDL_TYPE88(0, 11),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiUmtsCpPayload) - QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiUmtsCpPayload_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiUserRespReqMsgT_v02, NiUmtsCpPayload),
- QMI_IDL_TYPE88(0, 13),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiVxServiceInteractionPayload) - QMI_IDL_OFFSET16RELATIVE(qmiLocNiUserRespReqMsgT_v02, NiVxServiceInteractionPayload_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocNiUserRespReqMsgT_v02, NiVxServiceInteractionPayload),
- QMI_IDL_TYPE88(0, 14),
-
- 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),
- QMI_IDL_TYPE88(0, 15),
-
- 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),
- QMI_IDL_TYPE88(0, 16)
-};
-
-static const uint8_t qmiLocNiUserRespIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNiUserRespIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectPredictedOrbitsDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, totalSize),
-
- 0x02,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, totalParts),
-
- 0x03,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, partNum),
-
- 0x04,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, partData),
- ((QMI_LOC_MAX_PREDICTED_ORBITS_PART_LEN_V02) & 0xFF), ((QMI_LOC_MAX_PREDICTED_ORBITS_PART_LEN_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, partData) - QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, partData_len),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, formatType) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, formatType_valid)),
- 0x10,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectPredictedOrbitsDataReqMsgT_v02, formatType)
-};
-
-static const uint8_t qmiLocInjectPredictedOrbitsDataIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataIndMsgT_v02, partNum) - QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataIndMsgT_v02, partNum_valid)),
- 0x10,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPredictedOrbitsDataIndMsgT_v02, partNum)
-};
-
-/*
- * qmiLocGetPredictedOrbitsDataSourceReqMsgT is empty
- * static const uint8_t qmiLocGetPredictedOrbitsDataSourceReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetPredictedOrbitsDataSourceIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02, allowedSizes) - QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02, allowedSizes_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02, allowedSizes),
- QMI_IDL_TYPE88(0, 19),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02, serverList) - QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02, serverList_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02, serverList),
- QMI_IDL_TYPE88(0, 20)
-};
-
-/*
- * qmiLocGetPredictedOrbitsDataValidityReqMsgT is empty
- * static const uint8_t qmiLocGetPredictedOrbitsDataValidityReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetPredictedOrbitsDataValidityIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02, validityInfo) - QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02, validityInfo_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02, validityInfo),
- QMI_IDL_TYPE88(0, 25)
-};
-
-static const uint8_t qmiLocInjectUtcTimeReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectUtcTimeReqMsgT_v02, timeUtc),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectUtcTimeReqMsgT_v02, timeUnc)
-};
-
-static const uint8_t qmiLocInjectUtcTimeIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectUtcTimeIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectPositionReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, latitude) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, latitude_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, latitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, longitude) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, longitude_valid)),
- 0x11,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, longitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horUncCircular) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horUncCircular_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horUncCircular),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horConfidence) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horConfidence_valid)),
- 0x13,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horReliability) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horReliability_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, horReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altitudeWrtEllipsoid) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altitudeWrtEllipsoid_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altitudeWrtEllipsoid),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altitudeWrtMeanSeaLevel) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altitudeWrtMeanSeaLevel_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altitudeWrtMeanSeaLevel),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertUnc) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertUnc_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertConfidence) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertConfidence_valid)),
- 0x18,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertReliability) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertReliability_valid)),
- 0x19,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, vertReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altSourceInfo) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altSourceInfo_valid)),
- 0x1A,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, altSourceInfo),
- QMI_IDL_TYPE88(0, 26),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, timestampUtc) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, timestampUtc_valid)),
- 0x1B,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, timestampUtc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, timestampAge) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, timestampAge_valid)),
- 0x1C,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, timestampAge),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, positionSrc) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, positionSrc_valid)),
- 0x1D,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, positionSrc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, rawHorUncCircular) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, rawHorUncCircular_valid)),
- 0x1E,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, rawHorUncCircular),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, rawHorConfidence) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, rawHorConfidence_valid)),
- 0x1F,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, rawHorConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, onDemandCpi) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, onDemandCpi_valid)),
- 0x20,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, onDemandCpi),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, positionSrcProvider) - QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, positionSrcProvider_valid)),
- 0x21,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionReqMsgT_v02, positionSrcProvider)
-};
-
-static const uint8_t qmiLocInjectPositionIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectPositionIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocSetEngineLockReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetEngineLockReqMsgT_v02, lockType)
-};
-
-static const uint8_t qmiLocSetEngineLockIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetEngineLockIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetEngineLockReqMsgT is empty
- * static const uint8_t qmiLocGetEngineLockReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetEngineLockIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetEngineLockIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetEngineLockIndMsgT_v02, lockType) - QMI_IDL_OFFSET8(qmiLocGetEngineLockIndMsgT_v02, lockType_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetEngineLockIndMsgT_v02, lockType)
-};
-
-static const uint8_t qmiLocSetSbasConfigReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSbasConfigReqMsgT_v02, sbasConfig)
-};
-
-static const uint8_t qmiLocSetSbasConfigIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSbasConfigIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetSbasConfigReqMsgT is empty
- * static const uint8_t qmiLocGetSbasConfigReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetSbasConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSbasConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSbasConfigIndMsgT_v02, sbasConfig) - QMI_IDL_OFFSET8(qmiLocGetSbasConfigIndMsgT_v02, sbasConfig_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSbasConfigIndMsgT_v02, sbasConfig)
-};
-
-static const uint8_t qmiLocSetNmeaTypesReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetNmeaTypesReqMsgT_v02, nmeaSentenceType)
-};
-
-static const uint8_t qmiLocSetNmeaTypesIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetNmeaTypesIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetNmeaTypesReqMsgT is empty
- * static const uint8_t qmiLocGetNmeaTypesReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetNmeaTypesIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetNmeaTypesIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetNmeaTypesIndMsgT_v02, nmeaSentenceType) - QMI_IDL_OFFSET8(qmiLocGetNmeaTypesIndMsgT_v02, nmeaSentenceType_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetNmeaTypesIndMsgT_v02, nmeaSentenceType)
-};
-
-static const uint8_t qmiLocSetLowPowerModeReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetLowPowerModeReqMsgT_v02, lowPowerMode)
-};
-
-static const uint8_t qmiLocSetLowPowerModeIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetLowPowerModeIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetLowPowerModeReqMsgT is empty
- * static const uint8_t qmiLocGetLowPowerModeReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetLowPowerModeIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetLowPowerModeIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetLowPowerModeIndMsgT_v02, lowPowerMode) - QMI_IDL_OFFSET8(qmiLocGetLowPowerModeIndMsgT_v02, lowPowerMode_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetLowPowerModeIndMsgT_v02, lowPowerMode)
-};
-
-static const uint8_t qmiLocSetServerReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, serverType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, ipv4Addr) - QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, ipv4Addr_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, ipv4Addr),
- QMI_IDL_TYPE88(0, 8),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, ipv6Addr) - QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, ipv6Addr_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, ipv6Addr),
- QMI_IDL_TYPE88(0, 9),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, urlAddr) - QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, urlAddr_valid)),
- 0x12,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocSetServerReqMsgT_v02, urlAddr),
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02
-};
-
-static const uint8_t qmiLocSetServerIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetServerIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGetServerReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetServerReqMsgT_v02, serverType),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetServerReqMsgT_v02, serverAddrTypeMask) - QMI_IDL_OFFSET8(qmiLocGetServerReqMsgT_v02, serverAddrTypeMask_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetServerReqMsgT_v02, serverAddrTypeMask)
-};
-
-static const uint8_t qmiLocGetServerIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, status),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, serverType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, ipv4Addr) - QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, ipv4Addr_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, ipv4Addr),
- QMI_IDL_TYPE88(0, 8),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, ipv6Addr) - QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, ipv6Addr_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, ipv6Addr),
- QMI_IDL_TYPE88(0, 9),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, urlAddr) - QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, urlAddr_valid)),
- 0x12,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocGetServerIndMsgT_v02, urlAddr),
- QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02
-};
-
-static const uint8_t qmiLocDeleteAssistDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteAssistDataReqMsgT_v02, deleteAllFlag),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteAssistDataReqMsgT_v02, deleteSvInfoList) - QMI_IDL_OFFSET8(qmiLocDeleteAssistDataReqMsgT_v02, deleteSvInfoList_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocDeleteAssistDataReqMsgT_v02, deleteSvInfoList),
- QMI_LOC_DELETE_MAX_SV_INFO_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocDeleteAssistDataReqMsgT_v02, deleteSvInfoList) - QMI_IDL_OFFSET8(qmiLocDeleteAssistDataReqMsgT_v02, deleteSvInfoList_len),
- QMI_IDL_TYPE88(0, 27),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteGnssDataMask) - QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteGnssDataMask_valid)),
- 0x11,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocDeleteAssistDataReqMsgT_v02, deleteGnssDataMask),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteCellDbDataMask) - QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteCellDbDataMask_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocDeleteAssistDataReqMsgT_v02, deleteCellDbDataMask),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteClockInfoMask) - QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteClockInfoMask_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocDeleteAssistDataReqMsgT_v02, deleteClockInfoMask),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteBdsSvInfoList) - QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteBdsSvInfoList_valid)),
- 0x14,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocDeleteAssistDataReqMsgT_v02, deleteBdsSvInfoList),
- QMI_LOC_DELETE_MAX_BDS_SV_INFO_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteBdsSvInfoList) - QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteBdsSvInfoList_len),
- QMI_IDL_TYPE88(0, 28),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteGalSvInfoList) - QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteGalSvInfoList_valid)),
- 0x15,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocDeleteAssistDataReqMsgT_v02, deleteGalSvInfoList),
- QMI_LOC_DELETE_MAX_GAL_SV_INFO_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteGalSvInfoList) - QMI_IDL_OFFSET16RELATIVE(qmiLocDeleteAssistDataReqMsgT_v02, deleteGalSvInfoList_len),
- QMI_IDL_TYPE88(0, 29)
-};
-
-static const uint8_t qmiLocDeleteAssistDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteAssistDataIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocSetXtraTSessionControlReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetXtraTSessionControlReqMsgT_v02, xtraTSessionControl)
-};
-
-static const uint8_t qmiLocSetXtraTSessionControlIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetXtraTSessionControlIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetXtraTSessionControlReqMsgT is empty
- * static const uint8_t qmiLocGetXtraTSessionControlReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetXtraTSessionControlIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetXtraTSessionControlIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetXtraTSessionControlIndMsgT_v02, xtraTSessionControl) - QMI_IDL_OFFSET8(qmiLocGetXtraTSessionControlIndMsgT_v02, xtraTSessionControl_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetXtraTSessionControlIndMsgT_v02, xtraTSessionControl)
-};
-
-static const uint8_t qmiLocInjectWifiPositionReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, wifiFixTime) - QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, wifiFixTime_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, wifiFixTime),
- QMI_IDL_TYPE88(0, 30),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, wifiFixPosition) - QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, wifiFixPosition_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, wifiFixPosition),
- QMI_IDL_TYPE88(0, 31),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, apInfo) - QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, apInfo_valid)),
- 0x12,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, apInfo),
- QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02,
- QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, apInfo) - QMI_IDL_OFFSET8(qmiLocInjectWifiPositionReqMsgT_v02, apInfo_len),
- QMI_IDL_TYPE88(0, 32),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, horizontalReliability) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, horizontalReliability_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiPositionReqMsgT_v02, horizontalReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, rawHepe) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, rawHepe_valid)),
- 0x14,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiPositionReqMsgT_v02, rawHepe),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, wifiApSsidInfo) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, wifiApSsidInfo_valid)),
- 0x15,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiPositionReqMsgT_v02, wifiApSsidInfo),
- QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, wifiApSsidInfo) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiPositionReqMsgT_v02, wifiApSsidInfo_len),
- QMI_IDL_TYPE88(0, 33)
-};
-
-static const uint8_t qmiLocInjectWifiPositionIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectWifiPositionIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocNotifyWifiStatusReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiStatusReqMsgT_v02, wifiStatus)
-};
-
-static const uint8_t qmiLocNotifyWifiStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiStatusIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetRegisteredEventsReqMsgT is empty
- * static const uint8_t qmiLocGetRegisteredEventsReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetRegisteredEventsIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetRegisteredEventsIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetRegisteredEventsIndMsgT_v02, eventRegMask) - QMI_IDL_OFFSET8(qmiLocGetRegisteredEventsIndMsgT_v02, eventRegMask_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetRegisteredEventsIndMsgT_v02, eventRegMask)
-};
-
-static const uint8_t qmiLocSetOperationModeReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetOperationModeReqMsgT_v02, operationMode),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetOperationModeReqMsgT_v02, minInterval) - QMI_IDL_OFFSET8(qmiLocSetOperationModeReqMsgT_v02, minInterval_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetOperationModeReqMsgT_v02, minInterval)
-};
-
-static const uint8_t qmiLocSetOperationModeIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetOperationModeIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetOperationModeReqMsgT is empty
- * static const uint8_t qmiLocGetOperationModeReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetOperationModeIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetOperationModeIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetOperationModeIndMsgT_v02, operationMode) - QMI_IDL_OFFSET8(qmiLocGetOperationModeIndMsgT_v02, operationMode_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetOperationModeIndMsgT_v02, operationMode)
-};
-
-static const uint8_t qmiLocSetSpiStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSpiStatusReqMsgT_v02, stationary),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSpiStatusReqMsgT_v02, confidenceStationary) - QMI_IDL_OFFSET8(qmiLocSetSpiStatusReqMsgT_v02, confidenceStationary_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSpiStatusReqMsgT_v02, confidenceStationary)
-};
-
-static const uint8_t qmiLocSetSpiStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSpiStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectSensorDataReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataReqMsgT_v02, opaqueIdentifier) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataReqMsgT_v02, opaqueIdentifier_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSensorDataReqMsgT_v02, opaqueIdentifier),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataReqMsgT_v02, threeAxisAccelData) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataReqMsgT_v02, threeAxisAccelData_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectSensorDataReqMsgT_v02, threeAxisAccelData),
- QMI_IDL_TYPE88(0, 35),
-
- 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),
- QMI_IDL_TYPE88(0, 35),
-
- 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),
- QMI_IDL_TYPE88(0, 37),
-
- 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),
- QMI_IDL_TYPE88(0, 37),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisMagData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisMagData_valid)),
- 0x17,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectSensorDataReqMsgT_v02, threeAxisMagData),
- QMI_IDL_TYPE88(0, 35),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisMagDataTimeSource) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectSensorDataReqMsgT_v02, threeAxisMagDataTimeSource_valid)),
- 0x18,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectSensorDataReqMsgT_v02, threeAxisMagDataTimeSource)
-};
-
-static const uint8_t qmiLocInjectSensorDataIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, opaqueIdentifier) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, opaqueIdentifier_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, opaqueIdentifier),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisAccelSamplesAccepted) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisAccelSamplesAccepted_valid)),
- 0x11,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisAccelSamplesAccepted),
-
- 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_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_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),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisMagSamplesAccepted) - QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisMagSamplesAccepted_valid)),
- 0x15,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSensorDataIndMsgT_v02, threeAxisMagSamplesAccepted)
-};
-
-static const uint8_t qmiLocInjectTimeSyncDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTimeSyncDataReqMsgT_v02, refCounter),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTimeSyncDataReqMsgT_v02, sensorProcRxTime),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTimeSyncDataReqMsgT_v02, sensorProcTxTime)
-};
-
-static const uint8_t qmiLocInjectTimeSyncDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTimeSyncDataIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetCradleMountConfigReqMsgT is empty
- * static const uint8_t qmiLocGetCradleMountConfigReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetCradleMountConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetCradleMountConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetCradleMountConfigIndMsgT_v02, cradleMountState) - QMI_IDL_OFFSET8(qmiLocGetCradleMountConfigIndMsgT_v02, cradleMountState_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetCradleMountConfigIndMsgT_v02, cradleMountState),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetCradleMountConfigIndMsgT_v02, confidenceCradleMountState) - QMI_IDL_OFFSET8(qmiLocGetCradleMountConfigIndMsgT_v02, confidenceCradleMountState_valid)),
- 0x11,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetCradleMountConfigIndMsgT_v02, confidenceCradleMountState)
-};
-
-static const uint8_t qmiLocSetCradleMountConfigReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetCradleMountConfigReqMsgT_v02, cradleMountState),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetCradleMountConfigReqMsgT_v02, confidenceCradleMountState) - QMI_IDL_OFFSET8(qmiLocSetCradleMountConfigReqMsgT_v02, confidenceCradleMountState_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetCradleMountConfigReqMsgT_v02, confidenceCradleMountState)
-};
-
-static const uint8_t qmiLocSetCradleMountConfigIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetCradleMountConfigIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetExternalPowerConfigReqMsgT is empty
- * static const uint8_t qmiLocGetExternalPowerConfigReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetExternalPowerConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetExternalPowerConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetExternalPowerConfigIndMsgT_v02, externalPowerState) - QMI_IDL_OFFSET8(qmiLocGetExternalPowerConfigIndMsgT_v02, externalPowerState_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetExternalPowerConfigIndMsgT_v02, externalPowerState)
-};
-
-static const uint8_t qmiLocSetExternalPowerConfigReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetExternalPowerConfigReqMsgT_v02, externalPowerState)
-};
-
-static const uint8_t qmiLocSetExternalPowerConfigIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetExternalPowerConfigIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInformLocationServerConnStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInformLocationServerConnStatusReqMsgT_v02, connHandle),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInformLocationServerConnStatusReqMsgT_v02, requestType),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInformLocationServerConnStatusReqMsgT_v02, statusType),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInformLocationServerConnStatusReqMsgT_v02, apnProfile) - QMI_IDL_OFFSET8(qmiLocInformLocationServerConnStatusReqMsgT_v02, apnProfile_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInformLocationServerConnStatusReqMsgT_v02, apnProfile),
- QMI_IDL_TYPE88(0, 38)
-};
-
-static const uint8_t qmiLocInformLocationServerConnStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInformLocationServerConnStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocSetProtocolConfigParametersReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplSecurity) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplSecurity_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplSecurity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, vxVersion) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, vxVersion_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, vxVersion),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplVersion) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplVersion_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, suplVersion),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppConfig) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppConfig_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppConfig),
-
- 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_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_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),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, wifiScanInjectTimeout) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, wifiScanInjectTimeout_valid)),
- 0x18,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, wifiScanInjectTimeout),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppeUpConfig) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppeUpConfig_valid)),
- 0x19,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppeUpConfig),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppeCpConfig) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppeCpConfig_valid)),
- 0x1A,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersReqMsgT_v02, lppeCpConfig)
-};
-
-static const uint8_t qmiLocSetProtocolConfigParametersIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersIndMsgT_v02, failedProtocolConfigParamMask) - QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersIndMsgT_v02, failedProtocolConfigParamMask_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetProtocolConfigParametersIndMsgT_v02, failedProtocolConfigParamMask)
-};
-
-static const uint8_t qmiLocGetProtocolConfigParametersReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersReqMsgT_v02, getProtocolConfigParamMask)
-};
-
-static const uint8_t qmiLocGetProtocolConfigParametersIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplSecurity) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplSecurity_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplSecurity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, vxVersion) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, vxVersion_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, vxVersion),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplVersion) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplVersion_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, suplVersion),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppConfig) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppConfig_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppConfig),
-
- 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_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_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),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, wifiScanInjectTimeout) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, wifiScanInjectTimeout_valid)),
- 0x18,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, wifiScanInjectTimeout),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppeUpConfig) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppeUpConfig_valid)),
- 0x19,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppeUpConfig),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppeCpConfig) - QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppeCpConfig_valid)),
- 0x1A,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetProtocolConfigParametersIndMsgT_v02, lppeCpConfig)
-};
-
-static const uint8_t qmiLocSetSensorControlConfigReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorControlConfigReqMsgT_v02, sensorsUsage) - QMI_IDL_OFFSET8(qmiLocSetSensorControlConfigReqMsgT_v02, sensorsUsage_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorControlConfigReqMsgT_v02, sensorsUsage),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorControlConfigReqMsgT_v02, sensorProvider) - QMI_IDL_OFFSET8(qmiLocSetSensorControlConfigReqMsgT_v02, sensorProvider_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorControlConfigReqMsgT_v02, sensorProvider)
-};
-
-static const uint8_t qmiLocSetSensorControlConfigIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorControlConfigIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetSensorControlConfigReqMsgT is empty
- * static const uint8_t qmiLocGetSensorControlConfigReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetSensorControlConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorControlConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorControlConfigIndMsgT_v02, sensorsUsage) - QMI_IDL_OFFSET8(qmiLocGetSensorControlConfigIndMsgT_v02, sensorsUsage_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorControlConfigIndMsgT_v02, sensorsUsage),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorControlConfigIndMsgT_v02, sensorProvider) - QMI_IDL_OFFSET8(qmiLocGetSensorControlConfigIndMsgT_v02, sensorProvider_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorControlConfigIndMsgT_v02, sensorProvider)
-};
-
-static const uint8_t qmiLocSetSensorPropertiesReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, gyroBiasVarianceRandomWalk) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, gyroBiasVarianceRandomWalk_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, gyroBiasVarianceRandomWalk),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, velocityRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, velocityRandomWalkSpectralDensity_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, velocityRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, accelerationRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, accelerationRandomWalkSpectralDensity_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, accelerationRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, angleRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, angleRandomWalkSpectralDensity_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, angleRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, rateRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, rateRandomWalkSpectralDensity_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, rateRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleDataUse) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleDataUse_valid)),
- 0x15,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleDataUse),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleVelocityRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleVelocityRandomWalkSpectralDensity_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleVelocityRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAccelRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAccelRandomWalkSpectralDensity_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAccelRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAngleRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAngleRandomWalkSpectralDensity_valid)),
- 0x18,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAngleRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAngularRateRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAngularRateRandomWalkSpectralDensity_valid)),
- 0x19,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleAngularRateRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleOdometryScaleFactorRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleOdometryScaleFactorRandomWalkSpectralDensity_valid)),
- 0x1A,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleOdometryScaleFactorRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleOdometryVariance) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleOdometryVariance_valid)),
- 0x1B,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesReqMsgT_v02, vehicleOdometryVariance)
-};
-
-static const uint8_t qmiLocSetSensorPropertiesIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesIndMsgT_v02, failedSensorPropertiesMask) - QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesIndMsgT_v02, failedSensorPropertiesMask_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPropertiesIndMsgT_v02, failedSensorPropertiesMask)
-};
-
-static const uint8_t qmiLocGetSensorPropertiesReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesReqMsgT_v02, getSensorPropertiesMask)
-};
-
-static const uint8_t qmiLocGetSensorPropertiesIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, gyroBiasVarianceRandomWalk) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, gyroBiasVarianceRandomWalk_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, gyroBiasVarianceRandomWalk),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, velocityRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, velocityRandomWalkSpectralDensity_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, velocityRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, accelerationRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, accelerationRandomWalkSpectralDensity_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, accelerationRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, angleRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, angleRandomWalkSpectralDensity_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, angleRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, rateRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, rateRandomWalkSpectralDensity_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, rateRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleDataUse) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleDataUse_valid)),
- 0x15,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleDataUse),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleVelocityRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleVelocityRandomWalkSpectralDensity_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleVelocityRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAccelRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAccelRandomWalkSpectralDensity_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAccelRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAngleRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAngleRandomWalkSpectralDensity_valid)),
- 0x18,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAngleRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAngularRateRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAngularRateRandomWalkSpectralDensity_valid)),
- 0x19,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleAngularRateRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleOdometryScaleFactorRandomWalkSpectralDensity) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleOdometryScaleFactorRandomWalkSpectralDensity_valid)),
- 0x1A,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleOdometryScaleFactorRandomWalkSpectralDensity),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleOdometryVariance) - QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleOdometryVariance_valid)),
- 0x1B,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPropertiesIndMsgT_v02, vehicleOdometryVariance)
-};
-
-static const uint8_t qmiLocSetSensorPerformanceControlConfigReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, performanceControlMode) - QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, performanceControlMode_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, performanceControlMode),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, accelSamplingSpec) - QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, accelSamplingSpec_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, accelSamplingSpec),
- QMI_IDL_TYPE88(0, 21),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, gyroSamplingSpec) - QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, gyroSamplingSpec_valid)),
- 0x12,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, gyroSamplingSpec),
- QMI_IDL_TYPE88(0, 21),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, algorithmConfig) - QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, algorithmConfig_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, algorithmConfig),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, accelSamplingSpecHigh) - QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, accelSamplingSpecHigh_valid)),
- 0x14,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, accelSamplingSpecHigh),
- QMI_IDL_TYPE88(0, 21),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, gyroSamplingSpecHigh) - QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, gyroSamplingSpecHigh_valid)),
- 0x15,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02, gyroSamplingSpecHigh),
- QMI_IDL_TYPE88(0, 21)
-};
-
-static const uint8_t qmiLocSetSensorPerformanceControlConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigIndMsgT_v02, failedConfiguration) - QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigIndMsgT_v02, failedConfiguration_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetSensorPerformanceControlConfigIndMsgT_v02, failedConfiguration)
-};
-
-/*
- * qmiLocGetSensorPerformanceControlConfigReqMsgT is empty
- * static const uint8_t qmiLocGetSensorPerformanceControlConfigReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetSensorPerformanceControlConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, performanceControlMode) - QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, performanceControlMode_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, performanceControlMode),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, accelSamplingSpec) - QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, accelSamplingSpec_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, accelSamplingSpec),
- QMI_IDL_TYPE88(0, 21),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, gyroSamplingSpec) - QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, gyroSamplingSpec_valid)),
- 0x12,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, gyroSamplingSpec),
- QMI_IDL_TYPE88(0, 21),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, algorithmConfig) - QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, algorithmConfig_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, algorithmConfig),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, accelSamplingSpecHigh) - QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, accelSamplingSpecHigh_valid)),
- 0x14,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, accelSamplingSpecHigh),
- QMI_IDL_TYPE88(0, 21),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, gyroSamplingSpecHigh) - QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, gyroSamplingSpecHigh_valid)),
- 0x15,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02, gyroSamplingSpecHigh),
- QMI_IDL_TYPE88(0, 21)
-};
-
-static const uint8_t qmiLocInjectSuplCertificateReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSuplCertificateReqMsgT_v02, suplCertId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSuplCertificateReqMsgT_v02, suplCertData),
- ((QMI_LOC_MAX_SUPL_CERT_LENGTH_V02) & 0xFF), ((QMI_LOC_MAX_SUPL_CERT_LENGTH_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocInjectSuplCertificateReqMsgT_v02, suplCertData) - QMI_IDL_OFFSET8(qmiLocInjectSuplCertificateReqMsgT_v02, suplCertData_len)
-};
-
-static const uint8_t qmiLocInjectSuplCertificateIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSuplCertificateIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocDeleteSuplCertificateReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteSuplCertificateReqMsgT_v02, suplCertId) - QMI_IDL_OFFSET8(qmiLocDeleteSuplCertificateReqMsgT_v02, suplCertId_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteSuplCertificateReqMsgT_v02, suplCertId)
-};
-
-static const uint8_t qmiLocDeleteSuplCertificateIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteSuplCertificateIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocSetPositionEngineConfigParametersReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, injectedPositionControl) - QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, injectedPositionControl_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, injectedPositionControl),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, filterSvUsage) - QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, filterSvUsage_valid)),
- 0x11,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, filterSvUsage),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, storeAssistData) - QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, storeAssistData_valid)),
- 0x12,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, storeAssistData),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, enableFasterTTFF) - QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, enableFasterTTFF_valid)),
- 0x13,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersReqMsgT_v02, enableFasterTTFF)
-};
-
-static const uint8_t qmiLocSetPositionEngineConfigParametersIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersIndMsgT_v02, failedPositionEngineConfigParamMask) - QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersIndMsgT_v02, failedPositionEngineConfigParamMask_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPositionEngineConfigParametersIndMsgT_v02, failedPositionEngineConfigParamMask)
-};
-
-static const uint8_t qmiLocGetPositionEngineConfigParametersReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersReqMsgT_v02, getPositionEngineConfigParamMask)
-};
-
-static const uint8_t qmiLocGetPositionEngineConfigParametersIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, injectedPositionControl) - QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, injectedPositionControl_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, injectedPositionControl),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, filterSvUsage) - QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, filterSvUsage_valid)),
- 0x11,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, filterSvUsage),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, storeAssistData) - QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, storeAssistData_valid)),
- 0x12,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, storeAssistData),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, enableFasterTTFF) - QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, enableFasterTTFF_valid)),
- 0x13,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetPositionEngineConfigParametersIndMsgT_v02, enableFasterTTFF)
-};
-
-static const uint8_t qmiLocAddCircularGeofenceReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, transactionId),
-
- 0x02,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, circularGeofenceArgs),
- QMI_IDL_TYPE88(0, 39),
-
- 0x03,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, breachMask),
-
- 0x04,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, includePosition),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, responsiveness) - QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, responsiveness_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, responsiveness),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, confidence) - QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, confidence_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, confidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, customResponsivenessValue) - QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, customResponsivenessValue_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, customResponsivenessValue),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, dwellTime) - QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, dwellTime_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, dwellTime),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, dwellTypeMask) - QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, dwellTypeMask_valid)),
- 0x14,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceReqMsgT_v02, dwellTypeMask)
-};
-
-static const uint8_t qmiLocAddCircularGeofenceIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceIndMsgT_v02, geofenceId) - QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceIndMsgT_v02, geofenceId_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddCircularGeofenceIndMsgT_v02, geofenceId)
-};
-
-static const uint8_t qmiLocDeleteGeofenceReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceReqMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocDeleteGeofenceIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGeofenceIndMsgT_v02, geofenceId) - QMI_IDL_OFFSET8(qmiLocDeleteGeofenceIndMsgT_v02, geofenceId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceIndMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGeofenceIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocDeleteGeofenceIndMsgT_v02, transactionId_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceIndMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocQueryGeofenceReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceReqMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocQueryGeofenceIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceId) - QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, transactionId_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceOrigin) - QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceOrigin_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceOrigin),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, posWrtGeofence) - QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, posWrtGeofence_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, posWrtGeofence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, circularGeofenceArgs) - QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, circularGeofenceArgs_valid)),
- 0x14,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, circularGeofenceArgs),
- QMI_IDL_TYPE88(0, 39),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceState) - QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceState_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryGeofenceIndMsgT_v02, geofenceState)
-};
-
-static const uint8_t qmiLocSetGeofenceEngineConfigReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssUnavailableIndicationTimeout) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssUnavailableIndicationTimeout_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssUnavailableIndicationTimeout),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, maxGeofences) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, maxGeofences_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, maxGeofences),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, enableMotionDetectionSources) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, enableMotionDetectionSources_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, enableMotionDetectionSources),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, enableCpiUsage) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, enableCpiUsage_valid)),
- 0x13,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, enableCpiUsage),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssPositionSessionTimeout) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssPositionSessionTimeout_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssPositionSessionTimeout),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssPositionMaxPuncAcceptable) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssPositionMaxPuncAcceptable_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, gnssPositionMaxPuncAcceptable),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, mediumResponsivenessValue) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, mediumResponsivenessValue_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, mediumResponsivenessValue),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, chalGnssEnvMinCpiWaitInterval) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, chalGnssEnvMinCpiWaitInterval_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, chalGnssEnvMinCpiWaitInterval),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, motionStateInfo) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, motionStateInfo_valid)),
- 0x18,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, motionStateInfo),
- QMI_LOC_GEOFENCE_MAX_MOTION_STATES_V02,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, motionStateInfo) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigReqMsgT_v02, motionStateInfo_len),
- QMI_IDL_TYPE88(0, 40)
-};
-
-static const uint8_t qmiLocSetGeofenceEngineConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineConfigIndMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocGetGeofenceEngineConfigReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocGetGeofenceEngineConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, gnssUnavailableIndicationTimeout) - QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, gnssUnavailableIndicationTimeout_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, gnssUnavailableIndicationTimeout),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, maxGeofences) - QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, maxGeofences_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, maxGeofences),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, enabledMotionDetectionSources) - QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, enabledMotionDetectionSources_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, enabledMotionDetectionSources),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, enabledCpiUsage) - QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, enabledCpiUsage_valid)),
- 0x14,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetGeofenceEngineConfigIndMsgT_v02, enabledCpiUsage)
-};
-
-static const uint8_t qmiLocEditGeofenceReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, geofenceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, geofenceState) - QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, geofenceState_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, geofenceState),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, breachMask) - QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, breachMask_valid)),
- 0x11,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, breachMask),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, responsiveness) - QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, responsiveness_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceReqMsgT_v02, responsiveness)
-};
-
-static const uint8_t qmiLocEditGeofenceIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, geofenceId) - QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, geofenceId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, transactionId_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, failedParams) - QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, failedParams_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEditGeofenceIndMsgT_v02, failedParams)
-};
-
-static const uint8_t qmiLocEventGetTimeZoneReqIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGetTimeZoneReqIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectTimeZoneInfoReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTimeZoneInfoReqMsgT_v02, timeUtc),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectTimeZoneInfoReqMsgT_v02, timeZone),
- QMI_IDL_TYPE88(0, 41)
-};
-
-static const uint8_t qmiLocInjectTimeZoneInfoIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTimeZoneInfoIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGetBestAvailablePositionReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocGetBestAvailablePositionIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, latitude) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, latitude_valid)),
- 0x11,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, latitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, longitude) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, longitude_valid)),
- 0x12,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, longitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncCircular) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncCircular_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncCircular),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, altitudeWrtEllipsoid) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, altitudeWrtEllipsoid_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, altitudeWrtEllipsoid),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertUnc) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertUnc_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, timestampUtc) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, timestampUtc_valid)),
- 0x16,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, timestampUtc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, timeUnc) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, timeUnc_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, timeUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseSemiMinor) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseSemiMinor_valid)),
- 0x18,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseSemiMinor),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseSemiMajor) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseSemiMajor_valid)),
- 0x19,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseSemiMajor),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseOrientAzimuth) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseOrientAzimuth_valid)),
- 0x1A,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horUncEllipseOrientAzimuth),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horCircularConfidence) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horCircularConfidence_valid)),
- 0x1B,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horCircularConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horEllipticalConfidence) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horEllipticalConfidence_valid)),
- 0x1C,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horEllipticalConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horReliability) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horReliability_valid)),
- 0x1D,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horSpeed) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horSpeed_valid)),
- 0x1E,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horSpeed),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horSpeedUnc) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horSpeedUnc_valid)),
- 0x1F,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, horSpeedUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, altitudeWrtMeanSeaLevel) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, altitudeWrtMeanSeaLevel_valid)),
- 0x20,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, altitudeWrtMeanSeaLevel),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertConfidence) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertConfidence_valid)),
- 0x21,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertReliability) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertReliability_valid)),
- 0x22,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertSpeed) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertSpeed_valid)),
- 0x23,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertSpeed),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertSpeedUnc) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertSpeedUnc_valid)),
- 0x24,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, vertSpeedUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, heading) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, heading_valid)),
- 0x25,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, heading),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, headingUnc) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, headingUnc_valid)),
- 0x26,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, headingUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, magneticDeviation) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, magneticDeviation_valid)),
- 0x27,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, magneticDeviation),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, technologyMask) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, technologyMask_valid)),
- 0x28,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, technologyMask),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, DOP) - QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, DOP_valid)),
- 0x29,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetBestAvailablePositionIndMsgT_v02, DOP),
- QMI_IDL_TYPE88(0, 2),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, gpsTime) - QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, gpsTime_valid)),
- 0x2A,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocGetBestAvailablePositionIndMsgT_v02, gpsTime),
- QMI_IDL_TYPE88(0, 1),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, timeSrc) - QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, timeSrc_valid)),
- 0x2B,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocGetBestAvailablePositionIndMsgT_v02, timeSrc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, sensorDataUsage) - QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, sensorDataUsage_valid)),
- 0x2C,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocGetBestAvailablePositionIndMsgT_v02, sensorDataUsage),
- QMI_IDL_TYPE88(0, 3),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, gnssSvUsedList_valid)),
- 0x2D,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocGetBestAvailablePositionIndMsgT_v02, gnssSvUsedList),
- QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET16RELATIVE(qmiLocGetBestAvailablePositionIndMsgT_v02, gnssSvUsedList_len)
-};
-
-static const uint8_t qmiLocInjectMotionDataReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectMotionDataReqMsgT_v02, motion_data),
- QMI_IDL_TYPE88(0, 42)
-};
-
-static const uint8_t qmiLocInjectMotionDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectMotionDataIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGetNiGeofenceIdListReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocGetNiGeofenceIdListIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, niGeofenceIdList) - QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, niGeofenceIdList_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, niGeofenceIdList),
- QMI_LOC_MAX_NI_GEOFENCE_ID_LIST_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, niGeofenceIdList) - QMI_IDL_OFFSET8(qmiLocGetNiGeofenceIdListIndMsgT_v02, niGeofenceIdList_len)
-};
-
-static const uint8_t qmiLocInjectGSMCellInfoReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectGSMCellInfoReqMsgT_v02, gsmCellId),
- QMI_IDL_TYPE88(0, 43),
-
- 0x02,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectGSMCellInfoReqMsgT_v02, roamingStatus),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectGSMCellInfoReqMsgT_v02, timingAdvance) - QMI_IDL_OFFSET8(qmiLocInjectGSMCellInfoReqMsgT_v02, timingAdvance_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectGSMCellInfoReqMsgT_v02, timingAdvance)
-};
-
-static const uint8_t qmiLocInjectGSMCellInfoIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectGSMCellInfoIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectWCDMACellInfoReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, wcdmaCellId),
- QMI_IDL_TYPE88(0, 44),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, roamingStatus),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, freq) - QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, freq_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, freq),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, psc) - QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, psc_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoReqMsgT_v02, psc)
-};
-
-static const uint8_t qmiLocInjectWCDMACellInfoIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectWCDMACellInfoIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectTDSCDMACellInfoReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectTDSCDMACellInfoReqMsgT_v02, tdscdmaCellId),
- QMI_IDL_TYPE88(0, 45),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTDSCDMACellInfoReqMsgT_v02, roamingStatus),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectTDSCDMACellInfoReqMsgT_v02, freq) - QMI_IDL_OFFSET8(qmiLocInjectTDSCDMACellInfoReqMsgT_v02, freq_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTDSCDMACellInfoReqMsgT_v02, freq)
-};
-
-static const uint8_t qmiLocInjectTDSCDMACellInfoIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectTDSCDMACellInfoIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectSubscriberIDReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSubscriberIDReqMsgT_v02, preferredIMSI) - QMI_IDL_OFFSET8(qmiLocInjectSubscriberIDReqMsgT_v02, preferredIMSI_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSubscriberIDReqMsgT_v02, preferredIMSI),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectSubscriberIDReqMsgT_v02, preferredMSISDN) - QMI_IDL_OFFSET8(qmiLocInjectSubscriberIDReqMsgT_v02, preferredMSISDN_valid)),
- 0x11,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSubscriberIDReqMsgT_v02, preferredMSISDN)
-};
-
-static const uint8_t qmiLocInjectSubscriberIDIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectSubscriberIDIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectNetworkInitiatedMessageReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectNetworkInitiatedMessageReqMsgT_v02, injectedNIMessageType),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectNetworkInitiatedMessageReqMsgT_v02, injectedNIMessage),
- ((QMI_LOC_MAX_INJECTED_NETWORK_INITIATED_MESSAGE_LENGTH_V02) & 0xFF), ((QMI_LOC_MAX_INJECTED_NETWORK_INITIATED_MESSAGE_LENGTH_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocInjectNetworkInitiatedMessageReqMsgT_v02, injectedNIMessage) - QMI_IDL_OFFSET8(qmiLocInjectNetworkInitiatedMessageReqMsgT_v02, injectedNIMessage_len)
-};
-
-static const uint8_t qmiLocInjectNetworkInitiatedMessageIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectNetworkInitiatedMessageIndMsgT_v02, status)
-};
-
-/*
- * qmiLocWWANOutOfServiceNotificationReqMsgT is empty
- * static const uint8_t qmiLocWWANOutOfServiceNotificationReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocWWANOutOfServiceNotificationIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocWWANOutOfServiceNotificationIndMsgT_v02, status)
-};
-
-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)
-};
-
-static const uint8_t qmiLocGetBatchSizeReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBatchSizeReqMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBatchSizeReqMsgT_v02, batchSize)
-};
-
-static const uint8_t qmiLocGetBatchSizeIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBatchSizeIndMsgT_v02, status),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBatchSizeIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetBatchSizeIndMsgT_v02, batchSize)
-};
-
-static const uint8_t qmiLocStartBatchingReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, minInterval) - QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, minInterval_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, minInterval),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, horizontalAccuracyLevel) - QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, horizontalAccuracyLevel_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, horizontalAccuracyLevel),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, fixSessionTimeout) - QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, fixSessionTimeout_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, fixSessionTimeout),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, minDistance) - QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, minDistance_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, minDistance),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, batchAllPos) - QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, batchAllPos_valid)),
- 0x14,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, batchAllPos),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, requestId) - QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, requestId_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingReqMsgT_v02, requestId)
-};
-
-static const uint8_t qmiLocStartBatchingIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartBatchingIndMsgT_v02, requestId) - QMI_IDL_OFFSET8(qmiLocStartBatchingIndMsgT_v02, requestId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartBatchingIndMsgT_v02, requestId)
-};
-
-static const uint8_t qmiLocEventBatchFullIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventBatchFullIndMsgT_v02, batchCount)
-};
-
-static const uint8_t qmiLocEventLiveBatchedPositionReportIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventLiveBatchedPositionReportIndMsgT_v02, liveBatchedReport),
- QMI_IDL_TYPE88(0, 46)
-};
-
-static const uint8_t qmiLocReadFromBatchReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReadFromBatchReqMsgT_v02, numberOfEntries),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReadFromBatchReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocReadFromBatchIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, status),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, numberOfEntries) - QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, numberOfEntries_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, numberOfEntries),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, batchedReportList) - QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, batchedReportList_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, batchedReportList),
- QMI_LOC_READ_FROM_BATCH_MAX_SIZE_V02,
- QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, batchedReportList) - QMI_IDL_OFFSET8(qmiLocReadFromBatchIndMsgT_v02, batchedReportList_len),
- QMI_IDL_TYPE88(0, 46)
-};
-
-static const uint8_t qmiLocStopBatchingReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopBatchingReqMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStopBatchingReqMsgT_v02, requestId) - QMI_IDL_OFFSET8(qmiLocStopBatchingReqMsgT_v02, requestId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopBatchingReqMsgT_v02, requestId)
-};
-
-static const uint8_t qmiLocStopBatchingIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopBatchingIndMsgT_v02, status),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopBatchingIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStopBatchingIndMsgT_v02, requestId) - QMI_IDL_OFFSET8(qmiLocStopBatchingIndMsgT_v02, requestId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopBatchingIndMsgT_v02, requestId)
-};
-
-static const uint8_t qmiLocReleaseBatchReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReleaseBatchReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocReleaseBatchIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReleaseBatchIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocReleaseBatchIndMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocEventInjectWifiApDataReqIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventInjectWifiApDataReqIndMsgT_v02, e911Mode) - QMI_IDL_OFFSET8(qmiLocEventInjectWifiApDataReqIndMsgT_v02, e911Mode_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventInjectWifiApDataReqIndMsgT_v02, e911Mode)
-};
-
-static const uint8_t qmiLocInjectWifiApDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfo),
- QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02,
- QMI_IDL_OFFSET8(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfo) - QMI_IDL_OFFSET8(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfo_len),
- QMI_IDL_TYPE88(0, 47),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, errorCause) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, errorCause_valid)),
- 0x10,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiApDataReqMsgT_v02, errorCause),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, requestTimestamp) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, requestTimestamp_valid)),
- 0x11,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiApDataReqMsgT_v02, requestTimestamp),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, receiveTimestamp) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, receiveTimestamp_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiApDataReqMsgT_v02, receiveTimestamp),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, onDemandScan) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, onDemandScan_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiApDataReqMsgT_v02, onDemandScan),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfoA) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfoA_valid)),
- 0x14,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfoA),
- QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfoA) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectWifiApDataReqMsgT_v02, wifiApInfoA_len),
- QMI_IDL_TYPE88(0, 48)
-};
-
-static const uint8_t qmiLocInjectWifiApDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectWifiApDataIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocNotifyWifiAttachmentStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02, attachState),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02, accessPointMacAddress) - QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02, accessPointMacAddress_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02, accessPointMacAddress),
- QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02,
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02, wifiApSsid) - QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02, wifiApSsid_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_STRING,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02, wifiApSsid),
- QMI_LOC_MAX_WIFI_AP_SSID_STR_LENGTH_V02
-};
-
-static const uint8_t qmiLocNotifyWifiAttachmentStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiAttachmentStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocNotifyWifiEnabledStatusReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiEnabledStatusReqMsgT_v02, enabledStatus)
-};
-
-static const uint8_t qmiLocNotifyWifiEnabledStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocNotifyWifiEnabledStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocEventVehicleDataReadyIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleAccelReadyStatus) - QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleAccelReadyStatus_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleAccelReadyStatus),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleAngularRateReadyStatus) - QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleAngularRateReadyStatus_valid)),
- 0x11,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleAngularRateReadyStatus),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleOdometryReadyStatus) - QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleOdometryReadyStatus_valid)),
- 0x12,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventVehicleDataReadyIndMsgT_v02, vehicleOdometryReadyStatus)
-};
-
-static const uint8_t qmiLocInjectVehicleSensorDataReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectVehicleSensorDataReqMsgT_v02, accelData) - QMI_IDL_OFFSET8(qmiLocInjectVehicleSensorDataReqMsgT_v02, accelData_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectVehicleSensorDataReqMsgT_v02, accelData),
- QMI_IDL_TYPE88(0, 50),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectVehicleSensorDataReqMsgT_v02, angRotationData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectVehicleSensorDataReqMsgT_v02, angRotationData_valid)),
- 0x11,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectVehicleSensorDataReqMsgT_v02, angRotationData),
- QMI_IDL_TYPE88(0, 50),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectVehicleSensorDataReqMsgT_v02, odometryData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectVehicleSensorDataReqMsgT_v02, odometryData_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectVehicleSensorDataReqMsgT_v02, odometryData),
- QMI_IDL_TYPE88(0, 52),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectVehicleSensorDataReqMsgT_v02, changeInTimeScales) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectVehicleSensorDataReqMsgT_v02, changeInTimeScales_valid)),
- 0x13,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectVehicleSensorDataReqMsgT_v02, changeInTimeScales)
-};
-
-static const uint8_t qmiLocInjectVehicleSensorDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectVehicleSensorDataIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGetAvailWwanPositionReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocGetAvailWwanPositionIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, latitude) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, latitude_valid)),
- 0x11,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, latitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, longitude) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, longitude_valid)),
- 0x12,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, longitude),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncCircular) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncCircular_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncCircular),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, altitudeWrtEllipsoid) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, altitudeWrtEllipsoid_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, altitudeWrtEllipsoid),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertUnc) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertUnc_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timestampUtc) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timestampUtc_valid)),
- 0x16,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timestampUtc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timeUnc) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timeUnc_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timeUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseSemiMinor) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseSemiMinor_valid)),
- 0x18,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseSemiMinor),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseSemiMajor) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseSemiMajor_valid)),
- 0x19,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseSemiMajor),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseOrientAzimuth) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseOrientAzimuth_valid)),
- 0x1A,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horUncEllipseOrientAzimuth),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horCircularConfidence) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horCircularConfidence_valid)),
- 0x1B,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horCircularConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horEllipticalConfidence) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horEllipticalConfidence_valid)),
- 0x1C,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horEllipticalConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horReliability) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horReliability_valid)),
- 0x1D,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, horReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, altitudeWrtMeanSeaLevel) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, altitudeWrtMeanSeaLevel_valid)),
- 0x1E,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, altitudeWrtMeanSeaLevel),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertConfidence) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertConfidence_valid)),
- 0x1F,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertReliability) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertReliability_valid)),
- 0x20,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, vertReliability),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, gpsTime) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, gpsTime_valid)),
- 0x21,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, gpsTime),
- QMI_IDL_TYPE88(0, 1),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timeSrc) - QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timeSrc_valid)),
- 0x22,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetAvailWwanPositionIndMsgT_v02, timeSrc)
-};
-
-static const uint8_t qmiLocSetPremiumServicesCfgReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPremiumServicesCfgReqMsgT_v02, premiumServiceType),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPremiumServicesCfgReqMsgT_v02, premiumServiceCfg)
-};
-
-static const uint8_t qmiLocSetPremiumServicesCfgIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetPremiumServicesCfgIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocSetXtraVersionCheckReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetXtraVersionCheckReqMsgT_v02, xtraVersionCheckMode)
-};
-
-static const uint8_t qmiLocSetXtraVersionCheckIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetXtraVersionCheckIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocSetGNSSConstRepConfigReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGNSSConstRepConfigReqMsgT_v02, measReportConfig) - QMI_IDL_OFFSET8(qmiLocSetGNSSConstRepConfigReqMsgT_v02, measReportConfig_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGNSSConstRepConfigReqMsgT_v02, measReportConfig),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGNSSConstRepConfigReqMsgT_v02, svPolyReportConfig) - QMI_IDL_OFFSET8(qmiLocSetGNSSConstRepConfigReqMsgT_v02, svPolyReportConfig_valid)),
- 0x11,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGNSSConstRepConfigReqMsgT_v02, svPolyReportConfig)
-};
-
-static const uint8_t qmiLocSetGNSSConstRepConfigIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGNSSConstRepConfigIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocEventGnssSvMeasInfoIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, seqNum),
-
- 0x02,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, maxMessageNum),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, system),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, rcvrClockFrequencyInfo) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, rcvrClockFrequencyInfo_valid)),
- 0x10,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, rcvrClockFrequencyInfo),
- QMI_IDL_TYPE88(0, 53),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, leapSecondInfo) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, leapSecondInfo_valid)),
- 0x11,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, leapSecondInfo),
- QMI_IDL_TYPE88(0, 54),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsGloInterSystemBias) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsGloInterSystemBias_valid)),
- 0x12,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsGloInterSystemBias),
- QMI_IDL_TYPE88(0, 55),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsBdsInterSystemBias) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsBdsInterSystemBias_valid)),
- 0x13,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsBdsInterSystemBias),
- QMI_IDL_TYPE88(0, 55),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsGalInterSystemBias) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsGalInterSystemBias_valid)),
- 0x14,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gpsGalInterSystemBias),
- QMI_IDL_TYPE88(0, 55),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, bdsGloInterSystemBias) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, bdsGloInterSystemBias_valid)),
- 0x15,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, bdsGloInterSystemBias),
- QMI_IDL_TYPE88(0, 55),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, galGloInterSystemBias) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, galGloInterSystemBias_valid)),
- 0x16,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, galGloInterSystemBias),
- QMI_IDL_TYPE88(0, 55),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, galBdsInterSystemBias) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, galBdsInterSystemBias_valid)),
- 0x17,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, galBdsInterSystemBias),
- QMI_IDL_TYPE88(0, 55),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, systemTime) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, systemTime_valid)),
- 0x18,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, systemTime),
- QMI_IDL_TYPE88(0, 56),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gloTime) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gloTime_valid)),
- 0x19,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, gloTime),
- QMI_IDL_TYPE88(0, 57),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, systemTimeExt) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, systemTimeExt_valid)),
- 0x1A,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, systemTimeExt),
- QMI_IDL_TYPE88(0, 58),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, svMeasurement) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, svMeasurement_valid)),
- 0x1B,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, svMeasurement),
- QMI_LOC_SV_MEAS_LIST_MAX_SIZE_V02,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, svMeasurement) - QMI_IDL_OFFSET8(qmiLocEventGnssSvMeasInfoIndMsgT_v02, svMeasurement_len),
- QMI_IDL_TYPE88(0, 60),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvMeasInfoIndMsgT_v02, numClockResets) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvMeasInfoIndMsgT_v02, numClockResets_valid)),
- 0x1C,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGnssSvMeasInfoIndMsgT_v02, numClockResets)
-};
-
-static const uint8_t qmiLocEventGnssSvPolyIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, gnssSvId),
-
- 0x02,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, T0),
-
- 0x03,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, svPolyFlagValid),
-
- 0x04,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, svPolyFlags),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoeffXYZ0) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoeffXYZ0_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoeffXYZ0),
- QMI_LOC_SV_POLY_XYZ_0_TH_ORDER_COEFF_SIZE_V02,
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoefXYZN) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoefXYZN_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoefXYZN),
- QMI_LOC_SV_POLY_XYZ_N_TH_ORDER_COEFF_SIZE_V02,
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoefClockBias) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoefClockBias_valid)),
- 0x12,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, polyCoefClockBias),
- QMI_LOC_SV_POLY_SV_CLKBIAS_COEFF_SIZE_V02,
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, gloFrequency) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, gloFrequency_valid)),
- 0x13,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, gloFrequency),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, IODE) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, IODE_valid)),
- 0x14,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, IODE),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, enhancedIOD) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, enhancedIOD_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, enhancedIOD),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, svPosUnc) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, svPosUnc_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, svPosUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, ionoDelay) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, ionoDelay_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, ionoDelay),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, ionoDot) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, ionoDot_valid)),
- 0x18,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, ionoDot),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, sbasIonoDelay) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, sbasIonoDelay_valid)),
- 0x19,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, sbasIonoDelay),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, sbasIonoDot) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, sbasIonoDot_valid)),
- 0x1A,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, sbasIonoDot),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, tropoDelay) - QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, tropoDelay_valid)),
- 0x1B,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventGnssSvPolyIndMsgT_v02, tropoDelay),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, elevation) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, elevation_valid)),
- 0x1C,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGnssSvPolyIndMsgT_v02, elevation),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, elevationDot) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, elevationDot_valid)),
- 0x1D,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGnssSvPolyIndMsgT_v02, elevationDot),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, elenationUnc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, elenationUnc_valid)),
- 0x1E,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGnssSvPolyIndMsgT_v02, elenationUnc),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, velCoef) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventGnssSvPolyIndMsgT_v02, velCoef_valid)),
- 0x1F,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventGnssSvPolyIndMsgT_v02, velCoef),
- QMI_LOC_SV_POLY_VELOCITY_COEF_SIZE_V02
-};
-
-static const uint8_t qmiLocAddGeofenceContextReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, geofenceId) - QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, geofenceId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, wifiApSsidInfo) - QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, wifiApSsidInfo_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, wifiApSsidInfo),
- QMI_LOC_WIFI_AREA_ID_LIST_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, wifiApSsidInfo) - QMI_IDL_OFFSET8(qmiLocAddGeofenceContextReqMsgT_v02, wifiApSsidInfo_len),
- QMI_IDL_TYPE88(0, 33),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wifiApMacAddressList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wifiApMacAddressList_valid)),
- 0x12,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocAddGeofenceContextReqMsgT_v02, wifiApMacAddressList),
- QMI_LOC_WIFI_AREA_ID_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wifiApMacAddressList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wifiApMacAddressList_len),
- QMI_IDL_TYPE88(0, 61),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, tdsCdmaCellIDList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, tdsCdmaCellIDList_valid)),
- 0x13,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocAddGeofenceContextReqMsgT_v02, tdsCdmaCellIDList),
- QMI_LOC_CELL_ID_LIST_LENGTH_V02,
- QMI_IDL_TYPE88(0, 45),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wcdmaCellIDList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wcdmaCellIDList_valid)),
- 0x14,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocAddGeofenceContextReqMsgT_v02, wcdmaCellIDList),
- QMI_LOC_CELL_ID_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wcdmaCellIDList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, wcdmaCellIDList_len),
- QMI_IDL_TYPE88(0, 44),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, gsmCellIDList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, gsmCellIDList_valid)),
- 0x15,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocAddGeofenceContextReqMsgT_v02, gsmCellIDList),
- QMI_LOC_CELL_ID_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, gsmCellIDList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, gsmCellIDList_len),
- QMI_IDL_TYPE88(0, 43),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, iBeaconList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, iBeaconList_valid)),
- 0x16,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocAddGeofenceContextReqMsgT_v02, iBeaconList),
- QMI_LOC_IBEACON_LIST_LENGTH_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, iBeaconList) - QMI_IDL_OFFSET16RELATIVE(qmiLocAddGeofenceContextReqMsgT_v02, iBeaconList_len),
- QMI_IDL_TYPE88(0, 62)
-};
-
-static const uint8_t qmiLocAddGeofenceContextIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, geofenceId) - QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, geofenceId_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, contextId) - QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, contextId_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocAddGeofenceContextIndMsgT_v02, contextId)
-};
-
-static const uint8_t qmiLocSetGeofenceEngineContextReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextReqMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextReqMsgT_v02, utcTimeOfDay) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextReqMsgT_v02, utcTimeOfDay_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextReqMsgT_v02, utcTimeOfDay),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextReqMsgT_v02, temperature) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextReqMsgT_v02, temperature_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextReqMsgT_v02, temperature)
-};
-
-static const uint8_t qmiLocSetGeofenceEngineContextIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSetGeofenceEngineContextIndMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocDeleteGeofenceContextReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextReqMsgT_v02, transactionId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextReqMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextReqMsgT_v02, contextId) - QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextReqMsgT_v02, contextId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextReqMsgT_v02, contextId)
-};
-
-static const uint8_t qmiLocDeleteGeofenceContextIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, geofenceId) - QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, geofenceId_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, geofenceId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, contextId) - QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, contextId_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGeofenceContextIndMsgT_v02, contextId)
-};
-
-static const uint8_t qmiLocInjectGtpClientDownloadedDataReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectGtpClientDownloadedDataReqMsgT_v02, ClientDownloadedData),
- ((QMI_LOC_MAX_GTP_WWAN_CLIENT_DOWNLOADED_DATA_LEN_V02) & 0xFF), ((QMI_LOC_MAX_GTP_WWAN_CLIENT_DOWNLOADED_DATA_LEN_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocInjectGtpClientDownloadedDataReqMsgT_v02, ClientDownloadedData) - QMI_IDL_OFFSET8(qmiLocInjectGtpClientDownloadedDataReqMsgT_v02, ClientDownloadedData_len)
-};
-
-static const uint8_t qmiLocInjectGtpClientDownloadedDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectGtpClientDownloadedDataIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGdtUploadBeginStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadBeginStatusReqMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadBeginStatusReqMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadBeginStatusReqMsgT_v02, gdtAccessStatus)
-};
-
-static const uint8_t qmiLocGdtUploadBeginStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadBeginStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGdtUploadEndReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadEndReqMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadEndReqMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadEndReqMsgT_v02, gdtEndStatus)
-};
-
-static const uint8_t qmiLocGdtUploadEndIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtUploadEndIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGtpApStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, gtpApDbStatus),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, gtpApPcid64) - QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, gtpApPcid64_valid)),
- 0x10,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, gtpApPcid64),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, oemId) - QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, oemId_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, oemId),
- ((QMI_LOC_MAX_OEM_ID_LEN_V02) & 0xFF), ((QMI_LOC_MAX_OEM_ID_LEN_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, oemId) - QMI_IDL_OFFSET8(qmiLocGtpApStatusReqMsgT_v02, oemId_len),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocGtpApStatusReqMsgT_v02, modelId) - QMI_IDL_OFFSET16RELATIVE(qmiLocGtpApStatusReqMsgT_v02, modelId_valid)),
- 0x12,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocGtpApStatusReqMsgT_v02, modelId),
- ((QMI_LOC_MAX_MODEL_ID_LEN_V02) & 0xFF), ((QMI_LOC_MAX_MODEL_ID_LEN_V02) >> 8),
- QMI_IDL_OFFSET16RELATIVE(qmiLocGtpApStatusReqMsgT_v02, modelId) - QMI_IDL_OFFSET16RELATIVE(qmiLocGtpApStatusReqMsgT_v02, modelId_len)
-};
-
-static const uint8_t qmiLocGtpApStatusIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpApStatusIndMsgT_v02, status),
-
- 0x02,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocGtpApStatusIndMsgT_v02, clientSoftwareVersion),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocGtpApStatusIndMsgT_v02, asnVersion),
- QMI_IDL_TYPE88(0, 63)
-};
-
-static const uint8_t qmiLocGdtDownloadBeginStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, sessionId),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, processingStatus),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, wwanDownloadFlag) - QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, wwanDownloadFlag_valid)),
- 0x10,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, wwanDownloadFlag),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, respLocInfo) - QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, respLocInfo_valid)),
- 0x11,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, respLocInfo),
- ((QMI_LOC_MAX_GTP_RLI_LEN_V02) & 0xFF), ((QMI_LOC_MAX_GTP_RLI_LEN_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, respLocInfo) - QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusReqMsgT_v02, respLocInfo_len),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocGdtDownloadBeginStatusReqMsgT_v02, apRemainingThrottleTime) - QMI_IDL_OFFSET16RELATIVE(qmiLocGdtDownloadBeginStatusReqMsgT_v02, apRemainingThrottleTime_valid)),
- 0x12,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocGdtDownloadBeginStatusReqMsgT_v02, apRemainingThrottleTime)
-};
-
-static const uint8_t qmiLocGdtDownloadBeginStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadBeginStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGdtDownloadReadyStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadReadyStatusReqMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadReadyStatusReqMsgT_v02, sessionId),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadReadyStatusReqMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x04,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadReadyStatusReqMsgT_v02, filePath),
- QMI_LOC_MAX_GDT_PATH_LEN_V02,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadReadyStatusReqMsgT_v02, filePath) - QMI_IDL_OFFSET8(qmiLocGdtDownloadReadyStatusReqMsgT_v02, filePath_len)
-};
-
-static const uint8_t qmiLocGdtDownloadReadyStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadReadyStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGdtReceiveDoneStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtReceiveDoneStatusReqMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtReceiveDoneStatusReqMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtReceiveDoneStatusReqMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGdtReceiveDoneStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtReceiveDoneStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGdtDownloadEndStatusReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadEndStatusReqMsgT_v02, serviceId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadEndStatusReqMsgT_v02, sessionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadEndStatusReqMsgT_v02, status)
-};
-
-static const uint8_t qmiLocGdtDownloadEndStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGdtDownloadEndStatusIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocStartDbtReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, reqId),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, minDistance),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, distanceType),
-
- 0x04,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, needOriginLocation),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, maxLatency) - QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, maxLatency_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, maxLatency),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, usageType) - QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, usageType_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtReqMsgT_v02, usageType)
-};
-
-static const uint8_t qmiLocStartDbtIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStartDbtIndMsgT_v02, reqId) - QMI_IDL_OFFSET8(qmiLocStartDbtIndMsgT_v02, reqId_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStartDbtIndMsgT_v02, reqId)
-};
-
-static const uint8_t qmiLocStopDbtReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopDbtReqMsgT_v02, reqId)
-};
-
-static const uint8_t qmiLocStopDbtIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopDbtIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocStopDbtIndMsgT_v02, reqId) - QMI_IDL_OFFSET8(qmiLocStopDbtIndMsgT_v02, reqId_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocStopDbtIndMsgT_v02, reqId)
-};
-
-static const uint8_t qmiLocEventDbtPositionReportIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, reqId),
-
- 0x02,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, dbtPosition),
- QMI_IDL_TYPE88(0, 64),
-
- 0x03,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, positionType),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, headingUnc) - QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, headingUnc_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, headingUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, speedUnc) - QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, speedUnc_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, speedUnc),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, horConfidence) - QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, horConfidence_valid)),
- 0x12,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, horConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, vertConfidence) - QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, vertConfidence_valid)),
- 0x13,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, vertConfidence),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, DOP) - QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, DOP_valid)),
- 0x14,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, DOP),
- QMI_IDL_TYPE88(0, 2),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, gnssSvUsedList_valid)),
- 0x15,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, gnssSvUsedList),
- QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, gnssSvUsedList) - QMI_IDL_OFFSET8(qmiLocEventDbtPositionReportIndMsgT_v02, gnssSvUsedList_len),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocEventDbtPositionReportIndMsgT_v02, positionSrc) - QMI_IDL_OFFSET16RELATIVE(qmiLocEventDbtPositionReportIndMsgT_v02, positionSrc_valid)),
- 0x16,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocEventDbtPositionReportIndMsgT_v02, positionSrc)
-};
-
-static const uint8_t qmiLocEventDbtSessionStatusIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtSessionStatusIndMsgT_v02, dbtSessionStatus),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocEventDbtSessionStatusIndMsgT_v02, reqId) - QMI_IDL_OFFSET8(qmiLocEventDbtSessionStatusIndMsgT_v02, reqId_valid)),
- 0x10,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventDbtSessionStatusIndMsgT_v02, reqId)
-};
-
-static const uint8_t qmiLocSecureGetAvailablePositionReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionReqMsgT_v02, secureLocDataMode),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionReqMsgT_v02, qmilocSecureGetAvailablePositionRequestData),
- ((QMI_LOC_SECURE_GET_AVAILABLE_POS_REQUEST_ENCRYPTED_MAX_V02) & 0xFF), ((QMI_LOC_SECURE_GET_AVAILABLE_POS_REQUEST_ENCRYPTED_MAX_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionReqMsgT_v02, qmilocSecureGetAvailablePositionRequestData) - QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionReqMsgT_v02, qmilocSecureGetAvailablePositionRequestData_len)
-};
-
-static const uint8_t qmiLocSecureGetAvailablePositionIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionIndMsgT_v02, sessionStatus),
-
- 0x02,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionIndMsgT_v02, secureLocDataMode),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionIndMsgT_v02, qmilocSecureGetAvailablePositionInd) - QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionIndMsgT_v02, qmilocSecureGetAvailablePositionInd_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionIndMsgT_v02, qmilocSecureGetAvailablePositionInd),
- ((QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_ENCRYPTED_MAX_V02) & 0xFF), ((QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_ENCRYPTED_MAX_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionIndMsgT_v02, qmilocSecureGetAvailablePositionInd) - QMI_IDL_OFFSET8(qmiLocSecureGetAvailablePositionIndMsgT_v02, qmilocSecureGetAvailablePositionInd_len)
-};
-
-static const uint8_t qmiLocInjectApCacheDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataReqMsgT_v02, versionNumber),
-
- 0x02,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataReqMsgT_v02, partNumber),
-
- 0x03,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataReqMsgT_v02, totalParts),
-
- 0x04,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataReqMsgT_v02, apCacheData),
- QMI_LOC_APCACHE_DATA_MAX_SAMPLES_V02,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataReqMsgT_v02, apCacheData) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataReqMsgT_v02, apCacheData_len),
- QMI_IDL_TYPE88(0, 65),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectApCacheDataReqMsgT_v02, apCacheHepeRelData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectApCacheDataReqMsgT_v02, apCacheHepeRelData_valid)),
- 0x10,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectApCacheDataReqMsgT_v02, apCacheHepeRelData),
- QMI_LOC_APCACHE_DATA_MAX_SAMPLES_V02,
- QMI_IDL_OFFSET16RELATIVE(qmiLocInjectApCacheDataReqMsgT_v02, apCacheHepeRelData) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectApCacheDataReqMsgT_v02, apCacheHepeRelData_len),
- QMI_IDL_TYPE88(0, 66)
-};
-
-static const uint8_t qmiLocInjectApCacheDataIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apCacheSize) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apCacheSize_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apCacheSize),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apDoNotCacheSize) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apDoNotCacheSize_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apDoNotCacheSize),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apCacheHits) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apCacheHits_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apCacheHits),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apDoNotCacheHits) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apDoNotCacheHits_valid)),
- 0x13,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, apDoNotCacheHits),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, unknownAps) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, unknownAps_valid)),
- 0x14,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, unknownAps),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, asyncScans) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, asyncScans_valid)),
- 0x15,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, asyncScans),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, asyncFixes) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, asyncFixes_valid)),
- 0x16,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, asyncFixes),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, syncScans) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, syncScans_valid)),
- 0x17,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, syncScans),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, syncFixes) - QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, syncFixes_valid)),
- 0x18,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApCacheDataIndMsgT_v02, syncFixes)
-};
-
-static const uint8_t qmiLocInjectApDoNotCacheDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApDoNotCacheDataReqMsgT_v02, versionNumber),
-
- 0x02,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApDoNotCacheDataReqMsgT_v02, partNumber),
-
- 0x03,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApDoNotCacheDataReqMsgT_v02, totalParts),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x04,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocInjectApDoNotCacheDataReqMsgT_v02, apDoNotCacheData),
- QMI_LOC_APCACHE_DATA_MAX_SAMPLES_V02,
- QMI_IDL_OFFSET8(qmiLocInjectApDoNotCacheDataReqMsgT_v02, apDoNotCacheData) - QMI_IDL_OFFSET8(qmiLocInjectApDoNotCacheDataReqMsgT_v02, apDoNotCacheData_len),
- QMI_IDL_TYPE88(0, 67)
-};
-
-static const uint8_t qmiLocInjectApDoNotCacheDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectApDoNotCacheDataIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocEventBatchingStatusIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocEventBatchingStatusIndMsgT_v02, batchingStatus)
-};
-
-static const uint8_t qmiLocQueryAonConfigReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryAonConfigReqMsgT_v02, transactionId)
-};
-
-static const uint8_t qmiLocQueryAonConfigIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryAonConfigIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryAonConfigIndMsgT_v02, transactionId) - QMI_IDL_OFFSET8(qmiLocQueryAonConfigIndMsgT_v02, transactionId_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryAonConfigIndMsgT_v02, transactionId),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocQueryAonConfigIndMsgT_v02, aonCapability) - QMI_IDL_OFFSET8(qmiLocQueryAonConfigIndMsgT_v02, aonCapability_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocQueryAonConfigIndMsgT_v02, aonCapability)
-};
-
-static const uint8_t qmiLocDeleteGNSSServiceDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteAllFlag),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteClockInfoMask) - QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteClockInfoMask_valid)),
- 0x10,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteClockInfoMask),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteCellDbDataMask) - QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteCellDbDataMask_valid)),
- 0x11,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteCellDbDataMask),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteCommonDataMask) - QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteCommonDataMask_valid)),
- 0x12,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteCommonDataMask),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteSatelliteData) - QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteSatelliteData_valid)),
- 0x13,
- QMI_IDL_AGGREGATE,
- QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataReqMsgT_v02, deleteSatelliteData),
- QMI_IDL_TYPE88(0, 68)
-};
-
-static const uint8_t qmiLocDeleteGNSSServiceDataIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocDeleteGNSSServiceDataIndMsgT_v02, status)
-};
-
-static const uint8_t qmiLocInjectXtraDataReqMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataReqMsgT_v02, totalSize),
-
- 0x02,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataReqMsgT_v02, totalParts),
-
- 0x03,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataReqMsgT_v02, partNum),
-
- 0x04,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_FLAGS_SZ_IS_16 | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataReqMsgT_v02, partData),
- ((QMI_LOC_MAX_XTRA_PART_LEN_V02) & 0xFF), ((QMI_LOC_MAX_XTRA_PART_LEN_V02) >> 8),
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataReqMsgT_v02, partData) - QMI_IDL_OFFSET8(qmiLocInjectXtraDataReqMsgT_v02, partData_len),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET16RELATIVE(qmiLocInjectXtraDataReqMsgT_v02, formatType) - QMI_IDL_OFFSET16RELATIVE(qmiLocInjectXtraDataReqMsgT_v02, formatType_valid)),
- 0x10,
- QMI_IDL_FLAGS_OFFSET_IS_16 | QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET16ARRAY(qmiLocInjectXtraDataReqMsgT_v02, formatType)
-};
-
-static const uint8_t qmiLocInjectXtraDataIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectXtraDataIndMsgT_v02, partNum) - QMI_IDL_OFFSET8(qmiLocInjectXtraDataIndMsgT_v02, partNum_valid)),
- 0x10,
- QMI_IDL_GENERIC_2_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataIndMsgT_v02, partNum),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | QMI_IDL_TLV_FLAGS_OPTIONAL | (QMI_IDL_OFFSET8(qmiLocInjectXtraDataIndMsgT_v02, ConstellationMask) - QMI_IDL_OFFSET8(qmiLocInjectXtraDataIndMsgT_v02, ConstellationMask_valid)),
- 0x11,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraDataIndMsgT_v02, ConstellationMask)
-};
-
-static const uint8_t qmiLocInjectXtraPcidReqMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_8_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraPcidReqMsgT_v02, xtraPcid)
-};
-
-static const uint8_t qmiLocInjectXtraPcidIndMsgT_data_v02[] = {
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocInjectXtraPcidIndMsgT_v02, status)
-};
-
-/*
- * qmiLocGetSupportedFeatureReqMsgT is empty
- * static const uint8_t qmiLocGetSupportedFeatureReqMsgT_data_v02[] = {
- * };
- */
-
-static const uint8_t qmiLocGetSupportedFeatureIndMsgT_data_v02[] = {
- 0x01,
- QMI_IDL_GENERIC_4_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSupportedFeatureIndMsgT_v02, status),
-
- QMI_IDL_TLV_FLAGS_LAST_TLV | 0x02,
- QMI_IDL_FLAGS_IS_ARRAY | QMI_IDL_FLAGS_IS_VARIABLE_LEN | QMI_IDL_GENERIC_1_BYTE,
- QMI_IDL_OFFSET8(qmiLocGetSupportedFeatureIndMsgT_v02, feature),
- QMI_LOC_SUPPORTED_FEATURE_LENGTH_V02,
- QMI_IDL_OFFSET8(qmiLocGetSupportedFeatureIndMsgT_v02, feature) - QMI_IDL_OFFSET8(qmiLocGetSupportedFeatureIndMsgT_v02, feature_len)
-};
-
-/* Type Table */
-static const qmi_idl_type_table_entry loc_type_table_v02[] = {
- {sizeof(qmiLocApplicationIdStructT_v02), qmiLocApplicationIdStructT_data_v02},
- {sizeof(qmiLocGPSTimeStructT_v02), qmiLocGPSTimeStructT_data_v02},
- {sizeof(qmiLocDOPStructT_v02), qmiLocDOPStructT_data_v02},
- {sizeof(qmiLocSensorUsageIndicatorStructT_v02), qmiLocSensorUsageIndicatorStructT_data_v02},
- {sizeof(qmiLocSvInfoStructT_v02), qmiLocSvInfoStructT_data_v02},
- {sizeof(qmiLocNiVxNotifyVerifyStructT_v02), qmiLocNiVxNotifyVerifyStructT_data_v02},
- {sizeof(qmiLocNiSuplFormattedStringStructT_v02), qmiLocNiSuplFormattedStringStructT_data_v02},
- {sizeof(qmiLocNiSuplQopStructT_v02), qmiLocNiSuplQopStructT_data_v02},
- {sizeof(qmiLocIpV4AddrStructType_v02), qmiLocIpV4AddrStructType_data_v02},
- {sizeof(qmiLocIpV6AddrStructType_v02), qmiLocIpV6AddrStructType_data_v02},
- {sizeof(qmiLocNiSuplServerInfoStructT_v02), qmiLocNiSuplServerInfoStructT_data_v02},
- {sizeof(qmiLocNiSuplNotifyVerifyStructT_v02), qmiLocNiSuplNotifyVerifyStructT_data_v02},
- {sizeof(qmiLocNiUmtsCpCodedStringStructT_v02), qmiLocNiUmtsCpCodedStringStructT_data_v02},
- {sizeof(qmiLocNiUmtsCpNotifyVerifyStructT_v02), qmiLocNiUmtsCpNotifyVerifyStructT_data_v02},
- {sizeof(qmiLocNiVxServiceInteractionStructT_v02), qmiLocNiVxServiceInteractionStructT_data_v02},
- {sizeof(qmiLocNiSuplVer2ExtStructT_v02), qmiLocNiSuplVer2ExtStructT_data_v02},
- {sizeof(qmiLocEmergencyNotificationStructT_v02), qmiLocEmergencyNotificationStructT_data_v02},
- {sizeof(qmiLocAssistanceServerUrlStructT_v02), qmiLocAssistanceServerUrlStructT_data_v02},
- {sizeof(qmiLocTimeServerListStructT_v02), qmiLocTimeServerListStructT_data_v02},
- {sizeof(qmiLocPredictedOrbitsAllowedSizesStructT_v02), qmiLocPredictedOrbitsAllowedSizesStructT_data_v02},
- {sizeof(qmiLocPredictedOrbitsServerListStructT_v02), qmiLocPredictedOrbitsServerListStructT_data_v02},
- {sizeof(qmiLocSensorControlConfigSamplingSpecStructT_v02), qmiLocSensorControlConfigSamplingSpecStructT_data_v02},
- {sizeof(qmiLocSensorReadyStatusStructT_v02), qmiLocSensorReadyStatusStructT_data_v02},
- {sizeof(qmiLocGeofencePositionStructT_v02), qmiLocGeofencePositionStructT_data_v02},
- {sizeof(qmiLocGeofenceIdContinuousStructT_v02), qmiLocGeofenceIdContinuousStructT_data_v02},
- {sizeof(qmiLocPredictedOrbitsDataValidityStructT_v02), qmiLocPredictedOrbitsDataValidityStructT_data_v02},
- {sizeof(qmiLocAltitudeSrcInfoStructT_v02), qmiLocAltitudeSrcInfoStructT_data_v02},
- {sizeof(qmiLocDeleteSvInfoStructT_v02), qmiLocDeleteSvInfoStructT_data_v02},
- {sizeof(qmiLocDeleteBDSSvInfoStructT_v02), qmiLocDeleteBDSSvInfoStructT_data_v02},
- {sizeof(qmiLocDeleteGALSvInfoStructT_v02), qmiLocDeleteGALSvInfoStructT_data_v02},
- {sizeof(qmiLocWifiFixTimeStructT_v02), qmiLocWifiFixTimeStructT_data_v02},
- {sizeof(qmiLocWifiFixPosStructT_v02), qmiLocWifiFixPosStructT_data_v02},
- {sizeof(qmiLocWifiApInfoStructT_v02), qmiLocWifiApInfoStructT_data_v02},
- {sizeof(qmiLocWifiApSsidStructT_v02), qmiLocWifiApSsidStructT_data_v02},
- {sizeof(qmiLoc3AxisSensorSampleStructT_v02), qmiLoc3AxisSensorSampleStructT_data_v02},
- {sizeof(qmiLoc3AxisSensorSampleListStructT_v02), qmiLoc3AxisSensorSampleListStructT_data_v02},
- {sizeof(qmiLocSensorTemperatureSampleStructT_v02), qmiLocSensorTemperatureSampleStructT_data_v02},
- {sizeof(qmiLocSensorTemperatureSampleListStructT_v02), qmiLocSensorTemperatureSampleListStructT_data_v02},
- {sizeof(qmiLocApnProfilesStructT_v02), qmiLocApnProfilesStructT_data_v02},
- {sizeof(qmiLocCircularGeofenceArgsStructT_v02), qmiLocCircularGeofenceArgsStructT_data_v02},
- {sizeof(qmiLocGeofenceMotionStateConfigStructT_v02), qmiLocGeofenceMotionStateConfigStructT_data_v02},
- {sizeof(qmiLocTimeZoneStructT_v02), qmiLocTimeZoneStructT_data_v02},
- {sizeof(qmiLocMotionDataStructT_v02), qmiLocMotionDataStructT_data_v02},
- {sizeof(qmiLocGSMCellIdStructT_v02), qmiLocGSMCellIdStructT_data_v02},
- {sizeof(qmiLocWCDMACellIdStructT_v02), qmiLocWCDMACellIdStructT_data_v02},
- {sizeof(qmiLocTDSCDMACellIdStructT_v02), qmiLocTDSCDMACellIdStructT_data_v02},
- {sizeof(qmiLocBatchedReportStructT_v02), qmiLocBatchedReportStructT_data_v02},
- {sizeof(qmiLocWifiApDataStructT_v02), qmiLocWifiApDataStructT_data_v02},
- {sizeof(qmiLocWifiApAdditionalDataStructT_v02), qmiLocWifiApAdditionalDataStructT_data_v02},
- {sizeof(qmiLocVehicleSensorSampleStructT_v02), qmiLocVehicleSensorSampleStructT_data_v02},
- {sizeof(qmiLocVehicleSensorSampleListStructType_v02), qmiLocVehicleSensorSampleListStructType_data_v02},
- {sizeof(qmiLocVehicleOdometrySampleStructT_v02), qmiLocVehicleOdometrySampleStructT_data_v02},
- {sizeof(qmiLocVehicleOdometrySampleListStructT_v02), qmiLocVehicleOdometrySampleListStructT_data_v02},
- {sizeof(qmiLocRcvrClockFrequencyInfoStructT_v02), qmiLocRcvrClockFrequencyInfoStructT_data_v02},
- {sizeof(qmiLocLeapSecondInfoStructT_v02), qmiLocLeapSecondInfoStructT_data_v02},
- {sizeof(qmiLocInterSystemBiasStructT_v02), qmiLocInterSystemBiasStructT_data_v02},
- {sizeof(qmiLocGnssTimeStructT_v02), qmiLocGnssTimeStructT_data_v02},
- {sizeof(qmiLocGloTimeStructT_v02), qmiLocGloTimeStructT_data_v02},
- {sizeof(qmiLocGnssTimeExtStructT_v02), qmiLocGnssTimeExtStructT_data_v02},
- {sizeof(qmiLocSVTimeSpeedStructT_v02), qmiLocSVTimeSpeedStructT_data_v02},
- {sizeof(qmiLocSVMeasurementStructT_v02), qmiLocSVMeasurementStructT_data_v02},
- {sizeof(qmiLocWifiApMacAddressStructT_v02), qmiLocWifiApMacAddressStructT_data_v02},
- {sizeof(qmiLocIBeaconIdStructT_v02), qmiLocIBeaconIdStructT_data_v02},
- {sizeof(qmiLocGtpAsnVerStructT_v02), qmiLocGtpAsnVerStructT_data_v02},
- {sizeof(qmiLocDbtPositionStructT_v02), qmiLocDbtPositionStructT_data_v02},
- {sizeof(qmiLocApCacheStructT_v02), qmiLocApCacheStructT_data_v02},
- {sizeof(qmiLocApCacheHepeRelStructT_v02), qmiLocApCacheHepeRelStructT_data_v02},
- {sizeof(qmiLocApDoNotCacheStructT_v02), qmiLocApDoNotCacheStructT_data_v02},
- {sizeof(qmiLocDeleteSatelliteDataStructT_v02), qmiLocDeleteSatelliteDataStructT_data_v02}
-};
-
-/* Message Table */
-static const qmi_idl_message_table_entry loc_message_table_v02[] = {
- {sizeof(qmiLocGenRespMsgT_v02), qmiLocGenRespMsgT_data_v02},
- {sizeof(qmiLocInformClientRevisionReqMsgT_v02), qmiLocInformClientRevisionReqMsgT_data_v02},
- {sizeof(qmiLocRegEventsReqMsgT_v02), qmiLocRegEventsReqMsgT_data_v02},
- {sizeof(qmiLocStartReqMsgT_v02), qmiLocStartReqMsgT_data_v02},
- {sizeof(qmiLocStopReqMsgT_v02), qmiLocStopReqMsgT_data_v02},
- {sizeof(qmiLocEventPositionReportIndMsgT_v02), qmiLocEventPositionReportIndMsgT_data_v02},
- {sizeof(qmiLocEventGnssSvInfoIndMsgT_v02), qmiLocEventGnssSvInfoIndMsgT_data_v02},
- {sizeof(qmiLocEventNmeaIndMsgT_v02), qmiLocEventNmeaIndMsgT_data_v02},
- {sizeof(qmiLocEventNiNotifyVerifyReqIndMsgT_v02), qmiLocEventNiNotifyVerifyReqIndMsgT_data_v02},
- {sizeof(qmiLocEventInjectTimeReqIndMsgT_v02), qmiLocEventInjectTimeReqIndMsgT_data_v02},
- {sizeof(qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02), qmiLocEventInjectPredictedOrbitsReqIndMsgT_data_v02},
- {sizeof(qmiLocEventInjectPositionReqIndMsgT_v02), qmiLocEventInjectPositionReqIndMsgT_data_v02},
- {sizeof(qmiLocEventEngineStateIndMsgT_v02), qmiLocEventEngineStateIndMsgT_data_v02},
- {sizeof(qmiLocEventFixSessionStateIndMsgT_v02), qmiLocEventFixSessionStateIndMsgT_data_v02},
- {sizeof(qmiLocEventWifiReqIndMsgT_v02), qmiLocEventWifiReqIndMsgT_data_v02},
- {sizeof(qmiLocEventSensorStreamingReadyStatusIndMsgT_v02), qmiLocEventSensorStreamingReadyStatusIndMsgT_data_v02},
- {sizeof(qmiLocEventTimeSyncReqIndMsgT_v02), qmiLocEventTimeSyncReqIndMsgT_data_v02},
- {sizeof(qmiLocEventSetSpiStreamingReportIndMsgT_v02), qmiLocEventSetSpiStreamingReportIndMsgT_data_v02},
- {sizeof(qmiLocEventLocationServerConnectionReqIndMsgT_v02), qmiLocEventLocationServerConnectionReqIndMsgT_data_v02},
- {sizeof(qmiLocEventNiGeofenceNotificationIndMsgT_v02), qmiLocEventNiGeofenceNotificationIndMsgT_data_v02},
- {sizeof(qmiLocEventGeofenceGenAlertIndMsgT_v02), qmiLocEventGeofenceGenAlertIndMsgT_data_v02},
- {sizeof(qmiLocEventGeofenceBreachIndMsgT_v02), qmiLocEventGeofenceBreachIndMsgT_data_v02},
- {sizeof(qmiLocEventPedometerControlIndMsgT_v02), qmiLocEventPedometerControlIndMsgT_data_v02},
- {sizeof(qmiLocEventMotionDataControlIndMsgT_v02), qmiLocEventMotionDataControlIndMsgT_data_v02},
- {sizeof(qmiLocEventGeofenceBatchedBreachIndMsgT_v02), qmiLocEventGeofenceBatchedBreachIndMsgT_data_v02},
- {sizeof(qmiLocEventGeofenceProximityIndMsgT_v02), qmiLocEventGeofenceProximityIndMsgT_data_v02},
- {sizeof(qmiLocEventGeofenceBatchedDwellIndMsgT_v02), qmiLocEventGeofenceBatchedDwellIndMsgT_data_v02},
- {sizeof(qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02), qmiLocEventGdtUploadBeginStatusReqIndMsgT_data_v02},
- {sizeof(qmiLocEventGdtUploadEndReqIndMsgT_v02), qmiLocEventGdtUploadEndReqIndMsgT_data_v02},
- {sizeof(qmiLocEventGdtDownloadBeginReqIndMsgT_v02), qmiLocEventGdtDownloadBeginReqIndMsgT_data_v02},
- {sizeof(qmiLocEventGdtReceiveDoneIndMsgT_v02), qmiLocEventGdtReceiveDoneIndMsgT_data_v02},
- {sizeof(qmiLocEventGdtDownloadEndReqIndMsgT_v02), qmiLocEventGdtDownloadEndReqIndMsgT_data_v02},
- {sizeof(qmiLocGetServiceRevisionReqMsgT_v02), 0},
- {sizeof(qmiLocGetServiceRevisionIndMsgT_v02), qmiLocGetServiceRevisionIndMsgT_data_v02},
- {sizeof(qmiLocGetFixCriteriaReqMsgT_v02), 0},
- {sizeof(qmiLocGetFixCriteriaIndMsgT_v02), qmiLocGetFixCriteriaIndMsgT_data_v02},
- {sizeof(qmiLocNiUserRespReqMsgT_v02), qmiLocNiUserRespReqMsgT_data_v02},
- {sizeof(qmiLocNiUserRespIndMsgT_v02), qmiLocNiUserRespIndMsgT_data_v02},
- {sizeof(qmiLocInjectPredictedOrbitsDataReqMsgT_v02), qmiLocInjectPredictedOrbitsDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectPredictedOrbitsDataIndMsgT_v02), qmiLocInjectPredictedOrbitsDataIndMsgT_data_v02},
- {sizeof(qmiLocGetPredictedOrbitsDataSourceReqMsgT_v02), 0},
- {sizeof(qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02), qmiLocGetPredictedOrbitsDataSourceIndMsgT_data_v02},
- {sizeof(qmiLocGetPredictedOrbitsDataValidityReqMsgT_v02), 0},
- {sizeof(qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02), qmiLocGetPredictedOrbitsDataValidityIndMsgT_data_v02},
- {sizeof(qmiLocInjectUtcTimeReqMsgT_v02), qmiLocInjectUtcTimeReqMsgT_data_v02},
- {sizeof(qmiLocInjectUtcTimeIndMsgT_v02), qmiLocInjectUtcTimeIndMsgT_data_v02},
- {sizeof(qmiLocInjectPositionReqMsgT_v02), qmiLocInjectPositionReqMsgT_data_v02},
- {sizeof(qmiLocInjectPositionIndMsgT_v02), qmiLocInjectPositionIndMsgT_data_v02},
- {sizeof(qmiLocSetEngineLockReqMsgT_v02), qmiLocSetEngineLockReqMsgT_data_v02},
- {sizeof(qmiLocSetEngineLockIndMsgT_v02), qmiLocSetEngineLockIndMsgT_data_v02},
- {sizeof(qmiLocGetEngineLockReqMsgT_v02), 0},
- {sizeof(qmiLocGetEngineLockIndMsgT_v02), qmiLocGetEngineLockIndMsgT_data_v02},
- {sizeof(qmiLocSetSbasConfigReqMsgT_v02), qmiLocSetSbasConfigReqMsgT_data_v02},
- {sizeof(qmiLocSetSbasConfigIndMsgT_v02), qmiLocSetSbasConfigIndMsgT_data_v02},
- {sizeof(qmiLocGetSbasConfigReqMsgT_v02), 0},
- {sizeof(qmiLocGetSbasConfigIndMsgT_v02), qmiLocGetSbasConfigIndMsgT_data_v02},
- {sizeof(qmiLocSetNmeaTypesReqMsgT_v02), qmiLocSetNmeaTypesReqMsgT_data_v02},
- {sizeof(qmiLocSetNmeaTypesIndMsgT_v02), qmiLocSetNmeaTypesIndMsgT_data_v02},
- {sizeof(qmiLocGetNmeaTypesReqMsgT_v02), 0},
- {sizeof(qmiLocGetNmeaTypesIndMsgT_v02), qmiLocGetNmeaTypesIndMsgT_data_v02},
- {sizeof(qmiLocSetLowPowerModeReqMsgT_v02), qmiLocSetLowPowerModeReqMsgT_data_v02},
- {sizeof(qmiLocSetLowPowerModeIndMsgT_v02), qmiLocSetLowPowerModeIndMsgT_data_v02},
- {sizeof(qmiLocGetLowPowerModeReqMsgT_v02), 0},
- {sizeof(qmiLocGetLowPowerModeIndMsgT_v02), qmiLocGetLowPowerModeIndMsgT_data_v02},
- {sizeof(qmiLocSetServerReqMsgT_v02), qmiLocSetServerReqMsgT_data_v02},
- {sizeof(qmiLocSetServerIndMsgT_v02), qmiLocSetServerIndMsgT_data_v02},
- {sizeof(qmiLocGetServerReqMsgT_v02), qmiLocGetServerReqMsgT_data_v02},
- {sizeof(qmiLocGetServerIndMsgT_v02), qmiLocGetServerIndMsgT_data_v02},
- {sizeof(qmiLocDeleteAssistDataReqMsgT_v02), qmiLocDeleteAssistDataReqMsgT_data_v02},
- {sizeof(qmiLocDeleteAssistDataIndMsgT_v02), qmiLocDeleteAssistDataIndMsgT_data_v02},
- {sizeof(qmiLocSetXtraTSessionControlReqMsgT_v02), qmiLocSetXtraTSessionControlReqMsgT_data_v02},
- {sizeof(qmiLocSetXtraTSessionControlIndMsgT_v02), qmiLocSetXtraTSessionControlIndMsgT_data_v02},
- {sizeof(qmiLocGetXtraTSessionControlReqMsgT_v02), 0},
- {sizeof(qmiLocGetXtraTSessionControlIndMsgT_v02), qmiLocGetXtraTSessionControlIndMsgT_data_v02},
- {sizeof(qmiLocInjectWifiPositionReqMsgT_v02), qmiLocInjectWifiPositionReqMsgT_data_v02},
- {sizeof(qmiLocInjectWifiPositionIndMsgT_v02), qmiLocInjectWifiPositionIndMsgT_data_v02},
- {sizeof(qmiLocNotifyWifiStatusReqMsgT_v02), qmiLocNotifyWifiStatusReqMsgT_data_v02},
- {sizeof(qmiLocNotifyWifiStatusIndMsgT_v02), qmiLocNotifyWifiStatusIndMsgT_data_v02},
- {sizeof(qmiLocGetRegisteredEventsReqMsgT_v02), 0},
- {sizeof(qmiLocGetRegisteredEventsIndMsgT_v02), qmiLocGetRegisteredEventsIndMsgT_data_v02},
- {sizeof(qmiLocSetOperationModeReqMsgT_v02), qmiLocSetOperationModeReqMsgT_data_v02},
- {sizeof(qmiLocSetOperationModeIndMsgT_v02), qmiLocSetOperationModeIndMsgT_data_v02},
- {sizeof(qmiLocGetOperationModeReqMsgT_v02), 0},
- {sizeof(qmiLocGetOperationModeIndMsgT_v02), qmiLocGetOperationModeIndMsgT_data_v02},
- {sizeof(qmiLocSetSpiStatusReqMsgT_v02), qmiLocSetSpiStatusReqMsgT_data_v02},
- {sizeof(qmiLocSetSpiStatusIndMsgT_v02), qmiLocSetSpiStatusIndMsgT_data_v02},
- {sizeof(qmiLocInjectSensorDataReqMsgT_v02), qmiLocInjectSensorDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectSensorDataIndMsgT_v02), qmiLocInjectSensorDataIndMsgT_data_v02},
- {sizeof(qmiLocInjectTimeSyncDataReqMsgT_v02), qmiLocInjectTimeSyncDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectTimeSyncDataIndMsgT_v02), qmiLocInjectTimeSyncDataIndMsgT_data_v02},
- {sizeof(qmiLocGetCradleMountConfigReqMsgT_v02), 0},
- {sizeof(qmiLocGetCradleMountConfigIndMsgT_v02), qmiLocGetCradleMountConfigIndMsgT_data_v02},
- {sizeof(qmiLocSetCradleMountConfigReqMsgT_v02), qmiLocSetCradleMountConfigReqMsgT_data_v02},
- {sizeof(qmiLocSetCradleMountConfigIndMsgT_v02), qmiLocSetCradleMountConfigIndMsgT_data_v02},
- {sizeof(qmiLocGetExternalPowerConfigReqMsgT_v02), 0},
- {sizeof(qmiLocGetExternalPowerConfigIndMsgT_v02), qmiLocGetExternalPowerConfigIndMsgT_data_v02},
- {sizeof(qmiLocSetExternalPowerConfigReqMsgT_v02), qmiLocSetExternalPowerConfigReqMsgT_data_v02},
- {sizeof(qmiLocSetExternalPowerConfigIndMsgT_v02), qmiLocSetExternalPowerConfigIndMsgT_data_v02},
- {sizeof(qmiLocInformLocationServerConnStatusReqMsgT_v02), qmiLocInformLocationServerConnStatusReqMsgT_data_v02},
- {sizeof(qmiLocInformLocationServerConnStatusIndMsgT_v02), qmiLocInformLocationServerConnStatusIndMsgT_data_v02},
- {sizeof(qmiLocSetProtocolConfigParametersReqMsgT_v02), qmiLocSetProtocolConfigParametersReqMsgT_data_v02},
- {sizeof(qmiLocSetProtocolConfigParametersIndMsgT_v02), qmiLocSetProtocolConfigParametersIndMsgT_data_v02},
- {sizeof(qmiLocGetProtocolConfigParametersReqMsgT_v02), qmiLocGetProtocolConfigParametersReqMsgT_data_v02},
- {sizeof(qmiLocGetProtocolConfigParametersIndMsgT_v02), qmiLocGetProtocolConfigParametersIndMsgT_data_v02},
- {sizeof(qmiLocSetSensorControlConfigReqMsgT_v02), qmiLocSetSensorControlConfigReqMsgT_data_v02},
- {sizeof(qmiLocSetSensorControlConfigIndMsgT_v02), qmiLocSetSensorControlConfigIndMsgT_data_v02},
- {sizeof(qmiLocGetSensorControlConfigReqMsgT_v02), 0},
- {sizeof(qmiLocGetSensorControlConfigIndMsgT_v02), qmiLocGetSensorControlConfigIndMsgT_data_v02},
- {sizeof(qmiLocSetSensorPropertiesReqMsgT_v02), qmiLocSetSensorPropertiesReqMsgT_data_v02},
- {sizeof(qmiLocSetSensorPropertiesIndMsgT_v02), qmiLocSetSensorPropertiesIndMsgT_data_v02},
- {sizeof(qmiLocGetSensorPropertiesReqMsgT_v02), qmiLocGetSensorPropertiesReqMsgT_data_v02},
- {sizeof(qmiLocGetSensorPropertiesIndMsgT_v02), qmiLocGetSensorPropertiesIndMsgT_data_v02},
- {sizeof(qmiLocSetSensorPerformanceControlConfigReqMsgT_v02), qmiLocSetSensorPerformanceControlConfigReqMsgT_data_v02},
- {sizeof(qmiLocSetSensorPerformanceControlConfigIndMsgT_v02), qmiLocSetSensorPerformanceControlConfigIndMsgT_data_v02},
- {sizeof(qmiLocGetSensorPerformanceControlConfigReqMsgT_v02), 0},
- {sizeof(qmiLocGetSensorPerformanceControlConfigIndMsgT_v02), qmiLocGetSensorPerformanceControlConfigIndMsgT_data_v02},
- {sizeof(qmiLocInjectSuplCertificateReqMsgT_v02), qmiLocInjectSuplCertificateReqMsgT_data_v02},
- {sizeof(qmiLocInjectSuplCertificateIndMsgT_v02), qmiLocInjectSuplCertificateIndMsgT_data_v02},
- {sizeof(qmiLocDeleteSuplCertificateReqMsgT_v02), qmiLocDeleteSuplCertificateReqMsgT_data_v02},
- {sizeof(qmiLocDeleteSuplCertificateIndMsgT_v02), qmiLocDeleteSuplCertificateIndMsgT_data_v02},
- {sizeof(qmiLocSetPositionEngineConfigParametersReqMsgT_v02), qmiLocSetPositionEngineConfigParametersReqMsgT_data_v02},
- {sizeof(qmiLocSetPositionEngineConfigParametersIndMsgT_v02), qmiLocSetPositionEngineConfigParametersIndMsgT_data_v02},
- {sizeof(qmiLocGetPositionEngineConfigParametersReqMsgT_v02), qmiLocGetPositionEngineConfigParametersReqMsgT_data_v02},
- {sizeof(qmiLocGetPositionEngineConfigParametersIndMsgT_v02), qmiLocGetPositionEngineConfigParametersIndMsgT_data_v02},
- {sizeof(qmiLocAddCircularGeofenceReqMsgT_v02), qmiLocAddCircularGeofenceReqMsgT_data_v02},
- {sizeof(qmiLocAddCircularGeofenceIndMsgT_v02), qmiLocAddCircularGeofenceIndMsgT_data_v02},
- {sizeof(qmiLocDeleteGeofenceReqMsgT_v02), qmiLocDeleteGeofenceReqMsgT_data_v02},
- {sizeof(qmiLocDeleteGeofenceIndMsgT_v02), qmiLocDeleteGeofenceIndMsgT_data_v02},
- {sizeof(qmiLocQueryGeofenceReqMsgT_v02), qmiLocQueryGeofenceReqMsgT_data_v02},
- {sizeof(qmiLocQueryGeofenceIndMsgT_v02), qmiLocQueryGeofenceIndMsgT_data_v02},
- {sizeof(qmiLocSetGeofenceEngineConfigReqMsgT_v02), qmiLocSetGeofenceEngineConfigReqMsgT_data_v02},
- {sizeof(qmiLocSetGeofenceEngineConfigIndMsgT_v02), qmiLocSetGeofenceEngineConfigIndMsgT_data_v02},
- {sizeof(qmiLocGetGeofenceEngineConfigReqMsgT_v02), qmiLocGetGeofenceEngineConfigReqMsgT_data_v02},
- {sizeof(qmiLocGetGeofenceEngineConfigIndMsgT_v02), qmiLocGetGeofenceEngineConfigIndMsgT_data_v02},
- {sizeof(qmiLocEditGeofenceReqMsgT_v02), qmiLocEditGeofenceReqMsgT_data_v02},
- {sizeof(qmiLocEditGeofenceIndMsgT_v02), qmiLocEditGeofenceIndMsgT_data_v02},
- {sizeof(qmiLocEventGetTimeZoneReqIndMsgT_v02), qmiLocEventGetTimeZoneReqIndMsgT_data_v02},
- {sizeof(qmiLocInjectTimeZoneInfoReqMsgT_v02), qmiLocInjectTimeZoneInfoReqMsgT_data_v02},
- {sizeof(qmiLocInjectTimeZoneInfoIndMsgT_v02), qmiLocInjectTimeZoneInfoIndMsgT_data_v02},
- {sizeof(qmiLocGetBestAvailablePositionReqMsgT_v02), qmiLocGetBestAvailablePositionReqMsgT_data_v02},
- {sizeof(qmiLocGetBestAvailablePositionIndMsgT_v02), qmiLocGetBestAvailablePositionIndMsgT_data_v02},
- {sizeof(qmiLocInjectMotionDataReqMsgT_v02), qmiLocInjectMotionDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectMotionDataIndMsgT_v02), qmiLocInjectMotionDataIndMsgT_data_v02},
- {sizeof(qmiLocGetNiGeofenceIdListReqMsgT_v02), qmiLocGetNiGeofenceIdListReqMsgT_data_v02},
- {sizeof(qmiLocGetNiGeofenceIdListIndMsgT_v02), qmiLocGetNiGeofenceIdListIndMsgT_data_v02},
- {sizeof(qmiLocInjectGSMCellInfoReqMsgT_v02), qmiLocInjectGSMCellInfoReqMsgT_data_v02},
- {sizeof(qmiLocInjectGSMCellInfoIndMsgT_v02), qmiLocInjectGSMCellInfoIndMsgT_data_v02},
- {sizeof(qmiLocInjectWCDMACellInfoReqMsgT_v02), qmiLocInjectWCDMACellInfoReqMsgT_data_v02},
- {sizeof(qmiLocInjectWCDMACellInfoIndMsgT_v02), qmiLocInjectWCDMACellInfoIndMsgT_data_v02},
- {sizeof(qmiLocInjectTDSCDMACellInfoReqMsgT_v02), qmiLocInjectTDSCDMACellInfoReqMsgT_data_v02},
- {sizeof(qmiLocInjectTDSCDMACellInfoIndMsgT_v02), qmiLocInjectTDSCDMACellInfoIndMsgT_data_v02},
- {sizeof(qmiLocInjectSubscriberIDReqMsgT_v02), qmiLocInjectSubscriberIDReqMsgT_data_v02},
- {sizeof(qmiLocInjectSubscriberIDIndMsgT_v02), qmiLocInjectSubscriberIDIndMsgT_data_v02},
- {sizeof(qmiLocInjectNetworkInitiatedMessageReqMsgT_v02), qmiLocInjectNetworkInitiatedMessageReqMsgT_data_v02},
- {sizeof(qmiLocInjectNetworkInitiatedMessageIndMsgT_v02), qmiLocInjectNetworkInitiatedMessageIndMsgT_data_v02},
- {sizeof(qmiLocWWANOutOfServiceNotificationReqMsgT_v02), 0},
- {sizeof(qmiLocWWANOutOfServiceNotificationIndMsgT_v02), qmiLocWWANOutOfServiceNotificationIndMsgT_data_v02},
- {sizeof(qmiLocPedometerReportReqMsgT_v02), qmiLocPedometerReportReqMsgT_data_v02},
- {sizeof(qmiLocPedometerReportIndMsgT_v02), qmiLocPedometerReportIndMsgT_data_v02},
- {sizeof(qmiLocGetBatchSizeReqMsgT_v02), qmiLocGetBatchSizeReqMsgT_data_v02},
- {sizeof(qmiLocGetBatchSizeIndMsgT_v02), qmiLocGetBatchSizeIndMsgT_data_v02},
- {sizeof(qmiLocStartBatchingReqMsgT_v02), qmiLocStartBatchingReqMsgT_data_v02},
- {sizeof(qmiLocStartBatchingIndMsgT_v02), qmiLocStartBatchingIndMsgT_data_v02},
- {sizeof(qmiLocEventBatchFullIndMsgT_v02), qmiLocEventBatchFullIndMsgT_data_v02},
- {sizeof(qmiLocEventLiveBatchedPositionReportIndMsgT_v02), qmiLocEventLiveBatchedPositionReportIndMsgT_data_v02},
- {sizeof(qmiLocReadFromBatchReqMsgT_v02), qmiLocReadFromBatchReqMsgT_data_v02},
- {sizeof(qmiLocReadFromBatchIndMsgT_v02), qmiLocReadFromBatchIndMsgT_data_v02},
- {sizeof(qmiLocStopBatchingReqMsgT_v02), qmiLocStopBatchingReqMsgT_data_v02},
- {sizeof(qmiLocStopBatchingIndMsgT_v02), qmiLocStopBatchingIndMsgT_data_v02},
- {sizeof(qmiLocReleaseBatchReqMsgT_v02), qmiLocReleaseBatchReqMsgT_data_v02},
- {sizeof(qmiLocReleaseBatchIndMsgT_v02), qmiLocReleaseBatchIndMsgT_data_v02},
- {sizeof(qmiLocEventInjectWifiApDataReqIndMsgT_v02), qmiLocEventInjectWifiApDataReqIndMsgT_data_v02},
- {sizeof(qmiLocInjectWifiApDataReqMsgT_v02), qmiLocInjectWifiApDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectWifiApDataIndMsgT_v02), qmiLocInjectWifiApDataIndMsgT_data_v02},
- {sizeof(qmiLocNotifyWifiAttachmentStatusReqMsgT_v02), qmiLocNotifyWifiAttachmentStatusReqMsgT_data_v02},
- {sizeof(qmiLocNotifyWifiAttachmentStatusIndMsgT_v02), qmiLocNotifyWifiAttachmentStatusIndMsgT_data_v02},
- {sizeof(qmiLocNotifyWifiEnabledStatusReqMsgT_v02), qmiLocNotifyWifiEnabledStatusReqMsgT_data_v02},
- {sizeof(qmiLocNotifyWifiEnabledStatusIndMsgT_v02), qmiLocNotifyWifiEnabledStatusIndMsgT_data_v02},
- {sizeof(qmiLocEventVehicleDataReadyIndMsgT_v02), qmiLocEventVehicleDataReadyIndMsgT_data_v02},
- {sizeof(qmiLocInjectVehicleSensorDataReqMsgT_v02), qmiLocInjectVehicleSensorDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectVehicleSensorDataIndMsgT_v02), qmiLocInjectVehicleSensorDataIndMsgT_data_v02},
- {sizeof(qmiLocGetAvailWwanPositionReqMsgT_v02), qmiLocGetAvailWwanPositionReqMsgT_data_v02},
- {sizeof(qmiLocGetAvailWwanPositionIndMsgT_v02), qmiLocGetAvailWwanPositionIndMsgT_data_v02},
- {sizeof(qmiLocSetPremiumServicesCfgReqMsgT_v02), qmiLocSetPremiumServicesCfgReqMsgT_data_v02},
- {sizeof(qmiLocSetPremiumServicesCfgIndMsgT_v02), qmiLocSetPremiumServicesCfgIndMsgT_data_v02},
- {sizeof(qmiLocSetXtraVersionCheckReqMsgT_v02), qmiLocSetXtraVersionCheckReqMsgT_data_v02},
- {sizeof(qmiLocSetXtraVersionCheckIndMsgT_v02), qmiLocSetXtraVersionCheckIndMsgT_data_v02},
- {sizeof(qmiLocSetGNSSConstRepConfigReqMsgT_v02), qmiLocSetGNSSConstRepConfigReqMsgT_data_v02},
- {sizeof(qmiLocSetGNSSConstRepConfigIndMsgT_v02), qmiLocSetGNSSConstRepConfigIndMsgT_data_v02},
- {sizeof(qmiLocEventGnssSvMeasInfoIndMsgT_v02), qmiLocEventGnssSvMeasInfoIndMsgT_data_v02},
- {sizeof(qmiLocEventGnssSvPolyIndMsgT_v02), qmiLocEventGnssSvPolyIndMsgT_data_v02},
- {sizeof(qmiLocAddGeofenceContextReqMsgT_v02), qmiLocAddGeofenceContextReqMsgT_data_v02},
- {sizeof(qmiLocAddGeofenceContextIndMsgT_v02), qmiLocAddGeofenceContextIndMsgT_data_v02},
- {sizeof(qmiLocSetGeofenceEngineContextReqMsgT_v02), qmiLocSetGeofenceEngineContextReqMsgT_data_v02},
- {sizeof(qmiLocSetGeofenceEngineContextIndMsgT_v02), qmiLocSetGeofenceEngineContextIndMsgT_data_v02},
- {sizeof(qmiLocDeleteGeofenceContextReqMsgT_v02), qmiLocDeleteGeofenceContextReqMsgT_data_v02},
- {sizeof(qmiLocDeleteGeofenceContextIndMsgT_v02), qmiLocDeleteGeofenceContextIndMsgT_data_v02},
- {sizeof(qmiLocInjectGtpClientDownloadedDataReqMsgT_v02), qmiLocInjectGtpClientDownloadedDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectGtpClientDownloadedDataIndMsgT_v02), qmiLocInjectGtpClientDownloadedDataIndMsgT_data_v02},
- {sizeof(qmiLocGdtUploadBeginStatusReqMsgT_v02), qmiLocGdtUploadBeginStatusReqMsgT_data_v02},
- {sizeof(qmiLocGdtUploadBeginStatusIndMsgT_v02), qmiLocGdtUploadBeginStatusIndMsgT_data_v02},
- {sizeof(qmiLocGdtUploadEndReqMsgT_v02), qmiLocGdtUploadEndReqMsgT_data_v02},
- {sizeof(qmiLocGdtUploadEndIndMsgT_v02), qmiLocGdtUploadEndIndMsgT_data_v02},
- {sizeof(qmiLocGtpApStatusReqMsgT_v02), qmiLocGtpApStatusReqMsgT_data_v02},
- {sizeof(qmiLocGtpApStatusIndMsgT_v02), qmiLocGtpApStatusIndMsgT_data_v02},
- {sizeof(qmiLocGdtDownloadBeginStatusReqMsgT_v02), qmiLocGdtDownloadBeginStatusReqMsgT_data_v02},
- {sizeof(qmiLocGdtDownloadBeginStatusIndMsgT_v02), qmiLocGdtDownloadBeginStatusIndMsgT_data_v02},
- {sizeof(qmiLocGdtDownloadReadyStatusReqMsgT_v02), qmiLocGdtDownloadReadyStatusReqMsgT_data_v02},
- {sizeof(qmiLocGdtDownloadReadyStatusIndMsgT_v02), qmiLocGdtDownloadReadyStatusIndMsgT_data_v02},
- {sizeof(qmiLocGdtReceiveDoneStatusReqMsgT_v02), qmiLocGdtReceiveDoneStatusReqMsgT_data_v02},
- {sizeof(qmiLocGdtReceiveDoneStatusIndMsgT_v02), qmiLocGdtReceiveDoneStatusIndMsgT_data_v02},
- {sizeof(qmiLocGdtDownloadEndStatusReqMsgT_v02), qmiLocGdtDownloadEndStatusReqMsgT_data_v02},
- {sizeof(qmiLocGdtDownloadEndStatusIndMsgT_v02), qmiLocGdtDownloadEndStatusIndMsgT_data_v02},
- {sizeof(qmiLocStartDbtReqMsgT_v02), qmiLocStartDbtReqMsgT_data_v02},
- {sizeof(qmiLocStartDbtIndMsgT_v02), qmiLocStartDbtIndMsgT_data_v02},
- {sizeof(qmiLocStopDbtReqMsgT_v02), qmiLocStopDbtReqMsgT_data_v02},
- {sizeof(qmiLocStopDbtIndMsgT_v02), qmiLocStopDbtIndMsgT_data_v02},
- {sizeof(qmiLocEventDbtPositionReportIndMsgT_v02), qmiLocEventDbtPositionReportIndMsgT_data_v02},
- {sizeof(qmiLocEventDbtSessionStatusIndMsgT_v02), qmiLocEventDbtSessionStatusIndMsgT_data_v02},
- {sizeof(qmiLocSecureGetAvailablePositionReqMsgT_v02), qmiLocSecureGetAvailablePositionReqMsgT_data_v02},
- {sizeof(qmiLocSecureGetAvailablePositionIndMsgT_v02), qmiLocSecureGetAvailablePositionIndMsgT_data_v02},
- {sizeof(qmiLocInjectApCacheDataReqMsgT_v02), qmiLocInjectApCacheDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectApCacheDataIndMsgT_v02), qmiLocInjectApCacheDataIndMsgT_data_v02},
- {sizeof(qmiLocInjectApDoNotCacheDataReqMsgT_v02), qmiLocInjectApDoNotCacheDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectApDoNotCacheDataIndMsgT_v02), qmiLocInjectApDoNotCacheDataIndMsgT_data_v02},
- {sizeof(qmiLocEventBatchingStatusIndMsgT_v02), qmiLocEventBatchingStatusIndMsgT_data_v02},
- {sizeof(qmiLocQueryAonConfigReqMsgT_v02), qmiLocQueryAonConfigReqMsgT_data_v02},
- {sizeof(qmiLocQueryAonConfigIndMsgT_v02), qmiLocQueryAonConfigIndMsgT_data_v02},
- {sizeof(qmiLocDeleteGNSSServiceDataReqMsgT_v02), qmiLocDeleteGNSSServiceDataReqMsgT_data_v02},
- {sizeof(qmiLocDeleteGNSSServiceDataIndMsgT_v02), qmiLocDeleteGNSSServiceDataIndMsgT_data_v02},
- {sizeof(qmiLocInjectXtraDataReqMsgT_v02), qmiLocInjectXtraDataReqMsgT_data_v02},
- {sizeof(qmiLocInjectXtraDataIndMsgT_v02), qmiLocInjectXtraDataIndMsgT_data_v02},
- {sizeof(qmiLocInjectXtraPcidReqMsgT_v02), qmiLocInjectXtraPcidReqMsgT_data_v02},
- {sizeof(qmiLocInjectXtraPcidIndMsgT_v02), qmiLocInjectXtraPcidIndMsgT_data_v02},
- {sizeof(qmiLocGetSupportedFeatureReqMsgT_v02), 0},
- {sizeof(qmiLocGetSupportedFeatureIndMsgT_v02), qmiLocGetSupportedFeatureIndMsgT_data_v02}
-};
-
-/* Range Table */
-/* No Ranges Defined in IDL */
-
-/* Predefine the Type Table Object */
-static const qmi_idl_type_table_object loc_qmi_idl_type_table_object_v02;
-
-/*Referenced Tables Array*/
-static const qmi_idl_type_table_object *loc_qmi_idl_type_table_object_referenced_tables_v02[] =
-{&loc_qmi_idl_type_table_object_v02, &common_qmi_idl_type_table_object_v01};
-
-/*Type Table Object*/
-static const qmi_idl_type_table_object loc_qmi_idl_type_table_object_v02 = {
- sizeof(loc_type_table_v02)/sizeof(qmi_idl_type_table_entry ),
- sizeof(loc_message_table_v02)/sizeof(qmi_idl_message_table_entry),
- 1,
- loc_type_table_v02,
- loc_message_table_v02,
- loc_qmi_idl_type_table_object_referenced_tables_v02,
- NULL
-};
-
-/*Arrays of service_message_table_entries for commands, responses and indications*/
-static const qmi_idl_service_message_table_entry loc_service_command_messages_v02[] = {
- {QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02, QMI_IDL_TYPE16(1, 0), 0},
- {QMI_LOC_GET_SUPPORTED_FIELDS_REQ_V02, QMI_IDL_TYPE16(1, 2), 5},
- {QMI_LOC_INFORM_CLIENT_REVISION_REQ_V02, QMI_IDL_TYPE16(0, 1), 7},
- {QMI_LOC_REG_EVENTS_REQ_V02, QMI_IDL_TYPE16(0, 2), 11},
- {QMI_LOC_START_REQ_V02, QMI_IDL_TYPE16(0, 3), 128},
- {QMI_LOC_STOP_REQ_V02, QMI_IDL_TYPE16(0, 4), 4},
- {QMI_LOC_GET_SERVICE_REVISION_REQ_V02, QMI_IDL_TYPE16(0, 32), 0},
- {QMI_LOC_GET_FIX_CRITERIA_REQ_V02, QMI_IDL_TYPE16(0, 34), 0},
- {QMI_LOC_NI_USER_RESPONSE_REQ_V02, QMI_IDL_TYPE16(0, 36), 1345},
- {QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02, QMI_IDL_TYPE16(0, 38), 1053},
- {QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_REQ_V02, QMI_IDL_TYPE16(0, 40), 0},
- {QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_REQ_V02, QMI_IDL_TYPE16(0, 42), 0},
- {QMI_LOC_INJECT_UTC_TIME_REQ_V02, QMI_IDL_TYPE16(0, 44), 18},
- {QMI_LOC_INJECT_POSITION_REQ_V02, QMI_IDL_TYPE16(0, 46), 134},
- {QMI_LOC_SET_ENGINE_LOCK_REQ_V02, QMI_IDL_TYPE16(0, 48), 7},
- {QMI_LOC_GET_ENGINE_LOCK_REQ_V02, QMI_IDL_TYPE16(0, 50), 0},
- {QMI_LOC_SET_SBAS_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 52), 4},
- {QMI_LOC_GET_SBAS_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 54), 0},
- {QMI_LOC_SET_NMEA_TYPES_REQ_V02, QMI_IDL_TYPE16(0, 56), 7},
- {QMI_LOC_GET_NMEA_TYPES_REQ_V02, QMI_IDL_TYPE16(0, 58), 0},
- {QMI_LOC_SET_LOW_POWER_MODE_REQ_V02, QMI_IDL_TYPE16(0, 60), 4},
- {QMI_LOC_GET_LOW_POWER_MODE_REQ_V02, QMI_IDL_TYPE16(0, 62), 0},
- {QMI_LOC_SET_SERVER_REQ_V02, QMI_IDL_TYPE16(0, 64), 297},
- {QMI_LOC_GET_SERVER_REQ_V02, QMI_IDL_TYPE16(0, 66), 11},
- {QMI_LOC_DELETE_ASSIST_DATA_REQ_V02, QMI_IDL_TYPE16(0, 68), 1156},
- {QMI_LOC_SET_XTRA_T_SESSION_CONTROL_REQ_V02, QMI_IDL_TYPE16(0, 70), 4},
- {QMI_LOC_GET_XTRA_T_SESSION_CONTROL_REQ_V02, QMI_IDL_TYPE16(0, 72), 0},
- {QMI_LOC_INJECT_WIFI_POSITION_REQ_V02, QMI_IDL_TYPE16(0, 74), 2353},
- {QMI_LOC_NOTIFY_WIFI_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 76), 7},
- {QMI_LOC_GET_REGISTERED_EVENTS_REQ_V02, QMI_IDL_TYPE16(0, 78), 0},
- {QMI_LOC_SET_OPERATION_MODE_REQ_V02, QMI_IDL_TYPE16(0, 80), 14},
- {QMI_LOC_GET_OPERATION_MODE_REQ_V02, QMI_IDL_TYPE16(0, 82), 0},
- {QMI_LOC_SET_SPI_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 84), 8},
- {QMI_LOC_INJECT_SENSOR_DATA_REQ_V02, QMI_IDL_TYPE16(0, 86), 2779},
- {QMI_LOC_INJECT_TIME_SYNC_DATA_REQ_V02, QMI_IDL_TYPE16(0, 88), 21},
- {QMI_LOC_SET_CRADLE_MOUNT_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 92), 11},
- {QMI_LOC_GET_CRADLE_MOUNT_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 90), 0},
- {QMI_LOC_SET_EXTERNAL_POWER_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 96), 7},
- {QMI_LOC_GET_EXTERNAL_POWER_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 94), 0},
- {QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 98), 129},
- {QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02, QMI_IDL_TYPE16(0, 100), 79},
- {QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02, QMI_IDL_TYPE16(0, 102), 11},
- {QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 104), 14},
- {QMI_LOC_GET_SENSOR_CONTROL_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 106), 0},
- {QMI_LOC_SET_SENSOR_PROPERTIES_REQ_V02, QMI_IDL_TYPE16(0, 108), 88},
- {QMI_LOC_GET_SENSOR_PROPERTIES_REQ_V02, QMI_IDL_TYPE16(0, 110), 7},
- {QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02, QMI_IDL_TYPE16(0, 112), 42},
- {QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02, QMI_IDL_TYPE16(0, 114), 0},
- {QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02, QMI_IDL_TYPE16(0, 116), 2009},
- {QMI_LOC_DELETE_SUPL_CERTIFICATE_REQ_V02, QMI_IDL_TYPE16(0, 118), 4},
- {QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02, QMI_IDL_TYPE16(0, 120), 16},
- {QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02, QMI_IDL_TYPE16(0, 122), 7},
- {QMI_LOC_ADD_CIRCULAR_GEOFENCE_REQ_V02, QMI_IDL_TYPE16(0, 124), 70},
- {QMI_LOC_DELETE_GEOFENCE_REQ_V02, QMI_IDL_TYPE16(0, 126), 14},
- {QMI_LOC_QUERY_GEOFENCE_REQ_V02, QMI_IDL_TYPE16(0, 128), 14},
- {QMI_LOC_EDIT_GEOFENCE_REQ_V02, QMI_IDL_TYPE16(0, 134), 32},
- {QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02, QMI_IDL_TYPE16(0, 139), 7},
- {QMI_LOC_INJECT_MOTION_DATA_REQ_V02, QMI_IDL_TYPE16(0, 141), 19},
- {QMI_LOC_GET_NI_GEOFENCE_ID_LIST_REQ_V02, QMI_IDL_TYPE16(0, 143), 7},
- {QMI_LOC_INJECT_GSM_CELL_INFO_REQ_V02, QMI_IDL_TYPE16(0, 145), 30},
- {QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_REQ_V02, QMI_IDL_TYPE16(0, 153), 1036},
- {QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_REQ_V02, QMI_IDL_TYPE16(0, 155), 0},
- {QMI_LOC_PEDOMETER_REPORT_REQ_V02, QMI_IDL_TYPE16(0, 157), 46},
- {QMI_LOC_INJECT_WCDMA_CELL_INFO_REQ_V02, QMI_IDL_TYPE16(0, 147), 36},
- {QMI_LOC_INJECT_TDSCDMA_CELL_INFO_REQ_V02, QMI_IDL_TYPE16(0, 149), 33},
- {QMI_LOC_INJECT_SUBSCRIBER_ID_REQ_V02, QMI_IDL_TYPE16(0, 151), 22},
- {QMI_LOC_SET_GEOFENCE_ENGINE_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 130), 224},
- {QMI_LOC_GET_GEOFENCE_ENGINE_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 132), 7},
- {QMI_LOC_GET_BATCH_SIZE_REQ_V02, QMI_IDL_TYPE16(0, 159), 14},
- {QMI_LOC_START_BATCHING_REQ_V02, QMI_IDL_TYPE16(0, 161), 39},
- {QMI_LOC_READ_FROM_BATCH_REQ_V02, QMI_IDL_TYPE16(0, 165), 14},
- {QMI_LOC_STOP_BATCHING_REQ_V02, QMI_IDL_TYPE16(0, 167), 14},
- {QMI_LOC_RELEASE_BATCH_REQ_V02, QMI_IDL_TYPE16(0, 169), 7},
- {QMI_LOC_INJECT_WIFI_AP_DATA_REQ_V02, QMI_IDL_TYPE16(0, 172), 5191},
- {QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 174), 51},
- {QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 176), 7},
- {QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_REQ_V02, QMI_IDL_TYPE16(0, 179), 3360},
- {QMI_LOC_GET_AVAILABLE_WWAN_POSITION_REQ_V02, QMI_IDL_TYPE16(0, 181), 7},
- {QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 183), 14},
- {QMI_LOC_SET_XTRA_VERSION_CHECK_REQ_V02, QMI_IDL_TYPE16(0, 185), 7},
- {QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02, QMI_IDL_TYPE16(0, 187), 22},
- {QMI_LOC_ADD_GEOFENCE_CONTEXT_REQ_V02, QMI_IDL_TYPE16(0, 191), 2517},
- {QMI_LOC_SET_GEOFENCE_ENGINE_CONTEXT_REQ_V02, QMI_IDL_TYPE16(0, 193), 25},
- {QMI_LOC_DELETE_GEOFENCE_CONTEXT_REQ_V02, QMI_IDL_TYPE16(0, 195), 21},
- {QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_REQ_V02, QMI_IDL_TYPE16(0, 197), 517},
- {QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 199), 21},
- {QMI_LOC_GDT_UPLOAD_END_REQ_V02, QMI_IDL_TYPE16(0, 201), 21},
- {QMI_LOC_START_DBT_REQ_V02, QMI_IDL_TYPE16(0, 213), 36},
- {QMI_LOC_STOP_DBT_REQ_V02, QMI_IDL_TYPE16(0, 215), 4},
- {QMI_LOC_SECURE_GET_AVAILABLE_POSITION_REQ_V02, QMI_IDL_TYPE16(0, 219), 268},
- {QMI_LOC_INJECT_TIME_ZONE_INFO_REQ_V02, QMI_IDL_TYPE16(0, 137), 30},
- {QMI_LOC_INJECT_APCACHE_DATA_REQ_V02, QMI_IDL_TYPE16(0, 221), 2180},
- {QMI_LOC_INJECT_APDONOTCACHE_DATA_REQ_V02, QMI_IDL_TYPE16(0, 223), 656},
- {QMI_LOC_QUERY_AON_CONFIG_REQ_V02, QMI_IDL_TYPE16(0, 226), 7},
- {QMI_LOC_GTP_AP_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 203), 540},
- {QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 205), 294},
- {QMI_LOC_GDT_DOWNLOAD_READY_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 207), 280},
- {QMI_LOC_GDT_RECEIVE_DONE_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 209), 21},
- {QMI_LOC_GDT_DOWNLOAD_END_STATUS_REQ_V02, QMI_IDL_TYPE16(0, 211), 21},
- {QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02, QMI_IDL_TYPE16(0, 228), 36},
- {QMI_LOC_INJECT_XTRA_DATA_REQ_V02, QMI_IDL_TYPE16(0, 230), 1053},
- {QMI_LOC_INJECT_XTRA_PCID_REQ_V02, QMI_IDL_TYPE16(0, 232), 11},
- {QMI_LOC_GET_SUPPORTED_FEATURE_REQ_V02, QMI_IDL_TYPE16(0, 234), 0}
-};
-
-static const qmi_idl_service_message_table_entry loc_service_response_messages_v02[] = {
- {QMI_LOC_GET_SUPPORTED_MSGS_RESP_V02, QMI_IDL_TYPE16(1, 1), 8204},
- {QMI_LOC_GET_SUPPORTED_FIELDS_RESP_V02, QMI_IDL_TYPE16(1, 3), 115},
- {QMI_LOC_INFORM_CLIENT_REVISION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_REG_EVENTS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_START_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_STOP_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_SERVICE_REVISION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_FIX_CRITERIA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_NI_USER_RESPONSE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_UTC_TIME_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_POSITION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_ENGINE_LOCK_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_ENGINE_LOCK_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_SBAS_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_SBAS_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_NMEA_TYPES_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_NMEA_TYPES_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_LOW_POWER_MODE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_LOW_POWER_MODE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_SERVER_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_SERVER_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_DELETE_ASSIST_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_XTRA_T_SESSION_CONTROL_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_XTRA_T_SESSION_CONTROL_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_WIFI_POSITION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_NOTIFY_WIFI_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_REGISTERED_EVENTS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_OPERATION_MODE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_OPERATION_MODE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_SPI_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_SENSOR_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_TIME_SYNC_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_CRADLE_MOUNT_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_CRADLE_MOUNT_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_EXTERNAL_POWER_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_EXTERNAL_POWER_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_SENSOR_CONTROL_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_SENSOR_CONTROL_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_SENSOR_PROPERTIES_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_SENSOR_PROPERTIES_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_SUPL_CERTIFICATE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_DELETE_SUPL_CERTIFICATE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_ADD_CIRCULAR_GEOFENCE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_DELETE_GEOFENCE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_QUERY_GEOFENCE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_EDIT_GEOFENCE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_BEST_AVAILABLE_POSITION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_MOTION_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_NI_GEOFENCE_ID_LIST_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_GSM_CELL_INFO_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_PEDOMETER_REPORT_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_WCDMA_CELL_INFO_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_TDSCDMA_CELL_INFO_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_SUBSCRIBER_ID_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_GEOFENCE_ENGINE_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_GEOFENCE_ENGINE_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_BATCH_SIZE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_START_BATCHING_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_READ_FROM_BATCH_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_STOP_BATCHING_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_RELEASE_BATCH_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_WIFI_AP_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_AVAILABLE_WWAN_POSITION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_XTRA_VERSION_CHECK_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_ADD_GEOFENCE_CONTEXT_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SET_GEOFENCE_ENGINE_CONTEXT_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_DELETE_GEOFENCE_CONTEXT_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GDT_UPLOAD_END_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_START_DBT_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_STOP_DBT_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_SECURE_GET_AVAILABLE_POSITION_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_TIME_ZONE_INFO_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_APCACHE_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_APDONOTCACHE_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_QUERY_AON_CONFIG_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GTP_AP_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GDT_DOWNLOAD_READY_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GDT_RECEIVE_DONE_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GDT_DOWNLOAD_END_STATUS_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_DELETE_GNSS_SERVICE_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_XTRA_DATA_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_INJECT_XTRA_PCID_RESP_V02, QMI_IDL_TYPE16(0, 0), 7},
- {QMI_LOC_GET_SUPPORTED_FEATURE_RESP_V02, QMI_IDL_TYPE16(0, 0), 7}
-};
-
-static const qmi_idl_service_message_table_entry loc_service_indication_messages_v02[] = {
- {QMI_LOC_EVENT_POSITION_REPORT_IND_V02, QMI_IDL_TYPE16(0, 5), 422},
- {QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02, QMI_IDL_TYPE16(0, 6), 2248},
- {QMI_LOC_EVENT_NMEA_IND_V02, QMI_IDL_TYPE16(0, 7), 203},
- {QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02, QMI_IDL_TYPE16(0, 8), 1338},
- {QMI_LOC_EVENT_INJECT_TIME_REQ_IND_V02, QMI_IDL_TYPE16(0, 9), 776},
- {QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_IND_V02, QMI_IDL_TYPE16(0, 10), 783},
- {QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02, QMI_IDL_TYPE16(0, 11), 40},
- {QMI_LOC_EVENT_ENGINE_STATE_IND_V02, QMI_IDL_TYPE16(0, 12), 7},
- {QMI_LOC_EVENT_FIX_SESSION_STATE_IND_V02, QMI_IDL_TYPE16(0, 13), 11},
- {QMI_LOC_EVENT_WIFI_REQ_IND_V02, QMI_IDL_TYPE16(0, 14), 16},
- {QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_IND_V02, QMI_IDL_TYPE16(0, 15), 48},
- {QMI_LOC_EVENT_TIME_SYNC_REQ_IND_V02, QMI_IDL_TYPE16(0, 16), 7},
- {QMI_LOC_EVENT_SET_SPI_STREAMING_REPORT_IND_V02, QMI_IDL_TYPE16(0, 17), 4},
- {QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02, QMI_IDL_TYPE16(0, 18), 21},
- {QMI_LOC_GET_SERVICE_REVISION_IND_V02, QMI_IDL_TYPE16(0, 33), 532},
- {QMI_LOC_GET_FIX_CRITERIA_IND_V02, QMI_IDL_TYPE16(0, 35), 124},
- {QMI_LOC_NI_USER_RESPONSE_IND_V02, QMI_IDL_TYPE16(0, 37), 7},
- {QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_IND_V02, QMI_IDL_TYPE16(0, 39), 12},
- {QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_IND_V02, QMI_IDL_TYPE16(0, 41), 790},
- {QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_IND_V02, QMI_IDL_TYPE16(0, 43), 20},
- {QMI_LOC_INJECT_UTC_TIME_IND_V02, QMI_IDL_TYPE16(0, 45), 7},
- {QMI_LOC_INJECT_POSITION_IND_V02, QMI_IDL_TYPE16(0, 47), 7},
- {QMI_LOC_SET_ENGINE_LOCK_IND_V02, QMI_IDL_TYPE16(0, 49), 7},
- {QMI_LOC_GET_ENGINE_LOCK_IND_V02, QMI_IDL_TYPE16(0, 51), 14},
- {QMI_LOC_SET_SBAS_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 53), 7},
- {QMI_LOC_GET_SBAS_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 55), 11},
- {QMI_LOC_SET_NMEA_TYPES_IND_V02, QMI_IDL_TYPE16(0, 57), 7},
- {QMI_LOC_GET_NMEA_TYPES_IND_V02, QMI_IDL_TYPE16(0, 59), 14},
- {QMI_LOC_SET_LOW_POWER_MODE_IND_V02, QMI_IDL_TYPE16(0, 61), 7},
- {QMI_LOC_GET_LOW_POWER_MODE_IND_V02, QMI_IDL_TYPE16(0, 63), 11},
- {QMI_LOC_SET_SERVER_IND_V02, QMI_IDL_TYPE16(0, 65), 7},
- {QMI_LOC_GET_SERVER_IND_V02, QMI_IDL_TYPE16(0, 67), 304},
- {QMI_LOC_DELETE_ASSIST_DATA_IND_V02, QMI_IDL_TYPE16(0, 69), 7},
- {QMI_LOC_SET_XTRA_T_SESSION_CONTROL_IND_V02, QMI_IDL_TYPE16(0, 71), 7},
- {QMI_LOC_GET_XTRA_T_SESSION_CONTROL_IND_V02, QMI_IDL_TYPE16(0, 73), 11},
- {QMI_LOC_INJECT_WIFI_POSITION_IND_V02, QMI_IDL_TYPE16(0, 75), 7},
- {QMI_LOC_NOTIFY_WIFI_STATUS_IND_V02, QMI_IDL_TYPE16(0, 77), 7},
- {QMI_LOC_GET_REGISTERED_EVENTS_IND_V02, QMI_IDL_TYPE16(0, 79), 18},
- {QMI_LOC_SET_OPERATION_MODE_IND_V02, QMI_IDL_TYPE16(0, 81), 7},
- {QMI_LOC_GET_OPERATION_MODE_IND_V02, QMI_IDL_TYPE16(0, 83), 14},
- {QMI_LOC_SET_SPI_STATUS_IND_V02, QMI_IDL_TYPE16(0, 85), 7},
- {QMI_LOC_INJECT_SENSOR_DATA_IND_V02, QMI_IDL_TYPE16(0, 87), 34},
- {QMI_LOC_INJECT_TIME_SYNC_DATA_IND_V02, QMI_IDL_TYPE16(0, 89), 7},
- {QMI_LOC_SET_CRADLE_MOUNT_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 93), 7},
- {QMI_LOC_GET_CRADLE_MOUNT_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 91), 18},
- {QMI_LOC_SET_EXTERNAL_POWER_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 97), 7},
- {QMI_LOC_GET_EXTERNAL_POWER_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 95), 14},
- {QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02, QMI_IDL_TYPE16(0, 99), 7},
- {QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02, QMI_IDL_TYPE16(0, 101), 18},
- {QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02, QMI_IDL_TYPE16(0, 103), 86},
- {QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 105), 7},
- {QMI_LOC_GET_SENSOR_CONTROL_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 107), 21},
- {QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02, QMI_IDL_TYPE16(0, 109), 14},
- {QMI_LOC_GET_SENSOR_PROPERTIES_IND_V02, QMI_IDL_TYPE16(0, 111), 95},
- {QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02, QMI_IDL_TYPE16(0, 113), 14},
- {QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02, QMI_IDL_TYPE16(0, 115), 49},
- {QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02, QMI_IDL_TYPE16(0, 117), 7},
- {QMI_LOC_DELETE_SUPL_CERTIFICATE_IND_V02, QMI_IDL_TYPE16(0, 119), 7},
- {QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02, QMI_IDL_TYPE16(0, 121), 14},
- {QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02, QMI_IDL_TYPE16(0, 123), 23},
- {QMI_LOC_EVENT_NI_GEOFENCE_NOTIFICATION_IND_V02, QMI_IDL_TYPE16(0, 19), 14},
- {QMI_LOC_EVENT_GEOFENCE_GEN_ALERT_IND_V02, QMI_IDL_TYPE16(0, 20), 7},
- {QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_IND_V02, QMI_IDL_TYPE16(0, 21), 85},
- {QMI_LOC_ADD_CIRCULAR_GEOFENCE_IND_V02, QMI_IDL_TYPE16(0, 125), 21},
- {QMI_LOC_DELETE_GEOFENCE_IND_V02, QMI_IDL_TYPE16(0, 127), 21},
- {QMI_LOC_QUERY_GEOFENCE_IND_V02, QMI_IDL_TYPE16(0, 129), 65},
- {QMI_LOC_EDIT_GEOFENCE_IND_V02, QMI_IDL_TYPE16(0, 135), 28},
- {QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02, QMI_IDL_TYPE16(0, 140), 391},
- {QMI_LOC_INJECT_MOTION_DATA_IND_V02, QMI_IDL_TYPE16(0, 142), 7},
- {QMI_LOC_GET_NI_GEOFENCE_ID_LIST_IND_V02, QMI_IDL_TYPE16(0, 144), 82},
- {QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02, QMI_IDL_TYPE16(0, 146), 7},
- {QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02, QMI_IDL_TYPE16(0, 154), 7},
- {QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02, QMI_IDL_TYPE16(0, 156), 7},
- {QMI_LOC_EVENT_PEDOMETER_CONTROL_IND_V02, QMI_IDL_TYPE16(0, 22), 15},
- {QMI_LOC_EVENT_MOTION_DATA_CONTROL_IND_V02, QMI_IDL_TYPE16(0, 23), 4},
- {QMI_LOC_PEDOMETER_REPORT_IND_V02, QMI_IDL_TYPE16(0, 158), 7},
- {QMI_LOC_INJECT_WCDMA_CELL_INFO_IND_V02, QMI_IDL_TYPE16(0, 148), 7},
- {QMI_LOC_INJECT_TDSCDMA_CELL_INFO_IND_V02, QMI_IDL_TYPE16(0, 150), 7},
- {QMI_LOC_INJECT_SUBSCRIBER_ID_IND_V02, QMI_IDL_TYPE16(0, 152), 7},
- {QMI_LOC_SET_GEOFENCE_ENGINE_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 131), 14},
- {QMI_LOC_GET_GEOFENCE_ENGINE_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 133), 39},
- {QMI_LOC_GET_BATCH_SIZE_IND_V02, QMI_IDL_TYPE16(0, 160), 21},
- {QMI_LOC_START_BATCHING_IND_V02, QMI_IDL_TYPE16(0, 162), 14},
- {QMI_LOC_EVENT_BATCH_FULL_NOTIFICATION_IND_V02, QMI_IDL_TYPE16(0, 163), 7},
- {QMI_LOC_EVENT_LIVE_BATCHED_POSITION_REPORT_IND_V02, QMI_IDL_TYPE16(0, 164), 90},
- {QMI_LOC_READ_FROM_BATCH_IND_V02, QMI_IDL_TYPE16(0, 166), 460},
- {QMI_LOC_STOP_BATCHING_IND_V02, QMI_IDL_TYPE16(0, 168), 21},
- {QMI_LOC_RELEASE_BATCH_IND_V02, QMI_IDL_TYPE16(0, 170), 14},
- {QMI_LOC_EVENT_INJECT_WIFI_AP_DATA_REQ_IND_V02, QMI_IDL_TYPE16(0, 171), 4},
- {QMI_LOC_INJECT_WIFI_AP_DATA_IND_V02, QMI_IDL_TYPE16(0, 173), 7},
- {QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_IND_V02, QMI_IDL_TYPE16(0, 175), 7},
- {QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_IND_V02, QMI_IDL_TYPE16(0, 177), 7},
- {QMI_LOC_EVENT_GEOFENCE_BATCHED_BREACH_NOTIFICATION_IND_V02, QMI_IDL_TYPE16(0, 24), 1254},
- {QMI_LOC_EVENT_VEHICLE_DATA_READY_STATUS_IND_V02, QMI_IDL_TYPE16(0, 178), 12},
- {QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_IND_V02, QMI_IDL_TYPE16(0, 180), 7},
- {QMI_LOC_GET_AVAILABLE_WWAN_POSITION_IND_V02, QMI_IDL_TYPE16(0, 182), 145},
- {QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 184), 7},
- {QMI_LOC_SET_XTRA_VERSION_CHECK_IND_V02, QMI_IDL_TYPE16(0, 186), 7},
- {QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02, QMI_IDL_TYPE16(0, 189), 1617},
- {QMI_LOC_EVENT_SV_POLYNOMIAL_REPORT_IND_V02, QMI_IDL_TYPE16(0, 190), 325},
- {QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 188), 7},
- {QMI_LOC_ADD_GEOFENCE_CONTEXT_IND_V02, QMI_IDL_TYPE16(0, 192), 28},
- {QMI_LOC_SET_GEOFENCE_ENGINE_CONTEXT_IND_V02, QMI_IDL_TYPE16(0, 194), 14},
- {QMI_LOC_DELETE_GEOFENCE_CONTEXT_IND_V02, QMI_IDL_TYPE16(0, 196), 28},
- {QMI_LOC_EVENT_GEOFENCE_PROXIMITY_NOTIFICATION_IND_V02, QMI_IDL_TYPE16(0, 25), 21},
- {QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_IND_V02, QMI_IDL_TYPE16(0, 198), 7},
- {QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_IND_V02, QMI_IDL_TYPE16(0, 200), 7},
- {QMI_LOC_GDT_UPLOAD_END_IND_V02, QMI_IDL_TYPE16(0, 202), 7},
- {QMI_LOC_EVENT_GDT_UPLOAD_BEGIN_STATUS_REQ_IND_V02, QMI_IDL_TYPE16(0, 27), 273},
- {QMI_LOC_EVENT_GDT_UPLOAD_END_REQ_IND_V02, QMI_IDL_TYPE16(0, 28), 21},
- {QMI_LOC_START_DBT_IND_V02, QMI_IDL_TYPE16(0, 214), 11},
- {QMI_LOC_EVENT_DBT_POSITION_REPORT_IND_V02, QMI_IDL_TYPE16(0, 217), 283},
- {QMI_LOC_EVENT_DBT_SESSION_STATUS_IND_V02, QMI_IDL_TYPE16(0, 218), 11},
- {QMI_LOC_STOP_DBT_IND_V02, QMI_IDL_TYPE16(0, 216), 11},
- {QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_V02, QMI_IDL_TYPE16(0, 220), 1043},
- {QMI_LOC_EVENT_GEOFENCE_BATCHED_DWELL_NOTIFICATION_IND_V02, QMI_IDL_TYPE16(0, 26), 1247},
- {QMI_LOC_EVENT_GET_TIME_ZONE_INFO_IND_V02, QMI_IDL_TYPE16(0, 136), 7},
- {QMI_LOC_INJECT_TIME_ZONE_INFO_IND_V02, QMI_IDL_TYPE16(0, 138), 7},
- {QMI_LOC_INJECT_APCACHE_DATA_IND_V02, QMI_IDL_TYPE16(0, 222), 70},
- {QMI_LOC_INJECT_APDONOTCACHE_DATA_IND_V02, QMI_IDL_TYPE16(0, 224), 7},
- {QMI_LOC_EVENT_BATCHING_STATUS_IND_V02, QMI_IDL_TYPE16(0, 225), 7},
- {QMI_LOC_QUERY_AON_CONFIG_IND_V02, QMI_IDL_TYPE16(0, 227), 21},
- {QMI_LOC_GTP_AP_STATUS_IND_V02, QMI_IDL_TYPE16(0, 204), 18},
- {QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_IND_V02, QMI_IDL_TYPE16(0, 206), 7},
- {QMI_LOC_GDT_DOWNLOAD_READY_STATUS_IND_V02, QMI_IDL_TYPE16(0, 208), 7},
- {QMI_LOC_GDT_RECEIVE_DONE_STATUS_IND_V02, QMI_IDL_TYPE16(0, 210), 7},
- {QMI_LOC_GDT_DOWNLOAD_END_STATUS_IND_V02, QMI_IDL_TYPE16(0, 212), 7},
- {QMI_LOC_EVENT_GDT_DOWNLOAD_BEGIN_REQ_IND_V02, QMI_IDL_TYPE16(0, 29), 5811},
- {QMI_LOC_EVENT_GDT_RECEIVE_DONE_IND_V02, QMI_IDL_TYPE16(0, 30), 21},
- {QMI_LOC_EVENT_GDT_DOWNLOAD_END_REQ_IND_V02, QMI_IDL_TYPE16(0, 31), 21},
- {QMI_LOC_DELETE_GNSS_SERVICE_DATA_IND_V02, QMI_IDL_TYPE16(0, 229), 7},
- {QMI_LOC_INJECT_XTRA_DATA_IND_V02, QMI_IDL_TYPE16(0, 231), 23},
- {QMI_LOC_INJECT_XTRA_PCID_IND_V02, QMI_IDL_TYPE16(0, 233), 7},
- {QMI_LOC_GET_SUPPORTED_FEATURE_IND_V02, QMI_IDL_TYPE16(0, 235), 111}
-};
-
-/*Service Object*/
-struct qmi_idl_service_object loc_qmi_idl_service_object_v02 = {
- 0x06,
- 0x02,
- 0x10,
- 8204,
- { sizeof(loc_service_command_messages_v02)/sizeof(qmi_idl_service_message_table_entry),
- sizeof(loc_service_response_messages_v02)/sizeof(qmi_idl_service_message_table_entry),
- 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,
- 0x3B,
- NULL
-};
-
-/* Service Object Accessor */
-qmi_idl_service_object_type loc_get_service_object_internal_v02
- ( int32_t idl_maj_version, int32_t idl_min_version, int32_t library_version ){
- if ( LOC_V02_IDL_MAJOR_VERS != idl_maj_version || LOC_V02_IDL_MINOR_VERS != idl_min_version
- || LOC_V02_IDL_TOOL_VERS != library_version)
- {
- return NULL;
- }
- return (qmi_idl_service_object_type)&loc_qmi_idl_service_object_v02;
-}
-
diff --git a/location/loc_api/loc_api_v02/location_service_v02.h b/location/loc_api/loc_api_v02/location_service_v02.h
deleted file mode 100644
index a66a4da..0000000
--- a/location/loc_api/loc_api_v02/location_service_v02.h
+++ /dev/null
@@ -1,16689 +0,0 @@
-/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation, nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#ifndef LOC_SERVICE_02_H
-#define LOC_SERVICE_02_H
-/**
- @file location_service_v02.h
-
- @brief This is the public header file which defines the loc service Data structures.
-
- This header file defines the types and structures that were defined in
- loc. It contains the constant values defined, enums, structures,
- messages, and service message IDs (in that order) Structures that were
- defined in the IDL as messages contain mandatory elements, optional
- elements, a combination of mandatory and optional elements (mandatory
- always come before optionals in the structure), or nothing (null message)
-
- An optional element in a message is preceded by a uint8_t value that must be
- set to true if the element is going to be included. When decoding a received
- message, the uint8_t values will be set to true or false by the decode
- routine, and should be checked before accessing the values that they
- correspond to.
-
- Variable sized arrays are defined as static sized arrays with an unsigned
- integer (32 bit) preceding it that must be set to the number of elements
- in the array that are valid. For Example:
-
- uint32_t test_opaque_len;
- uint8_t test_opaque[16];
-
- If only 4 elements are added to test_opaque[] then test_opaque_len must be
- set to 4 before sending the message. When decoding, the _len value is set
- by the decode routine and should be checked so that the correct number of
- elements in the array will be accessed.
-
-*/
-/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
- *THIS IS AN AUTO GENERATED FILE. DO NOT ALTER IN ANY WAY
- *====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/
-
-/* This file was generated with Tool version 6.14.7
- It was generated on: Fri Oct 21 2016 (Spin 0)
- From IDL File: location_service_v02.idl */
-
-/** @defgroup loc_qmi_consts Constant values defined in the IDL */
-/** @defgroup loc_qmi_msg_ids Constant values for QMI message IDs */
-/** @defgroup loc_qmi_enums Enumerated types used in QMI messages */
-/** @defgroup loc_qmi_messages Structures sent as QMI messages */
-/** @defgroup loc_qmi_aggregates Aggregate types used in QMI messages */
-/** @defgroup loc_qmi_accessor Accessor for QMI service object */
-/** @defgroup loc_qmi_version Constant values for versioning information */
-
-#include
-#include "qmi_idl_lib.h"
-#include "common_v01.h"
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** @addtogroup loc_qmi_version
- @{
- */
-/** Major Version Number of the IDL used to generate this file */
-#define LOC_V02_IDL_MAJOR_VERS 0x02
-/** Revision Number of the IDL used to generate this file */
-#define LOC_V02_IDL_MINOR_VERS 0x3B
-/** Major Version Number of the qmi_idl_compiler used to generate this file */
-#define LOC_V02_IDL_TOOL_VERS 0x06
-/** Maximum Defined Message ID */
-#define LOC_V02_MAX_MESSAGE_ID 0x00A9
-/**
- @}
- */
-
-
-/** @addtogroup loc_qmi_consts
- @{
- */
-
-/** Maximum string length for the Provider field in the application ID. */
-#define QMI_LOC_MAX_APP_ID_PROVIDER_LENGTH_V02 24
-
-/** Maximum string length for the Name field in the application ID. */
-#define QMI_LOC_MAX_APP_ID_NAME_LENGTH_V02 32
-
-/** Maximum string length for the Version field in the application ID. */
-#define QMI_LOC_MAX_APP_ID_VERSION_LENGTH_V02 8
-
-/** Maximum length of the list containing the SVs that were used to generate
- a position report. */
-#define QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02 80
-
-/** East, North, Up array length */
-#define QMI_LOC_ENU_ARRAY_LENGTH_V02 3
-
-/** Maximum number of satellites in the satellite report. */
-#define QMI_LOC_SV_INFO_LIST_MAX_SIZE_V02 80
-
-/** Maximum NMEA string length. */
-#define QMI_LOC_NMEA_STRING_MAX_LENGTH_V02 200
-
-/** Maximum length of the requestor ID string. */
-#define QMI_LOC_NI_MAX_REQUESTOR_ID_LENGTH_V02 200
-
-/** Session ID byte length. */
-#define QMI_LOC_NI_SUPL_SLP_SESSION_ID_BYTE_LENGTH_V02 4
-
-/** Maximum client name length allowed. */
-#define QMI_LOC_NI_MAX_CLIENT_NAME_LENGTH_V02 64
-
-/** Maximum URL length accepted by the location engine. */
-#define QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02 255
-
-/** IPv6 address length in bytes. */
-#define QMI_LOC_IPV6_ADDR_LENGTH_V02 8
-
-/** SUPL hash length. */
-#define QMI_LOC_NI_SUPL_HASH_LENGTH_V02 8
-
-/** Maximum client address length allowed. */
-#define QMI_LOC_NI_MAX_EXT_CLIENT_ADDRESS_V02 20
-
-/** Maximum codeword length allowed. */
-#define QMI_LOC_NI_CODEWORD_MAX_LENGTH_V02 20
-
-/** Maximum number of NTP Servers sent out with this event. */
-#define QMI_LOC_MAX_NTP_SERVERS_V02 3
-
-/** Maximum number of predicted orbits servers supported in the location
- engine. */
-#define QMI_LOC_MAX_PREDICTED_ORBITS_SERVERS_V02 3
-
-/** Maximum length of the list, where each element of the list contains the
- continuous range of Geofences that were breached at a given position. */
-#define QMI_LOC_MAX_GEOFENCE_ID_CONTINUOUS_LIST_LENGTH_V02 80
-
-/** Maximum length of the list that contains a discrete number Geofences that
- were breached at a given position. */
-#define QMI_LOC_MAX_GEOFENCE_ID_DISCRETE_LIST_LENGTH_V02 80
-
-/** Maximum length that can be injected. */
-#define QMI_LOC_MAX_GDT_PATH_LEN_V02 255
-
-/** Maximum client information size in bytes. */
-#define QMI_LOC_MAX_GTP_CL_INFO_LEN_V02 1500
-
-/** Maximum mobile status data size in bytes. */
-#define QMI_LOC_MAX_GTP_MSD_LEN_V02 4000
-
-/** Maximum GNSS Measurement Engine Firmware Version String length. */
-#define QMI_LOC_GNSS_ME_VERSION_STRING_MAX_LENGTH_V02 127
-
-/** Maximum GNSS Measurement Engine Hosted Software Version String length. */
-#define QMI_LOC_GNSS_HOSTED_SW_VERSION_STRING_MAX_LENGTH_V02 127
-
-/** Maximum GNSS Measurement Engine Full Version String length. */
-#define QMI_LOC_GNSS_SW_VERSION_STRING_MAX_LENGTH_V02 255
-
-/** Maximum part length that can be injected. The client should
- also look at the maxPartSize field in the predicted orbits injection
- request indication and pick the minimum of the two. */
-#define QMI_LOC_MAX_PREDICTED_ORBITS_PART_LEN_V02 1024
-
-/** Maximum length of the delete SV information list */
-#define QMI_LOC_DELETE_MAX_SV_INFO_LENGTH_V02 128
-
-/** Maximum length of the Delete BDS SV Information list. */
-#define QMI_LOC_DELETE_MAX_BDS_SV_INFO_LENGTH_V02 37
-
-/** Maximum length of the Delete GAL SV Information list. */
-#define QMI_LOC_DELETE_MAX_GAL_SV_INFO_LENGTH_V02 36
-
-/** MAC address length in bytes. */
-#define QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02 6
-
-/** Wi-Fi SSID string maximum length. */
-#define QMI_LOC_MAX_WIFI_AP_SSID_STR_LENGTH_V02 32
-
-/** Maximum number of APs that the sender can report. */
-#define QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02 50
-
-/** Maximum number of samples that can be injected in a TLV. */
-#define QMI_LOC_SENSOR_DATA_MAX_SAMPLES_V02 50
-
-/** Maximum APN string length allowed. */
-#define QMI_LOC_MAX_APN_NAME_LENGTH_V02 100
-
-/** Maximum APN profiles supported. */
-#define QMI_LOC_MAX_APN_PROFILES_V02 6
-
-/** Maximum length of the SUPL certificate. */
-#define QMI_LOC_MAX_SUPL_CERT_LENGTH_V02 2000
-
-/** Maximum number of motion states used by the Geofence engine. */
-#define QMI_LOC_GEOFENCE_MAX_MOTION_STATES_V02 20
-
-/** Maximum length of the network-initiated Geofence ID
- list. */
-#define QMI_LOC_MAX_NI_GEOFENCE_ID_LIST_LENGTH_V02 16
-
-/** Maximum value of WDMA frequency for injection of WCDMA cell
- information. */
-#define QMI_LOC_MAX_WCDMA_FREQ_V02 16383
-
-/** Maximum value of PSC for injection of WCDMA cell information. */
-#define QMI_LOC_MAX_WCDMA_PSC_V02 511
-
-/** Maximum value of TDSCDMA frequency for injection of TDSCDMA cell
- information. */
-#define QMI_LOC_MAX_TDSCDMA_FREQ_V02 16383
-
-/** Maximum length of the injected network-initiated message. */
-#define QMI_LOC_MAX_INJECTED_NETWORK_INITIATED_MESSAGE_LENGTH_V02 1024
-
-/** Maximum number of entries returned from a batch in each indication. */
-#define QMI_LOC_READ_FROM_BATCH_MAX_SIZE_V02 5
-
-/** Maximum number of vehicle sensor samples that can be injected. */
-#define QMI_LOC_VEHICLE_SENSOR_DATA_MAX_SAMPLES_V02 65
-
-/** Maximum number of axes that can be provided in each sample. */
-#define QMI_LOC_VEHICLE_SENSOR_DATA_MAX_AXES_V02 3
-
-/** Maximum number of measurements from an odometer. */
-#define QMI_LOC_VEHICLE_ODOMETRY_MAX_MEASUREMENTS_V02 3
-#define QMI_LOC_MEAS_STATUS_DONT_USE_BITS_V02 0xFFC0000000000000
-
-/** Maximum number of satellites in a measurement block for a given system. */
-#define QMI_LOC_SV_MEAS_LIST_MAX_SIZE_V02 16
-#define QMI_LOC_SV_POLY_VELOCITY_COEF_SIZE_V02 12
-#define QMI_LOC_SV_POLY_XYZ_0_TH_ORDER_COEFF_SIZE_V02 3
-#define QMI_LOC_SV_POLY_XYZ_N_TH_ORDER_COEFF_SIZE_V02 9
-#define QMI_LOC_SV_POLY_SV_CLKBIAS_COEFF_SIZE_V02 4
-
-/** IBeacon string maximum length. */
-#define QMI_LOC_MAX_IBEACON_UUID_STR_LENGTH_V02 32
-
-/** Wi-Fi area ID list length. */
-#define QMI_LOC_WIFI_AREA_ID_LIST_LENGTH_V02 20
-
-/** Cell ID list length. */
-#define QMI_LOC_CELL_ID_LIST_LENGTH_V02 20
-
-/** IBeacon list length. */
-#define QMI_LOC_IBEACON_LIST_LENGTH_V02 20
-
-/** Maximum length that can be injected. */
-#define QMI_LOC_MAX_GTP_WWAN_CLIENT_DOWNLOADED_DATA_LEN_V02 512
-
-/** Maximum length of OEM id. */
-#define QMI_LOC_MAX_OEM_ID_LEN_V02 256
-
-/** Maximum length of model id. */
-#define QMI_LOC_MAX_MODEL_ID_LEN_V02 256
-
-/** Maximum length that can be injected. */
-#define QMI_LOC_MAX_GTP_RLI_LEN_V02 256
-
-/** Maximum buffer length of the encrypted data blob for the Secure Get Available Position request. */
-#define QMI_LOC_SECURE_GET_AVAILABLE_POS_REQUEST_ENCRYPTED_MAX_V02 256
-
-/** Horizontal Uncertainty Circular
- Altitude With Respect to Ellipsoid
- Vertical Uncertainty
- Horizontal Elliptical Uncertainty (Semi-Minor Axis)
- Horizontal Elliptical Uncertainty (Semi-Major Axis)
- Elliptical Horizontal Uncertainty Azimuth
- Horizontal Confidence
- Horizontal Elliptical Uncertainty Confidence
- Horizontal Reliability
- Horizontal Speed
- Horizontal Speed Uncertainty
- Altitude With Respect to Sea Level
- Vertical Confidence
- Vertical Reliability
- Vertical Speed
- Vertical Speed Uncertainty
- Heading
- Heading Uncertainty
- Magnetic Deviation
- Technology Used
- Position Dilution of Precision
- Horizontal Dilution of Precision
- Vertical Dilution of Precision
- GPS Week
- GPS Time of Week MS
- Time Source
- Sensor Data Usage MASK
- Position Data Aided by Sensor
- SVs Used to Calculate the Fix */
-#define QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_ENCRYPTED_MAX_V02 1024
-
-/** Maximum number of APs that can be injected in a TLV. */
-#define QMI_LOC_APCACHE_DATA_MAX_SAMPLES_V02 80
-
-/** Maximum part length that can be injected. The client should
- also look at the maxPartSize field in the predicted orbits injection
- request indication and pick the minimum of the two. */
-#define QMI_LOC_MAX_XTRA_PART_LEN_V02 1024
-#define QMI_LOC_SUPPORTED_FEATURE_LENGTH_V02 100
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Response Message; Generic response definition. This message is used to tell
- clients whether their message was accepted for further
- processing or rejected. */
-typedef struct {
-
- /* Mandatory */
- /* Result Code */
- qmi_response_type_v01 resp;
-}qmiLocGenRespMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Informs the service of the minor revision of the interface
- definition that the control point implements. */
-typedef struct {
-
- /* Mandatory */
- /* Revision */
- uint32_t revision;
- /**< Revision that the control point is using. */
-}qmiLocInformClientRevisionReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint64_t qmiLocEventRegMaskT_v02;
-#define QMI_LOC_EVENT_MASK_POSITION_REPORT_V02 ((qmiLocEventRegMaskT_v02)0x00000001ull) /**< The control point must enable this mask to receive position report
- event indications. */
-#define QMI_LOC_EVENT_MASK_GNSS_SV_INFO_V02 ((qmiLocEventRegMaskT_v02)0x00000002ull) /**< The control point must enable this mask to receive satellite report
- event indications. These reports are sent at a 1 Hz rate. */
-#define QMI_LOC_EVENT_MASK_NMEA_V02 ((qmiLocEventRegMaskT_v02)0x00000004ull) /**< 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 QMI_LOC_EVENT_MASK_NI_NOTIFY_VERIFY_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00000008ull) /**< The control point must enable this mask to receive NI Notify/Verify request
- event indications. */
-#define QMI_LOC_EVENT_MASK_INJECT_TIME_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00000010ull) /**< The control point must enable this mask to receive time injection request
- event indications. */
-#define QMI_LOC_EVENT_MASK_INJECT_PREDICTED_ORBITS_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00000020ull) /**< The control point must enable this mask to receive predicted orbits request
- event indications. */
-#define QMI_LOC_EVENT_MASK_INJECT_POSITION_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00000040ull) /**< The control point must enable this mask to receive position injection request
- event indications. */
-#define QMI_LOC_EVENT_MASK_ENGINE_STATE_V02 ((qmiLocEventRegMaskT_v02)0x00000080ull) /**< The control point must enable this mask to receive engine state report
- event indications. */
-#define QMI_LOC_EVENT_MASK_FIX_SESSION_STATE_V02 ((qmiLocEventRegMaskT_v02)0x00000100ull) /**< The control point must enable this mask to receive fix session status report
- event indications. */
-#define QMI_LOC_EVENT_MASK_WIFI_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00000200ull) /**< The control point must enable this mask to receive Wi-Fi position request
- event indications. */
-#define QMI_LOC_EVENT_MASK_SENSOR_STREAMING_READY_STATUS_V02 ((qmiLocEventRegMaskT_v02)0x00000400ull) /**< 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 QMI_LOC_EVENT_MASK_TIME_SYNC_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00000800ull) /**< 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 QMI_LOC_EVENT_MASK_SET_SPI_STREAMING_REPORT_V02 ((qmiLocEventRegMaskT_v02)0x00001000ull) /**< The control point must enable this mask to receive Stationary Position
- Indicator (SPI) streaming report indications. */
-#define QMI_LOC_EVENT_MASK_LOCATION_SERVER_CONNECTION_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00002000ull) /**< 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 QMI_LOC_EVENT_MASK_NI_GEOFENCE_NOTIFICATION_V02 ((qmiLocEventRegMaskT_v02)0x00004000ull) /**< 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 QMI_LOC_EVENT_MASK_GEOFENCE_GEN_ALERT_V02 ((qmiLocEventRegMaskT_v02)0x00008000ull) /**< 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, e.g., if GPS is turned off or if the network is
- unavailable. */
-#define QMI_LOC_EVENT_MASK_GEOFENCE_BREACH_NOTIFICATION_V02 ((qmiLocEventRegMaskT_v02)0x00010000ull) /**< 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 QMI_LOC_EVENT_MASK_PEDOMETER_CONTROL_V02 ((qmiLocEventRegMaskT_v02)0x00020000ull) /**< 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 QMI_LOC_EVENT_MASK_MOTION_DATA_CONTROL_V02 ((qmiLocEventRegMaskT_v02)0x00040000ull) /**< 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 QMI_LOC_EVENT_MASK_BATCH_FULL_NOTIFICATION_V02 ((qmiLocEventRegMaskT_v02)0x00080000ull) /**< 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 QMI_LOC_EVENT_MASK_LIVE_BATCHED_POSITION_REPORT_V02 ((qmiLocEventRegMaskT_v02)0x00100000ull) /**< 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 QMI_LOC_EVENT_MASK_INJECT_WIFI_AP_DATA_REQ_V02 ((qmiLocEventRegMaskT_v02)0x00200000ull) /**< The control point must enable this mask to receive Wi-Fi AP data inject request
- event indications. */
-#define QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_BREACH_NOTIFICATION_V02 ((qmiLocEventRegMaskT_v02)0x00400000ull) /**< 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 QMI_LOC_EVENT_MASK_VEHICLE_DATA_READY_STATUS_V02 ((qmiLocEventRegMaskT_v02)0x00800000ull) /**< 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 QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT_V02 ((qmiLocEventRegMaskT_v02)0x01000000ull) /**< 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. */
-#define QMI_LOC_EVENT_MASK_GNSS_SV_POLYNOMIAL_REPORT_V02 ((qmiLocEventRegMaskT_v02)0x02000000ull) /**< The control point must enable this mask to receive satellite position
- reports as polynomials. Reports are generated only for the GNSS satellite
- constellations that are enabled using QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG. */
-#define QMI_LOC_EVENT_MASK_GEOFENCE_PROXIMITY_NOTIFICATION_V02 ((qmiLocEventRegMaskT_v02)0x04000000ull) /**< The control point must enable this mask to receive notifications when a Geofence proximity is entered
- and exited. The proximity of a Geofence may be due to different contexts. These contexts are identified
- using the context ID in this indication. The context of a Geofence may contain Wi-Fi area ID lists, IBeacon lists,
- Cell-ID list, and so forth. */
-#define QMI_LOC_EVENT_MASK_GDT_UPLOAD_BEGIN_REQ_V02 ((qmiLocEventRegMaskT_v02)0x08000000ull) /**< The control point must enable this mask to receive Generic Data Transport (GDT)
- upload session begin request event indications. */
-#define QMI_LOC_EVENT_MASK_GDT_UPLOAD_END_REQ_V02 ((qmiLocEventRegMaskT_v02)0x10000000ull) /**< The control point must enable this mask to receive GDT
- upload session end request event indications. */
-#define QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_DWELL_NOTIFICATION_V02 ((qmiLocEventRegMaskT_v02)0x20000000ull) /**< The control point must enable this mask to receive notifications when
- a Geofence is dwelled. These events are generated when a UE enters
- or leaves the perimeter of a Geofence and dwells inside or outside for a specified time.
- This dwell notification is for multiple Geofences. Dwells from multiple Geofences are all batched and
- sent in the same notification. */
-#define QMI_LOC_EVENT_MASK_GET_TIME_ZONE_REQ_V02 ((qmiLocEventRegMaskT_v02)0x40000000ull) /**< The control point must enable this mask to receive requests for time zone information from
- the service. These events are generated when there is a need for time zone information in the
- service. */
-#define QMI_LOC_EVENT_MASK_BATCHING_STATUS_V02 ((qmiLocEventRegMaskT_v02)0x80000000ull) /**< The control point must enable this mask to receive asynchronous events related
- to batching. */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to register for events from the
- location subsystem. */
-typedef struct {
-
- /* Mandatory */
- /* Event Registration Mask */
- qmiLocEventRegMaskT_v02 eventRegMask;
- /**< Specifies the events that the control point is interested in receiving.
- Valid bitmasks:
- - QMI_LOC_EVENT_MASK_POSITION_REPORT (0x00000001) -- The control point must enable this mask to receive position report
- event indications.
- - QMI_LOC_EVENT_MASK_GNSS_SV_INFO (0x00000002) -- The control point must enable this mask to receive satellite report
- event indications. These reports are sent at a 1 Hz rate.
- - QMI_LOC_EVENT_MASK_NMEA (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.
- - QMI_LOC_EVENT_MASK_NI_NOTIFY_VERIFY_REQ (0x00000008) -- The control point must enable this mask to receive NI Notify/Verify request
- event indications.
- - QMI_LOC_EVENT_MASK_INJECT_TIME_REQ (0x00000010) -- The control point must enable this mask to receive time injection request
- event indications.
- - QMI_LOC_EVENT_MASK_INJECT_PREDICTED_ORBITS_REQ (0x00000020) -- The control point must enable this mask to receive predicted orbits request
- event indications.
- - QMI_LOC_EVENT_MASK_INJECT_POSITION_REQ (0x00000040) -- The control point must enable this mask to receive position injection request
- event indications.
- - QMI_LOC_EVENT_MASK_ENGINE_STATE (0x00000080) -- The control point must enable this mask to receive engine state report
- event indications.
- - QMI_LOC_EVENT_MASK_FIX_SESSION_STATE (0x00000100) -- The control point must enable this mask to receive fix session status report
- event indications.
- - QMI_LOC_EVENT_MASK_WIFI_REQ (0x00000200) -- The control point must enable this mask to receive Wi-Fi position request
- event indications.
- - QMI_LOC_EVENT_MASK_SENSOR_STREAMING_READY_STATUS (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.).
- - QMI_LOC_EVENT_MASK_TIME_SYNC_REQ (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.
- - QMI_LOC_EVENT_MASK_SET_SPI_STREAMING_REPORT (0x00001000) -- The control point must enable this mask to receive Stationary Position
- Indicator (SPI) streaming report indications.
- - QMI_LOC_EVENT_MASK_LOCATION_SERVER_CONNECTION_REQ (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.
- - QMI_LOC_EVENT_MASK_NI_GEOFENCE_NOTIFICATION (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.
- - QMI_LOC_EVENT_MASK_GEOFENCE_GEN_ALERT (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, e.g., if GPS is turned off or if the network is
- unavailable.
- - QMI_LOC_EVENT_MASK_GEOFENCE_BREACH_NOTIFICATION (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 .
- - QMI_LOC_EVENT_MASK_PEDOMETER_CONTROL (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.
- - QMI_LOC_EVENT_MASK_MOTION_DATA_CONTROL (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.
- - QMI_LOC_EVENT_MASK_BATCH_FULL_NOTIFICATION (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.
- - QMI_LOC_EVENT_MASK_LIVE_BATCHED_POSITION_REPORT (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.
- - QMI_LOC_EVENT_MASK_INJECT_WIFI_AP_DATA_REQ (0x00200000) -- The control point must enable this mask to receive Wi-Fi AP data inject request
- event indications.
- - QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_BREACH_NOTIFICATION (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 .
- - QMI_LOC_EVENT_MASK_VEHICLE_DATA_READY_STATUS (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.).
- - QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT (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.
- - QMI_LOC_EVENT_MASK_GNSS_SV_POLYNOMIAL_REPORT (0x02000000) -- The control point must enable this mask to receive satellite position
- reports as polynomials. Reports are generated only for the GNSS satellite
- constellations that are enabled using QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG.
- - QMI_LOC_EVENT_MASK_GEOFENCE_PROXIMITY_NOTIFICATION (0x04000000) -- The control point must enable this mask to receive notifications when a Geofence proximity is entered
- and exited. The proximity of a Geofence may be due to different contexts. These contexts are identified
- using the context ID in this indication. The context of a Geofence may contain Wi-Fi area ID lists, IBeacon lists,
- Cell-ID list, and so forth.
- - QMI_LOC_EVENT_MASK_GDT_UPLOAD_BEGIN_REQ (0x08000000) -- The control point must enable this mask to receive Generic Data Transport (GDT)
- upload session begin request event indications.
- - QMI_LOC_EVENT_MASK_GDT_UPLOAD_END_REQ (0x10000000) -- The control point must enable this mask to receive GDT
- upload session end request event indications.
- - QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_DWELL_NOTIFICATION (0x20000000) -- The control point must enable this mask to receive notifications when
- a Geofence is dwelled. These events are generated when a UE enters
- or leaves the perimeter of a Geofence and dwells inside or outside for a specified time.
- This dwell notification is for multiple Geofences. Dwells from multiple Geofences are all batched and
- sent in the same notification.
- - QMI_LOC_EVENT_MASK_GET_TIME_ZONE_REQ (0x40000000) -- The control point must enable this mask to receive requests for time zone information from
- the service. These events are generated when there is a need for time zone information in the
- service.
- - QMI_LOC_EVENT_MASK_BATCHING_STATUS (0x80000000) -- The control point must enable this mask to receive asynchronous events related
- to batching.
-
- Multiple events can be registered by ORing the individual masks and
- sending them in this TLV. All unused bits in this mask must be set to 0.
- */
-}qmiLocRegEventsReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCFIXRECURRENCEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_RECURRENCE_PERIODIC_V02 = 1, /**< Request periodic position fixes */
- eQMI_LOC_RECURRENCE_SINGLE_V02 = 2, /**< Request a single position fix */
- QMILOCFIXRECURRENCEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocFixRecurrenceEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCACCURACYLEVELENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_ACCURACY_LOW_V02 = 1, /**< Low accuracy */
- eQMI_LOC_ACCURACY_MED_V02 = 2, /**< Medium accuracy */
- eQMI_LOC_ACCURACY_HIGH_V02 = 3, /**< High accuracy */
- QMILOCACCURACYLEVELENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocAccuracyLevelEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCINTERMEDIATEREPORTSTATEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_INTERMEDIATE_REPORTS_ON_V02 = 1, /**< Intermediate reports are turned on */
- eQMI_LOC_INTERMEDIATE_REPORTS_OFF_V02 = 2, /**< Intermediate reports are turned off */
- QMILOCINTERMEDIATEREPORTSTATEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocIntermediateReportStateEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCCONFIGINCLUDEALTITUDEASSUMEDINGNSSSVINFOENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_ALTITUDE_ASSUMED_IN_GNSS_SV_INFO_ENABLED_V02 = 1, /**< Enable Altitude Assumed information in GNSS SV Info Event. */
- eQMI_LOC_ALTITUDE_ASSUMED_IN_GNSS_SV_INFO_DISABLED_V02 = 2, /**< Disable Altitude Assumed information in GNSS SV Info Event. */
- QMILOCCONFIGINCLUDEALTITUDEASSUMEDINGNSSSVINFOENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocConfigIncludeAltitudeAssumedInGnssSvInfoEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- char applicationProvider[QMI_LOC_MAX_APP_ID_PROVIDER_LENGTH_V02 + 1];
- /**< Application provider. */
-
- char applicationName[QMI_LOC_MAX_APP_ID_NAME_LENGTH_V02 + 1];
- /**< Application name. */
-
- uint8_t applicationVersion_valid;
- /**< Specifies whether the application version string contains
- a valid value: \begin{itemize1}
- \item 0x00 (FALSE) -- Application version string is invalid
- \item 0x01 (TRUE) -- Application version string is valid
- \vspace{-0.18in} \end{itemize1} */
-
- char applicationVersion[QMI_LOC_MAX_APP_ID_VERSION_LENGTH_V02 + 1];
- /**< Application version. */
-}qmiLocApplicationIdStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to initiate a GPS session. */
-typedef struct {
-
- /* Mandatory */
- /* Session ID */
- uint8_t sessionId;
- /**< ID of the session as identified by the control point. The session ID
- is reported back in the position reports. The control point must
- specify the same session ID in the QMI_LOC_STOP_REQ message. \n
- - Range: 0 to 255
- */
-
- /* Optional */
- /* Recurrence Type */
- uint8_t fixRecurrence_valid; /**< Must be set to true if fixRecurrence is being passed */
- qmiLocFixRecurrenceEnumT_v02 fixRecurrence;
- /**< Specifies the type of session in which the control point is interested.
- If this TLV is not specified, recurrence defaults to SINGLE.
-
- Valid values: \n
- - eQMI_LOC_RECURRENCE_PERIODIC (1) -- Request periodic position fixes
- - eQMI_LOC_RECURRENCE_SINGLE (2) -- Request a single position fix
- */
-
- /* Optional */
- /* Horizontal Accuracy */
- uint8_t horizontalAccuracyLevel_valid; /**< Must be set to true if horizontalAccuracyLevel is being passed */
- qmiLocAccuracyLevelEnumT_v02 horizontalAccuracyLevel;
- /**< Specifies the horizontal accuracy level required by the control point.
- If not specified, accuracy defaults to LOW.
-
- Valid values: \n
- - eQMI_LOC_ACCURACY_LOW (1) -- Low accuracy
- - eQMI_LOC_ACCURACY_MED (2) -- Medium accuracy
- - eQMI_LOC_ACCURACY_HIGH (3) -- High accuracy
- */
-
- /* Optional */
- /* Enable/Disable Intermediate Reports */
- uint8_t intermediateReportState_valid; /**< Must be set to true if intermediateReportState is being passed */
- qmiLocIntermediateReportStateEnumT_v02 intermediateReportState;
- /**< Specifies if the control point is interested in receiving intermediate
- reports. The control point must explicitly set this field to OFF if it
- does not wish to receive intermediate position reports. Intermediate
- position reports are generated at 1 Hz and are ON by default. If
- intermediate reports are turned ON, the client receives position reports
- even if the accuracy criteria are not met. The status in such a position
- report is set to IN_PROGRESS in order for the control point to identify
- intermediate reports.
-
- Valid values: \n
- - eQMI_LOC_INTERMEDIATE_REPORTS_ON (1) -- Intermediate reports are turned on
- - eQMI_LOC_INTERMEDIATE_REPORTS_OFF (2) -- Intermediate reports are turned off
- */
-
- /* Optional */
- /* Minimum Interval Between Final Position Reports */
- uint8_t minInterval_valid; /**< Must be set to true if minInterval is being passed */
- uint32_t minInterval;
- /**< Minimum time interval, specified by the control point, that must elapse between
- final position reports. \n
- - Units: Milliseconds \n
- - Default: 1000 ms
- */
-
- /* Optional */
- /* ID of the Application that Sent this Request */
- uint8_t applicationId_valid; /**< Must be set to true if applicationId is being passed */
- qmiLocApplicationIdStructT_v02 applicationId;
- /**< \n Application provider, name, and version.*/
-
- /* Optional */
- /* Configuration for Altitude Assumed Info in GNSS SV Info Event */
- uint8_t configAltitudeAssumed_valid; /**< Must be set to true if configAltitudeAssumed is being passed */
- qmiLocConfigIncludeAltitudeAssumedInGnssSvInfoEnumT_v02 configAltitudeAssumed;
- /**< Specifies the configuration to include Altitude Assumed information in the GNSS SV Info Event.
- When enabled, an additional GNSS SV Info event indication is sent to the control
- point that also includes the altitude assumed information.
-
- If not specified, the configuration defaults to ENABLED.
-
- Valid values: \n
- - eQMI_LOC_ALTITUDE_ASSUMED_IN_GNSS_SV_INFO_ENABLED (1) -- Enable Altitude Assumed information in GNSS SV Info Event.
- - eQMI_LOC_ALTITUDE_ASSUMED_IN_GNSS_SV_INFO_DISABLED (2) -- Disable Altitude Assumed information in GNSS SV Info Event.
- */
-
- /* Optional */
- /* Minimum Interval Between Intermediate Position Reports */
- uint8_t minIntermediatePositionReportInterval_valid; /**< Must be set to true if minIntermediatePositionReportInterval is being passed */
- uint32_t minIntermediatePositionReportInterval;
- /**< Minimum time interval for intermediate position reports, specified by the control point,
- that, between the position reports elapsed time, must be longer than the interval time.
- If this optional value is not set or set to the default value (0), the intermediate position
- will be reported when it is ready. \n
- - Units: Milliseconds \n
- - Default: 0 ms
- */
-
- /* Optional */
- /* Maximum Wait Time to Get a Position Report */
- uint8_t positionReportTimeout_valid; /**< Must be set to true if positionReportTimeout is being passed */
- uint32_t positionReportTimeout;
- /**< Maximum time to work on each fix, specified by the control point.
- The GPS engine returns QMI_ERR_INTERNAL if a position cannot be obtained
- within the positionReportTimeout value. \n
- - Units: Milliseconds \n
- - Default: 255*1000 ms \n
- - Range: 1000 - 255*1000 ms
- */
-
- /* Optional */
- /* Share Position Report with Other Clients */
- uint8_t sharePosition_valid; /**< Must be set to true if sharePosition is being passed */
- uint8_t sharePosition;
- /**< Share the position report with the other QMI_LOC clients: \n
- - 0x00 (FALSE) -- Do not share the position report \n
- - 0x01 (TRUE) -- Share the position report \n
- If this optional TLV is not set, the GPS engine allows the position sharing.
- */
-}qmiLocStartReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to stop a GPS session. */
-typedef struct {
-
- /* Mandatory */
- /* Session ID */
- uint8_t sessionId;
- /**< ID of the session that was specified in the Start request
- (QMI_LOC_START_REQ).\n
- - Range: 0 to 255 */
-}qmiLocStopReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocPosTechMaskT_v02;
-#define QMI_LOC_POS_TECH_MASK_SATELLITE_V02 ((qmiLocPosTechMaskT_v02)0x00000001) /**< Satellites were used to generate the fix */
-#define QMI_LOC_POS_TECH_MASK_CELLID_V02 ((qmiLocPosTechMaskT_v02)0x00000002) /**< Cell towers were used to generate the fix */
-#define QMI_LOC_POS_TECH_MASK_WIFI_V02 ((qmiLocPosTechMaskT_v02)0x00000004) /**< Wi-Fi access points were used to generate the fix */
-#define QMI_LOC_POS_TECH_MASK_SENSORS_V02 ((qmiLocPosTechMaskT_v02)0x00000008) /**< Sensors were used to generate the fix */
-#define QMI_LOC_POS_TECH_MASK_REFERENCE_LOCATION_V02 ((qmiLocPosTechMaskT_v02)0x00000010) /**< Reference Location was used to generate the fix */
-#define QMI_LOC_POS_TECH_MASK_INJECTED_COARSE_POSITION_V02 ((qmiLocPosTechMaskT_v02)0x00000020) /**< Coarse position injected into the location engine was used to
- generate the fix */
-#define QMI_LOC_POS_TECH_MASK_AFLT_V02 ((qmiLocPosTechMaskT_v02)0x00000040) /**< AFLT was used to generate the fix */
-#define QMI_LOC_POS_TECH_MASK_HYBRID_V02 ((qmiLocPosTechMaskT_v02)0x00000080) /**< GNSS and network-provided measurements were used to
- generate the fix */
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSESSIONSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SESS_STATUS_SUCCESS_V02 = 0, /**< Session was successful */
- eQMI_LOC_SESS_STATUS_IN_PROGRESS_V02 = 1, /**< Session is still in progress; further position reports will be generated
- until either the fix criteria specified by the client are met or the
- client response timeout occurs */
- eQMI_LOC_SESS_STATUS_GENERAL_FAILURE_V02 = 2, /**< Session failed */
- eQMI_LOC_SESS_STATUS_TIMEOUT_V02 = 3, /**< Fix request failed because the session timed out */
- eQMI_LOC_SESS_STATUS_USER_END_V02 = 4, /**< Fix request failed because the session was ended by the user */
- eQMI_LOC_SESS_STATUS_BAD_PARAMETER_V02 = 5, /**< Fix request failed due to bad parameters in the request */
- eQMI_LOC_SESS_STATUS_PHONE_OFFLINE_V02 = 6, /**< Fix request failed because the phone is offline */
- eQMI_LOC_SESS_STATUS_ENGINE_LOCKED_V02 = 7, /**< Fix request failed because the engine is locked */
- QMILOCSESSIONSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSessionStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t gpsWeek;
- /**< Current GPS week as calculated from midnight, Jan. 6, 1980. \n
- - Units: Weeks */
-
- uint32_t gpsTimeOfWeekMs;
- /**< Amount of time into the current GPS week. \n
- - Units: Milliseconds */
-}qmiLocGPSTimeStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- float PDOP;
- /**< Position dilution of precision.
- \begin{itemize1}
- \item Range: 1 (highest accuracy) to 50 (lowest accuracy)
- \item PDOP = square root of (HDOP^2 + VDOP^2)
- \vspace{-0.18in} \end{itemize1} */
-
- float HDOP;
- /**< Horizontal dilution of precision.
- \begin{itemize1}
- \item Range: 1 (highest accuracy) to 50 (lowest accuracy)
- \vspace{-0.18in} \end{itemize1} */
-
- float VDOP;
- /**< Vertical dilution of precision.
- \begin{itemize1}
- \item Range: 1 (highest accuracy) to 50 (lowest accuracy)
- \vspace{-0.18in} \end{itemize1} */
-}qmiLocDOPStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint32_t qmiLocSensorUsageMaskT_v02;
-#define QMI_LOC_SENSOR_MASK_USED_ACCEL_V02 ((qmiLocSensorUsageMaskT_v02)0x00000001) /**< Bitmask to specify whether an accelerometer was used. */
-#define QMI_LOC_SENSOR_MASK_USED_GYRO_V02 ((qmiLocSensorUsageMaskT_v02)0x00000002) /**< Bitmask to specify whether a gyroscope was used. */
-typedef uint32_t qmiLocSensorAidedMaskT_v02;
-#define QMI_LOC_SENSOR_AIDED_MASK_HEADING_V02 ((qmiLocSensorAidedMaskT_v02)0x00000001) /**< Bitmask to specify whether a sensor was used to calculate heading. */
-#define QMI_LOC_SENSOR_AIDED_MASK_SPEED_V02 ((qmiLocSensorAidedMaskT_v02)0x00000002) /**< Bitmask to specify whether a sensor was used to calculate speed. */
-#define QMI_LOC_SENSOR_AIDED_MASK_POSITION_V02 ((qmiLocSensorAidedMaskT_v02)0x00000004) /**< Bitmask to specify whether a sensor was used to calculate position. */
-#define QMI_LOC_SENSOR_AIDED_MASK_VELOCITY_V02 ((qmiLocSensorAidedMaskT_v02)0x00000008) /**< Bitmask to specify whether a sensor was used to calculate velocity. */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocSensorUsageMaskT_v02 usageMask;
- /**< Specifies which sensors were used in calculating the position in the
- position report.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- SENSOR_USED_ ACCEL
- \item 0x00000002 -- SENSOR_USED_ GYRO
- \vspace{-0.18in} \end{itemize1} */
-
- qmiLocSensorAidedMaskT_v02 aidingIndicatorMask;
- /**< Specifies which results were aided by sensors.
-
- Valid bitmasks: \n
- - 0x00000001 -- AIDED_HEADING \n
- - 0x00000002 -- AIDED_SPEED \n
- - 0x00000004 -- AIDED_POSITION \n
- - 0x00000008 -- AIDED_VELOCITY */
-}qmiLocSensorUsageIndicatorStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCTIMESOURCEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_TIME_SRC_INVALID_V02 = 0, /**< Invalid time. */
- eQMI_LOC_TIME_SRC_NETWORK_TIME_TRANSFER_V02 = 1, /**< Time is set by the 1X system */
- eQMI_LOC_TIME_SRC_NETWORK_TIME_TAGGING_V02 = 2, /**< Time is set by WCDMA/GSM time tagging (that is,
- associating network time with GPS time) */
- eQMI_LOC_TIME_SRC_EXTERNAL_INPUT_V02 = 3, /**< Time is set by an external injection */
- eQMI_LOC_TIME_SRC_TOW_DECODE_V02 = 4, /**< Time is set after decoding over-the-air GPS navigation data
- from one GPS satellite */
- eQMI_LOC_TIME_SRC_TOW_CONFIRMED_V02 = 5, /**< Time is set after decoding over-the-air GPS navigation data
- from multiple satellites */
- eQMI_LOC_TIME_SRC_TOW_AND_WEEK_CONFIRMED_V02 = 6, /**< Both time of the week and the GPS week number are known */
- eQMI_LOC_TIME_SRC_NAV_SOLUTION_V02 = 7, /**< Time is set by the position engine after the fix is obtained */
- eQMI_LOC_TIME_SRC_SOLVE_FOR_TIME_V02 = 8, /**< Time is set by the position engine after performing SFT;
- this is done when the clock time uncertainty is large */
- eQMI_LOC_TIME_SRC_GLO_TOW_DECODE_V02 = 9, /**< Time is set after decoding GLO satellites */
- eQMI_LOC_TIME_SRC_TIME_TRANSFORM_V02 = 10, /**< Time is set after transforming the GPS to GLO time */
- eQMI_LOC_TIME_SRC_WCDMA_SLEEP_TIME_TAGGING_V02 = 11, /**< Time is set by the sleep time tag provided by the WCDMA network */
- eQMI_LOC_TIME_SRC_GSM_SLEEP_TIME_TAGGING_V02 = 12, /**< Time is set by the sleep time tag provided by the GSM network */
- eQMI_LOC_TIME_SRC_UNKNOWN_V02 = 13, /**< Source of the time is unknown */
- eQMI_LOC_TIME_SRC_SYSTEM_TIMETICK_V02 = 14, /**< Time is derived from the system clock (better known as the slow clock);
- GNSS time is maintained irrespective of the GNSS receiver state */
- eQMI_LOC_TIME_SRC_QZSS_TOW_DECODE_V02 = 15, /**< Time is set after decoding QZSS satellites */
- eQMI_LOC_TIME_SRC_BDS_TOW_DECODE_V02 = 16, /**< Time is set after decoding BDS satellites */
- eQMI_LOC_TIME_SRC_GAL_TOW_DECODE_V02 = 17, /**< Time is set after decoding GAL satellites */
- QMILOCTIMESOURCEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocTimeSourceEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCRELIABILITYENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_RELIABILITY_NOT_SET_V02 = 0, /**< Location reliability is not set */
- eQMI_LOC_RELIABILITY_VERY_LOW_V02 = 1, /**< Location reliability is very low; use it at your own risk */
- eQMI_LOC_RELIABILITY_LOW_V02 = 2, /**< Location reliability is low; little or no cross-checking is possible */
- eQMI_LOC_RELIABILITY_MEDIUM_V02 = 3, /**< Location reliability is medium; limited cross-check passed */
- eQMI_LOC_RELIABILITY_HIGH_V02 = 4, /**< Location reliability is high; strong cross-check passed */
- QMILOCRELIABILITYENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocReliabilityEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends the position report to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* Session Status */
- qmiLocSessionStatusEnumT_v02 sessionStatus;
- /**< Session status.
-
- Valid values: \n
- - eQMI_LOC_SESS_STATUS_SUCCESS (0) -- Session was successful
- - eQMI_LOC_SESS_STATUS_IN_PROGRESS (1) -- Session is still in progress; further position reports will be generated
- until either the fix criteria specified by the client are met or the
- client response timeout occurs
- - eQMI_LOC_SESS_STATUS_GENERAL_FAILURE (2) -- Session failed
- - eQMI_LOC_SESS_STATUS_TIMEOUT (3) -- Fix request failed because the session timed out
- - eQMI_LOC_SESS_STATUS_USER_END (4) -- Fix request failed because the session was ended by the user
- - eQMI_LOC_SESS_STATUS_BAD_PARAMETER (5) -- Fix request failed due to bad parameters in the request
- - eQMI_LOC_SESS_STATUS_PHONE_OFFLINE (6) -- Fix request failed because the phone is offline
- - eQMI_LOC_SESS_STATUS_ENGINE_LOCKED (7) -- Fix request failed because the engine is locked
- */
-
- /* Mandatory */
- /* Session ID */
- uint8_t sessionId;
- /**< ID of the session that was specified in the Start request
- QMI_LOC_START_REQ. \n
- - Range: 0 to 255 */
-
- /* Optional */
- /* Latitude */
- uint8_t latitude_valid; /**< Must be set to true if latitude is being passed */
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Optional */
- /* Longitude */
- uint8_t longitude_valid; /**< Must be set to true if longitude is being passed */
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Optional */
- /* Circular Horizontal Position Uncertainty */
- uint8_t horUncCircular_valid; /**< Must be set to true if horUncCircular is being passed */
- float horUncCircular;
- /**< Horizontal position uncertainty (circular).\n
- - Units: Meters */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty (Semi-Minor Axis) */
- uint8_t horUncEllipseSemiMinor_valid; /**< Must be set to true if horUncEllipseSemiMinor is being passed */
- float horUncEllipseSemiMinor;
- /**< Semi-minor axis of horizontal elliptical uncertainty.\n
- - Units: Meters */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty (Semi-Major Axis) */
- uint8_t horUncEllipseSemiMajor_valid; /**< Must be set to true if horUncEllipseSemiMajor is being passed */
- float horUncEllipseSemiMajor;
- /**< Semi-major axis of horizontal elliptical uncertainty.\n
- - Units: Meters */
-
- /* Optional */
- /* Elliptical Horizontal Uncertainty Azimuth */
- uint8_t horUncEllipseOrientAzimuth_valid; /**< Must be set to true if horUncEllipseOrientAzimuth is being passed */
- float horUncEllipseOrientAzimuth;
- /**< Elliptical horizontal uncertainty azimuth of orientation.\n
- - Units: Decimal degrees \n
- - Range: 0 to 180 */
-
- /* Optional */
- /* Horizontal Confidence */
- uint8_t horConfidence_valid; /**< Must be set to true if horConfidence is being passed */
- uint8_t horConfidence;
- /**< Horizontal uncertainty confidence.
- If both elliptical and horizontal uncertainties are specified in this message,
- the confidence corresponds to the elliptical uncertainty. \n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Horizontal Reliability */
- uint8_t horReliability_valid; /**< Must be set to true if horReliability is being passed */
- qmiLocReliabilityEnumT_v02 horReliability;
- /**< Specifies the reliability of the horizontal position.
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Horizontal Speed */
- uint8_t speedHorizontal_valid; /**< Must be set to true if speedHorizontal is being passed */
- float speedHorizontal;
- /**< Horizontal speed.\n
- - Units: Meters/second */
-
- /* Optional */
- /* Speed Uncertainty */
- uint8_t speedUnc_valid; /**< Must be set to true if speedUnc is being passed */
- float speedUnc;
- /**< 3-D Speed uncertainty.\n
- - Units: Meters/second */
-
- /* Optional */
- /* Altitude With Respect to Ellipsoid */
- uint8_t altitudeWrtEllipsoid_valid; /**< Must be set to true if altitudeWrtEllipsoid is being passed */
- float altitudeWrtEllipsoid;
- /**< Altitude with respect to the WGS84 ellipsoid.\n
- - Units: Meters \n
- - Range: -500 to 15883 */
-
- /* Optional */
- /* Altitude With Respect to Sea Level */
- uint8_t altitudeWrtMeanSeaLevel_valid; /**< Must be set to true if altitudeWrtMeanSeaLevel is being passed */
- float altitudeWrtMeanSeaLevel;
- /**< Altitude with respect to mean sea level.\n
- - Units: Meters */
-
- /* Optional */
- /* Vertical Uncertainty */
- uint8_t vertUnc_valid; /**< Must be set to true if vertUnc is being passed */
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- /* Optional */
- /* Vertical Confidence */
- uint8_t vertConfidence_valid; /**< Must be set to true if vertConfidence is being passed */
- uint8_t vertConfidence;
- /**< Vertical uncertainty confidence.\n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Vertical Reliability */
- uint8_t vertReliability_valid; /**< Must be set to true if vertReliability is being passed */
- qmiLocReliabilityEnumT_v02 vertReliability;
- /**< Specifies the reliability of the vertical position.
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Vertical Speed */
- uint8_t speedVertical_valid; /**< Must be set to true if speedVertical is being passed */
- float speedVertical;
- /**< Vertical speed.\n
- - Units: Meters/second */
-
- /* Optional */
- /* Heading */
- uint8_t heading_valid; /**< Must be set to true if heading is being passed */
- float heading;
- /**< Heading.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- /* Optional */
- /* Heading Uncertainty */
- uint8_t headingUnc_valid; /**< Must be set to true if headingUnc is being passed */
- float headingUnc;
- /**< Heading uncertainty.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- /* Optional */
- /* Magnetic Deviation */
- uint8_t magneticDeviation_valid; /**< Must be set to true if magneticDeviation is being passed */
- float magneticDeviation;
- /**< Difference between the bearing to true north and the bearing shown
- on a magnetic compass. The deviation is positive when the magnetic
- north is east of true north. */
-
- /* Optional */
- /* Technology Used */
- uint8_t technologyMask_valid; /**< Must be set to true if technologyMask is being passed */
- qmiLocPosTechMaskT_v02 technologyMask;
- /**< Technology used in computing this fix.
- Valid bitmasks: \n
- - QMI_LOC_POS_TECH_MASK_SATELLITE (0x00000001) -- Satellites were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_CELLID (0x00000002) -- Cell towers were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_WIFI (0x00000004) -- Wi-Fi access points were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_SENSORS (0x00000008) -- Sensors were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_REFERENCE_LOCATION (0x00000010) -- Reference Location was used to generate the fix
- - QMI_LOC_POS_TECH_MASK_INJECTED_COARSE_POSITION (0x00000020) -- Coarse position injected into the location engine was used to
- generate the fix
- - QMI_LOC_POS_TECH_MASK_AFLT (0x00000040) -- AFLT was used to generate the fix
- - QMI_LOC_POS_TECH_MASK_HYBRID (0x00000080) -- GNSS and network-provided measurements were used to
- generate the fix
- */
-
- /* Optional */
- /* Dilution of Precision */
- uint8_t DOP_valid; /**< Must be set to true if DOP is being passed */
- qmiLocDOPStructT_v02 DOP;
- /**< \vspace{0.06in} \n Dilution of precision associated with this position. */
-
- /* Optional */
- /* UTC Timestamp */
- uint8_t timestampUtc_valid; /**< Must be set to true if timestampUtc is being passed */
- uint64_t timestampUtc;
- /**< UTC timestamp. \n
- - Units: Milliseconds since Jan. 1, 1970 */
-
- /* Optional */
- /* Leap Seconds */
- uint8_t leapSeconds_valid; /**< Must be set to true if leapSeconds is being passed */
- uint8_t leapSeconds;
- /**< Leap second information. If leapSeconds is not available,
- timestampUtc is calculated based on a hard-coded value
- for leap seconds. \n
- - Units: Seconds */
-
- /* Optional */
- /* GPS Time */
- uint8_t gpsTime_valid; /**< Must be set to true if gpsTime is being passed */
- qmiLocGPSTimeStructT_v02 gpsTime;
- /**< \vspace{0.06in} \n The number of weeks since Jan. 5, 1980, and
- milliseconds into the current week. */
-
- /* Optional */
- /* Time Uncertainty */
- uint8_t timeUnc_valid; /**< Must be set to true if timeUnc is being passed */
- float timeUnc;
- /**< Time uncertainty. \n
- - Units: Milliseconds */
-
- /* Optional */
- /* Time Source */
- uint8_t timeSrc_valid; /**< Must be set to true if timeSrc is being passed */
- qmiLocTimeSourceEnumT_v02 timeSrc;
- /**< Time source. Valid values: \n
- - eQMI_LOC_TIME_SRC_INVALID (0) -- Invalid time.
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TRANSFER (1) -- Time is set by the 1X system
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TAGGING (2) -- Time is set by WCDMA/GSM time tagging (that is,
- associating network time with GPS time)
- - eQMI_LOC_TIME_SRC_EXTERNAL_INPUT (3) -- Time is set by an external injection
- - eQMI_LOC_TIME_SRC_TOW_DECODE (4) -- Time is set after decoding over-the-air GPS navigation data
- from one GPS satellite
- - eQMI_LOC_TIME_SRC_TOW_CONFIRMED (5) -- Time is set after decoding over-the-air GPS navigation data
- from multiple satellites
- - eQMI_LOC_TIME_SRC_TOW_AND_WEEK_CONFIRMED (6) -- Both time of the week and the GPS week number are known
- - eQMI_LOC_TIME_SRC_NAV_SOLUTION (7) -- Time is set by the position engine after the fix is obtained
- - eQMI_LOC_TIME_SRC_SOLVE_FOR_TIME (8) -- Time is set by the position engine after performing SFT;
- this is done when the clock time uncertainty is large
- - eQMI_LOC_TIME_SRC_GLO_TOW_DECODE (9) -- Time is set after decoding GLO satellites
- - eQMI_LOC_TIME_SRC_TIME_TRANSFORM (10) -- Time is set after transforming the GPS to GLO time
- - eQMI_LOC_TIME_SRC_WCDMA_SLEEP_TIME_TAGGING (11) -- Time is set by the sleep time tag provided by the WCDMA network
- - eQMI_LOC_TIME_SRC_GSM_SLEEP_TIME_TAGGING (12) -- Time is set by the sleep time tag provided by the GSM network
- - eQMI_LOC_TIME_SRC_UNKNOWN (13) -- Source of the time is unknown
- - eQMI_LOC_TIME_SRC_SYSTEM_TIMETICK (14) -- Time is derived from the system clock (better known as the slow clock);
- GNSS time is maintained irrespective of the GNSS receiver state
- - eQMI_LOC_TIME_SRC_QZSS_TOW_DECODE (15) -- Time is set after decoding QZSS satellites
- - eQMI_LOC_TIME_SRC_BDS_TOW_DECODE (16) -- Time is set after decoding BDS satellites
- - eQMI_LOC_TIME_SRC_GAL_TOW_DECODE (17) -- Time is set after decoding GAL satellites */
-
- /* Optional */
- /* Sensor Data Usage */
- uint8_t sensorDataUsage_valid; /**< Must be set to true if sensorDataUsage is being passed */
- qmiLocSensorUsageIndicatorStructT_v02 sensorDataUsage;
- /**< \vspace{0.06in} \n Indicates whether sensor data was used in computing the position in this
- position report. */
-
- /* Optional */
- /* Fix Count for This Session */
- uint8_t fixId_valid; /**< Must be set to true if fixId is being passed */
- uint32_t fixId;
- /**< Fix count for the session. Starts with 0 and increments by one
- for each successive position report for a particular session. */
-
- /* Optional */
- /* SVs Used to Calculate the Fix */
- uint8_t gnssSvUsedList_valid; /**< Must be set to true if gnssSvUsedList is being passed */
- uint32_t gnssSvUsedList_len; /**< Must be set to # of elements in gnssSvUsedList */
- uint16_t gnssSvUsedList[QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02];
- /**< Each entry in the list contains the SV ID of a satellite
- used for calculating this position report. The following
- information is associated with each SV ID: \n
- Range: \n
- - For GPS: 1 to 32 \n
- - For GLONASS: 65 to 96 \n
- - For QZSS: 193 to 197 \n
- - For BDS: 201 to 237 \n
- - For GAL: 301 to 336
- */
-
- /* Optional */
- /* Altitude Assumed */
- uint8_t altitudeAssumed_valid; /**< Must be set to true if altitudeAssumed is being passed */
- uint8_t altitudeAssumed;
- /**< Indicates whether altitude is assumed or calculated: \begin{itemize1}
- \item 0x00 (FALSE) -- Altitude is calculated
- \item 0x01 (TRUE) -- Altitude is assumed; there may not be enough
- satellites to determine the precise altitude
- \vspace{-0.18in} \end{itemize1}*/
-
- /* Optional */
- /* Velocity ENU (East, North, Up) */
- uint8_t velEnu_valid; /**< Must be set to true if velEnu is being passed */
- float velEnu[QMI_LOC_ENU_ARRAY_LENGTH_V02];
- /**< East, North, Up velocity.\n
- - Units: Meters/second */
-
- /* Optional */
- /* Velocity Uncertainty ENU */
- uint8_t velUncEnu_valid; /**< Must be set to true if velUncEnu is being passed */
- float velUncEnu[QMI_LOC_ENU_ARRAY_LENGTH_V02];
- /**< East, North, Up velocity uncertainty.\n
- - Units: Meters/second */
-}qmiLocEventPositionReportIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSVSYSTEMENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SV_SYSTEM_GPS_V02 = 1, /**< GPS satellite */
- eQMI_LOC_SV_SYSTEM_GALILEO_V02 = 2, /**< GALILEO satellite */
- eQMI_LOC_SV_SYSTEM_SBAS_V02 = 3, /**< SBAS satellite */
- eQMI_LOC_SV_SYSTEM_COMPASS_V02 = 4, /**< COMPASS satellite (Deprecated) */
- eQMI_LOC_SV_SYSTEM_GLONASS_V02 = 5, /**< GLONASS satellite */
- eQMI_LOC_SV_SYSTEM_BDS_V02 = 6, /**< BDS satellite */
- eQMI_LOC_SV_SYSTEM_QZSS_V02 = 7, /**< QZSS satellite */
- QMILOCSVSYSTEMENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSvSystemEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSVSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SV_STATUS_IDLE_V02 = 1, /**< SV is not being actively processed */
- eQMI_LOC_SV_STATUS_SEARCH_V02 = 2, /**< The system is searching for this SV */
- eQMI_LOC_SV_STATUS_TRACK_V02 = 3, /**< SV is being tracked */
- QMILOCSVSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSvStatusEnumT_v02;
-/**
- @}
- */
-
-typedef uint32_t qmiLocSvInfoValidMaskT_v02;
-#define QMI_LOC_SV_INFO_MASK_VALID_SYSTEM_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000001) /**< System field is valid in SV information */
-#define QMI_LOC_SV_INFO_MASK_VALID_GNSS_SVID_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000002) /**< gnssSvId field is valid in SV information */
-#define QMI_LOC_SV_INFO_MASK_VALID_HEALTH_STATUS_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000004) /**< healthStatus field is valid in SV information */
-#define QMI_LOC_SV_INFO_MASK_VALID_PROCESS_STATUS_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000008) /**< processStatus field is valid in SV information */
-#define QMI_LOC_SV_INFO_MASK_VALID_SVINFO_MASK_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000010) /**< svInfoMask field is valid in SV information */
-#define QMI_LOC_SV_INFO_MASK_VALID_ELEVATION_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000020) /**< Elevation field is valid in SV information */
-#define QMI_LOC_SV_INFO_MASK_VALID_AZIMUTH_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000040) /**< Azimuth field is valid in SV information */
-#define QMI_LOC_SV_INFO_MASK_VALID_SNR_V02 ((qmiLocSvInfoValidMaskT_v02)0x00000080) /**< SNR field is valid in SV information */
-typedef uint8_t qmiLocSvInfoMaskT_v02;
-#define QMI_LOC_SVINFO_MASK_HAS_EPHEMERIS_V02 ((qmiLocSvInfoMaskT_v02)0x01) /**< Ephemeris is available for this SV */
-#define QMI_LOC_SVINFO_MASK_HAS_ALMANAC_V02 ((qmiLocSvInfoMaskT_v02)0x02) /**< Almanac is available for this SV */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocSvInfoValidMaskT_v02 validMask;
- /**< Bitmask indicating which of the fields in this TLV are valid.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- VALID_SYSTEM
- \item 0x00000002 -- VALID_GNSS_SVID
- \item 0x00000004 -- VALID_HEALTH_ STATUS
- \item 0x00000008 -- VALID_PROCESS_ STATUS
- \item 0x00000010 -- VALID_SVINFO_ MASK
- \item 0x00000020 -- VALID_ELEVATION
- \item 0x00000040 -- VALID_AZIMUTH
- \item 0x00000080 -- VALID_SNR
- \vspace{-0.18in} \end{itemize1} */
-
- qmiLocSvSystemEnumT_v02 system;
- /**< Indicates to which constellation this SV belongs.
-
- Valid values: \n
- - eQMI_LOC_SV_SYSTEM_GPS (1) -- GPS satellite
- - eQMI_LOC_SV_SYSTEM_GALILEO (2) -- GALILEO satellite
- - eQMI_LOC_SV_SYSTEM_SBAS (3) -- SBAS satellite
- - eQMI_LOC_SV_SYSTEM_COMPASS (4) -- COMPASS satellite (Deprecated)
- - eQMI_LOC_SV_SYSTEM_GLONASS (5) -- GLONASS satellite
- - eQMI_LOC_SV_SYSTEM_BDS (6) -- BDS satellite
- - eQMI_LOC_SV_SYSTEM_QZSS (7) -- QZSS satellite
- */
-
- uint16_t gnssSvId;
- /**< GNSS SV ID.
- \begin{itemize1}
- \item Range: \begin{itemize1}
- \item For GPS: 1 to 32
- \item For GLONASS: 1 to 32
- \item For SBAS: 120 to 158 and 183 to 187
- \item For QZSS: 193 to 197
- \item For BDS: 201 to 237
- \item For GAL: 301 to 336
- \end{itemize1} \end{itemize1}
-
- The GPS and GLONASS SVs can be disambiguated using the system field. */
-
- uint8_t healthStatus;
- /**< Health status.
- \begin{itemize1}
- \item Range: 0 to 1; 0 = unhealthy, \n 1 = healthy
- \vspace{-0.18in} \end{itemize1}*/
-
- qmiLocSvStatusEnumT_v02 svStatus;
- /**< SV processing status.
-
- Valid values: \n
- - eQMI_LOC_SV_STATUS_IDLE (1) -- SV is not being actively processed
- - eQMI_LOC_SV_STATUS_SEARCH (2) -- The system is searching for this SV
- - eQMI_LOC_SV_STATUS_TRACK (3) -- SV is being tracked
- */
-
- qmiLocSvInfoMaskT_v02 svInfoMask;
- /**< Indicates whether almanac and ephemeris information is available. \n
- Valid bitmasks:
-
- - 0x01 -- SVINFO_HAS_EPHEMERIS \n
- - 0x02 -- SVINFO_HAS_ALMANAC
- */
-
- float elevation;
- /**< SV elevation angle.\n
- - Units: Degrees \n
- - Range: 0 to 90 */
-
- float azimuth;
- /**< SV azimuth angle.\n
- - Units: Degrees \n
- - Range: 0 to 360 */
-
- float snr;
- /**< SV signal-to-noise ratio. \n
- - Units: dB-Hz */
-}qmiLocSvInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a satellite report to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* Altitude Assumed */
- uint8_t altitudeAssumed;
- /**< Indicates whether altitude is assumed or calculated: \begin{itemize1}
- \item 0x00 (FALSE) -- Valid altitude is calculated
- \item 0x01 (TRUE) -- Valid altitude is assumed; there may not be
- enough satellites to determine precise altitude
- \vspace{-0.18in} \end{itemize1}*/
-
- /* Optional */
- /* Satellite Info */
- uint8_t svList_valid; /**< Must be set to true if svList is being passed */
- uint32_t svList_len; /**< Must be set to # of elements in svList */
- qmiLocSvInfoStructT_v02 svList[QMI_LOC_SV_INFO_LIST_MAX_SIZE_V02];
- /**< \vspace{0.06in} \n SV information list. */
-}qmiLocEventGnssSvInfoIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends NMEA sentences to the control point */
-typedef struct {
-
- /* Mandatory */
- /* NMEA String */
- char nmea[QMI_LOC_NMEA_STRING_MAX_LENGTH_V02 + 1];
- /**< NMEA string.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 201
- \vspace{-0.18in} \end{itemize1}*/
-}qmiLocEventNmeaIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNINOTIFYVERIFYENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_USER_NO_NOTIFY_NO_VERIFY_V02 = 1, /**< No notification and no verification required */
- eQMI_LOC_NI_USER_NOTIFY_ONLY_V02 = 2, /**< Notify only; no verification required */
- eQMI_LOC_NI_USER_NOTIFY_VERIFY_ALLOW_NO_RESP_V02 = 3, /**< Notify and verify, but no response required. */
- eQMI_LOC_NI_USER_NOTIFY_VERIFY_NOT_ALLOW_NO_RESP_V02 = 4, /**< Notify and verify, and require a response */
- eQMI_LOC_NI_USER_NOTIFY_VERIFY_PRIVACY_OVERRIDE_V02 = 5, /**< Notify and verify; privacy override */
- QMILOCNINOTIFYVERIFYENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiNotifyVerifyEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNIVXPOSMODEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_VX_MS_ASSISTED_ONLY_V02 = 1, /**< MS-assisted only allowed */
- eQMI_LOC_NI_VX_MS_BASED_ONLY_V02 = 2, /**< MS-based only allowed */
- eQMI_LOC_NI_VX_MS_ASSISTED_PREFERRED_MS_BASED_ALLOWED_V02 = 3, /**< MS-assisted preferred, but MS-based allowed */
- eQMI_LOC_NI_VX_MS_BASED_PREFERRED_MS_ASSISTED_ALLOWED_V02 = 4, /**< MS-based preferred, but MS-assisted allowed */
- QMILOCNIVXPOSMODEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiVxPosModeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNIVXREQUESTORIDENCODINGSCHEMEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_VX_OCTET_V02 = 0, /**< Encoding is Octet */
- eQMI_LOC_NI_VX_EXN_PROTOCOL_MSG_V02 = 1, /**< Encoding is EXN protocol message */
- eQMI_LOC_NI_VX_ASCII_V02 = 2, /**< Encoding is ASCII */
- eQMI_LOC_NI_VX_IA5_V02 = 3, /**< Encoding is IA5 */
- eQMI_LOC_NI_VX_UNICODE_V02 = 4, /**< Encoding is Unicode */
- eQMI_LOC_NI_VX_SHIFT_JIS_V02 = 5, /**< Encoding is Shift JIS */
- eQMI_LOC_NI_VX_KOREAN_V02 = 6, /**< Encoding is Korean */
- eQMI_LOC_NI_VX_LATIN_HEBREW_V02 = 7, /**< Encoding is Latin Hebrew */
- eQMI_LOC_NI_VX_LATIN_V02 = 8, /**< Encoding is Latin */
- eQMI_LOC_NI_VX_GSM_V02 = 9, /**< Encoding is GSM */
- QMILOCNIVXREQUESTORIDENCODINGSCHEMEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiVxRequestorIdEncodingSchemeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t posQosIncl;
- /**< Indicates whether quality of service is included:\n
- - 0x01 (TRUE) -- QoS is included \n
- - 0x00 (FALSE) -- QoS is not included */
-
- uint8_t posQos;
- /**< Position QoS timeout. \n
- - Units: Seconds \n
- - Range: 0 to 255 */
-
- uint32_t numFixes;
- /**< Number of fixes allowed. */
-
- uint32_t timeBetweenFixes;
- /**< Time between fixes. \n
- - Units: Seconds */
-
- qmiLocNiVxPosModeEnumT_v02 posMode;
- /**< Position mode.
- Valid values:
-
- - eQMI_LOC_NI_VX_MS_ASSISTED_ONLY (1) -- MS-assisted only allowed
- - eQMI_LOC_NI_VX_MS_BASED_ONLY (2) -- MS-based only allowed
- - eQMI_LOC_NI_VX_MS_ASSISTED_PREFERRED_MS_BASED_ALLOWED (3) -- MS-assisted preferred, but MS-based allowed
- - eQMI_LOC_NI_VX_MS_BASED_PREFERRED_MS_ASSISTED_ALLOWED (4) -- MS-based preferred, but MS-assisted allowed
- */
-
- qmiLocNiVxRequestorIdEncodingSchemeEnumT_v02 encodingScheme;
- /**< VX encoding scheme.
-
- Valid values:
-
- - eQMI_LOC_NI_VX_OCTET (0) -- Encoding is Octet
- - eQMI_LOC_NI_VX_EXN_PROTOCOL_MSG (1) -- Encoding is EXN protocol message
- - eQMI_LOC_NI_VX_ASCII (2) -- Encoding is ASCII
- - eQMI_LOC_NI_VX_IA5 (3) -- Encoding is IA5
- - eQMI_LOC_NI_VX_UNICODE (4) -- Encoding is Unicode
- - eQMI_LOC_NI_VX_SHIFT_JIS (5) -- Encoding is Shift JIS
- - eQMI_LOC_NI_VX_KOREAN (6) -- Encoding is Korean
- - eQMI_LOC_NI_VX_LATIN_HEBREW (7) -- Encoding is Latin Hebrew
- - eQMI_LOC_NI_VX_LATIN (8) -- Encoding is Latin
- - eQMI_LOC_NI_VX_GSM (9) -- Encoding is GSM
- */
-
- uint32_t requestorId_len; /**< Must be set to # of elements in requestorId */
- uint8_t requestorId[QMI_LOC_NI_MAX_REQUESTOR_ID_LENGTH_V02];
- /**< Requestor ID. \n
- - Type: Array of bytes \n
- - Maximum array length: 200
- */
-
- uint16_t userRespTimerInSeconds;
- /**< Time to wait for the user to respond. \n
- - Units: Seconds */
-}qmiLocNiVxNotifyVerifyStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNISUPLPOSMETHODENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETASSISTED_V02 = 1, /**< Set assisted */
- eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETBASED_V02 = 2, /**< Set based */
- eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETASSISTED_PREF_V02 = 3, /**< Set assisted preferred */
- eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETBASED_PREF_V02 = 4, /**< Set based preferred */
- eQMI_LOC_NI_SUPL_POSMETHOD_AUTONOMOUS_GPS_V02 = 5, /**< Standalone GPS */
- eQMI_LOC_NI_SUPL_POSMETHOD_AFLT_V02 = 6, /**< Advanced forward link trilateration */
- eQMI_LOC_NI_SUPL_POSMETHOD_ECID_V02 = 7, /**< Exclusive chip ID */
- eQMI_LOC_NI_SUPL_POSMETHOD_EOTD_V02 = 8, /**< Enhanced observed time difference */
- eQMI_LOC_NI_SUPL_POSMETHOD_OTDOA_V02 = 9, /**< Observed time delay of arrival */
- eQMI_LOC_NI_SUPL_POSMETHOD_NO_POSITION_V02 = 10, /**< No position */
- QMILOCNISUPLPOSMETHODENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiSuplPosMethodEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNIDATACODINGSCHEMEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_SS_GERMAN_V02 = 12, /**< Language is German */
- eQMI_LOC_NI_SS_ENGLISH_V02 = 13, /**< Language is English */
- eQMI_LOC_NI_SS_ITALIAN_V02 = 14, /**< Language is Italian */
- eQMI_LOC_NI_SS_FRENCH_V02 = 15, /**< Language is French */
- eQMI_LOC_NI_SS_SPANISH_V02 = 16, /**< Language is Spanish */
- eQMI_LOC_NI_SS_DUTCH_V02 = 17, /**< Language is Dutch */
- eQMI_LOC_NI_SS_SWEDISH_V02 = 18, /**< Language is Swedish */
- eQMI_LOC_NI_SS_DANISH_V02 = 19, /**< Language is Danish */
- eQMI_LOC_NI_SS_PORTUGUESE_V02 = 20, /**< Language is Portuguese */
- eQMI_LOC_NI_SS_FINNISH_V02 = 21, /**< Language is Finnish */
- eQMI_LOC_NI_SS_NORWEGIAN_V02 = 22, /**< Language is Norwegian */
- eQMI_LOC_NI_SS_GREEK_V02 = 23, /**< Language is Greek */
- eQMI_LOC_NI_SS_TURKISH_V02 = 24, /**< Language is Turkish */
- eQMI_LOC_NI_SS_HUNGARIAN_V02 = 25, /**< Language is Hungarian */
- eQMI_LOC_NI_SS_POLISH_V02 = 26, /**< Language is Polish */
- eQMI_LOC_NI_SS_LANGUAGE_UNSPEC_V02 = 27, /**< Language is unspecified */
- eQMI_LOC_NI_SUPL_UTF8_V02 = 28, /**< Encoding is UTF 8 */
- eQMI_LOC_NI_SUPL_UCS2_V02 = 29, /**< Encoding is UCS 2 */
- eQMI_LOC_NI_SUPL_GSM_DEFAULT_V02 = 30, /**< Encoding is GSM default */
- QMILOCNIDATACODINGSCHEMEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiDataCodingSchemeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNISUPLFORMATENUMTYPE_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_SUPL_FORMAT_LOGICAL_NAME_V02 = 0, /**< SUPL logical name format */
- eQMI_LOC_NI_SUPL_FORMAT_EMAIL_ADDRESS_V02 = 1, /**< SUPL email address format */
- eQMI_LOC_NI_SUPL_FORMAT_MSISDN_V02 = 2, /**< SUPL MS-ISDN format */
- eQMI_LOC_NI_SUPL_FORMAT_URL_V02 = 3, /**< SUPL URL format */
- eQMI_LOC_NI_SUPL_FORMAT_SIP_URL_V02 = 4, /**< SUPL SIP URL format */
- eQMI_LOC_NI_SUPL_FORMAT_MIN_V02 = 5, /**< SUPL MIN format */
- eQMI_LOC_NI_SUPL_FORMAT_MDN_V02 = 6, /**< SUPL MDN format */
- eQMI_LOC_NI_SUPL_FORMAT_IMSPUBLIC_IDENTITY_V02 = 7, /**< SUPL IMS public identity */
- eQMI_LOC_NI_SUPL_FORMAT_OSS_UNKNOWN_V02 = 2147483647, /**< SUPL unknown format */
- QMILOCNISUPLFORMATENUMTYPE_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiSuplFormatEnumType_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocNiSuplFormatEnumType_v02 formatType;
- /**< Format of the formatted string.
-
- Valid values: \n
- - eQMI_LOC_NI_SUPL_FORMAT_LOGICAL_NAME (0) -- SUPL logical name format
- - eQMI_LOC_NI_SUPL_FORMAT_EMAIL_ADDRESS (1) -- SUPL email address format
- - eQMI_LOC_NI_SUPL_FORMAT_MSISDN (2) -- SUPL MS-ISDN format
- - eQMI_LOC_NI_SUPL_FORMAT_URL (3) -- SUPL URL format
- - eQMI_LOC_NI_SUPL_FORMAT_SIP_URL (4) -- SUPL SIP URL format
- - eQMI_LOC_NI_SUPL_FORMAT_MIN (5) -- SUPL MIN format
- - eQMI_LOC_NI_SUPL_FORMAT_MDN (6) -- SUPL MDN format
- - eQMI_LOC_NI_SUPL_FORMAT_IMSPUBLIC_IDENTITY (7) -- SUPL IMS public identity
- - eQMI_LOC_NI_SUPL_FORMAT_OSS_UNKNOWN (2147483647) -- SUPL unknown format
- */
-
- uint32_t formattedString_len; /**< Must be set to # of elements in formattedString */
- uint8_t formattedString[QMI_LOC_NI_MAX_CLIENT_NAME_LENGTH_V02];
- /**< Formatted string. \n
- - Type: Byte array \n
- - Maximum string length: 64
- */
-}qmiLocNiSuplFormattedStringStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint8_t qmiLocSuplQopValidMaskT_v02;
-#define QMI_LOC_NI_SUPL_MASK_QOP_HORZ_ACC_VALID_V02 ((qmiLocSuplQopValidMaskT_v02)0x01) /**< Horizontal accuracy is valid in the Quality of Position (QoP) */
-#define QMI_LOC_NI_SUPL_MASK_QOP_VER_ACC_VALID_V02 ((qmiLocSuplQopValidMaskT_v02)0x02) /**< Vertical accuracy is valid in the QoP */
-#define QMI_LOC_NI_SUPL_MASK_QOP_MAXAGE_VALID_V02 ((qmiLocSuplQopValidMaskT_v02)0x04) /**< Vertical accuracy is valid in the QoP */
-#define QMI_LOC_NI_SUPL_MASK_QOP_DELAY_VALID_V02 ((qmiLocSuplQopValidMaskT_v02)0x08) /**< Vertical accuracy is valid in the QoP */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocSuplQopValidMaskT_v02 validMask;
- /**< Bit field indicating which fields are valid in this value.
-
- Valid bitmasks: \n
- - 0x01 -- QOP_HORZ_ACC_VALID \n
- - 0x02 -- QOP_VER_ACC_VALID \n
- - 0x04 -- QOP_MAXAGE_VALID \n
- - 0x08 -- QOP_DELAY_VALID*/
-
- uint8_t horizontalAccuracy;
- /**< Horizontal accuracy. \n
- - Units: Meters */
-
- uint8_t verticalAccuracy;
- /**< Vertical accuracy. \n
- - Units: Meters */
-
- uint16_t maxLocAge;
- /**< Maximum age of the location if the engine sends a previously
- computed position. \n
- - Units: Seconds */
-
- uint8_t delay;
- /**< Delay the server is willing to tolerate for the fix. \n
- - Units: Seconds */
-}qmiLocNiSuplQopStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint8_t qmiLocServerAddrTypeMaskT_v02;
-#define QMI_LOC_SERVER_ADDR_TYPE_IPV4_MASK_V02 ((qmiLocServerAddrTypeMaskT_v02)0x01) /**< IPv4 server address type */
-#define QMI_LOC_SERVER_ADDR_TYPE_IPV6_MASK_V02 ((qmiLocServerAddrTypeMaskT_v02)0x02) /**< IPv6 server address type */
-#define QMI_LOC_SERVER_ADDR_TYPE_URL_MASK_V02 ((qmiLocServerAddrTypeMaskT_v02)0x04) /**< URL server address type */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t addr;
- /**< IPv4 address. */
-
- uint16_t port;
- /**< IPv4 port. */
-}qmiLocIpV4AddrStructType_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t addr[QMI_LOC_IPV6_ADDR_LENGTH_V02];
- /**< IPv6 address. \n
- - Type: Array of unsigned integers \n
- - Maximum length of the array: 8 */
-
- uint32_t port;
- /**< IPv6 port. */
-}qmiLocIpV6AddrStructType_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocServerAddrTypeMaskT_v02 suplServerAddrTypeMask;
- /**< Mask specifying the valid fields in this value.
-
- Valid bitmasks: \n
- - 0x01 -- IPv4 \n
- - 0x02 -- IPv6 \n
- - 0x04 -- URL
- */
-
- qmiLocIpV4AddrStructType_v02 ipv4Addr;
- /**< IPv4 address and port. */
-
- qmiLocIpV6AddrStructType_v02 ipv6Addr;
- /**< IPv6 address and port. */
-
- char urlAddr[QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02 + 1];
- /**< URL.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 256
- \vspace{-0.18in} \end{itemize1}
- */
-}qmiLocNiSuplServerInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint32_t qmiLocNiSuplNotifyVerifyValidMaskT_v02;
-#define QMI_LOC_SUPL_SERVER_INFO_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000001) /**< Mask to denote that the server information
- is present in an NI SUPL Notify/Verify request event. This mask is set in
- the valid_flags field of a Notify/Verify structure. */
-#define QMI_LOC_SUPL_SESSION_ID_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000002) /**< Mask to denote that the SUPL session ID
- is present in an NI SUPL Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_SUPL_HASH_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000004) /**< Mask to denote that the SUPL hash is present
- in an NI Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_SUPL_POS_METHOD_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000008) /**< Mask to denote that the position method is present
- in an NI SUPL Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_SUPL_DATA_CODING_SCHEME_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000010) /**< Mask to denote that the data coding scheme
- is present in an NI SUPL Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_SUPL_REQUESTOR_ID_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000020) /**< Mask to denote that the requestor ID
- is present in an NI Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_SUPL_CLIENT_NAME_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000040) /**< Mask to denote that the requestor ID
- is present in an NI Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_SUPL_QOP_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000080) /**< Mask to denote that the quality of position
- is present in an NI Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_SUPL_USER_RESP_TIMER_MASK_V02 ((qmiLocNiSuplNotifyVerifyValidMaskT_v02)0x00000100) /**< Mask to denote that the user response timer
- is present in an NI Notify/Verify request event.
- This mask is set in the valid_flags field of a
- Notify/Verify structure. */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocNiSuplNotifyVerifyValidMaskT_v02 valid_flags;
- /**< Indicates which of the following fields are present in this value.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- SUPL_SERVER_INFO
- \item 0x00000002 -- SUPL_SESSION_ID
- \item 0x00000004 -- SUPL_HASH
- \item 0x00000008 -- SUPL_POS_METHOD
- \item 0x00000010 -- SUPL_DATA_ CODING_SCHEME
- \item 0x00000020 -- SUPL_REQUESTOR_ ID
- \item 0x00000040 -- SUPL_CLIENT_ NAME
- \item 0x00000080 -- SUPL_QOP
- \item 0x00000100 -- SUPL_USER_RESP_ TIMER
- \vspace{-0.18in} \end{itemize1}
- */
-
- qmiLocNiSuplServerInfoStructT_v02 suplServerInfo;
- /**< SUPL server information. */
-
- uint8_t suplSessionId[QMI_LOC_NI_SUPL_SLP_SESSION_ID_BYTE_LENGTH_V02];
- /**< SUPL session ID. \n
- - Type: Array of unsigned integers \n
- - Maximum length of the array: 4 */
-
- uint8_t suplHash[QMI_LOC_NI_SUPL_HASH_LENGTH_V02];
- /**< Hash for SUPL_INIT; used to validate that the message was not
- corrupted. \n
- - Type: Array of unsigned integers \n
- - Length of the array: 8 */
-
- qmiLocNiSuplPosMethodEnumT_v02 posMethod;
- /**< GPS mode to be used for the fix.
- Valid values:
-
- - eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETASSISTED (1) -- Set assisted
- - eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETBASED (2) -- Set based
- - eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETASSISTED_PREF (3) -- Set assisted preferred
- - eQMI_LOC_NI_SUPL_POSMETHOD_AGPS_SETBASED_PREF (4) -- Set based preferred
- - eQMI_LOC_NI_SUPL_POSMETHOD_AUTONOMOUS_GPS (5) -- Standalone GPS
- - eQMI_LOC_NI_SUPL_POSMETHOD_AFLT (6) -- Advanced forward link trilateration
- - eQMI_LOC_NI_SUPL_POSMETHOD_ECID (7) -- Exclusive chip ID
- - eQMI_LOC_NI_SUPL_POSMETHOD_EOTD (8) -- Enhanced observed time difference
- - eQMI_LOC_NI_SUPL_POSMETHOD_OTDOA (9) -- Observed time delay of arrival
- - eQMI_LOC_NI_SUPL_POSMETHOD_NO_POSITION (10) -- No position
- */
-
- qmiLocNiDataCodingSchemeEnumT_v02 dataCodingScheme;
- /**< Data coding scheme applies to both the requestor ID and the client
- name.
-
- Valid values: \n
- - eQMI_LOC_NI_SS_GERMAN (12) -- Language is German
- - eQMI_LOC_NI_SS_ENGLISH (13) -- Language is English
- - eQMI_LOC_NI_SS_ITALIAN (14) -- Language is Italian
- - eQMI_LOC_NI_SS_FRENCH (15) -- Language is French
- - eQMI_LOC_NI_SS_SPANISH (16) -- Language is Spanish
- - eQMI_LOC_NI_SS_DUTCH (17) -- Language is Dutch
- - eQMI_LOC_NI_SS_SWEDISH (18) -- Language is Swedish
- - eQMI_LOC_NI_SS_DANISH (19) -- Language is Danish
- - eQMI_LOC_NI_SS_PORTUGUESE (20) -- Language is Portuguese
- - eQMI_LOC_NI_SS_FINNISH (21) -- Language is Finnish
- - eQMI_LOC_NI_SS_NORWEGIAN (22) -- Language is Norwegian
- - eQMI_LOC_NI_SS_GREEK (23) -- Language is Greek
- - eQMI_LOC_NI_SS_TURKISH (24) -- Language is Turkish
- - eQMI_LOC_NI_SS_HUNGARIAN (25) -- Language is Hungarian
- - eQMI_LOC_NI_SS_POLISH (26) -- Language is Polish
- - eQMI_LOC_NI_SS_LANGUAGE_UNSPEC (27) -- Language is unspecified
- - eQMI_LOC_NI_SUPL_UTF8 (28) -- Encoding is UTF 8
- - eQMI_LOC_NI_SUPL_UCS2 (29) -- Encoding is UCS 2
- - eQMI_LOC_NI_SUPL_GSM_DEFAULT (30) -- Encoding is GSM default
- */
-
- qmiLocNiSuplFormattedStringStructT_v02 requestorId;
- /**< Requestor ID. The encoding scheme for requestor_id is specified in
- the dataCodingScheme field. */
-
- qmiLocNiSuplFormattedStringStructT_v02 clientName;
- /**< Client name. The encoding scheme for client_name is specified in
- the dataCodingScheme field. */
-
- qmiLocNiSuplQopStructT_v02 suplQop;
- /**< SUPL QoP. */
-
- uint16_t userResponseTimer;
- /**< Time to wait for the user to respond. \n
- - Units: Seconds*/
-}qmiLocNiSuplNotifyVerifyStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNILOCATIONTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_LOCATIONTYPE_CURRENT_LOCATION_V02 = 1, /**< Current location */
- eQMI_LOC_NI_LOCATIONTYPE_CURRENT_OR_LAST_KNOWN_LOCATION_V02 = 2, /**< Last known location; may be the current location */
- eQMI_LOC_NI_LOCATIONTYPE_INITIAL_LOCATION_V02 = 3, /**< Initial location */
- QMILOCNILOCATIONTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiLocationTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocNiDataCodingSchemeEnumT_v02 dataCodingScheme;
- /**< Identifies the coding scheme of the coded string.
-
- Valid values: \n
- - eQMI_LOC_NI_SS_GERMAN (12) -- Language is German
- - eQMI_LOC_NI_SS_ENGLISH (13) -- Language is English
- - eQMI_LOC_NI_SS_ITALIAN (14) -- Language is Italian
- - eQMI_LOC_NI_SS_FRENCH (15) -- Language is French
- - eQMI_LOC_NI_SS_SPANISH (16) -- Language is Spanish
- - eQMI_LOC_NI_SS_DUTCH (17) -- Language is Dutch
- - eQMI_LOC_NI_SS_SWEDISH (18) -- Language is Swedish
- - eQMI_LOC_NI_SS_DANISH (19) -- Language is Danish
- - eQMI_LOC_NI_SS_PORTUGUESE (20) -- Language is Portuguese
- - eQMI_LOC_NI_SS_FINNISH (21) -- Language is Finnish
- - eQMI_LOC_NI_SS_NORWEGIAN (22) -- Language is Norwegian
- - eQMI_LOC_NI_SS_GREEK (23) -- Language is Greek
- - eQMI_LOC_NI_SS_TURKISH (24) -- Language is Turkish
- - eQMI_LOC_NI_SS_HUNGARIAN (25) -- Language is Hungarian
- - eQMI_LOC_NI_SS_POLISH (26) -- Language is Polish
- - eQMI_LOC_NI_SS_LANGUAGE_UNSPEC (27) -- Language is unspecified
- - eQMI_LOC_NI_SUPL_UTF8 (28) -- Encoding is UTF 8
- - eQMI_LOC_NI_SUPL_UCS2 (29) -- Encoding is UCS 2
- - eQMI_LOC_NI_SUPL_GSM_DEFAULT (30) -- Encoding is GSM default
- */
-
- uint32_t codedString_len; /**< Must be set to # of elements in codedString */
- uint8_t codedString[QMI_LOC_NI_CODEWORD_MAX_LENGTH_V02];
- /**< Coded string. \n
- - Type: Array of bytes \n
- - Maximum string length: 20 */
-}qmiLocNiUmtsCpCodedStringStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint16_t qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02;
-#define QMI_LOC_UMTS_CP_INVOKE_ID_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0001) /**< Mask to denote that the invoke ID
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_DATA_CODING_SCHEME_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0002) /**< Mask to denote that the data coding scheme
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_NOTIFICATION_TEXT_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0004) /**< Mask to denote that the notification text
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_CLIENT_ADDRESS_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0008) /**< Mask to denote that the client address
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_LOCATION_TYPE_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0010) /**< Mask to denote that the location type
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_REQUESTOR_ID_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0020) /**< Mask to denote that the requestor ID
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_CODEWORD_STRING_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0040) /**< Mask to denote that the code word string
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_SERVICE_TYPE_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0080) /**< Mask to denote that the service type
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-#define QMI_LOC_UMTS_CP_USER_RESP_TIMER_MASK_V02 ((qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02)0x0100) /**< Mask to denote that the user response timer
- is present in an NI Notify/Verify request event.
- This mask is set in the valid flags field of a
- Notify/Verify structure. */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocNiUmtsCpNotifyVerifyValidMaskT_v02 valid_flags;
- /**< Fields that are valid in this value.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x0001 -- INVOKE_ID_MASK
- \item 0x0002 -- DATA_CODING_ SCHEME_MASK
- \item 0x0004 -- NOTIFICATION_TEXT_ MASK
- \item 0x0008 -- CLIENT_ADDRESS_ MASK
- \item 0x0010 -- LOCATION_TYPE_ MASK
- \item 0x0020 -- REQUESTOR_ID_MASK
- \item 0x0040 -- CODEWORD_STRING_ MASK
- \item 0x0080 -- SERVICE_TYPE_MASK
- \item 0x0100 -- USER_RESP_TIMER_ MASK
- \vspace{-0.18in} \end{itemize1}
- */
-
- uint8_t invokeId;
- /**< Supplementary Services invoke ID. */
-
- qmiLocNiDataCodingSchemeEnumT_v02 dataCodingScheme;
- /**< Type of data encoding scheme for the text.
- Applies to both the notification text and the client address.
-
- Valid values: \n
- - eQMI_LOC_NI_SS_GERMAN (12) -- Language is German
- - eQMI_LOC_NI_SS_ENGLISH (13) -- Language is English
- - eQMI_LOC_NI_SS_ITALIAN (14) -- Language is Italian
- - eQMI_LOC_NI_SS_FRENCH (15) -- Language is French
- - eQMI_LOC_NI_SS_SPANISH (16) -- Language is Spanish
- - eQMI_LOC_NI_SS_DUTCH (17) -- Language is Dutch
- - eQMI_LOC_NI_SS_SWEDISH (18) -- Language is Swedish
- - eQMI_LOC_NI_SS_DANISH (19) -- Language is Danish
- - eQMI_LOC_NI_SS_PORTUGUESE (20) -- Language is Portuguese
- - eQMI_LOC_NI_SS_FINNISH (21) -- Language is Finnish
- - eQMI_LOC_NI_SS_NORWEGIAN (22) -- Language is Norwegian
- - eQMI_LOC_NI_SS_GREEK (23) -- Language is Greek
- - eQMI_LOC_NI_SS_TURKISH (24) -- Language is Turkish
- - eQMI_LOC_NI_SS_HUNGARIAN (25) -- Language is Hungarian
- - eQMI_LOC_NI_SS_POLISH (26) -- Language is Polish
- - eQMI_LOC_NI_SS_LANGUAGE_UNSPEC (27) -- Language is unspecified
- - eQMI_LOC_NI_SUPL_UTF8 (28) -- Encoding is UTF 8
- - eQMI_LOC_NI_SUPL_UCS2 (29) -- Encoding is UCS 2
- - eQMI_LOC_NI_SUPL_GSM_DEFAULT (30) -- Encoding is GSM default
- */
-
- uint32_t notificationText_len; /**< Must be set to # of elements in notificationText */
- uint8_t notificationText[QMI_LOC_NI_MAX_CLIENT_NAME_LENGTH_V02];
- /**< Notification text; the encoding method is specified in
- dataCodingScheme. \n
- - Type: Array of bytes \n
- - Maximum array length: 64 */
-
- uint32_t clientAddress_len; /**< Must be set to # of elements in clientAddress */
- uint8_t clientAddress[QMI_LOC_NI_MAX_EXT_CLIENT_ADDRESS_V02];
- /**< Client address; the encoding method is specified in
- dataCodingScheme. \n
- - Maximum array length: 20 */
-
- qmiLocNiLocationTypeEnumT_v02 locationType;
- /**< Location type.
-
- Valid values: \n
- - eQMI_LOC_NI_LOCATIONTYPE_CURRENT_LOCATION (1) -- Current location
- - eQMI_LOC_NI_LOCATIONTYPE_CURRENT_OR_LAST_KNOWN_LOCATION (2) -- Last known location; may be the current location
- - eQMI_LOC_NI_LOCATIONTYPE_INITIAL_LOCATION (3) -- Initial location
- */
-
- qmiLocNiUmtsCpCodedStringStructT_v02 requestorId;
- /**< Requestor ID; the encoding method is specified in the
- qmiLocNiUmtsCpCodedStringStructT.dataCodingScheme field. */
-
- qmiLocNiUmtsCpCodedStringStructT_v02 codewordString;
- /**< Codeword string; the encoding method is specified in the
- qmiLocNiUmtsCpCodedStringStructT.dataCodingScheme field. */
-
- uint8_t lcsServiceTypeId;
- /**< Service type ID. */
-
- uint16_t userResponseTimer;
- /**< Time to wait for the user to respond. \n
- - Units: Seconds */
-}qmiLocNiUmtsCpNotifyVerifyStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNISERVICEINTERACTIONENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_SERVICE_INTERACTION_ONGOING_NI_INCOMING_MO_V02 = 1, /**< Service interaction between ongoing NI and incoming MO sessions. */
- QMILOCNISERVICEINTERACTIONENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiServiceInteractionEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocNiVxNotifyVerifyStructT_v02 niVxReq;
- /**< Ongoing NI session request; this information is currently not filled. */
-
- qmiLocNiServiceInteractionEnumT_v02 serviceInteractionType;
- /**< Service interaction type specified in qmiLocNiServiceInteractionEnumT.
-
- Valid values: \n
- - eQMI_LOC_NI_SERVICE_INTERACTION_ONGOING_NI_INCOMING_MO (1) -- Service interaction between ongoing NI and incoming MO sessions.
- */
-}qmiLocNiVxServiceInteractionStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint16_t qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02;
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_WLAN_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0001) /**< Denotes that WLAN measurements are allowed as part of location ID
- and multiple location IDs in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_GSM_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0002) /**< Denotes that GSM measurements are allowed as part of location ID
- and multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_WCDMA_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0004) /**< Denotes that WCDMA measurements are allowed as part of location ID
- and multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_CDMA_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0008) /**< Denotes that CDMA measurements are allowed as part of location ID
- and multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_HRDP_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0010) /**< Denotes that HRDP measurements are allowed as part of location ID
- and multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_UMB_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0020) /**< Denotes that UMB measurements are allowed as part of location ID
- and multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_LTE_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0040) /**< Denotes that LTE measurements are allowed as part of location ID
- and multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_WIMAX_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0080) /**< Denotes that WIMAX measurements are allowed as part of location ID
- and multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_HISTORIC_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0100) /**< Denotes that historical information is allowed as part of
- multiple location ID in the SUPL_POS_INIT message. */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_SUPPORTED_NETWORK_NONSVRV_V02 ((qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02)0x0200) /**< Denotes that information about nonserving cells is allowed
- as part of multiple location ID in the SUPL_POS_INIT message. */
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNISUPLVER2EXTTRIGGERTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SUPL_VER_2_EXT_TRIGGER_TYPE_SINGLE_SHOT_V02 = -1, /**< SUPL INIT message indicates a request for a single shot
- triggered session */
- eQMI_LOC_SUPL_VER_2_EXT_TRIGGER_TYPE_PERIODIC_V02 = 0, /**< SUPL INIT message indicates a request for a periodic
- triggered session */
- eQMI_LOC_SUPL_VER_2_EXT_TRIGGER_TYPE_AREA_EVENT_V02 = 1, /**< SUPL INIT message indicates a request for an area event
- triggered session */
- QMILOCNISUPLVER2EXTTRIGGERTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiSuplVer2ExtTriggerTypeEnumT_v02;
-/**
- @}
- */
-
-typedef uint16_t qmiLocNiSuplVer2ExtGnssTypeMaskT_v02;
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_GNSS_GPS_V02 ((qmiLocNiSuplVer2ExtGnssTypeMaskT_v02)0x0001) /**< GPS is allowed to be used as the positioning technology */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_GNSS_GLONASS_V02 ((qmiLocNiSuplVer2ExtGnssTypeMaskT_v02)0x0002) /**< GLONASS is allowed to be used as the positioning technology */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_GNSS_GALILEO_V02 ((qmiLocNiSuplVer2ExtGnssTypeMaskT_v02)0x0004) /**< Galileo is allowed to be used as the positioning technology */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_GNSS_SBAS_V02 ((qmiLocNiSuplVer2ExtGnssTypeMaskT_v02)0x0008) /**< SBAS is allowed to be used as the positioning technology */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_GNSS_QZSS_V02 ((qmiLocNiSuplVer2ExtGnssTypeMaskT_v02)0x0010) /**< QZSS is allowed to be used as the positioning technology */
-#define QMI_LOC_SUPL_VER_2_EXT_MASK_GNSS_MODERN_GPS_V02 ((qmiLocNiSuplVer2ExtGnssTypeMaskT_v02)0x0020) /**< Modern GPS is allowed to be used as the positioning technology */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocNiSuplVer2ExtSupportedNetworksMaskT_v02 supportedNetworksMask;
- /**< Specifies which type of network measurements are allowed to be sent as
- part of the Location ID or Multiple Location IDs parameter in the
- SUPL_POS_INIT message (refer to 3GPP \hyperref[TS 03.32]{TS 03.32}).
-
- Valid bitmasks: \begin{itemize1}
- \item 0x0001 -- SUPPORTED_NETWORK_ WLAN
- \item 0x0002 -- SUPPORTED_NETWORK_ GSM
- \item 0x0004 -- SUPPORTED_NETWORK_ WCDMA
- \item 0x0008 -- SUPPORTED_NETWORK_ CDMA
- \item 0x0010 -- SUPPORTED_NETWORK_ HRDP
- \item 0x0020 -- SUPPORTED_NETWORK_ UMB
- \item 0x0040 -- SUPPORTED_NETWORK_ LTE
- \item 0x0080 -- SUPPORTED_NETWORK_ WIMAX
- \item 0x0100 -- SUPPORTED_NETWORK_ HISTORIC
- \item 0x0200 -- SUPPORTED_NETWORK_ NONSVRV
- \vspace{-0.18in} \end{itemize1}
- */
-
- qmiLocNiSuplVer2ExtTriggerTypeEnumT_v02 triggerType;
- /**< Specifies the type of session trigger requested in the
- SUPL_POS_INIT message (refer to 3GPP \hyperref[TS 03.32]{TS 03.32}).
-
- Valid values: \n
- - eQMI_LOC_SUPL_VER_2_EXT_TRIGGER_TYPE_SINGLE_SHOT (-1) -- SUPL INIT message indicates a request for a single shot
- triggered session
- - eQMI_LOC_SUPL_VER_2_EXT_TRIGGER_TYPE_PERIODIC (0) -- SUPL INIT message indicates a request for a periodic
- triggered session
- - eQMI_LOC_SUPL_VER_2_EXT_TRIGGER_TYPE_AREA_EVENT (1) -- SUPL INIT message indicates a request for an area event
- triggered session
- */
-
- qmiLocNiSuplVer2ExtGnssTypeMaskT_v02 gnssType;
- /**< Specifies which GNSS technologies are allowed as positioning
- technologies.
-
- Valid bitmasks: \n
- - 0x0001 -- GNSS_GPS \n
- - 0x0002 -- GNSS_GLONASS \n
- - 0x0004 -- GNSS_GALILEO \n
- - 0x0008 -- GNSS_SBAS \n
- - 0x0010 -- GNSS_QZSS \n
- - 0x0020 -- GNSS_MODERN_GPS
- */
-}qmiLocNiSuplVer2ExtStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- char eslpUrl[QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02 + 1];
- /**< ESLP URL. \n
- Maximum length: 255 bytes */
-}qmiLocEmergencyNotificationStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Indicates an NI Notify/Verify request to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* Notification Type */
- qmiLocNiNotifyVerifyEnumT_v02 notificationType;
- /**< Type of notification/verification performed.
-
- Valid values: \n
- - eQMI_LOC_NI_USER_NO_NOTIFY_NO_VERIFY (1) -- No notification and no verification required
- - eQMI_LOC_NI_USER_NOTIFY_ONLY (2) -- Notify only; no verification required
- - eQMI_LOC_NI_USER_NOTIFY_VERIFY_ALLOW_NO_RESP (3) -- Notify and verify, but no response required.
- - eQMI_LOC_NI_USER_NOTIFY_VERIFY_NOT_ALLOW_NO_RESP (4) -- Notify and verify, and require a response
- - eQMI_LOC_NI_USER_NOTIFY_VERIFY_PRIVACY_OVERRIDE (5) -- Notify and verify; privacy override
- */
-
- /* Optional */
- /* Network Initiated Vx Request */
- uint8_t NiVxInd_valid; /**< Must be set to true if NiVxInd is being passed */
- qmiLocNiVxNotifyVerifyStructT_v02 NiVxInd;
- /**< \vspace{0.06in} \n Optional NI Vx request payload. */
-
- /* Optional */
- /* Network Initiated SUPL Request */
- uint8_t NiSuplInd_valid; /**< Must be set to true if NiSuplInd is being passed */
- qmiLocNiSuplNotifyVerifyStructT_v02 NiSuplInd;
- /**< \vspace{0.06in} \n Optional NI SUPL request payload. */
-
- /* Optional */
- /* Network Initiated UMTS Control Plane Request */
- uint8_t NiUmtsCpInd_valid; /**< Must be set to true if NiUmtsCpInd is being passed */
- qmiLocNiUmtsCpNotifyVerifyStructT_v02 NiUmtsCpInd;
- /**< \vspace{0.06in} \n Optional NI UMTS-CP request payload. */
-
- /* Optional */
- /* Network Initiated Service Interaction Request */
- uint8_t NiVxServiceInteractionInd_valid; /**< Must be set to true if NiVxServiceInteractionInd is being passed */
- qmiLocNiVxServiceInteractionStructT_v02 NiVxServiceInteractionInd;
- /**< \vspace{0.06in} \n Optional NI service interaction payload. */
-
- /* Optional */
- /* Network Initiated SUPL Version 2 Extension */
- uint8_t NiSuplVer2ExtInd_valid; /**< Must be set to true if NiSuplVer2ExtInd is being passed */
- qmiLocNiSuplVer2ExtStructT_v02 NiSuplVer2ExtInd;
- /**< \vspace{0.06in} \n Optional NI SUPL Version 2 Extension payload. When present,
- this payload is to be used in conjunction with the SUPL
- indication payload. */
-
- /* Optional */
- /* SUPL Emergency Notification */
- uint8_t suplEmergencyNotification_valid; /**< Must be set to true if suplEmergencyNotification is being passed */
- qmiLocEmergencyNotificationStructT_v02 suplEmergencyNotification;
- /**< \vspace{0.06in} \n This specifies that the corresponding NI notification is an
- emergency notification. Emergency notification
- can be given even without an Emergency SUPL Location Platform (ESLP)
- address. */
-}qmiLocEventNiNotifyVerifyReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- char serverUrl[QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02 + 1];
- /**< Assistance server URL.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 256
- \vspace{-0.18in} \end{itemize1} */
-}qmiLocAssistanceServerUrlStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t delayThreshold;
- /**< The time server is to be skipped if a one-way delay to the server
- exceeds this threshold. \n
- - Units: Milliseconds */
-
- uint32_t timeServerList_len; /**< Must be set to # of elements in timeServerList */
- qmiLocAssistanceServerUrlStructT_v02 timeServerList[QMI_LOC_MAX_NTP_SERVERS_V02];
- /**< List of Time Server URL's that are recommended by the service for time
- information, the list is ordered, the client is to use the first
- server specified in the list as the primary URL to fetch NTP time,
- the second one as secondary, and so on. \n
- - Maximum server list items: 3 */
-}qmiLocTimeServerListStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to inject time information. */
-typedef struct {
-
- /* Optional */
- /* Time Server Info */
- uint8_t timeServerInfo_valid; /**< Must be set to true if timeServerInfo is being passed */
- qmiLocTimeServerListStructT_v02 timeServerInfo;
- /**< \vspace{0.06in} \n Contains information about the time servers recommended by the
- location service for NTP time. */
-}qmiLocEventInjectTimeReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t maxFileSizeInBytes;
- /**< Maximum allowable predicted orbits file size (in bytes). */
-
- uint32_t maxPartSize;
- /**< Maximum allowable predicted orbits file chunk size (in bytes). */
-}qmiLocPredictedOrbitsAllowedSizesStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t serverList_len; /**< Must be set to # of elements in serverList */
- qmiLocAssistanceServerUrlStructT_v02 serverList[QMI_LOC_MAX_PREDICTED_ORBITS_SERVERS_V02];
- /**< List of predicted orbits URLs. The list is ordered, so the client
- must use the first server specified in the list as the primary URL
- from which to download predicted orbits data, the second one as
- secondary, and so on. \n
- - Maximum number of servers that can be specified: 3 */
-}qmiLocPredictedOrbitsServerListStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to inject predicted orbits data. */
-typedef struct {
-
- /* Mandatory */
- /* Allowed Sizes */
- qmiLocPredictedOrbitsAllowedSizesStructT_v02 allowedSizes;
- /**< \vspace{0.06in} \n Maximum part and file size allowed to be injected in the engine. */
-
- /* Optional */
- /* Server List */
- uint8_t serverList_valid; /**< Must be set to true if serverList is being passed */
- qmiLocPredictedOrbitsServerListStructT_v02 serverList;
- /**< \vspace{0.06in} \n List of servers that can be used by the client to download
- predicted orbits data. */
-}qmiLocEventInjectPredictedOrbitsReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to inject a position. */
-typedef struct {
-
- /* Mandatory */
- /* Latitude */
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Mandatory */
- /* Longitude */
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Mandatory */
- /* Circular Horizontal Uncertainty */
- float horUncCircular;
- /**< Horizontal position uncertainty (circular).\n
- - Units: Meters */
-
- /* Mandatory */
- /* UTC Timestamp */
- uint64_t timestampUtc;
- /**< UTC timestamp.
- \begin{itemize1}
- \item Units: Milliseconds since Jan. 1, 1970
- \vspace{-0.18in} \end{itemize1} */
-}qmiLocEventInjectPositionReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCENGINESTATEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_ENGINE_STATE_ON_V02 = 1, /**< Location engine is on */
- eQMI_LOC_ENGINE_STATE_OFF_V02 = 2, /**< Location engine is off */
- QMILOCENGINESTATEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocEngineStateEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends the engine state to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* Engine State */
- qmiLocEngineStateEnumT_v02 engineState;
- /**< Location engine state.
-
- Valid values: \n
- - eQMI_LOC_ENGINE_STATE_ON (1) -- Location engine is on
- - eQMI_LOC_ENGINE_STATE_OFF (2) -- Location engine is off
- */
-}qmiLocEventEngineStateIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCFIXSESSIONSTATEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_FIX_SESSION_STARTED_V02 = 1, /**< Location fix session has started */
- eQMI_LOC_FIX_SESSION_FINISHED_V02 = 2, /**< Location fix session has ended */
- QMILOCFIXSESSIONSTATEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocFixSessionStateEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends the fix session state to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* Session State */
- qmiLocFixSessionStateEnumT_v02 sessionState;
- /**< LOC fix session state.
-
- Valid values: \n
- - eQMI_LOC_FIX_SESSION_STARTED (1) -- Location fix session has started
- - eQMI_LOC_FIX_SESSION_FINISHED (2) -- Location fix session has ended
- */
-
- /* Optional */
- /* Session ID */
- uint8_t sessionId_valid; /**< Must be set to true if sessionId is being passed */
- uint8_t sessionId;
- /**< ID of the session that was specified in the Start request.
- This may not be specified for a fix session corresponding to
- a network-initiated request. \n
- - Range: 0 to 255 */
-}qmiLocEventFixSessionStateIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWIFIREQUESTENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WIFI_START_PERIODIC_HI_FREQ_FIXES_V02 = 0, /**< Start periodic fixes with high frequency */
- eQMI_LOC_WIFI_START_PERIODIC_KEEP_WARM_V02 = 1, /**< Keep warm for low frequency fixes without data downloads */
- eQMI_LOC_WIFI_STOP_PERIODIC_FIXES_V02 = 2, /**< Stop periodic fixes request */
- QMILOCWIFIREQUESTENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWifiRequestEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a Wi-Fi request to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* Request Type */
- qmiLocWifiRequestEnumT_v02 requestType;
- /**< Request type.
-
- Valid values: \n
- - eQMI_LOC_WIFI_START_PERIODIC_HI_FREQ_FIXES (0) -- Start periodic fixes with high frequency
- - eQMI_LOC_WIFI_START_PERIODIC_KEEP_WARM (1) -- Keep warm for low frequency fixes without data downloads
- - eQMI_LOC_WIFI_STOP_PERIODIC_FIXES (2) -- Stop periodic fixes request
- */
-
- /* Optional */
- /* Time Between Fixes */
- uint8_t tbfInMs_valid; /**< Must be set to true if tbfInMs is being passed */
- uint16_t tbfInMs;
- /**< Time between fixes for a periodic request.\n
- - Units: Milliseconds */
-
- /* Optional */
- /* E911 Mode */
- uint8_t e911Mode_valid; /**< Must be set to true if e911Mode is being passed */
- uint8_t e911Mode;
- /**< Specifies whether the GPS engine is in E911 mode when this
- indication is sent to the client.
-
- Valid values: \begin{itemize1}
- \item 0x00 (FALSE) -- GPS engine is not in E911 mode
- \item 0x01 (TRUE) -- GPS engine is in E911 mode
- \vspace{-12pt} \end{itemize1}
- */
-}qmiLocEventWifiReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t samplesPerBatch;
- /**< Specifies the number of samples per batch the GNSS location engine is to
- receive. The sensor sampling frequency can be computed as follows: \vspace{-0.06in} \n
-
- samplingFrequency = samplesPerBatch * batchesPerSecond \vspace{-0.06in} \n
-
- samplesPerBatch must be a nonzero positive value.
- */
-
- uint16_t batchesPerSecond;
- /**< Number of sensor-data batches the GNSS location engine is to receive
- per second. The rate is specified in an integral number of batches per
- second (Hz). \vspace{-0.06in} \n
-
- batchesPerSecond must be a nonzero positive value.
- */
-}qmiLocSensorControlConfigSamplingSpecStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t injectEnable;
- /**< Indicates whether the GNSS location engine is ready to accept data from this
- sensor.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- GNSS location engine is ready to accept sensor
- data
- \item 0x00 (FALSE) -- GNSS location engine is not ready to accept
- sensor data
- \vspace{-0.18in} \end{itemize1}
- */
-
- qmiLocSensorControlConfigSamplingSpecStructT_v02 dataFrequency;
- /**< Rate at which the GNSS engine would like the sensor to be sampled. \n
- The rate is specified in integral number of samples per second (Hz)\n
- and batches per second.
- */
-}qmiLocSensorReadyStatusStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point if the GNSS location engine is
- ready to accept sensor data. */
-typedef struct {
-
- /* Optional */
- /* Accelerometer Accept Ready */
- uint8_t accelReady_valid; /**< Must be set to true if accelReady is being passed */
- qmiLocSensorReadyStatusStructT_v02 accelReady;
- /**< \vspace{0.06in} \n Indicates whether the GNSS location engine is ready
- to accept accelerometer sensor data.
- */
-
- /* Optional */
- /* Gyroscope Accept Ready */
- uint8_t gyroReady_valid; /**< Must be set to true if gyroReady is being passed */
- qmiLocSensorReadyStatusStructT_v02 gyroReady;
- /**< \vspace{0.06in} \n Indicates whether the GNSS location engine is ready
- to accept gyroscope sensor data.
- */
-
- /* Optional */
- /* Accelerometer Temperature Accept Ready */
- uint8_t accelTemperatureReady_valid; /**< Must be set to true if accelTemperatureReady is being passed */
- qmiLocSensorReadyStatusStructT_v02 accelTemperatureReady;
- /**< \vspace{0.06in} \n Indicates whether the GNSS location engine is ready
- to accept accelerometer temperature data.
- */
-
- /* Optional */
- /* Gyroscope Temperature Accept Ready */
- uint8_t gyroTemperatureReady_valid; /**< Must be set to true if gyroTemperatureReady is being passed */
- qmiLocSensorReadyStatusStructT_v02 gyroTemperatureReady;
- /**< \vspace{0.06in} \n Indicates whether the GNSS location engine is ready
- to accept gyroscope temperature data.
- */
-
- /* Optional */
- /* Calibrated Magnetometer Accept Ready */
- uint8_t calibratedMagReady_valid; /**< Must be set to true if calibratedMagReady is being passed */
- qmiLocSensorReadyStatusStructT_v02 calibratedMagReady;
- /**< \vspace{0.06in} \n Indicates whether the GNSS location engine is ready
- to accept calibrated magnetometer data.
- */
-
- /* Optional */
- /* Uncalibrated Magnetometer Accept Ready */
- uint8_t uncalibratedMagReady_valid; /**< Must be set to true if uncalibratedMagReady is being passed */
- qmiLocSensorReadyStatusStructT_v02 uncalibratedMagReady;
- /**< \vspace{0.06in} \n Indicates whether the GNSS location engine is ready
- to accept uncalibrated magnetometer data.
- */
-}qmiLocEventSensorStreamingReadyStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point to inject time synchronization
- data. */
-typedef struct {
-
- /* Mandatory */
- /* Opaque Time Sync Reference Counter */
- uint32_t refCounter;
- /**< This TLV is sent to registered control points. It is sent by
- the location engine when it needs to synchronize location engine and
- control point (sensor processor) times.
- This TLV must be echoed back in the Time Sync Inject request. */
-}qmiLocEventTimeSyncReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to enable Stationary Position
- Indicator (SPI) streaming reports. */
-typedef struct {
-
- /* Mandatory */
- /* Enable/Disable SPI Requests */
- uint8_t enable;
- /**< Indicates whether the client is to start or stop sending an SPI status stream.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Client is to start sending an SPI status stream
- \item 0x00 (FALSE) -- Client is to stop sending an SPI status stream
- \vspace{-0.18in} \end{itemize1}*/
-}qmiLocEventSetSpiStreamingReportIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWWANTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WWAN_TYPE_INTERNET_V02 = 0, /**< Bring up the WWAN type used for an Internet connection */
- eQMI_LOC_WWAN_TYPE_AGNSS_V02 = 1, /**< Bring up the WWAN type used for AGNSS connections */
- eQMI_LOC_WWAN_TYPE_AGNSS_EMERGENCY_V02 = 2, /**< Bring up the WWAN type used for AGNSS Emergency connections */
- QMILOCWWANTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWWANTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSERVERREQUESTENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SERVER_REQUEST_OPEN_V02 = 1, /**< Open a connection to the location server */
- eQMI_LOC_SERVER_REQUEST_CLOSE_V02 = 2, /**< Close a connection to the location server */
- QMILOCSERVERREQUESTENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocServerRequestEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the client to open or close a connection
- to the assisted GPS location server. */
-typedef struct {
-
- /* Mandatory */
- /* Connection Handle */
- uint32_t connHandle;
- /**< Identifies a connection across Open and Close request events. */
-
- /* Mandatory */
- /* Request Type */
- qmiLocServerRequestEnumT_v02 requestType;
- /**< Open or close a connection to the location server.
-
- Valid values: \n
- - eQMI_LOC_SERVER_REQUEST_OPEN (1) -- Open a connection to the location server
- - eQMI_LOC_SERVER_REQUEST_CLOSE (2) -- Close a connection to the location server
- */
-
- /* Mandatory */
- /* WWAN Type */
- qmiLocWWANTypeEnumT_v02 wwanType;
- /**< Identifies the WWAN type for this request.
- Valid values: \n
- - eQMI_LOC_WWAN_TYPE_INTERNET (0) -- Bring up the WWAN type used for an Internet connection
- - eQMI_LOC_WWAN_TYPE_AGNSS (1) -- Bring up the WWAN type used for AGNSS connections
- - eQMI_LOC_WWAN_TYPE_AGNSS_EMERGENCY (2) -- Bring up the WWAN type used for AGNSS Emergency connections
- */
-}qmiLocEventLocationServerConnectionReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNIGEOFENCEOPERATIONENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_GEOFENCE_ADDED_V02 = 1, /**< An NI Geofence was added */
- eQMI_LOC_NI_GEOFENCE_DELETED_V02 = 2, /**< An NI Geofence was deleted */
- eQMI_LOC_NI_GEOFENCE_EDITED_V02 = 3, /**< An NI Geofence was edited; the control point can query the
- Geofence to find the its current state */
- QMILOCNIGEOFENCEOPERATIONENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiGeofenceOperationEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Informs the control point about
- network-initiated Geofences. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence ID */
- uint32_t geofenceId;
- /**< ID of the Geofence for which this
- notification was generated. */
-
- /* Mandatory */
- /* Operation Type */
- qmiLocNiGeofenceOperationEnumT_v02 operationType;
- /**< Operation for which this notification was generated.
-
- Valid values: \n
- - eQMI_LOC_NI_GEOFENCE_ADDED (1) -- An NI Geofence was added
- - eQMI_LOC_NI_GEOFENCE_DELETED (2) -- An NI Geofence was deleted
- - eQMI_LOC_NI_GEOFENCE_EDITED (3) -- An NI Geofence was edited; the control point can query the
- Geofence to find the its current state
- */
-}qmiLocEventNiGeofenceNotificationIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCEGENALERTENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_GEN_ALERT_GNSS_UNAVAILABLE_V02 = 1, /**< GNSS is unavailable and GNSS position fixes
- cannot be used to monitor Geofences */
- eQMI_LOC_GEOFENCE_GEN_ALERT_GNSS_AVAILABLE_V02 = 2, /**< GNSS is now available and GNSS postion fixes can
- be used to monitor Geofences */
- eQMI_LOC_GEOFENCE_GEN_ALERT_OOS_V02 = 3, /**< The engine is out of service and no cell ID coverage
- information is available */
- eQMI_LOC_GEOFENCE_GEN_ALERT_TIME_INVALID_V02 = 4, /**< The engine has an invalid time */
- QMILOCGEOFENCEGENALERTENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceGenAlertEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of the
- Geofence status. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence General Alert */
- qmiLocGeofenceGenAlertEnumT_v02 geofenceAlert;
- /**< Specifies the Geofence general alert type.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_GEN_ALERT_GNSS_UNAVAILABLE (1) -- GNSS is unavailable and GNSS position fixes
- cannot be used to monitor Geofences
- - eQMI_LOC_GEOFENCE_GEN_ALERT_GNSS_AVAILABLE (2) -- GNSS is now available and GNSS postion fixes can
- be used to monitor Geofences
- - eQMI_LOC_GEOFENCE_GEN_ALERT_OOS (3) -- The engine is out of service and no cell ID coverage
- information is available
- - eQMI_LOC_GEOFENCE_GEN_ALERT_TIME_INVALID (4) -- The engine has an invalid time
- */
-}qmiLocEventGeofenceGenAlertIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCEBREACHTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_BREACH_TYPE_ENTERING_V02 = 1, /**< Denotes that a client entered the Geofence */
- eQMI_LOC_GEOFENCE_BREACH_TYPE_LEAVING_V02 = 2, /**< Denotes that a client left the Geofence */
- QMILOCGEOFENCEBREACHTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceBreachTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- /* UTC Timestamp */
- uint64_t timestampUtc;
- /**< UTC timestamp.
- \begin{itemize1}
- \item Units: Milliseconds since Jan. 1, 1970
- \vspace{-0.18in} \end{itemize1} */
-
- /* Latitude */
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Longitude */
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Horizontal Elliptical Uncertainty (Semi-Minor Axis) */
- float horUncEllipseSemiMinor;
- /**< Semi-minor axis of horizontal elliptical uncertainty.\n
- - Units: Meters */
-
- /* Horizontal Elliptical Uncertainty (Semi-Major Axis) */
- float horUncEllipseSemiMajor;
- /**< Semi-major axis of horizontal elliptical uncertainty.\n
- - Units: Meters */
-
- /* Elliptical Horizontal Uncertainty Azimuth */
- float horUncEllipseOrientAzimuth;
- /**< Elliptical horizontal uncertainty azimuth of orientation.\n
- - Units: Decimal degrees \n
- - Range: 0 to 180 */
-
- /* Horizontal Speed validity bit */
- uint8_t speedHorizontal_valid;
- /**< Indicates whether the Horizontal speed field contains valid
- information.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Horizontal speed is valid
- \item 0x00 (FALSE) -- Horizontal speed is invalid
- and is to be ignored
- \vspace{-0.18in} \end{itemize1} */
-
- /* Horizontal Speed */
- float speedHorizontal;
- /**< Horizontal speed.\n
- - Units: Meters/second */
-
- /* Altitude validity bit */
- uint8_t altitudeWrtEllipsoid_valid;
- /**< Indicates whether the altitude field contains valid
- information.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Altitude field is valid
- \item 0x00 (FALSE) -- Altitude field is invalid
- and is to be ignored
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Altitude With Respect to Ellipsoid */
- float altitudeWrtEllipsoid;
- /**< Altitude with respect to the WGS84 ellipsoid.\n
- - Units: Meters \n
- - Range: -500 to 15883 */
-
- /* Vertical Uncertainty validity bit */
- uint8_t vertUnc_valid;
- /**< Indicates whether the Vertical Uncertainty field contains valid
- information.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Vertical Uncertainty field is valid
- \item 0x00 (FALSE) -- Vertical Uncertainty field is invalid
- and is to be ignored
- \vspace{-0.18in} \end{itemize1} */
-
- /* Vertical Uncertainty */
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- /* Vertical Speed validity bit */
- uint8_t speedVertical_valid;
- /**< Indicates whether the Vertical Speed field contains valid
- information.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Vertical Speed field is valid
- \item 0x00 (FALSE) -- Vertical Speed field is invalid
- and is to be ignored
- \vspace{-0.18in} \end{itemize1} */
-
- /* Vertical Speed */
- float speedVertical;
- /**< Vertical speed.\n
- - Units: Meters/second */
-
- /* heading validity bit */
- uint8_t heading_valid;
- /**< Indicates whether the Heading field contains valid
- information.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Heading field is valid
- \item 0x00 (FALSE) -- Heading field is invalid
- and is to be ignored
- \vspace{-0.18in} \end{itemize1} */
-
- /* Heading */
- float heading;
- /**< Heading.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-}qmiLocGeofencePositionStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCECONFIDENCEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_CONFIDENCE_LOW_V02 = 0x01, /**< Geofence engine indicates a breach with
- low confidence; this setting results in lower
- power usage, and it can impact the yield because
- incorrect breach events may be sent */
- eQMI_LOC_GEOFENCE_CONFIDENCE_MED_V02 = 0x02, /**< (Default) Geofence engine indicates a breach with
- medium confidence */
- eQMI_LOC_GEOFENCE_CONFIDENCE_HIGH_V02 = 0x03, /**< Geofence engine indicates a breach with
- high confidence; this setting results in higher
- power usage */
- QMILOCGEOFENCECONFIDENCEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceConfidenceEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of
- a Geofence breach event. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence ID */
- uint32_t geofenceId;
- /**< ID of the Geofence for which this
- notification was generated. */
-
- /* Mandatory */
- /* Geofence Breach Type */
- qmiLocGeofenceBreachTypeEnumT_v02 breachType;
- /**< The type of breach that generated this event.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_BREACH_TYPE_ENTERING (1) -- Denotes that a client entered the Geofence
- - eQMI_LOC_GEOFENCE_BREACH_TYPE_LEAVING (2) -- Denotes that a client left the Geofence
- */
-
- /* Optional */
- /* Geofence Position */
- uint8_t geofencePosition_valid; /**< Must be set to true if geofencePosition is being passed */
- qmiLocGeofencePositionStructT_v02 geofencePosition;
- /**< \vspace{0.06in} \n Position of the client when it breached the Geofence.
- This TLV is included if the client configures the
- Geofence to report position. The position is reported
- at the same confidence level that was specified in the
- Add Circular Geofence request. */
-
- /* Optional */
- /* Geofence Breach Confidence */
- uint8_t breachConfidence_valid; /**< Must be set to true if breachConfidence is being passed */
- qmiLocGeofenceConfidenceEnumT_v02 breachConfidence;
- /**< Given a breach event, the confidence determines the probability
- that the breach happened at the Geofence boundary.
- Valid values: \n
- - eQMI_LOC_GEOFENCE_CONFIDENCE_LOW (0x01) -- Geofence engine indicates a breach with
- low confidence; this setting results in lower
- power usage, and it can impact the yield because
- incorrect breach events may be sent
- - eQMI_LOC_GEOFENCE_CONFIDENCE_MED (0x02) -- (Default) Geofence engine indicates a breach with
- medium confidence
- - eQMI_LOC_GEOFENCE_CONFIDENCE_HIGH (0x03) -- Geofence engine indicates a breach with
- high confidence; this setting results in higher
- power usage
- */
-}qmiLocEventGeofenceBreachIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Recommends how pedometer reports are to be
- sent to the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Request Pedometer Data */
- uint8_t requestPedometerData;
- /**< Indicates whether the GNSS location engine is requesting the client to
- send pedometer data.
- \begin{itemize1}
- \item 0x01 (TRUE) -- GNSS location engine is requesting
- pedometer data
- \item 0x00 (FALSE) -- GNSS location engine is not requesting
- pedometer data
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* Reset Step Count */
- uint8_t resetStepCount_valid; /**< Must be set to true if resetStepCount is being passed */
- uint8_t resetStepCount;
- /**< Indicates whether the location engine is to reset the step count.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Pedometer step count is to be reset
- \item 0x00 (FALSE) -- Pedometer step count is not to be reset
- \vspace{-0.18in} \end{itemize1} */
-
- /* Optional */
- /* Step Count Threshold */
- uint8_t stepCountThreshold_valid; /**< Must be set to true if stepCountThreshold is being passed */
- uint32_t stepCountThreshold;
- /**< Specifies the number of steps to be sampled in a pedometer report,
- as recommended by the the location engine. If the threshold is set to 0,
- the location engine wants a pedometer report at every step event.
- */
-}qmiLocEventPedometerControlIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Recommends how motion data reports are to be
- sent to the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Request Motion Data */
- uint8_t requestMotionData;
- /**< Indicates whether the GNSS location engine is requesting
- the client to send motion data.
- \begin{itemize1}
- \item 0x01 (TRUE) -- GNSS location engine is requesting
- motion data
- \item 0x00 (FALSE) -- GNSS location engine is not requesting
- motion data
- \vspace{-0.18in} \end{itemize1}
- */
-}qmiLocEventMotionDataControlIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- /* Low Geofence ID */
- uint32_t idLow;
- /**< Contains the starting ID of the Geofence in the range of the continuous
- range of Geofences that were breached at the same position. */
-
- /* High Geofence ID */
- uint32_t idHigh;
- /**< Contains the ending ID of the Geofence in the range of the continuous
- range of Geofences that were breached at the same position. */
-}qmiLocGeofenceIdContinuousStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of a Geofence breach event by
- batching all the Geofences that were breached. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence Breach Type */
- qmiLocGeofenceBreachTypeEnumT_v02 breachType;
- /**< Type of breach that generated this event.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_BREACH_TYPE_ENTERING (1) -- Denotes that a client entered the Geofence
- - eQMI_LOC_GEOFENCE_BREACH_TYPE_LEAVING (2) -- Denotes that a client left the Geofence
- */
-
- /* Optional */
- /* Geofence ID Continuous */
- uint8_t geofenceIdContinuousList_valid; /**< Must be set to true if geofenceIdContinuousList is being passed */
- uint32_t geofenceIdContinuousList_len; /**< Must be set to # of elements in geofenceIdContinuousList */
- qmiLocGeofenceIdContinuousStructT_v02 geofenceIdContinuousList[QMI_LOC_MAX_GEOFENCE_ID_CONTINUOUS_LIST_LENGTH_V02];
- /**< \vspace{0.06in} \n Each entry in the list contains the continuous range of Geofence IDs that were breached
- at the same position. This list does not overlap with the discrete Geofence ID list. */
-
- /* Optional */
- /* Geofence ID Discrete */
- uint8_t geofenceIdDiscreteList_valid; /**< Must be set to true if geofenceIdDiscreteList is being passed */
- uint32_t geofenceIdDiscreteList_len; /**< Must be set to # of elements in geofenceIdDiscreteList */
- uint32_t geofenceIdDiscreteList[QMI_LOC_MAX_GEOFENCE_ID_DISCRETE_LIST_LENGTH_V02];
- /**< This list contains the Geofence IDs that were breached at the same position.
- This list does not overlap with the continuous Geofence ID list. */
-
- /* Optional */
- /* Geofence Position */
- uint8_t geofencePosition_valid; /**< Must be set to true if geofencePosition is being passed */
- qmiLocGeofencePositionStructT_v02 geofencePosition;
- /**< \vspace{0.06in} \n Position of the client when it breached the Geofence.
- This TLV is included if the client configures the
- Geofence to report its position. The position is reported
- at the same confidence level that was specified in the
- Add Circular Geofence request. */
-
- /* Optional */
- /* Geofence Breach Confidence */
- uint8_t breachConfidence_valid; /**< Must be set to true if breachConfidence is being passed */
- qmiLocGeofenceConfidenceEnumT_v02 breachConfidence;
- /**< \vspace{0.06in} \n
- Given a breach event, the confidence determines the probability
- that the breach happened at the Geofence boundary.
- Valid values: \n
- - eQMI_LOC_GEOFENCE_CONFIDENCE_LOW (0x01) -- Geofence engine indicates a breach with
- low confidence; this setting results in lower
- power usage, and it can impact the yield because
- incorrect breach events may be sent
- - eQMI_LOC_GEOFENCE_CONFIDENCE_MED (0x02) -- (Default) Geofence engine indicates a breach with
- medium confidence
- - eQMI_LOC_GEOFENCE_CONFIDENCE_HIGH (0x03) -- Geofence engine indicates a breach with
- high confidence; this setting results in higher
- power usage
- */
-
- /* Optional */
- /* Heading Uncertainty */
- uint8_t headingUnc_valid; /**< Must be set to true if headingUnc is being passed */
- float headingUnc;
- /**< Heading uncertainty.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- /* Optional */
- /* Vertical Uncertainty */
- uint8_t vertUnc_valid; /**< Must be set to true if vertUnc is being passed */
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- /* Optional */
- /* Speed Uncertainty */
- uint8_t speedUnc_valid; /**< Must be set to true if speedUnc is being passed */
- float speedUnc;
- /**< 3-D speed uncertainty.\n
- - Units: Meters/second */
-
- /* Optional */
- /* Horizontal Confidence */
- uint8_t horConfidence_valid; /**< Must be set to true if horConfidence is being passed */
- uint8_t horConfidence;
- /**< Horizontal uncertainty confidence.\n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Vertical Confidence */
- uint8_t vertConfidence_valid; /**< Must be set to true if vertConfidence is being passed */
- uint8_t vertConfidence;
- /**< Vertical uncertainty confidence.\n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Dilution of Precision */
- uint8_t DOP_valid; /**< Must be set to true if DOP is being passed */
- qmiLocDOPStructT_v02 DOP;
- /**< \vspace{0.06in} \n Dilution of precision associated with this position. */
-
- /* Optional */
- /* SVs Used to Calculate the Fix */
- uint8_t gnssSvUsedList_valid; /**< Must be set to true if gnssSvUsedList is being passed */
- uint32_t gnssSvUsedList_len; /**< Must be set to # of elements in gnssSvUsedList */
- uint16_t gnssSvUsedList[QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02];
- /**< Each entry in the list contains the SV ID of a satellite
- used for calculating this position report. The following
- information is associated with each SV ID: \n
- Range: \n
- - For GPS: 1 to 32 \n
- - For GLONASS: 65 to 96 \n
- - For SBAS: 120 to 158 and 183 to 187 \n
- - For QZSS: 193 to 197 \n
- - For BDS: 201 to 237 \n
- - For GAL: 301 to 336
- */
-}qmiLocEventGeofenceBatchedBreachIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCEPROXIMITYTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_PROXIMITY_TYPE_IN_V02 = 1, /**< Denotes that a client is in proximity of the Geofence \n */
- eQMI_LOC_GEOFENCE_PROXIMITY_TYPE_OUT_V02 = 2, /**< Denotes that a client is out of proximity of the Geofence */
- QMILOCGEOFENCEPROXIMITYTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceProximityTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of a Geofence proximity event. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence Breach Type */
- qmiLocGeofenceProximityTypeEnumT_v02 proximityType;
- /**< Valid values: \n
- - eQMI_LOC_GEOFENCE_PROXIMITY_TYPE_IN (1) -- Denotes that a client is in proximity of the Geofence \n
- - eQMI_LOC_GEOFENCE_PROXIMITY_TYPE_OUT (2) -- Denotes that a client is out of proximity of the Geofence
- */
-
- /* Mandatory */
- /* Geofence ID */
- uint32_t geofenceId;
- /**< Identifier of the Geofence that is in proximity to the handset.
- */
-
- /* Optional */
- /* Geofence Context ID */
- uint8_t contextId_valid; /**< Must be set to true if contextId is being passed */
- uint32_t contextId;
- /**< Identifier for the context of the Geofence to which the handset is in proximity.
- A single Geofence may be associated with different contexts.
- */
-}qmiLocEventGeofenceProximityIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCEDWELLTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_DWELL_TYPE_INSIDE_V02 = 1, /**< Denotes that a client dwelled inside the Geofence */
- eQMI_LOC_GEOFENCE_DWELL_TYPE_OUTSIDE_V02 = 2, /**< Denotes that a client dwelled outside the Geofence */
- QMILOCGEOFENCEDWELLTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceDwellTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of a Geofence dwell event by
- batching all the Geofences that were dwelled in. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence Dwell Type */
- qmiLocGeofenceDwellTypeEnumT_v02 dwellType;
- /**< Type of dwell event generated.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_DWELL_TYPE_INSIDE (1) -- Denotes that a client dwelled inside the Geofence
- - eQMI_LOC_GEOFENCE_DWELL_TYPE_OUTSIDE (2) -- Denotes that a client dwelled outside the Geofence
- */
-
- /* Optional */
- /* Geofence ID Continuous */
- uint8_t geofenceIdContinuousList_valid; /**< Must be set to true if geofenceIdContinuousList is being passed */
- uint32_t geofenceIdContinuousList_len; /**< Must be set to # of elements in geofenceIdContinuousList */
- qmiLocGeofenceIdContinuousStructT_v02 geofenceIdContinuousList[QMI_LOC_MAX_GEOFENCE_ID_CONTINUOUS_LIST_LENGTH_V02];
- /**< Each entry in the list contains the continuous range of Geofence IDs in which a client dwelled.
- This list does not overlap with the discrete Geofence ID list. */
-
- /* Optional */
- /* Geofence ID Discrete */
- uint8_t geofenceIdDiscreteList_valid; /**< Must be set to true if geofenceIdDiscreteList is being passed */
- uint32_t geofenceIdDiscreteList_len; /**< Must be set to # of elements in geofenceIdDiscreteList */
- uint32_t geofenceIdDiscreteList[QMI_LOC_MAX_GEOFENCE_ID_DISCRETE_LIST_LENGTH_V02];
- /**< This list contains the Geofence IDs in which a client dwelled.
- This list does not overlap with the continuous Geofence ID list. */
-
- /* Optional */
- /* Geofence Position */
- uint8_t geofencePosition_valid; /**< Must be set to true if geofencePosition is being passed */
- qmiLocGeofencePositionStructT_v02 geofencePosition;
- /**< \n The latest position calculated by the Geofence engine when
- the dwell notification is sent. */
-
- /* Optional */
- /* Heading Uncertainty */
- uint8_t headingUnc_valid; /**< Must be set to true if headingUnc is being passed */
- float headingUnc;
- /**< Heading uncertainty.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- /* Optional */
- /* Vertical Uncertainty */
- uint8_t vertUnc_valid; /**< Must be set to true if vertUnc is being passed */
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- /* Optional */
- /* Speed Uncertainty */
- uint8_t speedUnc_valid; /**< Must be set to true if speedUnc is being passed */
- float speedUnc;
- /**< 3-D speed uncertainty.\n
- - Units: Meters/second */
-
- /* Optional */
- /* Horizontal Confidence */
- uint8_t horConfidence_valid; /**< Must be set to true if horConfidence is being passed */
- uint8_t horConfidence;
- /**< Horizontal uncertainty confidence.\n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Vertical Confidence */
- uint8_t vertConfidence_valid; /**< Must be set to true if vertConfidence is being passed */
- uint8_t vertConfidence;
- /**< Vertical uncertainty confidence.\n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Dilution of Precision */
- uint8_t DOP_valid; /**< Must be set to true if DOP is being passed */
- qmiLocDOPStructT_v02 DOP;
- /**< \vspace{0.06in} \n Dilution of precision associated with this position. */
-
- /* Optional */
- /* SVs Used to Calculate the Fix */
- uint8_t gnssSvUsedList_valid; /**< Must be set to true if gnssSvUsedList is being passed */
- uint32_t gnssSvUsedList_len; /**< Must be set to # of elements in gnssSvUsedList */
- uint16_t gnssSvUsedList[QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02];
- /**< Each entry in the list contains the SV ID of a satellite
- used for calculating this position report. The following
- information is associated with each SV ID: \n
- Range: \n
- - For GPS: 1 to 32 \n
- - For GLONASS: 65 to 96 \n
- - For SBAS: 120 to 158 and 183 to 187 \n
- - For QZSS: 193 to 197 \n
- - For BDS: 201 to 237 \n
- - For GAL: 301 to 336
- */
-}qmiLocEventGeofenceBatchedDwellIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGDTSERVICEIDENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GDT_SERVICE_WWAN_V02 = 1, /**< GDT service for WWAN UL \n */
- eQMI_LOC_GDT_SERVICE_WWAN_DL_V02 = 2, /**< GDT service for WWAN DL */
- QMILOCGDTSERVICEIDENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGdtServiceIdEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGDTACCESSSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GDT_ACCESS_ALLOWED_V02 = 1, /**< GDT access to the service is allowed */
- eQMI_LOC_GDT_ACCESS_FAILED_V02 = 2, /**< Any type of GDT access error */
- eQMI_LOC_GDT_ACCESS_NOT_ALLOWED_V02 = 3, /**< GDT access to the service is not allowed */
- QMILOCGDTACCESSSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGdtAccessStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to transfer data. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* Data */
- uint32_t filePath_len; /**< Must be set to # of elements in filePath */
- char filePath[QMI_LOC_MAX_GDT_PATH_LEN_V02];
- /**< File path to the data. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 255
- */
-}qmiLocEventGdtUploadBeginStatusReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGDTENDSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GDT_SUCCESS_V02 = 1, /**< The sent data was accepted */
- eQMI_LOC_GDT_FAILED_V02 = 2, /**< The sent data was not accepted */
- eQMI_LOC_GDT_INVALID_V02 = 3, /**< General error in the received data */
- QMILOCGDTENDSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGdtEndStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to report the status of the
- transferred data. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
-
- /* Mandatory */
- /* GDT End Status */
- qmiLocGdtEndStatusEnumT_v02 endStatus;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SUCCESS (1) -- The sent data was accepted
- - eQMI_LOC_GDT_FAILED (2) -- The sent data was not accepted
- - eQMI_LOC_GDT_INVALID (3) -- General error in the received data */
-}qmiLocEventGdtUploadEndReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocGdtDownloadReqMaskT_v02;
-#define QMI_LOC_GDT_DOWNLOAD_REQ_MASK_DBH_V02 ((qmiLocGdtDownloadReqMaskT_v02)0x00000001) /**< Bitmask to specify whether DBH is on or off for the request. */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to transfer data. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* Interval After Which AP Must Respond to MP */
- uint32_t respTimeoutInterval;
- /**< Interval after which the AP must respond to the MP, in seconds. */
-
- /* Mandatory */
- /* Encoded GTP Client Information */
- uint32_t clientInfo_len; /**< Must be set to # of elements in clientInfo */
- uint8_t clientInfo[QMI_LOC_MAX_GTP_CL_INFO_LEN_V02];
- /**< GTP client information encoded in asn.1 format. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 1500
- */
-
- /* Mandatory */
- /* Encoded Mobile Status Data */
- uint32_t mobileStatusData_len; /**< Must be set to # of elements in mobileStatusData */
- uint8_t mobileStatusData[QMI_LOC_MAX_GTP_MSD_LEN_V02];
- /**< Mobile status data encoded in asn.1 format. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 4000
- */
-
- /* Mandatory */
- /* Data Filepath (Null terminated) */
- uint32_t filePath_len; /**< Must be set to # of elements in filePath */
- char filePath[QMI_LOC_MAX_GDT_PATH_LEN_V02];
- /**< File path to the GTP response data that is applicable to the MP. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 255
- */
-
- /* Optional */
- /* Power Budget Info */
- uint8_t powerBudgetInfo_valid; /**< Must be set to true if powerBudgetInfo is being passed */
- uint32_t powerBudgetInfo;
- /**< Power budget information. */
-
- /* Optional */
- /* Power Budget Allowance */
- uint8_t powerBudgetAllowance_valid; /**< Must be set to true if powerBudgetAllowance is being passed */
- uint32_t powerBudgetAllowance;
- /**< Power budget allowance. */
-
- /* Optional */
- /* Download Request Mask */
- uint8_t downloadRequestMask_valid; /**< Must be set to true if downloadRequestMask is being passed */
- qmiLocGdtDownloadReqMaskT_v02 downloadRequestMask;
- /**< Download request mask. */
-}qmiLocEventGdtDownloadBeginReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGDTRECEIVESTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GTP_RCV_STATUS_CONTINUE_V02 = 1, /**< Indicates that the AP is to continue sending more partitions to the MP */
- eQMI_LOC_GTP_RCV_STATUS_DONE_V02 = 2, /**< Indicates that the AP is to stop sending partitions to the MP */
- QMILOCGDTRECEIVESTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGdtReceiveStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point after consuming the current data transfer. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* GDT Receive Status */
- qmiLocGdtReceiveStatusEnumT_v02 status;
- /**< Status indicating the continuation or termination of sending to the AP.
- Valid values: \n
- - eQMI_LOC_GTP_RCV_STATUS_CONTINUE (1) -- Indicates that the AP is to continue sending more partitions to the MP
- - eQMI_LOC_GTP_RCV_STATUS_DONE (2) -- Indicates that the AP is to stop sending partitions to the MP
- */
-}qmiLocEventGdtReceiveDoneIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SUCCESS_V02 = 0, /**< Request was completed successfully \n */
- eQMI_LOC_GENERAL_FAILURE_V02 = 1, /**< Request failed because of a general failure \n */
- eQMI_LOC_UNSUPPORTED_V02 = 2, /**< Request failed because it is not supported \n */
- eQMI_LOC_INVALID_PARAMETER_V02 = 3, /**< Request failed because it contained invalid parameters \n */
- eQMI_LOC_ENGINE_BUSY_V02 = 4, /**< Request failed because the engine is busy \n */
- eQMI_LOC_PHONE_OFFLINE_V02 = 5, /**< Request failed because the phone is offline \n */
- eQMI_LOC_TIMEOUT_V02 = 6, /**< Request failed because it timed out \n */
- eQMI_LOC_CONFIG_NOT_SUPPORTED_V02 = 7, /**< Request failed because an undefined configuration was requested \n */
- eQMI_LOC_INSUFFICIENT_MEMORY_V02 = 8, /**< Request failed because the engine could not allocate sufficient memory for the request \n */
- eQMI_LOC_MAX_GEOFENCE_PROGRAMMED_V02 = 9, /**< Request failed because the maximum number of Geofences are already programmed \n */
- eQMI_LOC_XTRA_VERSION_CHECK_FAILURE_V02 = 10, /**< Location service failed because of an XTRA version-based file format check failure */
- QMILOCSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of the end of a download session. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* GDT Download End Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the download session.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocEventGdtDownloadEndReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Client can query the service revision using this message. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetServiceRevisionReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Client can query the service revision using this message. */
-typedef struct {
-
- /* Mandatory */
- /* Get Revision Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Revision request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Interface Definition Minor Revision */
- uint32_t revision;
- /**< Revision of the service. This is the minor revision of the interface that
- the service implements. Minor revision updates of the service are always
- backward compatible. */
-
- /* Optional */
- /* GNSS Measurement Engine Firmware Version String */
- uint8_t gnssMeFWVerString_valid; /**< Must be set to true if gnssMeFWVerString is being passed */
- char gnssMeFWVerString[QMI_LOC_GNSS_ME_VERSION_STRING_MAX_LENGTH_V02 + 1];
- /**< Version of the GNSS measurement engine software running under the LOC API.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 128
- \vspace{0.1in} \end{itemize1}
-
- \textbf{Note:} This string is only provided on platforms that have
- a measurement engine that supports this version string. On all other
- platforms, this optional TLV is not provided. */
-
- /* Optional */
- /* GNSS Hosted Software Version String */
- uint8_t gnssHostSWVerString_valid; /**< Must be set to true if gnssHostSWVerString is being passed */
- char gnssHostSWVerString[QMI_LOC_GNSS_HOSTED_SW_VERSION_STRING_MAX_LENGTH_V02 + 1];
- /**< Version of the GNSS hosted software running under the LOC API.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 128
- \vspace{0.1in}\end{itemize1}
-
- \textbf{Note:} This string is only provided on hosted architectures
- (measurement and position engine running on different processors) that
- support this version string. On all other platforms, this optional TLV
- is not provided. */
-
- /* Optional */
- /* GNSS Software Version String */
- uint8_t gnssSWVerString_valid; /**< Must be set to true if gnssSWVerString is being passed */
- char gnssSWVerString[QMI_LOC_GNSS_SW_VERSION_STRING_MAX_LENGTH_V02 + 1];
- /**< Aggregate version of the GNSS software.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 256
- \vspace{-0.18in} \end{itemize1} */
-}qmiLocGetServiceRevisionIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the fix criteria from the location engine. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetFixCriteriaReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the fix criteria from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get Fix Criteria Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Fix Criteria request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Horizontal Accuracy */
- uint8_t horizontalAccuracyLevel_valid; /**< Must be set to true if horizontalAccuracyLevel is being passed */
- qmiLocAccuracyLevelEnumT_v02 horizontalAccuracyLevel;
- /**< Horizontal accuracy level.
-
- Valid values: \n
- - eQMI_LOC_ACCURACY_LOW (1) -- Low accuracy
- - eQMI_LOC_ACCURACY_MED (2) -- Medium accuracy
- - eQMI_LOC_ACCURACY_HIGH (3) -- High accuracy
- */
-
- /* Optional */
- /* Enable/Disable Intermediate Fixes */
- uint8_t intermediateReportState_valid; /**< Must be set to true if intermediateReportState is being passed */
- qmiLocIntermediateReportStateEnumT_v02 intermediateReportState;
- /**< Intermediate Report state (ON, OFF).\n
- The client must explicitly set this field to OFF to stop receiving
- intermediate position reports. Intermediate position reports are
- generated at 1 Hz and are ON by default. If intermediate reports
- are turned ON, the client receives position reports even if the
- accuracy criteria is not met. The status in the position report is
- set to IN_PROGRESS for intermediate reports.
-
- Valid values: \n
- - eQMI_LOC_INTERMEDIATE_REPORTS_ON (1) -- Intermediate reports are turned on
- - eQMI_LOC_INTERMEDIATE_REPORTS_OFF (2) -- Intermediate reports are turned off
- */
-
- /* Optional */
- /* Minimum Interval Between Fixes */
- uint8_t minInterval_valid; /**< Must be set to true if minInterval is being passed */
- uint32_t minInterval;
- /**< Time that must elapse before alerting the client. \n
- - Units: Milliseconds */
-
- /* Optional */
- /* ID of the Application that Sent the Position Request */
- uint8_t applicationId_valid; /**< Must be set to true if applicationId is being passed */
- qmiLocApplicationIdStructT_v02 applicationId;
- /**< \vspace{0.06in} \n Application provider, name, and version.*/
-
- /* Optional */
- /* Configuration for Altitude Assumed Info in GNSS SV Info Event */
- uint8_t configAltitudeAssumed_valid; /**< Must be set to true if configAltitudeAssumed is being passed */
- qmiLocConfigIncludeAltitudeAssumedInGnssSvInfoEnumT_v02 configAltitudeAssumed;
- /**< Specifies the configuration to include Altitude Assumed information in the GNSS SV Info Event.
- When enabled, an additional GNSS SV Info event indication is sent to the control
- point that also includes the Altitude Sssumed information.
- If not specified, the configuration defaults to ENABLED.
- Valid values: \n
- - eQMI_LOC_ALTITUDE_ASSUMED_IN_GNSS_SV_INFO_ENABLED (1) -- Enable Altitude Assumed information in GNSS SV Info Event.
- - eQMI_LOC_ALTITUDE_ASSUMED_IN_GNSS_SV_INFO_DISABLED (2) -- Disable Altitude Assumed information in GNSS SV Info Event.
- */
-
- /* Optional */
- /* Minimum Interval Between Intermediate Position Reports */
- uint8_t minIntermediatePositionReportInterval_valid; /**< Must be set to true if minIntermediatePositionReportInterval is being passed */
- uint32_t minIntermediatePositionReportInterval;
- /**< Minimum time interval for intermediate position reports, specified by the control point,
- that, between the position reports elapsed time, must be longer than the interval time.
- If this optional value is not set or set to the default value (0), the intermediate position
- will be reported when it is ready. \n
- - Units: Milliseconds \n
- - Default: 0 ms
- */
-
- /* Optional */
- /* Maximum Wait Time to Get a Position Report */
- uint8_t positionReportTimeout_valid; /**< Must be set to true if positionReportTimeout is being passed */
- uint32_t positionReportTimeout;
- /**< Maximum time to work on each fix, specified by the control point.
- The GPS engine returns QMI_ERR_INTERNAL if a position cannot be obtained
- within the positionReportTimeout value. \n
- - Units: Milliseconds \n
- - Default: 255*1000 ms \n
- - Range: 1000 - 255*1000 ms
- */
-
- /* Optional */
- /* Share Position Report with Other Clients */
- uint8_t sharePosition_valid; /**< Must be set to true if sharePosition is being passed */
- uint8_t sharePosition;
- /**< Share the position report with the other QMI_LOC clients. \n
- - 0x00 (FALSE) -- Do not share the position report \n
- - 0x01 (TRUE) -- Share the position report
- */
-}qmiLocGetFixCriteriaIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCNIUSERRESPENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_NI_LCS_NOTIFY_VERIFY_ACCEPT_V02 = 1, /**< User accepted the Notify/Verify request */
- eQMI_LOC_NI_LCS_NOTIFY_VERIFY_DENY_V02 = 2, /**< User denied the Notify/Verify request */
- eQMI_LOC_NI_LCS_NOTIFY_VERIFY_NORESP_V02 = 3, /**< User did not respond to the Notify/Verify request */
- QMILOCNIUSERRESPENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocNiUserRespEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sends the NI user response back to the engine; success or
- failure is reported in a separate indication. */
-typedef struct {
-
- /* Mandatory */
- /* User Response */
- qmiLocNiUserRespEnumT_v02 userResp;
- /**< User accepted or denied.
-
- Valid values: \n
- - eQMI_LOC_NI_LCS_NOTIFY_VERIFY_ACCEPT (1) -- User accepted the Notify/Verify request
- - eQMI_LOC_NI_LCS_NOTIFY_VERIFY_DENY (2) -- User denied the Notify/Verify request
- - eQMI_LOC_NI_LCS_NOTIFY_VERIFY_NORESP (3) -- User did not respond to the Notify/Verify request
- */
-
- /* Mandatory */
- /* Notification Type */
- qmiLocNiNotifyVerifyEnumT_v02 notificationType;
- /**< Type of notification/verification performed.
-
- Valid values: \n
- - eQMI_LOC_NI_USER_NO_NOTIFY_NO_VERIFY (1) -- No notification and no verification required
- - eQMI_LOC_NI_USER_NOTIFY_ONLY (2) -- Notify only; no verification required
- - eQMI_LOC_NI_USER_NOTIFY_VERIFY_ALLOW_NO_RESP (3) -- Notify and verify, but no response required.
- - eQMI_LOC_NI_USER_NOTIFY_VERIFY_NOT_ALLOW_NO_RESP (4) -- Notify and verify, and require a response
- - eQMI_LOC_NI_USER_NOTIFY_VERIFY_PRIVACY_OVERRIDE (5) -- Notify and verify; privacy override
- */
-
- /* Optional */
- /* Network Initiated Vx Request */
- uint8_t NiVxPayload_valid; /**< Must be set to true if NiVxPayload is being passed */
- qmiLocNiVxNotifyVerifyStructT_v02 NiVxPayload;
- /**< \vspace{0.06in} \n Optional NI VX request payload. */
-
- /* Optional */
- /* Network Initiated SUPL Request */
- uint8_t NiSuplPayload_valid; /**< Must be set to true if NiSuplPayload is being passed */
- qmiLocNiSuplNotifyVerifyStructT_v02 NiSuplPayload;
- /**< \vspace{0.06in} \n Optional NI SUPL request payload. */
-
- /* Optional */
- /* Network Initiated UMTS Control Plane Request */
- uint8_t NiUmtsCpPayload_valid; /**< Must be set to true if NiUmtsCpPayload is being passed */
- qmiLocNiUmtsCpNotifyVerifyStructT_v02 NiUmtsCpPayload;
- /**< \vspace{0.06in} \n Optional NI UMTS-CP request payload. */
-
- /* Optional */
- /* Network Initiated Service Interaction Request */
- uint8_t NiVxServiceInteractionPayload_valid; /**< Must be set to true if NiVxServiceInteractionPayload is being passed */
- qmiLocNiVxServiceInteractionStructT_v02 NiVxServiceInteractionPayload;
- /**< \vspace{0.06in} \n Optional NI service interaction payload. */
-
- /* Optional */
- /* Network Initiated SUPL Version 2 Extension */
- uint8_t NiSuplVer2ExtPayload_valid; /**< Must be set to true if NiSuplVer2ExtPayload is being passed */
- qmiLocNiSuplVer2ExtStructT_v02 NiSuplVer2ExtPayload;
- /**< \vspace{0.06in} \n Optional SUPL Version 2 Extension payload. */
-
- /* Optional */
- /* SUPL Emergency Notification */
- uint8_t suplEmergencyNotification_valid; /**< Must be set to true if suplEmergencyNotification is being passed */
- qmiLocEmergencyNotificationStructT_v02 suplEmergencyNotification;
- /**< \vspace{0.06in} \n SUPL emergency notification payload. Emergency notification
- can be given even without an ESLP address */
-}qmiLocNiUserRespReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends the NI user response back to the engine; success or
- failure is reported in a separate indication. */
-typedef struct {
-
- /* Mandatory */
- /* NI User Response Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the NI User Response request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocNiUserRespIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCPREDICTEDORBITSDATAFORMATENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_PREDICTED_ORBITS_XTRA_V02 = 0, /**< Default is QCOM-XTRA format. */
- QMILOCPREDICTEDORBITSDATAFORMATENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocPredictedOrbitsDataFormatEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects predicted orbits data. (Deprecated) */
-typedef struct {
-
- /* Mandatory */
- /* Total Size */
- uint32_t totalSize;
- /**< Total size of the predicted orbits data to be injected. \n
- - Units: Bytes */
-
- /* Mandatory */
- /* Total Parts */
- uint16_t totalParts;
- /**< Total number of parts into which the predicted orbits data is
- divided. */
-
- /* Mandatory */
- /* Part Number */
- uint16_t partNum;
- /**< Number of the current predicted orbits data part; starts at 1. */
-
- /* Mandatory */
- /* Data */
- uint32_t partData_len; /**< Must be set to # of elements in partData */
- char partData[QMI_LOC_MAX_PREDICTED_ORBITS_PART_LEN_V02];
- /**< Predicted orbits data. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 1024
- */
-
- /* Optional */
- /* Format Type */
- uint8_t formatType_valid; /**< Must be set to true if formatType is being passed */
- qmiLocPredictedOrbitsDataFormatEnumT_v02 formatType;
- /**< Predicted orbits data format. \n
- Valid values: \n
- - eQMI_LOC_PREDICTED_ORBITS_XTRA (0) -- Default is QCOM-XTRA format.
- */
-}qmiLocInjectPredictedOrbitsDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects predicted orbits data. (Deprecated) */
-typedef struct {
-
- /* Mandatory */
- /* Data Injection Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Data Injection request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Part Number */
- uint8_t partNum_valid; /**< Must be set to true if partNum is being passed */
- uint16_t partNum;
- /**< Number of the predicted orbits data part for which this indication
- is sent; starts at 1. */
-}qmiLocInjectPredictedOrbitsDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the predicted orbits data source. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetPredictedOrbitsDataSourceReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the predicted orbits data source. */
-typedef struct {
-
- /* Mandatory */
- /* Predicted Orbits Data Source Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the query request for a predicted orbits data source.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Allowed Sizes */
- uint8_t allowedSizes_valid; /**< Must be set to true if allowedSizes is being passed */
- qmiLocPredictedOrbitsAllowedSizesStructT_v02 allowedSizes;
- /**< \n Maximum part and file size allowed to be injected in the engine. */
-
- /* Optional */
- /* Server List */
- uint8_t serverList_valid; /**< Must be set to true if serverList is being passed */
- qmiLocPredictedOrbitsServerListStructT_v02 serverList;
- /**< \n List of servers that can be used by the client to download
- predicted orbits data. */
-}qmiLocGetPredictedOrbitsDataSourceIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the predicted orbits data validity. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetPredictedOrbitsDataValidityReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint64_t startTimeInUTC;
- /**< Predicted orbits data is valid starting from this time. \n
- - Units: Seconds (since Jan. 1, 1970)
- */
-
- uint16_t durationHours;
- /**< Duration from the start time for which the data is valid.\n
- - Units: Hours
- */
-}qmiLocPredictedOrbitsDataValidityStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the predicted orbits data validity. */
-typedef struct {
-
- /* Mandatory */
- /* Predicted Orbits Data Validity Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the query request for predicted orbits data validity.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Validity Info */
- uint8_t validityInfo_valid; /**< Must be set to true if validityInfo is being passed */
- qmiLocPredictedOrbitsDataValidityStructT_v02 validityInfo;
-}qmiLocGetPredictedOrbitsDataValidityIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects UTC time in the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* UTC Time */
- uint64_t timeUtc;
- /**< UTC time since Jan. 1, 1970.\n
- - Units: Milliseconds */
-
- /* Mandatory */
- /* Time Uncertainty */
- uint32_t timeUnc;
- /**< Time uncertainty.\n
- - Units: Milliseconds */
-}qmiLocInjectUtcTimeReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects UTC time in the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* UTC Time Injection Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the UTC Time Injection request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectUtcTimeIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCALTSRCENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_ALT_SRC_UNKNOWN_V02 = 0, /**< Source is unknown */
- eQMI_LOC_ALT_SRC_GPS_V02 = 1, /**< GPS is the source */
- eQMI_LOC_ALT_SRC_CELL_ID_V02 = 2, /**< Cell ID provided the source */
- eQMI_LOC_ALT_SRC_ENHANCED_CELL_ID_V02 = 3, /**< Source is enhanced cell ID */
- eQMI_LOC_ALT_SRC_WIFI_V02 = 4, /**< Wi-Fi is the source */
- eQMI_LOC_ALT_SRC_TERRESTRIAL_V02 = 5, /**< Terrestrial source */
- eQMI_LOC_ALT_SRC_TERRESTRIAL_HYBRID_V02 = 6, /**< Hybrid terrestrial source */
- eQMI_LOC_ALT_SRC_ALTITUDE_DATABASE_V02 = 7, /**< Altitude database is the source */
- eQMI_LOC_ALT_SRC_BAROMETRIC_ALTIMETER_V02 = 8, /**< Barometric altimeter is the source */
- eQMI_LOC_ALT_SRC_OTHER_V02 = 9, /**< Other sources */
- QMILOCALTSRCENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocAltSrcEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCALTSRCLINKAGEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_ALT_SRC_LINKAGE_NOT_SPECIFIED_V02 = 0, /**< Not specified */
- eQMI_LOC_ALT_SRC_LINKAGE_FULLY_INTERDEPENDENT_V02 = 1, /**< Fully interdependent */
- eQMI_LOC_ALT_SRC_LINKAGE_DEPENDS_ON_LAT_LONG_V02 = 2, /**< Depends on latitude and longitude */
- eQMI_LOC_ALT_SRC_LINKAGE_FULLY_INDEPENDENT_V02 = 3, /**< Fully independent */
- QMILOCALTSRCLINKAGEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocAltSrcLinkageEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCALTSRCUNCERTAINTYCOVERAGEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_ALT_UNCERTAINTY_NOT_SPECIFIED_V02 = 0, /**< Not specified */
- eQMI_LOC_ALT_UNCERTAINTY_POINT_V02 = 1, /**< Altitude uncertainty is valid at the injected horizontal
- position coordinates only */
- eQMI_LOC_ALT_UNCERTAINTY_FULL_V02 = 2, /**< Altitude uncertainty applies to the position of the device
- regardless of horizontal position (within the horizontal
- uncertainty region, if provided) */
- QMILOCALTSRCUNCERTAINTYCOVERAGEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocAltSrcUncertaintyCoverageEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocAltSrcEnumT_v02 source;
- /**< Specifies the source of the altitude.
-
- Valid values: \n
- - eQMI_LOC_ALT_SRC_UNKNOWN (0) -- Source is unknown
- - eQMI_LOC_ALT_SRC_GPS (1) -- GPS is the source
- - eQMI_LOC_ALT_SRC_CELL_ID (2) -- Cell ID provided the source
- - eQMI_LOC_ALT_SRC_ENHANCED_CELL_ID (3) -- Source is enhanced cell ID
- - eQMI_LOC_ALT_SRC_WIFI (4) -- Wi-Fi is the source
- - eQMI_LOC_ALT_SRC_TERRESTRIAL (5) -- Terrestrial source
- - eQMI_LOC_ALT_SRC_TERRESTRIAL_HYBRID (6) -- Hybrid terrestrial source
- - eQMI_LOC_ALT_SRC_ALTITUDE_DATABASE (7) -- Altitude database is the source
- - eQMI_LOC_ALT_SRC_BAROMETRIC_ALTIMETER (8) -- Barometric altimeter is the source
- - eQMI_LOC_ALT_SRC_OTHER (9) -- Other sources
- */
-
- qmiLocAltSrcLinkageEnumT_v02 linkage;
- /**< Specifies the dependency between the horizontal and
- altitude position components.
-
- Valid values: \n
- - eQMI_LOC_ALT_SRC_LINKAGE_NOT_SPECIFIED (0) -- Not specified
- - eQMI_LOC_ALT_SRC_LINKAGE_FULLY_INTERDEPENDENT (1) -- Fully interdependent
- - eQMI_LOC_ALT_SRC_LINKAGE_DEPENDS_ON_LAT_LONG (2) -- Depends on latitude and longitude
- - eQMI_LOC_ALT_SRC_LINKAGE_FULLY_INDEPENDENT (3) -- Fully independent
- */
-
- qmiLocAltSrcUncertaintyCoverageEnumT_v02 coverage;
- /**< Specifies the region of uncertainty.
-
- Valid values: \n
- - eQMI_LOC_ALT_UNCERTAINTY_NOT_SPECIFIED (0) -- Not specified
- - eQMI_LOC_ALT_UNCERTAINTY_POINT (1) -- Altitude uncertainty is valid at the injected horizontal
- position coordinates only
- - eQMI_LOC_ALT_UNCERTAINTY_FULL (2) -- Altitude uncertainty applies to the position of the device
- regardless of horizontal position (within the horizontal
- uncertainty region, if provided)
- */
-}qmiLocAltitudeSrcInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCPOSITIONSRCENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_POSITION_SRC_GNSS_V02 = 0, /**< Position source is GNSS */
- eQMI_LOC_POSITION_SRC_CELLID_V02 = 1, /**< Position source is Cell ID */
- eQMI_LOC_POSITION_SRC_ENH_CELLID_V02 = 2, /**< Position source is Enhanced Cell ID */
- eQMI_LOC_POSITION_SRC_WIFI_V02 = 3, /**< Position source is Wi-Fi */
- eQMI_LOC_POSITION_SRC_TERRESTRIAL_V02 = 4, /**< Position source is Terrestrial */
- eQMI_LOC_POSITION_SRC_GNSS_TERRESTRIAL_HYBRID_V02 = 5, /**< Position source is GNSS Terrestrial Hybrid */
- eQMI_LOC_POSITION_SRC_OTHER_V02 = 6, /**< Other sources */
- QMILOCPOSITIONSRCENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocPositionSrcEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCPOSITIONSRCPROVIDERENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_POSITION_SRC_PROVIDER_EXTERNAL_V02 = 0, /**< Position is sourced from an external module */
- eQMI_LOC_POSITION_SRC_PROVIDER_INTERNAL_V02 = 1, /**< Position is sourced from an internal module */
- QMILOCPOSITIONSRCPROVIDERENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocPositionSrcProviderEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects a position to the location engine. */
-typedef struct {
-
- /* Optional */
- /* Latitude */
- uint8_t latitude_valid; /**< Must be set to true if latitude is being passed */
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1}
- */
-
- /* Optional */
- /* Longitude */
- uint8_t longitude_valid; /**< Must be set to true if longitude is being passed */
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1}
- */
-
- /* Optional */
- /* Circular Horizontal Uncertainty */
- uint8_t horUncCircular_valid; /**< Must be set to true if horUncCircular is being passed */
- float horUncCircular;
- /**< Horizontal position uncertainty (circular).\n
- - Units: Meters */
-
- /* Optional */
- /* Horizontal Confidence */
- uint8_t horConfidence_valid; /**< Must be set to true if horConfidence is being passed */
- uint8_t horConfidence;
- /**< Horizontal confidence, as defined by ETSI TS 101 109 (3GPP \hyperref[TS 03.32]{TS 03.32).
- \begin{itemize1}
- \item Units: Percent (1 to 99)
- \item 0, 101 to 255 -- invalid value
- \item If 100 is received, reinterpret to 99
- \end{itemize1}
- This field must be specified together with horizontal uncertainty.
- If not specified when horUncCircular is set, the default value is 50. */
-
- /* Optional */
- /* Horizontal Reliability */
- uint8_t horReliability_valid; /**< Must be set to true if horReliability is being passed */
- qmiLocReliabilityEnumT_v02 horReliability;
- /**< Specifies the reliability of the horizontal position.
-
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Altitude With Respect to Ellipsoid */
- uint8_t altitudeWrtEllipsoid_valid; /**< Must be set to true if altitudeWrtEllipsoid is being passed */
- float altitudeWrtEllipsoid;
- /**< Altitude with respect to the WGS84 ellipsoid.
- \begin{itemize1}
- \item Units: Meters \begin{itemize1}
- \item Positive = height
- \item Negative = depth
- \vspace{-0.18in} \end{itemize1} \end{itemize1}*/
-
- /* Optional */
- /* Altitude With Respect to Sea Level */
- uint8_t altitudeWrtMeanSeaLevel_valid; /**< Must be set to true if altitudeWrtMeanSeaLevel is being passed */
- float altitudeWrtMeanSeaLevel;
- /**< Altitude with respect to mean sea level.\n
- - Units: Meters */
-
- /* Optional */
- /* Vertical Uncertainty */
- uint8_t vertUnc_valid; /**< Must be set to true if vertUnc is being passed */
- float vertUnc;
- /**< Vertical uncertainty. This is mandatory if either altitudeWrtEllipsoid
- or altitudeWrtMeanSeaLevel is specified.\n
- - Units: Meters */
-
- /* Optional */
- /* Vertical Confidence */
- uint8_t vertConfidence_valid; /**< Must be set to true if vertConfidence is being passed */
- uint8_t vertConfidence;
- /**< Vertical confidence, as defined by ETSI TS 101 109 (3GPP \hyperref[TS 03.32]{TS 03.32}).
- \begin{itemize1}
- \item Units: Percent (0-99)
- \item 0 -- invalid value
- \item 100 to 256 -- not used
- \item If 100 is received, reinterpret to 99
- \end{itemize1}
- This field must be specified together with the vertical uncertainty.
- If not specified, the default value will be 50. */
-
- /* Optional */
- /* Vertical Reliability */
- uint8_t vertReliability_valid; /**< Must be set to true if vertReliability is being passed */
- qmiLocReliabilityEnumT_v02 vertReliability;
- /**< Specifies the reliability of the vertical position.
-
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Altitude Source Info */
- uint8_t altSourceInfo_valid; /**< Must be set to true if altSourceInfo is being passed */
- qmiLocAltitudeSrcInfoStructT_v02 altSourceInfo;
- /**< \vspace{0.06in} \n Specifies information regarding the altitude source. */
-
- /* Optional */
- /* UTC Timestamp */
- uint8_t timestampUtc_valid; /**< Must be set to true if timestampUtc is being passed */
- uint64_t timestampUtc;
- /**< UTC timestamp. \n
- - Units: Milliseconds (since Jan. 1, 1970) */
-
- /* Optional */
- /* Position Age */
- uint8_t timestampAge_valid; /**< Must be set to true if timestampAge is being passed */
- int32_t timestampAge;
- /**< Position age, which is an estimate of how long ago this fix was made. \n
- - Units: Milliseconds */
-
- /* Optional */
- /* Position Source */
- uint8_t positionSrc_valid; /**< Must be set to true if positionSrc is being passed */
- qmiLocPositionSrcEnumT_v02 positionSrc;
- /**< Source from which this position was obtained.
-
- Valid values: \n
- - eQMI_LOC_POSITION_SRC_GNSS (0) -- Position source is GNSS
- - eQMI_LOC_POSITION_SRC_CELLID (1) -- Position source is Cell ID
- - eQMI_LOC_POSITION_SRC_ENH_CELLID (2) -- Position source is Enhanced Cell ID
- - eQMI_LOC_POSITION_SRC_WIFI (3) -- Position source is Wi-Fi
- - eQMI_LOC_POSITION_SRC_TERRESTRIAL (4) -- Position source is Terrestrial
- - eQMI_LOC_POSITION_SRC_GNSS_TERRESTRIAL_HYBRID (5) -- Position source is GNSS Terrestrial Hybrid
- - eQMI_LOC_POSITION_SRC_OTHER (6) -- Other sources
-
- If altitude is specified and the altitude source is not specified, the engine
- assumes that the altitude was obtained using the specified position source. \n
- If both altitude and altitude source are specified, the engine assumes
- that only latitude and longitude were obtained using the specified position
- source.
- */
-
- /* Optional */
- /* Raw Circular Horizontal Uncertainty */
- uint8_t rawHorUncCircular_valid; /**< Must be set to true if rawHorUncCircular is being passed */
- float rawHorUncCircular;
- /**< Horizontal position uncertainty (circular) without any optimization.\n
- - Units: Meters */
-
- /* Optional */
- /* Raw Horizontal Confidence */
- uint8_t rawHorConfidence_valid; /**< Must be set to true if rawHorConfidence is being passed */
- uint8_t rawHorConfidence;
- /**< Horizontal confidence associated with raw horizontal uncertainty,
- as defined by ETSI TS 101 109 (3GPP \hyperref[TS 03.32]{TS 03.32}).
- \begin{itemize1}
- \item Units: Percent (1 to 99)
- \item 0, 101 to 255 -- invalid value
- \item If 100 is received, reinterpret to 99
- \end{itemize1}
- This field must be specified together with raw horizontal uncertainty.
- If not specified when rawHorUncCircular is set, the default value is 50. */
-
- /* Optional */
- /* Free CPI or On-Demand CPI */
- uint8_t onDemandCpi_valid; /**< Must be set to true if onDemandCpi is being passed */
- uint8_t onDemandCpi;
- /**< Indicates whether this position injection was requested by the modem.
- Valid values: \newline
- - 0x00 (FALSE) -- The position injection was not requested by the modem (Free CPI) \n
- - 0x01 (TRUE) -- The position injection was requested by the modem (On-Demand CPI) */
-
- /* Optional */
- /* Position Source Provider */
- uint8_t positionSrcProvider_valid; /**< Must be set to true if positionSrcProvider is being passed */
- qmiLocPositionSrcProviderEnumT_v02 positionSrcProvider;
- /**< The source provider from which this position was obtained.
- Valid values: \n
- - eQMI_LOC_POSITION_SRC_PROVIDER_EXTERNAL (0) -- Position is sourced from an external module
- - eQMI_LOC_POSITION_SRC_PROVIDER_INTERNAL (1) -- Position is sourced from an internal module
- */
-}qmiLocInjectPositionReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects a position to the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* UTC Position Injection Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the UTC Position Injection request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectPositionIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCLOCKENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_LOCK_NONE_V02 = 1, /**< Do not lock any position sessions */
- eQMI_LOC_LOCK_MI_V02 = 2, /**< Lock mobile-initiated position sessions */
- eQMI_LOC_LOCK_MT_V02 = 3, /**< Lock mobile-terminated position sessions */
- eQMI_LOC_LOCK_ALL_V02 = 4, /**< Lock all position sessions */
- QMILOCLOCKENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocLockEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sets the location engine lock. */
-typedef struct {
-
- /* Mandatory */
- /* Lock Type */
- qmiLocLockEnumT_v02 lockType;
- /**< Type of lock.
-
- Valid values: \n
- - eQMI_LOC_LOCK_NONE (1) -- Do not lock any position sessions
- - eQMI_LOC_LOCK_MI (2) -- Lock mobile-initiated position sessions
- - eQMI_LOC_LOCK_MT (3) -- Lock mobile-terminated position sessions
- - eQMI_LOC_LOCK_ALL (4) -- Lock all position sessions
- */
-}qmiLocSetEngineLockReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sets the location engine lock. */
-typedef struct {
-
- /* Mandatory */
- /* Set Engine Lock Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Engine Lock request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetEngineLockIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the location engine lock. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetEngineLockReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the location engine lock. */
-typedef struct {
-
- /* Mandatory */
- /* Get Engine Lock Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Engine Lock request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Lock Type */
- uint8_t lockType_valid; /**< Must be set to true if lockType is being passed */
- qmiLocLockEnumT_v02 lockType;
- /**< Type of lock.
-
- Valid values: \n
- - eQMI_LOC_LOCK_NONE (1) -- Do not lock any position sessions
- - eQMI_LOC_LOCK_MI (2) -- Lock mobile-initiated position sessions
- - eQMI_LOC_LOCK_MT (3) -- Lock mobile-terminated position sessions
- - eQMI_LOC_LOCK_ALL (4) -- Lock all position sessions
- */
-}qmiLocGetEngineLockIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sets the SBAS configuration. */
-typedef struct {
-
- /* Mandatory */
- /* SBAS Config */
- uint8_t sbasConfig;
- /**< Indicates whether SBAS configuration is enabled.
- \begin{itemize1}
- \item 0x01 (TRUE) -- SBAS configuration is enabled
- \item 0x00 (FALSE) -- SBAS configuration is disabled
- \vspace{-0.18in} \end{itemize1}*/
-}qmiLocSetSbasConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sets the SBAS configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Set SBAS Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set SBAS Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetSbasConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the SBAS configuration from the location engine. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetSbasConfigReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the SBAS configuration from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get SBAS Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get SBAS Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* SBAS Config */
- uint8_t sbasConfig_valid; /**< Must be set to true if sbasConfig is being passed */
- uint8_t sbasConfig;
- /**< Indicates whether SBAS configuration is enabled.
- \begin{itemize1}
- \item 0x01 (TRUE) -- SBAS configuration is enabled
- \item 0x00 (FALSE) -- SBAS configuration is disabled
- \vspace{-0.18in} \end{itemize1}*/
-}qmiLocGetSbasConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocNmeaSentenceMaskT_v02;
-#define QMI_LOC_NMEA_MASK_GGA_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000001) /**< Enable GGA type */
-#define QMI_LOC_NMEA_MASK_RMC_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000002) /**< Enable RMC type */
-#define QMI_LOC_NMEA_MASK_GSV_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000004) /**< Enable GSV type */
-#define QMI_LOC_NMEA_MASK_GSA_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000008) /**< Enable GSA type */
-#define QMI_LOC_NMEA_MASK_VTG_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000010) /**< Enable VTG type */
-#define QMI_LOC_NMEA_MASK_PQXFI_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000020) /**< Enable PQXFI type */
-#define QMI_LOC_NMEA_MASK_PSTIS_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000040) /**< Enable PSTIS type */
-#define QMI_LOC_NMEA_MASK_GLGSV_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000080) /**< Enable GLGSV type */
-#define QMI_LOC_NMEA_MASK_GNGSA_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000100) /**< Enable GNGSA type */
-#define QMI_LOC_NMEA_MASK_GNGNS_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000200) /**< Enable GNGNS type */
-#define QMI_LOC_NMEA_MASK_GARMC_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000400) /**< Enable GARMC type */
-#define QMI_LOC_NMEA_MASK_GAGSV_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00000800) /**< Enable GAGSV type */
-#define QMI_LOC_NMEA_MASK_GAGSA_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00001000) /**< Enable GAGSA type */
-#define QMI_LOC_NMEA_MASK_GAVTG_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00002000) /**< Enable GAVTG type */
-#define QMI_LOC_NMEA_MASK_GAGGA_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00004000) /**< Enable GAGGA type */
-#define QMI_LOC_NMEA_MASK_PQGSA_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00008000) /**< Enable PQGSA type */
-#define QMI_LOC_NMEA_MASK_PQGSV_V02 ((qmiLocNmeaSentenceMaskT_v02)0x00010000) /**< Enable PQGSV type */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sets the NMEA types. */
-typedef struct {
-
- /* Mandatory */
- /* NMEA Sentence Types */
- qmiLocNmeaSentenceMaskT_v02 nmeaSentenceType;
- /**< Bitmasks of NMEA types to enable.
-
- Valid bitmasks: \n
- - QMI_LOC_NMEA_MASK_GGA (0x00000001) -- Enable GGA type
- - QMI_LOC_NMEA_MASK_RMC (0x00000002) -- Enable RMC type
- - QMI_LOC_NMEA_MASK_GSV (0x00000004) -- Enable GSV type
- - QMI_LOC_NMEA_MASK_GSA (0x00000008) -- Enable GSA type
- - QMI_LOC_NMEA_MASK_VTG (0x00000010) -- Enable VTG type
- - QMI_LOC_NMEA_MASK_PQXFI (0x00000020) -- Enable PQXFI type
- - QMI_LOC_NMEA_MASK_PSTIS (0x00000040) -- Enable PSTIS type
- - QMI_LOC_NMEA_MASK_GLGSV (0x00000080) -- Enable GLGSV type
- - QMI_LOC_NMEA_MASK_GNGSA (0x00000100) -- Enable GNGSA type
- - QMI_LOC_NMEA_MASK_GNGNS (0x00000200) -- Enable GNGNS type
- - QMI_LOC_NMEA_MASK_GARMC (0x00000400) -- Enable GARMC type
- - QMI_LOC_NMEA_MASK_GAGSV (0x00000800) -- Enable GAGSV type
- - QMI_LOC_NMEA_MASK_GAGSA (0x00001000) -- Enable GAGSA type
- - QMI_LOC_NMEA_MASK_GAVTG (0x00002000) -- Enable GAVTG type
- - QMI_LOC_NMEA_MASK_GAGGA (0x00004000) -- Enable GAGGA type
- - QMI_LOC_NMEA_MASK_PQGSA (0x00008000) -- Enable PQGSA type
- - QMI_LOC_NMEA_MASK_PQGSV (0x00010000) -- Enable PQGSV type
- */
-}qmiLocSetNmeaTypesReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sets the NMEA types. */
-typedef struct {
-
- /* Mandatory */
- /* Set NMEA Types Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of Set NMEA Types request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetNmeaTypesIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the NMEA types from the location engine. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetNmeaTypesReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the NMEA types from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get NMEA Types Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get NMEA Types request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* NMEA Sentence Types */
- uint8_t nmeaSentenceType_valid; /**< Must be set to true if nmeaSentenceType is being passed */
- qmiLocNmeaSentenceMaskT_v02 nmeaSentenceType;
- /**< NMEA types to enable.
-
- Valid bitmasks: \n
- - QMI_LOC_NMEA_MASK_GGA (0x00000001) -- Enable GGA type
- - QMI_LOC_NMEA_MASK_RMC (0x00000002) -- Enable RMC type
- - QMI_LOC_NMEA_MASK_GSV (0x00000004) -- Enable GSV type
- - QMI_LOC_NMEA_MASK_GSA (0x00000008) -- Enable GSA type
- - QMI_LOC_NMEA_MASK_VTG (0x00000010) -- Enable VTG type
- - QMI_LOC_NMEA_MASK_PQXFI (0x00000020) -- Enable PQXFI type
- - QMI_LOC_NMEA_MASK_PSTIS (0x00000040) -- Enable PSTIS type
- - QMI_LOC_NMEA_MASK_GLGSV (0x00000080) -- Enable GLGSV type
- - QMI_LOC_NMEA_MASK_GNGSA (0x00000100) -- Enable GNGSA type
- - QMI_LOC_NMEA_MASK_GNGNS (0x00000200) -- Enable GNGNS type
- - QMI_LOC_NMEA_MASK_GARMC (0x00000400) -- Enable GARMC type
- - QMI_LOC_NMEA_MASK_GAGSV (0x00000800) -- Enable GAGSV type
- - QMI_LOC_NMEA_MASK_GAGSA (0x00001000) -- Enable GAGSA type
- - QMI_LOC_NMEA_MASK_GAVTG (0x00002000) -- Enable GAVTG type
- - QMI_LOC_NMEA_MASK_GAGGA (0x00004000) -- Enable GAGGA type
- - QMI_LOC_NMEA_MASK_PQGSA (0x00008000) -- Enable PQGSA type
- - QMI_LOC_NMEA_MASK_PQGSV (0x00010000) -- Enable PQGSV type
- */
-}qmiLocGetNmeaTypesIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Enables/disables Low Power Mode (LPM) configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Enable Low Power Mode */
- uint8_t lowPowerMode;
- /**< Indicates whether to enable Low Power mode:\n
- - 0x01 (TRUE) -- Enable LPM \n
- - 0x00 (FALSE) -- Disable LPM */
-}qmiLocSetLowPowerModeReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Enables/disables Low Power Mode (LPM) configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Set LPM Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Low Power Mode request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetLowPowerModeIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the LPM status from the location engine. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetLowPowerModeReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the LPM status from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get LPM Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get LPM request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Enable/Disable LPM */
- uint8_t lowPowerMode_valid; /**< Must be set to true if lowPowerMode is being passed */
- uint8_t lowPowerMode;
- /**< Indicates whether to enable Low Power mode:\n
- - 0x01 (TRUE) -- Enable LPM \n
- - 0x00 (FALSE) -- Disable LPM */
-}qmiLocGetLowPowerModeIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSERVERTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SERVER_TYPE_CDMA_PDE_V02 = 1, /**< Server type is CDMA PDE */
- eQMI_LOC_SERVER_TYPE_CDMA_MPC_V02 = 2, /**< Server type is CDMA MPC */
- eQMI_LOC_SERVER_TYPE_UMTS_SLP_V02 = 3, /**< Server type is UMTS SLP */
- eQMI_LOC_SERVER_TYPE_CUSTOM_PDE_V02 = 4, /**< Server type is custom PDE */
- QMILOCSERVERTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocServerTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Specifies the A-GPS server type and address. */
-typedef struct {
-
- /* Mandatory */
- /* Server Type */
- qmiLocServerTypeEnumT_v02 serverType;
- /**< Type of server.
-
- Valid values: \n
- - eQMI_LOC_SERVER_TYPE_CDMA_PDE (1) -- Server type is CDMA PDE
- - eQMI_LOC_SERVER_TYPE_CDMA_MPC (2) -- Server type is CDMA MPC
- - eQMI_LOC_SERVER_TYPE_UMTS_SLP (3) -- Server type is UMTS SLP
- - eQMI_LOC_SERVER_TYPE_CUSTOM_PDE (4) -- Server type is custom PDE
- */
-
- /* Optional */
- /* IPv4 Address */
- uint8_t ipv4Addr_valid; /**< Must be set to true if ipv4Addr is being passed */
- qmiLocIpV4AddrStructType_v02 ipv4Addr;
- /**< \vspace{0.06in} \n IPv4 address and port. */
-
- /* Optional */
- /* IPv6 Address */
- uint8_t ipv6Addr_valid; /**< Must be set to true if ipv6Addr is being passed */
- qmiLocIpV6AddrStructType_v02 ipv6Addr;
- /**< \vspace{0.06in} \n IPv6 address and port. */
-
- /* Optional */
- /* Uniform Resource Locator */
- uint8_t urlAddr_valid; /**< Must be set to true if urlAddr is being passed */
- char urlAddr[QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02 + 1];
- /**< URL address.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 256
- \vspace{-0.18in} \end{itemize1}
- */
-}qmiLocSetServerReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Specifies the A-GPS server type and address. */
-typedef struct {
-
- /* Mandatory */
- /* Set Server Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Server request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetServerIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the location server from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Server Type */
- qmiLocServerTypeEnumT_v02 serverType;
- /**< Type of server.
-
- Valid values: \n
- - eQMI_LOC_SERVER_TYPE_CDMA_PDE (1) -- Server type is CDMA PDE
- - eQMI_LOC_SERVER_TYPE_CDMA_MPC (2) -- Server type is CDMA MPC
- - eQMI_LOC_SERVER_TYPE_UMTS_SLP (3) -- Server type is UMTS SLP
- - eQMI_LOC_SERVER_TYPE_CUSTOM_PDE (4) -- Server type is custom PDE
- */
-
- /* Optional */
- /* Server Address Type */
- uint8_t serverAddrTypeMask_valid; /**< Must be set to true if serverAddrTypeMask is being passed */
- qmiLocServerAddrTypeMaskT_v02 serverAddrTypeMask;
- /**< Type of address the client wants. If unspecified, the
- indication will contain all the types of addresses
- it has for the specified server type.
-
- Valid bitmasks: \n
- - 0x01 -- IPv4 \n
- - 0x02 -- IPv6 \n
- - 0x04 -- URL
- */
-}qmiLocGetServerReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the location server from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get Server Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Server request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Server Type */
- qmiLocServerTypeEnumT_v02 serverType;
- /**< Type of server.
-
- Valid values: \n
- - eQMI_LOC_SERVER_TYPE_CDMA_PDE (1) -- Server type is CDMA PDE
- - eQMI_LOC_SERVER_TYPE_CDMA_MPC (2) -- Server type is CDMA MPC
- - eQMI_LOC_SERVER_TYPE_UMTS_SLP (3) -- Server type is UMTS SLP
- - eQMI_LOC_SERVER_TYPE_CUSTOM_PDE (4) -- Server type is custom PDE
- */
-
- /* Optional */
- /* IPv4 Address */
- uint8_t ipv4Addr_valid; /**< Must be set to true if ipv4Addr is being passed */
- qmiLocIpV4AddrStructType_v02 ipv4Addr;
- /**< \vspace{0.06in} \n IPv4 address and port. */
-
- /* Optional */
- /* IPv6 Address */
- uint8_t ipv6Addr_valid; /**< Must be set to true if ipv6Addr is being passed */
- qmiLocIpV6AddrStructType_v02 ipv6Addr;
- /**< \vspace{0.06in} \n IPv6 address and port. */
-
- /* Optional */
- /* Uniform Resource Locator */
- uint8_t urlAddr_valid; /**< Must be set to true if urlAddr is being passed */
- char urlAddr[QMI_LOC_MAX_SERVER_ADDR_LENGTH_V02 + 1];
- /**< URL.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 256
- \vspace{-0.18in} \end{itemize1}
- */
-}qmiLocGetServerIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint64_t qmiLocDeleteGnssDataMaskT_v02;
-#define QMI_LOC_MASK_DELETE_GPS_SVDIR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000001ull) /**< Mask to delete GPS SVDIR */
-#define QMI_LOC_MASK_DELETE_GPS_SVSTEER_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000002ull) /**< Mask to delete GPS SVSTEER */
-#define QMI_LOC_MASK_DELETE_GPS_TIME_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000004ull) /**< Mask to delete GPS time */
-#define QMI_LOC_MASK_DELETE_GPS_ALM_CORR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000008ull) /**< Mask to delete almanac correlation */
-#define QMI_LOC_MASK_DELETE_GLO_SVDIR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000010ull) /**< Mask to delete GLONASS SVDIR */
-#define QMI_LOC_MASK_DELETE_GLO_SVSTEER_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000020ull) /**< Mask to delete GLONASS SVSTEER */
-#define QMI_LOC_MASK_DELETE_GLO_TIME_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000040ull) /**< Mask to delete GLONASS time */
-#define QMI_LOC_MASK_DELETE_GLO_ALM_CORR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000080ull) /**< Mask to delete GLONASS almanac correlation */
-#define QMI_LOC_MASK_DELETE_SBAS_SVDIR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000100ull) /**< Mask to delete SBAS SVDIR */
-#define QMI_LOC_MASK_DELETE_SBAS_SVSTEER_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000200ull) /**< Mask to delete SBAS SVSTEER */
-#define QMI_LOC_MASK_DELETE_POSITION_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000400ull) /**< Mask to delete position estimate */
-#define QMI_LOC_MASK_DELETE_TIME_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00000800ull) /**< Mask to delete time estimate */
-#define QMI_LOC_MASK_DELETE_IONO_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00001000ull) /**< Mask to delete IONO */
-#define QMI_LOC_MASK_DELETE_UTC_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00002000ull) /**< Mask to delete UTC estimate */
-#define QMI_LOC_MASK_DELETE_HEALTH_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00004000ull) /**< Mask to delete SV health record */
-#define QMI_LOC_MASK_DELETE_SADATA_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00008000ull) /**< Mask to delete SADATA */
-#define QMI_LOC_MASK_DELETE_RTI_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00010000ull) /**< Mask to delete RTI */
-#define QMI_LOC_MASK_DELETE_SV_NO_EXIST_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00020000ull) /**< Mask to delete SV_NO_EXIST */
-#define QMI_LOC_MASK_DELETE_FREQ_BIAS_EST_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00040000ull) /**< Mask to delete frequency bias estimate */
-#define QMI_LOC_MASK_DELETE_BDS_SVDIR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00080000ull) /**< Mask to delete BDS SVDIR */
-#define QMI_LOC_MASK_DELETE_BDS_SVSTEER_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00100000ull) /**< Mask to delete BDS SVSTEER */
-#define QMI_LOC_MASK_DELETE_BDS_TIME_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00200000ull) /**< Mask to delete BDS time */
-#define QMI_LOC_MASK_DELETE_BDS_ALM_CORR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00400000ull) /**< Mask to delete BDS almanac correlation */
-#define QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_GPS_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x00800000ull) /**< Mask to delete GNSS SV blacklist GPS */
-#define QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_GLO_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x01000000ull) /**< Mask to delete GNSS SV blacklist GLO */
-#define QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_BDS_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x02000000ull) /**< Mask to delete GNSS SV blacklist BDS */
-#define QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_GAL_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x04000000ull) /**< Mask to delete GNSS SV blacklist GAL */
-#define QMI_LOC_MASK_DELETE_GAL_SVDIR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x08000000ull) /**< Mask to delete GAL SVDIR */
-#define QMI_LOC_MASK_DELETE_GAL_SVSTEER_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x10000000ull) /**< Mask to delete GAL SVSTEER */
-#define QMI_LOC_MASK_DELETE_GAL_TIME_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x20000000ull) /**< Mask to delete GAL time */
-#define QMI_LOC_MASK_DELETE_GAL_ALM_CORR_V02 ((qmiLocDeleteGnssDataMaskT_v02)0x40000000ull) /**< Mask to delete GAL almanac correlation */
-typedef uint32_t qmiLocDeleteCelldbDataMaskT_v02;
-#define QMI_LOC_MASK_DELETE_CELLDB_POS_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000001) /**< Mask to delete cell database position */
-#define QMI_LOC_MASK_DELETE_CELLDB_LATEST_GPS_POS_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000002) /**< Mask to delete cell database latest GPS position */
-#define QMI_LOC_MASK_DELETE_CELLDB_OTA_POS_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000004) /**< Mask to delete cell database OTA position */
-#define QMI_LOC_MASK_DELETE_CELLDB_EXT_REF_POS_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000008) /**< Mask to delete cell database external reference position */
-#define QMI_LOC_MASK_DELETE_CELLDB_TIMETAG_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000010) /**< Mask to delete cell database time tag */
-#define QMI_LOC_MASK_DELETE_CELLDB_CELLID_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000020) /**< Mask to delete cell database cell ID */
-#define QMI_LOC_MASK_DELETE_CELLDB_CACHED_CELLID_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000040) /**< Mask to delete cell database cached cell ID */
-#define QMI_LOC_MASK_DELETE_CELLDB_LAST_SRV_CELL_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000080) /**< Mask to delete cell database last service cell */
-#define QMI_LOC_MASK_DELETE_CELLDB_CUR_SRV_CELL_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000100) /**< Mask to delete cell database current service cell */
-#define QMI_LOC_MASK_DELETE_CELLDB_NEIGHBOR_INFO_V02 ((qmiLocDeleteCelldbDataMaskT_v02)0x00000200) /**< Mask to delete cell database neighbor information */
-typedef uint32_t qmiLocDeleteClockInfoMaskT_v02;
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_TIME_EST_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000001) /**< Mask to delete time estimate from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_FREQ_EST_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000002) /**< Mask to delete frequency estimate from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_WEEK_NUMBER_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000004) /**< Mask to delete week number from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_RTC_TIME_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000008) /**< Mask to delete RTC time from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_TIME_TRANSFER_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000010) /**< Mask to delete time transfer from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GPSTIME_EST_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000020) /**< Mask to delete GPS time estimate from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GLOTIME_EST_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000040) /**< Mask to delete GLONASS time estimate from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GLODAY_NUMBER_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000080) /**< Mask to delete GLONASS day number from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GLO4YEAR_NUMBER_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000100) /**< Mask to delete GLONASS four year number from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GLO_RF_GRP_DELAY_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000200) /**< Mask to delete GLONASS RF GRP delay from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_DISABLE_TT_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000400) /**< Mask to delete disable TT from clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GG_LEAPSEC_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00000800) /**< Mask to delete a BDS time estimate from the clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GG_GGTB_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00001000) /**< Mask to delete a BDS time estimate from the clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_BDSTIME_EST_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00002000) /**< Mask to delete a BDS time estimate from the clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GB_GBTB_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00004000) /**< Mask to delete Glonass-to-BDS time bias-related information from the
- clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_BG_BGTB_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00008000) /**< Mask to delete BDS-to-GLONASS time bias-related information from the
- clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_BDSWEEK_NUMBER_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00010000) /**< Mask to delete the BDS week number from the clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_BDS_RF_GRP_DELAY_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00020000) /**< Mask to delete the BDS RF GRP delay from the clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTIME_EST_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00040000) /**< Mask to delete a GAL time estimate from the clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOGPS_TB_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00080000) /**< Mask to delete GAL-to-GPS time bias-related information from the
- clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOGLO_TB_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00100000) /**< Mask to delete GAL-to-GLO time bias-related information from the
- clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOBDS_TB_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00200000) /**< Mask to delete GAL-to-BDS time bias-related information from the
- clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GALWEEK_NUMBER_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x00800000) /**< Mask to delete the GAL week number from the clock information */
-#define QMI_LOC_MASK_DELETE_CLOCK_INFO_GAL_RF_GRP_DELAY_V02 ((qmiLocDeleteClockInfoMaskT_v02)0x01000000) /**< Mask to delete the GAL RF GRP delay from the clock information */
-typedef uint8_t qmiLocDeleteSvInfoMaskT_v02;
-#define QMI_LOC_MASK_DELETE_EPHEMERIS_V02 ((qmiLocDeleteSvInfoMaskT_v02)0x01) /**< Delete ephemeris for the satellite */
-#define QMI_LOC_MASK_DELETE_ALMANAC_V02 ((qmiLocDeleteSvInfoMaskT_v02)0x02) /**< Delete almanac for the satellite */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t gnssSvId;
- /**< SV ID of the satellite whose data is to be deleted.
- \begin{itemize1}
- \item Range: \begin{itemize1}
- \item For GPS: 1 to 32
- \item For SBAS: 33 to 64
- \item For GLONASS: 65 to 96
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- qmiLocSvSystemEnumT_v02 system;
- /**< Indicates to which constellation this SV belongs.
-
- Valid values: \n
- - eQMI_LOC_SV_SYSTEM_GPS (1) -- GPS satellite
- - eQMI_LOC_SV_SYSTEM_GALILEO (2) -- GALILEO satellite
- - eQMI_LOC_SV_SYSTEM_SBAS (3) -- SBAS satellite
- - eQMI_LOC_SV_SYSTEM_COMPASS (4) -- COMPASS satellite (Deprecated)
- - eQMI_LOC_SV_SYSTEM_GLONASS (5) -- GLONASS satellite
- - eQMI_LOC_SV_SYSTEM_BDS (6) -- BDS satellite
- - eQMI_LOC_SV_SYSTEM_QZSS (7) -- QZSS satellite
- */
-
- qmiLocDeleteSvInfoMaskT_v02 deleteSvInfoMask;
- /**< Indicates whether the ephemeris or almanac for a satellite
- is to be deleted. \n
- Valid values: \n
- - QMI_LOC_MASK_DELETE_EPHEMERIS (0x01) -- Delete ephemeris for the satellite
- - QMI_LOC_MASK_DELETE_ALMANAC (0x02) -- Delete almanac for the satellite
- */
-}qmiLocDeleteSvInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t gnssSvId;
- /**< SV ID of the satellite whose data is to be deleted. \n
- Range for BDS: 201 to 237 */
-
- qmiLocDeleteSvInfoMaskT_v02 deleteSvInfoMask;
- /**< Indicates if the ephemeris or almanac for a satellite
- is to be deleted. \n
- Valid values: \n
- - QMI_LOC_MASK_DELETE_EPHEMERIS (0x01) -- Delete ephemeris for the satellite
- - QMI_LOC_MASK_DELETE_ALMANAC (0x02) -- Delete almanac for the satellite
- */
-}qmiLocDeleteBDSSvInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t gnssSvId;
- /**< SV ID of the satellite whose data is to be deleted. \n
- Range for GAL: 301 to 336 */
-
- qmiLocDeleteSvInfoMaskT_v02 deleteSvInfoMask;
- /**< Indicates if the ephemeris or almanac for a satellite
- is to be deleted. \n
- Valid values: \n
- - QMI_LOC_MASK_DELETE_EPHEMERIS (0x01) -- Delete ephemeris for the satellite
- - QMI_LOC_MASK_DELETE_ALMANAC (0x02) -- Delete almanac for the satellite
- */
-}qmiLocDeleteGALSvInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; This command is used to delete the location engine
- assistance data. */
-typedef struct {
-
- /* Mandatory */
- /* Delete All */
- uint8_t deleteAllFlag;
- /**< Indicates whether all assistance data is to be deleted.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- All assistance data is to be deleted; if
- this flag is set, all the other information
- contained in the optional fields for this
- message are ignored
- \item 0x00 (FALSE) -- The optional fields in the message are to be
- used to determine which data is to be deleted
- \vspace{-0.18in} \end{itemize1} */
-
- /* Optional */
- /* Delete SV Info */
- uint8_t deleteSvInfoList_valid; /**< Must be set to true if deleteSvInfoList is being passed */
- uint32_t deleteSvInfoList_len; /**< Must be set to # of elements in deleteSvInfoList */
- qmiLocDeleteSvInfoStructT_v02 deleteSvInfoList[QMI_LOC_DELETE_MAX_SV_INFO_LENGTH_V02];
- /**< \vspace{0.06in} \n List of satellites for which the assistance data is to be deleted.
- */
-
- /* Optional */
- /* Delete GNSS Data */
- uint8_t deleteGnssDataMask_valid; /**< Must be set to true if deleteGnssDataMask is being passed */
- qmiLocDeleteGnssDataMaskT_v02 deleteGnssDataMask;
- /**< Mask for the GNSS data that is to be deleted.
-
- Valid values: \n
- - QMI_LOC_MASK_DELETE_GPS_SVDIR (0x00000001) -- Mask to delete GPS SVDIR
- - QMI_LOC_MASK_DELETE_GPS_SVSTEER (0x00000002) -- Mask to delete GPS SVSTEER
- - QMI_LOC_MASK_DELETE_GPS_TIME (0x00000004) -- Mask to delete GPS time
- - QMI_LOC_MASK_DELETE_GPS_ALM_CORR (0x00000008) -- Mask to delete almanac correlation
- - QMI_LOC_MASK_DELETE_GLO_SVDIR (0x00000010) -- Mask to delete GLONASS SVDIR
- - QMI_LOC_MASK_DELETE_GLO_SVSTEER (0x00000020) -- Mask to delete GLONASS SVSTEER
- - QMI_LOC_MASK_DELETE_GLO_TIME (0x00000040) -- Mask to delete GLONASS time
- - QMI_LOC_MASK_DELETE_GLO_ALM_CORR (0x00000080) -- Mask to delete GLONASS almanac correlation
- - QMI_LOC_MASK_DELETE_SBAS_SVDIR (0x00000100) -- Mask to delete SBAS SVDIR
- - QMI_LOC_MASK_DELETE_SBAS_SVSTEER (0x00000200) -- Mask to delete SBAS SVSTEER
- - QMI_LOC_MASK_DELETE_POSITION (0x00000400) -- Mask to delete position estimate
- - QMI_LOC_MASK_DELETE_TIME (0x00000800) -- Mask to delete time estimate
- - QMI_LOC_MASK_DELETE_IONO (0x00001000) -- Mask to delete IONO
- - QMI_LOC_MASK_DELETE_UTC (0x00002000) -- Mask to delete UTC estimate
- - QMI_LOC_MASK_DELETE_HEALTH (0x00004000) -- Mask to delete SV health record
- - QMI_LOC_MASK_DELETE_SADATA (0x00008000) -- Mask to delete SADATA
- - QMI_LOC_MASK_DELETE_RTI (0x00010000) -- Mask to delete RTI
- - QMI_LOC_MASK_DELETE_SV_NO_EXIST (0x00020000) -- Mask to delete SV_NO_EXIST
- - QMI_LOC_MASK_DELETE_FREQ_BIAS_EST (0x00040000) -- Mask to delete frequency bias estimate
- - QMI_LOC_MASK_DELETE_BDS_SVDIR (0x00080000) -- Mask to delete BDS SVDIR
- - QMI_LOC_MASK_DELETE_BDS_SVSTEER (0x00100000) -- Mask to delete BDS SVSTEER
- - QMI_LOC_MASK_DELETE_BDS_TIME (0x00200000) -- Mask to delete BDS time
- - QMI_LOC_MASK_DELETE_BDS_ALM_CORR (0x00400000) -- Mask to delete BDS almanac correlation
- - QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_GPS (0x00800000) -- Mask to delete GNSS SV blacklist GPS
- - QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_GLO (0x01000000) -- Mask to delete GNSS SV blacklist GLO
- - QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_BDS (0x02000000) -- Mask to delete GNSS SV blacklist BDS
- - QMI_LOC_MASK_DELETE_GNSS_SV_BLACKLIST_GAL (0x04000000) -- Mask to delete GNSS SV blacklist GAL
- - QMI_LOC_MASK_DELETE_GAL_SVDIR (0x08000000) -- Mask to delete GAL SVDIR
- - QMI_LOC_MASK_DELETE_GAL_SVSTEER (0x10000000) -- Mask to delete GAL SVSTEER
- - QMI_LOC_MASK_DELETE_GAL_TIME (0x20000000) -- Mask to delete GAL time
- - QMI_LOC_MASK_DELETE_GAL_ALM_CORR (0x40000000) -- Mask to delete GAL almanac correlation
- */
-
- /* Optional */
- /* Delete Cell Database */
- uint8_t deleteCellDbDataMask_valid; /**< Must be set to true if deleteCellDbDataMask is being passed */
- qmiLocDeleteCelldbDataMaskT_v02 deleteCellDbDataMask;
- /**< Mask for the cell database assistance data that is to be deleted.
-
- Valid values: \begin{itemize1}
- \item 0x00000001 -- DELETE_CELLDB_ POS
- \item 0x00000002 -- DELETE_CELLDB_ LATEST_GPS_POS
- \item 0x00000004 -- DELETE_CELLDB_ OTA_POS
- \item 0x00000008 -- DELETE_CELLDB_ EXT_REF_POS
- \item 0x00000010 -- DELETE_CELLDB_ TIMETAG
- \item 0x00000020 -- DELETE_CELLDB_ CELLID
- \item 0x00000040 -- DELETE_CELLDB_ CACHED_CELLID
- \item 0x00000080 -- DELETE_CELLDB_ LAST_SRV_CELL
- \item 0x00000100 -- DELETE_CELLDB_ CUR_SRV_CELL
- \item 0x00000200 -- DELETE_CELLDB_ NEIGHBOR_INFO
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* Delete Clock Info */
- uint8_t deleteClockInfoMask_valid; /**< Must be set to true if deleteClockInfoMask is being passed */
- qmiLocDeleteClockInfoMaskT_v02 deleteClockInfoMask;
- /**< Mask for the clock information assistance data that is to be deleted.
-
- Valid bitmasks: \n
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_TIME_EST (0x00000001) -- Mask to delete time estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_FREQ_EST (0x00000002) -- Mask to delete frequency estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_WEEK_NUMBER (0x00000004) -- Mask to delete week number from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_RTC_TIME (0x00000008) -- Mask to delete RTC time from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_TIME_TRANSFER (0x00000010) -- Mask to delete time transfer from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GPSTIME_EST (0x00000020) -- Mask to delete GPS time estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLOTIME_EST (0x00000040) -- Mask to delete GLONASS time estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLODAY_NUMBER (0x00000080) -- Mask to delete GLONASS day number from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLO4YEAR_NUMBER (0x00000100) -- Mask to delete GLONASS four year number from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLO_RF_GRP_DELAY (0x00000200) -- Mask to delete GLONASS RF GRP delay from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_DISABLE_TT (0x00000400) -- Mask to delete disable TT from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GG_LEAPSEC (0x00000800) -- Mask to delete a BDS time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GG_GGTB (0x00001000) -- Mask to delete a BDS time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BDSTIME_EST (0x00002000) -- Mask to delete a BDS time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GB_GBTB (0x00004000) -- Mask to delete Glonass-to-BDS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BG_BGTB (0x00008000) -- Mask to delete BDS-to-GLONASS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BDSWEEK_NUMBER (0x00010000) -- Mask to delete the BDS week number from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BDS_RF_GRP_DELAY (0x00020000) -- Mask to delete the BDS RF GRP delay from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTIME_EST (0x00040000) -- Mask to delete a GAL time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOGPS_TB (0x00080000) -- Mask to delete GAL-to-GPS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOGLO_TB (0x00100000) -- Mask to delete GAL-to-GLO time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOBDS_TB (0x00200000) -- Mask to delete GAL-to-BDS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALWEEK_NUMBER (0x00800000) -- Mask to delete the GAL week number from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GAL_RF_GRP_DELAY (0x01000000) -- Mask to delete the GAL RF GRP delay from the clock information
- */
-
- /* Optional */
- /* Delete BDS SV Info */
- uint8_t deleteBdsSvInfoList_valid; /**< Must be set to true if deleteBdsSvInfoList is being passed */
- uint32_t deleteBdsSvInfoList_len; /**< Must be set to # of elements in deleteBdsSvInfoList */
- qmiLocDeleteBDSSvInfoStructT_v02 deleteBdsSvInfoList[QMI_LOC_DELETE_MAX_BDS_SV_INFO_LENGTH_V02];
- /**< \vspace{0.06in} \n List of BDS satellites for which the assistance data is to be deleted.
- */
-
- /* Optional */
- /* Delete GAL SV Info */
- uint8_t deleteGalSvInfoList_valid; /**< Must be set to true if deleteGalSvInfoList is being passed */
- uint32_t deleteGalSvInfoList_len; /**< Must be set to # of elements in deleteGalSvInfoList */
- qmiLocDeleteGALSvInfoStructT_v02 deleteGalSvInfoList[QMI_LOC_DELETE_MAX_GAL_SV_INFO_LENGTH_V02];
- /**< \vspace{0.06in} \n List of GAL satellites for which the assistance data is to be deleted.
- */
-}qmiLocDeleteAssistDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; This command is used to delete the location engine
- assistance data. */
-typedef struct {
-
- /* Mandatory */
- /* Delete Assist Data Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Delete Assist Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocDeleteAssistDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Enables/disables XTRA-T session control. */
-typedef struct {
-
- /* Mandatory */
- /* Enable XTRA-T */
- uint8_t xtraTSessionControl;
- /**< Indicates whether to enable XTRA-T:\n
- - 0x01 (TRUE) -- Enable XTRA-T \n
- - 0x00 (FALSE) -- Disable XTRA-T */
-}qmiLocSetXtraTSessionControlReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Enables/disables XTRA-T session control. */
-typedef struct {
-
- /* Mandatory */
- /* Set XTRA-T Session Control Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set XTRA-T Session Control request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetXtraTSessionControlIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the XTRA-T session control value from the location
- engine. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetXtraTSessionControlReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the XTRA-T session control value from the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get XTRA-T Session Control Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get XTRA-T Session Control request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Enable/Disable XTRA-T */
- uint8_t xtraTSessionControl_valid; /**< Must be set to true if xtraTSessionControl is being passed */
- uint8_t xtraTSessionControl;
- /**< Indicates whether to enable XTRA-T:\n
- - 0x01 (TRUE) -- Enable XTRA-T \n
- - 0x00 (FALSE) -- Disable XTRA-T */
-}qmiLocGetXtraTSessionControlIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t wifiPositionTime;
- /**< Common counter (typically, the number of milliseconds since bootup).
- This field is only to be provided if the modem and host processors are
- synchronized. */
-}qmiLocWifiFixTimeStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWIFIFIXERRORCODEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WIFI_FIX_ERROR_SUCCESS_V02 = 0, /**< Wi-Fi fix is successful. */
- eQMI_LOC_WIFI_FIX_ERROR_WIFI_NOT_AVAILABLE_V02 = 1, /**< Wi-Fi fix failed because Wi-Fi is not available on the device. */
- eQMI_LOC_WIFI_FIX_ERROR_NO_AP_FOUND_V02 = 2, /**< Wi-Fi fix failed because no access points were found. */
- eQMI_LOC_WIFI_FIX_ERROR_UNAUTHORIZED_V02 = 3, /**< Wi-Fi fix failed because the server denied access due to bad authorization
- code. */
- eQMI_LOC_WIFI_FIX_ERROR_SERVER_UNAVAILABLE_V02 = 4, /**< Wi-Fi fix failed because the Wi-Fi server was unavailable. */
- eQMI_LOC_WIFI_FIX_ERROR_LOCATION_CANNOT_BE_DETERMINED_V02 = 5, /**< Wi-Fi fix failed even though APs were found and the server could be reached.
- This may be because the APs found are not in the database. */
- eQMI_LOC_WIFI_FIX_ERROR_UNKNOWN_V02 = 6, /**< Wi-Fi fix failed, but the cause could not be determined. */
- QMILOCWIFIFIXERRORCODEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWifiFixErrorCodeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- double lat;
- /**< Wi-Fi position latitude. \n
- - Type: Floating point \n
- - Units: Degrees */
-
- double lon;
- /**< Wi-Fi position longitude. \n
- - Type: Floating point \n
- - Units: Degrees */
-
- uint16_t hepe;
- /**< Wi-Fi position HEPE.\n
- - Units: Meters */
-
- uint8_t numApsUsed;
- /**< Number of Access Points (AP) used to generate a fix. */
-
- qmiLocWifiFixErrorCodeEnumT_v02 fixErrorCode;
- /**< Wi-Fi position error code; set to 0 if the fix succeeds. This position
- is only used by a module if the value is 0. If there was a failure,
- the error code provided by the Wi-Fi positioning system can be provided
- here.
-
- Valid values: \n
- - eQMI_LOC_WIFI_FIX_ERROR_SUCCESS (0) -- Wi-Fi fix is successful.
- - eQMI_LOC_WIFI_FIX_ERROR_WIFI_NOT_AVAILABLE (1) -- Wi-Fi fix failed because Wi-Fi is not available on the device.
- - eQMI_LOC_WIFI_FIX_ERROR_NO_AP_FOUND (2) -- Wi-Fi fix failed because no access points were found.
- - eQMI_LOC_WIFI_FIX_ERROR_UNAUTHORIZED (3) -- Wi-Fi fix failed because the server denied access due to bad authorization
- code.
- - eQMI_LOC_WIFI_FIX_ERROR_SERVER_UNAVAILABLE (4) -- Wi-Fi fix failed because the Wi-Fi server was unavailable.
- - eQMI_LOC_WIFI_FIX_ERROR_LOCATION_CANNOT_BE_DETERMINED (5) -- Wi-Fi fix failed even though APs were found and the server could be reached.
- This may be because the APs found are not in the database.
- - eQMI_LOC_WIFI_FIX_ERROR_UNKNOWN (6) -- Wi-Fi fix failed, but the cause could not be determined.
- */
-}qmiLocWifiFixPosStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint8_t qmiLocWifiApQualifierMaskT_v02;
-#define QMI_LOC_WIFI_AP_QUALIFIER_BEING_USED_V02 ((qmiLocWifiApQualifierMaskT_v02)0x01) /**< Access point is being used by the WPS. */
-#define QMI_LOC_WIFI_AP_QUALIFIER_HIDDEN_SSID_V02 ((qmiLocWifiApQualifierMaskT_v02)0x02) /**< AP does not broadcast SSID. */
-#define QMI_LOC_WIFI_AP_QUALIFIER_PRIVATE_V02 ((qmiLocWifiApQualifierMaskT_v02)0x04) /**< AP has encryption turned on. */
-#define QMI_LOC_WIFI_AP_QUALIFIER_INFRASTRUCTURE_MODE_V02 ((qmiLocWifiApQualifierMaskT_v02)0x08) /**< AP is in infrastructure mode and not in ad-hoc/unknown mode. */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t macAddr[QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02];
- /**< Associated MAC address of the AP. \n
- - Type: Array of unsigned integers \n
- - Address length: 6
- */
-
- int32_t rssi;
- /**< Receive signal strength indicator.\n
- - Units: dBm (offset with +100 dB) */
-
- uint16_t channel;
- /**< Wi-Fi channel on which a beacon was received. */
-
- qmiLocWifiApQualifierMaskT_v02 apQualifier;
- /**< A bitmask of Boolean qualifiers for APs.
- All unused bits in this mask must be set to 0.
-
- Valid values: \n
- - 0x01 -- BEING_USED \n
- - 0x02 -- HIDDEN_SSID \n
- - 0x04 -- PRIVATE \n
- - 0x08 -- INFRASTRUCTURE_MODE
- */
-}qmiLocWifiApInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- char ssid[QMI_LOC_MAX_WIFI_AP_SSID_STR_LENGTH_V02 + 1];
- /**< NULL-terminated SSID string of the Wi-Fi AP. Its maximum length according to the ASCII standard is 32 octets. */
-}qmiLocWifiApSsidStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects the Wi-Fi position. */
-typedef struct {
-
- /* Optional */
- /* Wi-Fi Fix Time */
- uint8_t wifiFixTime_valid; /**< Must be set to true if wifiFixTime is being passed */
- qmiLocWifiFixTimeStructT_v02 wifiFixTime;
- /**< \vspace{0.06in} \n Time of Wi-Fi position fix. */
-
- /* Optional */
- /* Wi-Fi Position */
- uint8_t wifiFixPosition_valid; /**< Must be set to true if wifiFixPosition is being passed */
- qmiLocWifiFixPosStructT_v02 wifiFixPosition;
- /**< \vspace{0.06in} \n Wi-Fi position fix. */
-
- /* Optional */
- /* Wi-Fi Access Point Information */
- uint8_t apInfo_valid; /**< Must be set to true if apInfo is being passed */
- uint32_t apInfo_len; /**< Must be set to # of elements in apInfo */
- qmiLocWifiApInfoStructT_v02 apInfo[QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02];
- /**< \vspace{0.06in} \n AP scan list.
- SSID of the Wi-Fi AP.
- The ordering of the Wi-Fi AP SSID list should matchthe Wi-Fi AP MAC address list if both are provided,
- that is, the first element of the Wi-Fi AP SSID list must be the SSID of the AP whose MAC
- address is in the first element in the Wi-Fi AP Info MAC Address, and so on. */
-
- /* Optional */
- /* Horizontal Reliability */
- uint8_t horizontalReliability_valid; /**< Must be set to true if horizontalReliability is being passed */
- qmiLocReliabilityEnumT_v02 horizontalReliability;
- /**< Specifies the reliability of the horizontal position.
-
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Raw HEPE */
- uint8_t rawHepe_valid; /**< Must be set to true if rawHepe is being passed */
- uint16_t rawHepe;
- /**< Wi-Fi position raw HEPE, which has no optimization.\n
- - Units: Meters */
-
- /* Optional */
- /* Wi-Fi AP SSID String */
- uint8_t wifiApSsidInfo_valid; /**< Must be set to true if wifiApSsidInfo is being passed */
- uint32_t wifiApSsidInfo_len; /**< Must be set to # of elements in wifiApSsidInfo */
- qmiLocWifiApSsidStructT_v02 wifiApSsidInfo[QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02];
- /**< \vspace{0.04in} \n
- The ordering of the Wi-Fi AP SSID list should match the Wi-Fi AP MAC address list if both are provided,
- that is, the first element of the Wi-Fi AP SSID list must be the SSID of the AP whose MAC
- address is in the first element in the Wi-Fi AP Info MAC address, and so on.*/
-}qmiLocInjectWifiPositionReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects the Wi-Fi position. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Wi-Fi Position Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Wi-Fi Position request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectWifiPositionIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWIFISTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WIFI_STATUS_AVAILABLE_V02 = 1, /**< Wi-Fi is available */
- eQMI_LOC_WIFI_STATUS_UNAVAILABLE_V02 = 2, /**< Wi-Fi is not available */
- QMILOCWIFISTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWifiStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Notifies the location engine of the Wi-Fi status. */
-typedef struct {
-
- /* Mandatory */
- /* Availablility of Wi-Fi */
- qmiLocWifiStatusEnumT_v02 wifiStatus;
- /**< Wi-Fi status information.
-
- Valid values: \n
- - eQMI_LOC_WIFI_STATUS_AVAILABLE (1) -- Wi-Fi is available
- - eQMI_LOC_WIFI_STATUS_UNAVAILABLE (2) -- Wi-Fi is not available
- */
-}qmiLocNotifyWifiStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the location engine of the Wi-Fi status. */
-typedef struct {
-
- /* Mandatory */
- /* Status of Notify Wi-Fi Status Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Notify Wi-Fi Status request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocNotifyWifiStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the mask of the events for which a client has
- registered. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetRegisteredEventsReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the mask of the events for which a client has
- registered. */
-typedef struct {
-
- /* Mandatory */
- /* Get Registered Events Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Registered Events request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Event Registration Mask */
- uint8_t eventRegMask_valid; /**< Must be set to true if eventRegMask is being passed */
- qmiLocEventRegMaskT_v02 eventRegMask;
- /**< Event registration mask.
- Valid bitmasks: \n
- - QMI_LOC_EVENT_MASK_POSITION_REPORT (0x00000001) -- The control point must enable this mask to receive position report
- event indications.
- - QMI_LOC_EVENT_MASK_GNSS_SV_INFO (0x00000002) -- The control point must enable this mask to receive satellite report
- event indications. These reports are sent at a 1 Hz rate.
- - QMI_LOC_EVENT_MASK_NMEA (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.
- - QMI_LOC_EVENT_MASK_NI_NOTIFY_VERIFY_REQ (0x00000008) -- The control point must enable this mask to receive NI Notify/Verify request
- event indications.
- - QMI_LOC_EVENT_MASK_INJECT_TIME_REQ (0x00000010) -- The control point must enable this mask to receive time injection request
- event indications.
- - QMI_LOC_EVENT_MASK_INJECT_PREDICTED_ORBITS_REQ (0x00000020) -- The control point must enable this mask to receive predicted orbits request
- event indications.
- - QMI_LOC_EVENT_MASK_INJECT_POSITION_REQ (0x00000040) -- The control point must enable this mask to receive position injection request
- event indications.
- - QMI_LOC_EVENT_MASK_ENGINE_STATE (0x00000080) -- The control point must enable this mask to receive engine state report
- event indications.
- - QMI_LOC_EVENT_MASK_FIX_SESSION_STATE (0x00000100) -- The control point must enable this mask to receive fix session status report
- event indications.
- - QMI_LOC_EVENT_MASK_WIFI_REQ (0x00000200) -- The control point must enable this mask to receive Wi-Fi position request
- event indications.
- - QMI_LOC_EVENT_MASK_SENSOR_STREAMING_READY_STATUS (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.).
- - QMI_LOC_EVENT_MASK_TIME_SYNC_REQ (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.
- - QMI_LOC_EVENT_MASK_SET_SPI_STREAMING_REPORT (0x00001000) -- The control point must enable this mask to receive Stationary Position
- Indicator (SPI) streaming report indications.
- - QMI_LOC_EVENT_MASK_LOCATION_SERVER_CONNECTION_REQ (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.
- - QMI_LOC_EVENT_MASK_NI_GEOFENCE_NOTIFICATION (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.
- - QMI_LOC_EVENT_MASK_GEOFENCE_GEN_ALERT (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, e.g., if GPS is turned off or if the network is
- unavailable.
- - QMI_LOC_EVENT_MASK_GEOFENCE_BREACH_NOTIFICATION (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 .
- - QMI_LOC_EVENT_MASK_PEDOMETER_CONTROL (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.
- - QMI_LOC_EVENT_MASK_MOTION_DATA_CONTROL (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.
- - QMI_LOC_EVENT_MASK_BATCH_FULL_NOTIFICATION (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.
- - QMI_LOC_EVENT_MASK_LIVE_BATCHED_POSITION_REPORT (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.
- - QMI_LOC_EVENT_MASK_INJECT_WIFI_AP_DATA_REQ (0x00200000) -- The control point must enable this mask to receive Wi-Fi AP data inject request
- event indications.
- - QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_BREACH_NOTIFICATION (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 .
- - QMI_LOC_EVENT_MASK_VEHICLE_DATA_READY_STATUS (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.).
- - QMI_LOC_EVENT_MASK_GNSS_MEASUREMENT_REPORT (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.
- - QMI_LOC_EVENT_MASK_GNSS_SV_POLYNOMIAL_REPORT (0x02000000) -- The control point must enable this mask to receive satellite position
- reports as polynomials. Reports are generated only for the GNSS satellite
- constellations that are enabled using QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG.
- - QMI_LOC_EVENT_MASK_GEOFENCE_PROXIMITY_NOTIFICATION (0x04000000) -- The control point must enable this mask to receive notifications when a Geofence proximity is entered
- and exited. The proximity of a Geofence may be due to different contexts. These contexts are identified
- using the context ID in this indication. The context of a Geofence may contain Wi-Fi area ID lists, IBeacon lists,
- Cell-ID list, and so forth.
- - QMI_LOC_EVENT_MASK_GDT_UPLOAD_BEGIN_REQ (0x08000000) -- The control point must enable this mask to receive Generic Data Transport (GDT)
- upload session begin request event indications.
- - QMI_LOC_EVENT_MASK_GDT_UPLOAD_END_REQ (0x10000000) -- The control point must enable this mask to receive GDT
- upload session end request event indications.
- - QMI_LOC_EVENT_MASK_GEOFENCE_BATCH_DWELL_NOTIFICATION (0x20000000) -- The control point must enable this mask to receive notifications when
- a Geofence is dwelled. These events are generated when a UE enters
- or leaves the perimeter of a Geofence and dwells inside or outside for a specified time.
- This dwell notification is for multiple Geofences. Dwells from multiple Geofences are all batched and
- sent in the same notification.
- - QMI_LOC_EVENT_MASK_GET_TIME_ZONE_REQ (0x40000000) -- The control point must enable this mask to receive requests for time zone information from
- the service. These events are generated when there is a need for time zone information in the
- service.
- - QMI_LOC_EVENT_MASK_BATCHING_STATUS (0x80000000) -- The control point must enable this mask to receive asynchronous events related
- to batching.
- */
-}qmiLocGetRegisteredEventsIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCOPERATIONMODEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_OPER_MODE_DEFAULT_V02 = 1, /**< Use the default engine mode */
- eQMI_LOC_OPER_MODE_MSB_V02 = 2, /**< Use the MS-based mode */
- eQMI_LOC_OPER_MODE_MSA_V02 = 3, /**< Use the MS-assisted mode */
- eQMI_LOC_OPER_MODE_STANDALONE_V02 = 4, /**< Use Standalone mode */
- eQMI_LOC_OPER_MODE_CELL_ID_V02 = 5, /**< Use cell ID; this mode is only valid for GSM/UMTS networks */
- eQMI_LOC_OPER_MODE_WWAN_V02 = 6, /**< Use WWAN measurements to calculate the position; if this mode is
- set, AFLT will be used for 1X networks and OTDOA will be used
- for LTE networks */
- QMILOCOPERATIONMODEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocOperationModeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Tells the engine to use the specified operation mode while
- making the position fixes. */
-typedef struct {
-
- /* Mandatory */
- /* Operation Mode */
- qmiLocOperationModeEnumT_v02 operationMode;
- /**< Preferred operation mode.
-
- Valid values: \n
- - eQMI_LOC_OPER_MODE_DEFAULT (1) -- Use the default engine mode
- - eQMI_LOC_OPER_MODE_MSB (2) -- Use the MS-based mode
- - eQMI_LOC_OPER_MODE_MSA (3) -- Use the MS-assisted mode
- - eQMI_LOC_OPER_MODE_STANDALONE (4) -- Use Standalone mode
- - eQMI_LOC_OPER_MODE_CELL_ID (5) -- Use cell ID; this mode is only valid for GSM/UMTS networks
- - eQMI_LOC_OPER_MODE_WWAN (6) -- Use WWAN measurements to calculate the position; if this mode is
- set, AFLT will be used for 1X networks and OTDOA will be used
- for LTE networks
- */
-
- /* Optional */
- /* Minimum Interval Between Position Reports */
- uint8_t minInterval_valid; /**< Must be set to true if minInterval is being passed */
- uint32_t minInterval;
- /**< Minimum time interval, specified by the control point, that must elapse between
- position reports. \n
- - Units: milliseconds \n
- - Default: 1000 ms
- */
-}qmiLocSetOperationModeReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Tells the engine to use the specified operation mode while
- making the position fixes. */
-typedef struct {
-
- /* Mandatory */
- /* Set Operation Mode Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Operation Mode request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetOperationModeIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Gets the current operation mode from the engine. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetOperationModeReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Gets the current operation mode from the engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get Operation Mode Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Operation Mode request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Operation Mode */
- uint8_t operationMode_valid; /**< Must be set to true if operationMode is being passed */
- qmiLocOperationModeEnumT_v02 operationMode;
- /**< Current operation mode.
-
- Valid values: \n
- - eQMI_LOC_OPER_MODE_DEFAULT (1) -- Use the default engine mode
- - eQMI_LOC_OPER_MODE_MSB (2) -- Use the MS-based mode
- - eQMI_LOC_OPER_MODE_MSA (3) -- Use the MS-assisted mode
- - eQMI_LOC_OPER_MODE_STANDALONE (4) -- Use Standalone mode
- - eQMI_LOC_OPER_MODE_CELL_ID (5) -- Use cell ID; this mode is only valid for GSM/UMTS networks
- - eQMI_LOC_OPER_MODE_WWAN (6) -- Use WWAN measurements to calculate the position; if this mode is
- set, AFLT will be used for 1X networks and OTDOA will be used
- for LTE networks
- */
-}qmiLocGetOperationModeIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to set the SPI status, which
- indicates whether the device is stationary. */
-typedef struct {
-
- /* Mandatory */
- /* Stationary Status */
- uint8_t stationary;
- /**< Indicates whether the device is stationary:
- \begin{itemize1}
- \item 0x00 (FALSE) -- Device is not stationary
- \item 0x01 (TRUE) -- Device is stationary
- \vspace{-0.18in} \end{itemize1}*/
-
- /* Optional */
- /* Confidence */
- uint8_t confidenceStationary_valid; /**< Must be set to true if confidenceStationary is being passed */
- uint8_t confidenceStationary;
- /**< Confidence in the Stationary state expressed as a percentage.\n
- - Range: 0 to 100 */
-}qmiLocSetSpiStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to set the SPI status, which
- indicates whether the device is stationary. */
-typedef struct {
-
- /* Mandatory */
- /* Status of SPI Status Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the SPI Status request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetSpiStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint8_t qmiLocSensorDataFlagMaskT_v02;
-#define QMI_LOC_SENSOR_DATA_FLAG_SIGN_REVERSAL_V02 ((qmiLocSensorDataFlagMaskT_v02)0x01) /**< Bitmask to specify that a sign reversal is required while interpreting
- the sensor data; only applies to the accelerometer samples */
-#define QMI_LOC_SENSOR_DATA_FLAG_SENSOR_TIME_IS_MODEM_TIME_V02 ((qmiLocSensorDataFlagMaskT_v02)0x02) /**< Bitmask to specify that the sensor time stamp is the same as the modem
- time stamp */
-#define QMI_LOC_SENSOR_DATA_FLAG_CALIBRATED_DATA_V02 ((qmiLocSensorDataFlagMaskT_v02)0x04) /**< Bitmask to specify that the injected sensor data is calibrated */
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSENSORDATATIMESOURCEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SENSOR_TIME_SOURCE_UNSPECIFIED_V02 = 0, /**< Sensor time source is unspecified */
- eQMI_LOC_SENSOR_TIME_SOURCE_COMMON_V02 = 1, /**< Time source is common between the sensors and
- the location engine */
- QMILOCSENSORDATATIMESOURCEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSensorDataTimeSourceEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t timeOffset;
- /**< Sample time offset. This time offset must be
- relative to the timestamp of the first sensor data sample.\n
- - Units: Milliseconds */
-
- float xAxis;
- /**< Sensor x-axis sample. \n
- - Units Accelerometer: Meters/seconds^2 \n
- - Units Gyroscope: Radians/second \n
- - Units Magnetometer: microTesla */
-
- float yAxis;
- /**< Sensor y-axis sample. \n
- - Units Accelerometer: Meters/seconds^2 \n
- - Units Gyroscope: Radians/second \n
- - Units Magnetometer: microTesla */
-
- float zAxis;
- /**< Sensor z-axis sample. \n
- - Units Accelerometer: Meters/seconds^2 ) \n
- - Units Gyroscope: Radians/second \n
- - Units Magnetometer: microTesla */
-}qmiLoc3AxisSensorSampleStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t timeOfFirstSample;
- /**< Denotes a full 32-bit timestamp of the first (oldest) sample in this
- message.The timestamp is in the time reference scale that is
- used by the sensor time source.\n
- - Units: Milliseconds */
-
- qmiLocSensorDataFlagMaskT_v02 flags;
- /**< Flags to indicate any deviation from the default measurement
- assumptions. All unused bits in this field must be set to 0.
-
- Valid bitmasks:
- - QMI_LOC_SENSOR_DATA_FLAG_SIGN_REVERSAL (0x01) -- Bitmask to specify that a sign reversal is required while interpreting
- the sensor data; only applies to the accelerometer samples
- - QMI_LOC_SENSOR_DATA_FLAG_SENSOR_TIME_IS_MODEM_TIME (0x02) -- Bitmask to specify that the sensor time stamp is the same as the modem
- time stamp
- - QMI_LOC_SENSOR_DATA_FLAG_CALIBRATED_DATA (0x04) -- Bitmask to specify that the injected sensor data is calibrated */
-
- uint32_t sensorData_len; /**< Must be set to # of elements in sensorData */
- qmiLoc3AxisSensorSampleStructT_v02 sensorData[QMI_LOC_SENSOR_DATA_MAX_SAMPLES_V02];
- /**< Variable length array to specify sensor samples. \n
- - Maximum length of the array: 50 */
-}qmiLoc3AxisSensorSampleListStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t timeOffset;
- /**< Sample time offset. This time offset must be
- relative to the timestamp of the first sensor sample.\n
- - Units: Milliseconds */
-
- float temperature;
- /**< Sensor temperature. \n
- - Type: Floating point \n
- - Units: Degrees Celsius \n
- - Range: -50 to +100.00 */
-}qmiLocSensorTemperatureSampleStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocSensorDataTimeSourceEnumT_v02 timeSource;
- /**< Denotes the time source of the sensor data. Location service will use
- this field to identify the time reference used in the
- sensor data timestamps.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_TIME_SOURCE_UNSPECIFIED (0) -- Sensor time source is unspecified
- - eQMI_LOC_SENSOR_TIME_SOURCE_COMMON (1) -- Time source is common between the sensors and
- the location engine
- */
-
- uint32_t timeOfFirstSample;
- /**< Denotes a full 32-bit timestamp of the first (oldest) sample in this
- message. The timestamp is in the time reference scale that is
- used by the sensor time source.\n
- - Units: Milliseconds */
-
- uint32_t temperatureData_len; /**< Must be set to # of elements in temperatureData */
- qmiLocSensorTemperatureSampleStructT_v02 temperatureData[QMI_LOC_SENSOR_DATA_MAX_SAMPLES_V02];
- /**< Variable length array to specify sensor temperature samples. \n
- - Maximum length of the array: 50 */
-}qmiLocSensorTemperatureSampleListStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject sensor data into the
- GNSS location engine. */
-typedef struct {
-
- /* Optional */
- /* Opaque Identifier */
- uint8_t opaqueIdentifier_valid; /**< Must be set to true if opaqueIdentifier is being passed */
- uint32_t opaqueIdentifier;
- /**< An opaque identifier that is sent in by the client that will be echoed
- in the indication so the client can relate the indication to the
- request. */
-
- /* Optional */
- /* 3-Axis Accelerometer Data */
- uint8_t threeAxisAccelData_valid; /**< Must be set to true if threeAxisAccelData is being passed */
- qmiLoc3AxisSensorSampleListStructT_v02 threeAxisAccelData;
- /**< \vspace{0.06in} \n Accelerometer sensor samples. */
-
- /* Optional */
- /* 3-Axis Gyroscope Data */
- uint8_t threeAxisGyroData_valid; /**< Must be set to true if threeAxisGyroData is being passed */
- qmiLoc3AxisSensorSampleListStructT_v02 threeAxisGyroData;
- /**< \vspace{0.06in} \n Gyroscope sensor samples. */
-
- /* Optional */
- /* 3-Axis Accelerometer Data Time Source */
- uint8_t threeAxisAccelDataTimeSource_valid; /**< Must be set to true if threeAxisAccelDataTimeSource is being passed */
- qmiLocSensorDataTimeSourceEnumT_v02 threeAxisAccelDataTimeSource;
- /**< Time source for the 3-axis accelerometer data. The location service uses
- this field to identify the time reference used in the accelerometer data
- timestamps. If not specified, the location service assumes that the
- time source for the accelereometer data is unknown. \n
- Values: \n
- - eQMI_LOC_SENSOR_TIME_SOURCE_UNSPECIFIED (0) -- Sensor time source is unspecified
- - eQMI_LOC_SENSOR_TIME_SOURCE_COMMON (1) -- Time source is common between the sensors and
- the location engine
- */
-
- /* Optional */
- /* 3-Axis Gyroscope Data Time Source */
- uint8_t threeAxisGyroDataTimeSource_valid; /**< Must be set to true if threeAxisGyroDataTimeSource is being passed */
- qmiLocSensorDataTimeSourceEnumT_v02 threeAxisGyroDataTimeSource;
- /**< Time source for the 3-axis gyroscope data. The location service uses
- this field to identify the time reference used in the gyroscope data
- timestamps. If not specified, the location service assumes that the
- time source for the gyroscope data is unknown. \n
- Values: \n
- - eQMI_LOC_SENSOR_TIME_SOURCE_UNSPECIFIED (0) -- Sensor time source is unspecified
- - eQMI_LOC_SENSOR_TIME_SOURCE_COMMON (1) -- Time source is common between the sensors and
- the location engine
- */
-
- /* Optional */
- /* Accelerometer Temperature Data */
- uint8_t accelTemperatureData_valid; /**< Must be set to true if accelTemperatureData is being passed */
- qmiLocSensorTemperatureSampleListStructT_v02 accelTemperatureData;
- /**< \vspace{0.06in} \nAccelerometer temperature samples. This data is optional and does not
- have to be included in the message along with accelerometer data. */
-
- /* Optional */
- /* Gyroscope Temperature Data */
- uint8_t gyroTemperatureData_valid; /**< Must be set to true if gyroTemperatureData is being passed */
- qmiLocSensorTemperatureSampleListStructT_v02 gyroTemperatureData;
- /**< \vspace{0.06in} \n Gyroscope temperature samples. This data is optional and does not
- have to be included in the message along with gyroscope data. */
-
- /* Optional */
- /* 3-Axis Magnetometer Data */
- uint8_t threeAxisMagData_valid; /**< Must be set to true if threeAxisMagData is being passed */
- qmiLoc3AxisSensorSampleListStructT_v02 threeAxisMagData;
- /**< \vspace{0.06in} \n Magnetometer sensor samples. */
-
- /* Optional */
- /* 3-Axis Magnetometer Data Time Source */
- uint8_t threeAxisMagDataTimeSource_valid; /**< Must be set to true if threeAxisMagDataTimeSource is being passed */
- qmiLocSensorDataTimeSourceEnumT_v02 threeAxisMagDataTimeSource;
- /**< Time source for the 3-axis magnetometer data. The location service uses
- this field to identify the time reference used in the magnetometer data
- timestamps. If not specified, the location service assumes that the
- time source for the magnetometer data is unknown. \n
- Values: \n
- - eQMI_LOC_SENSOR_TIME_SOURCE_UNSPECIFIED (0) -- Sensor time source is unspecified
- - eQMI_LOC_SENSOR_TIME_SOURCE_COMMON (1) -- Time source is common between the sensors and
- the location engine
- */
-}qmiLocInjectSensorDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject sensor data into the
- GNSS location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Sensor Data Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Sensor Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Opaque Identifier */
- uint8_t opaqueIdentifier_valid; /**< Must be set to true if opaqueIdentifier is being passed */
- uint32_t opaqueIdentifier;
- /**< Opaque identifier that was sent in by the client echoed
- so the client can relate the indication to the request. */
-
- /* Optional */
- /* Accelerometer Samples Accepted */
- uint8_t threeAxisAccelSamplesAccepted_valid; /**< Must be set to true if threeAxisAccelSamplesAccepted is being passed */
- uint8_t threeAxisAccelSamplesAccepted;
- /**< Lets the client know how many 3-axis accelerometer samples
- were accepted. This field is present only if the accelerometer
- samples were sent in the request. */
-
- /* Optional */
- /* Gyroscope Samples Accepted */
- uint8_t threeAxisGyroSamplesAccepted_valid; /**< Must be set to true if threeAxisGyroSamplesAccepted is being passed */
- uint8_t threeAxisGyroSamplesAccepted;
- /**< Lets the client know how many 3-axis gyroscope samples were
- accepted. This field is present only if the gyroscope
- samples were sent in the request. */
-
- /* Optional */
- /* Accelerometer Temperature Samples Accepted */
- uint8_t accelTemperatureSamplesAccepted_valid; /**< Must be set to true if accelTemperatureSamplesAccepted is being passed */
- uint8_t accelTemperatureSamplesAccepted;
- /**< Lets the client know how many accelerometer temperature
- samples were accepted. This field is present only if the accelerometer
- temperature samples were sent in the request. */
-
- /* Optional */
- /* Gyroscope Temperature Samples Accepted */
- uint8_t gyroTemperatureSamplesAccepted_valid; /**< Must be set to true if gyroTemperatureSamplesAccepted is being passed */
- uint8_t gyroTemperatureSamplesAccepted;
- /**< Lets the client know how many gyroscope temperature samples
- were accepted. This field is present only if the gyroscope
- temperature samples were sent in the request. */
-
- /* Optional */
- /* Magnetometer Samples Accepted */
- uint8_t threeAxisMagSamplesAccepted_valid; /**< Must be set to true if threeAxisMagSamplesAccepted is being passed */
- uint8_t threeAxisMagSamplesAccepted;
- /**< Lets the client know how many 3-axis magnetometer samples
- were accepted. This field is present only if the magnetometer
- samples were sent in the request. */
-}qmiLocInjectSensorDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject time sync data. */
-typedef struct {
-
- /* Mandatory */
- /* Reference Time Sync Counter */
- uint32_t refCounter;
- /**< Must be set to the value that was sent to the control point when the
- GNSS location engine requested time sync injection. */
-
- /* Mandatory */
- /* Sensor Receive Time */
- uint32_t sensorProcRxTime;
- /**< Value of the sensor time when the control point received the
- Time Sync Inject request from the GNSS location engine.
-
- Must be monotonically increasing, jitter @latexonly $\leq$ @endlatexonly 1
- millisecond, never stopping until the process is rebooted.\n
- - Units: Milliseconds */
-
- /* Mandatory */
- /* Sensor Transmit Time */
- uint32_t sensorProcTxTime;
- /**< Value of the sensor time when the control point injects this message
- for use by the GNSS location engine.
-
- Must be monotonically increasing, jitter @latexonly $\leq$ @endlatexonly 1
- millisecond, never stopping until the process is rebooted.\n
- - Units: Milliseconds */
-}qmiLocInjectTimeSyncDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject time sync data. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Time Sync Data Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Time Sync Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectTimeSyncDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCCRADLEMOUNTSTATEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_CRADLE_STATE_NOT_MOUNTED_V02 = 0, /**< Device is mounted on the cradle */
- eQMI_LOC_CRADLE_STATE_MOUNTED_V02 = 1, /**< Device is not mounted on the cradle */
- eQMI_LOC_CRADLE_STATE_UNKNOWN_V02 = 2, /**< Unknown cradle mount state */
- QMILOCCRADLEMOUNTSTATEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocCradleMountStateEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the current
- cradle mount configuration. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetCradleMountConfigReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the current
- cradle mount configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Get Cradle Mount Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Cradle Mount Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Cradle Mount State */
- uint8_t cradleMountState_valid; /**< Must be set to true if cradleMountState is being passed */
- qmiLocCradleMountStateEnumT_v02 cradleMountState;
- /**< Cradle Mount state set by the control point.
-
- Valid values: \n
- - eQMI_LOC_CRADLE_STATE_NOT_MOUNTED (0) -- Device is mounted on the cradle
- - eQMI_LOC_CRADLE_STATE_MOUNTED (1) -- Device is not mounted on the cradle
- - eQMI_LOC_CRADLE_STATE_UNKNOWN (2) -- Unknown cradle mount state
- */
-
- /* Optional */
- /* Cradle Mount Confidence */
- uint8_t confidenceCradleMountState_valid; /**< Must be set to true if confidenceCradleMountState is being passed */
- uint8_t confidenceCradleMountState;
- /**< Confidence of the Cradle Mount state expressed as a percentage.\n
- - Range: 0 to 100 */
-}qmiLocGetCradleMountConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to set the current
- cradle mount configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Cradle Mount State */
- qmiLocCradleMountStateEnumT_v02 cradleMountState;
- /**< Cradle Mount state set by the control point.
-
- Valid values: \n
- - eQMI_LOC_CRADLE_STATE_NOT_MOUNTED (0) -- Device is mounted on the cradle
- - eQMI_LOC_CRADLE_STATE_MOUNTED (1) -- Device is not mounted on the cradle
- - eQMI_LOC_CRADLE_STATE_UNKNOWN (2) -- Unknown cradle mount state
- */
-
- /* Optional */
- /* Cradle Mount Confidence */
- uint8_t confidenceCradleMountState_valid; /**< Must be set to true if confidenceCradleMountState is being passed */
- uint8_t confidenceCradleMountState;
- /**< Confidence in the Cradle Mount state expressed as a percentage.\n
- - Range: 0 to 100 */
-}qmiLocSetCradleMountConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to set the current
- cradle mount configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Set Cradle Mount Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Cradle Mount Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetCradleMountConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCEXTERNALPOWERCONFIGENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_EXTERNAL_POWER_NOT_CONNECTED_V02 = 0, /**< Device is not connected to an external power source */
- eQMI_LOC_EXTERNAL_POWER_CONNECTED_V02 = 1, /**< Device is connected to an external power source */
- eQMI_LOC_EXTERNAL_POWER_UNKNOWN_V02 = 2, /**< Unknown external power state */
- QMILOCEXTERNALPOWERCONFIGENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocExternalPowerConfigEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the current
- external power configuration. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetExternalPowerConfigReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the current
- external power configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Get Ext Power Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get External Power Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* External Power State */
- uint8_t externalPowerState_valid; /**< Must be set to true if externalPowerState is being passed */
- qmiLocExternalPowerConfigEnumT_v02 externalPowerState;
- /**< Power state; injected by the control point.
-
- Valid values: \n
- - eQMI_LOC_EXTERNAL_POWER_NOT_CONNECTED (0) -- Device is not connected to an external power source
- - eQMI_LOC_EXTERNAL_POWER_CONNECTED (1) -- Device is connected to an external power source
- - eQMI_LOC_EXTERNAL_POWER_UNKNOWN (2) -- Unknown external power state
- */
-}qmiLocGetExternalPowerConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to set the current
- external power configuration. */
-typedef struct {
-
- /* Mandatory */
- /* External Power State */
- qmiLocExternalPowerConfigEnumT_v02 externalPowerState;
- /**< Power state; injected by the control point.
-
- Valid values: \n
- - eQMI_LOC_EXTERNAL_POWER_NOT_CONNECTED (0) -- Device is not connected to an external power source
- - eQMI_LOC_EXTERNAL_POWER_CONNECTED (1) -- Device is connected to an external power source
- - eQMI_LOC_EXTERNAL_POWER_UNKNOWN (2) -- Unknown external power state
- */
-}qmiLocSetExternalPowerConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to set the current
- external power configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Set Ext Power Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set External Power Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetExternalPowerConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSERVERPDNENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV4_V02 = 0x01, /**< IPv4 PDN type */
- eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV6_V02 = 0x02, /**< IPv6 PDN type */
- eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV4V6_V02 = 0x03, /**< IPv4v6 PDN type */
- eQMI_LOC_APN_PROFILE_PDN_TYPE_PPP_V02 = 0x04, /**< PPP PDN type */
- QMILOCSERVERPDNENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocServerPDNEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocServerPDNEnumT_v02 pdnType;
- /**< PDN type of the APN profile.
-
- Valid values: \n
- - eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV4 (0x01) -- IPv4 PDN type
- - eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV6 (0x02) -- IPv6 PDN type
- - eQMI_LOC_APN_PROFILE_PDN_TYPE_IPV4V6 (0x03) -- IPv4v6 PDN type
- - eQMI_LOC_APN_PROFILE_PDN_TYPE_PPP (0x04) -- PPP PDN type
- */
-
- char apnName[QMI_LOC_MAX_APN_NAME_LENGTH_V02 + 1];
- /**< APN name.
- \begin{itemize1}
- \item Type: NULL-terminated string
- \item Maximum string length (including NULL terminator): 101
- \vspace{-0.18in} \end{itemize1}
- */
-}qmiLocApnProfilesStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSERVERREQSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SERVER_REQ_STATUS_SUCCESS_V02 = 1, /**< Location server request was successful */
- eQMI_LOC_SERVER_REQ_STATUS_FAILURE_V02 = 2, /**< Location server request failed */
- QMILOCSERVERREQSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocServerReqStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inform the service about the
- status of the location server connection request that the
- service may have sent via the
- QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND event. */
-typedef struct {
-
- /* Mandatory */
- /* Connection Handle */
- uint32_t connHandle;
- /**< Connection handle that the service specified in the
- Location Server Connection request event. */
-
- /* Mandatory */
- /* Request Type */
- qmiLocServerRequestEnumT_v02 requestType;
- /**< Type of connection request service that was specified in the
- Location Server Connection Request event.
-
- Valid values: \n
- - eQMI_LOC_SERVER_REQUEST_OPEN (1) -- Open a connection to the location server
- - eQMI_LOC_SERVER_REQUEST_CLOSE (2) -- Close a connection to the location server
- */
-
- /* Mandatory */
- /* Connection Status */
- qmiLocServerReqStatusEnumT_v02 statusType;
- /**< Status of the Connection request.
-
- Valid values: \n
- - eQMI_LOC_SERVER_REQ_STATUS_SUCCESS (1) -- Location server request was successful
- - eQMI_LOC_SERVER_REQ_STATUS_FAILURE (2) -- Location server request failed
- */
-
- /* Optional */
- /* APN Profile */
- uint8_t apnProfile_valid; /**< Must be set to true if apnProfile is being passed */
- qmiLocApnProfilesStructT_v02 apnProfile;
- /**< \vspace{0.06in} \n Access Point Name (APN) profile information is present only when
- requestType is OPEN and statusType is SUCCESS. */
-}qmiLocInformLocationServerConnStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inform the service about the
- status of the location server connection request that the
- service may have sent via the
- QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND event. */
-typedef struct {
-
- /* Mandatory */
- /* Status of Inform Loc Server Conn Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inform Location Server Connection Status request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInformLocationServerConnStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCVXVERSIONENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_VX_VERSION_V1_ONLY_V02 = 1, /**< V1 VX version */
- eQMI_LOC_VX_VERSION_V2_ONLY_V02 = 2, /**< V2 VX version */
- QMILOCVXVERSIONENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocVxVersionEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSUPLVERSIONENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SUPL_VERSION_1_0_V02 = 1, /**< SUPL version 1.0 */
- eQMI_LOC_SUPL_VERSION_2_0_V02 = 2, /**< SUPL version 2.0 */
- eQMI_LOC_SUPL_VERSION_2_0_2_V02 = 3, /**< SUPL version 2.0.2 */
- QMILOCSUPLVERSIONENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSuplVersionEnumT_v02;
-/**
- @}
- */
-
-typedef uint32_t qmiLocLppConfigMaskT_v02;
-#define QMI_LOC_LPP_CONFIG_ENABLE_USER_PLANE_V02 ((qmiLocLppConfigMaskT_v02)0x00000001) /**< Enable user plane configuration for LTE Positioning Profile (LPP) */
-#define QMI_LOC_LPP_CONFIG_ENABLE_CONTROL_PLANE_V02 ((qmiLocLppConfigMaskT_v02)0x00000002) /**< Enable control plane configuration for LPP */
-typedef uint32_t qmiLocAssistedGlonassProtocolMaskT_v02;
-#define QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_RRC_CP_V02 ((qmiLocAssistedGlonassProtocolMaskT_v02)0x00000001) /**< Assisted GLONASS is supported over RRC in the control plane */
-#define QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_RRLP_UP_V02 ((qmiLocAssistedGlonassProtocolMaskT_v02)0x00000002) /**< Assisted GLONASS is supported over RRLP in the user plane */
-#define QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_LPP_UP_V02 ((qmiLocAssistedGlonassProtocolMaskT_v02)0x00000004) /**< Assisted GLONASS is supported over LPP in the user plane;
- QMI_LOC_LPP_CONFIG_ENABLE_USER_PLANE must be set
- in the LPP configuration for this to take effect */
-#define QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_LPP_CP_V02 ((qmiLocAssistedGlonassProtocolMaskT_v02)0x00000008) /**< Assisted GLONASS is supported over LPP in the control plane;
- QMI_LOC_LPP_CONFIG_ENABLE_CONTROL_PLANE must be set
- in the LPP configuration for this to take effect */
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSUPLHASHALGOENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SUPL_HASH_ALGO_SHA1_V02 = 0, /**< SHA-1 hash algorithm for SUPL version 2.0 or later */
- eQMI_LOC_SUPL_HASH_ALGO_SHA256_V02 = 1, /**< SHA-256 hash algorithm for SUPL version 2.0 or later */
- QMILOCSUPLHASHALGOENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSuplHashAlgoEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSUPLTLSVERSIONENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SUPL_TLS_VERSION_1_0_V02 = 0, /**< SUPL TLS version 1.0 */
- eQMI_LOC_SUPL_TLS_VERSION_1_1_V02 = 1, /**< SUPL TLS version 1.1 */
- QMILOCSUPLTLSVERSIONENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSuplTlsVersionEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCEMERGENCYPROTOCOLENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_EMERGENCY_PROTOCOL_WCDMA_CP_V02 = 0, /**< Use Control Plane Protocol during an emergency while on WCDMA */
- eQMI_LOC_EMERGENCY_PROTOCOL_WCDMA_UP_V02 = 1, /**< Use SUPL 2.0 emergency services during an emergency while on WCDMA */
- QMILOCEMERGENCYPROTOCOLENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocEmergencyProtocolEnumT_v02;
-/**
- @}
- */
-
-typedef uint64_t qmiLocLppeUpAuxTechMaskT_v02;
-#define QMI_LOC_LPPE_MASK_UP_DBH_V02 ((qmiLocLppeUpAuxTechMaskT_v02)0x00000001ull) /**< Enable Device-Based Hybrid (3D High Accuracy Position) mode on LPPe user plane. */
-#define QMI_LOC_LPPE_MASK_UP_AP_WIFI_MEASUREMENT_V02 ((qmiLocLppeUpAuxTechMaskT_v02)0x00000002ull) /**< Enable WLAN AP Measurements mode on LPPe user plane. */
-typedef uint64_t qmiLocLppeCpAuxTechMaskT_v02;
-#define QMI_LOC_LPPE_MASK_CP_DBH_V02 ((qmiLocLppeCpAuxTechMaskT_v02)0x00000001ull) /**< Enable Device-Based Hybrid (3D High Accuracy Position) mode on LPPe control plane. */
-#define QMI_LOC_LPPE_MASK_CP_AP_WIFI_MEASUREMENT_V02 ((qmiLocLppeCpAuxTechMaskT_v02)0x00000002ull) /**< Enable WLAN AP Measurements mode on LPPe control plane. */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to configure parameters stored
- in the nonvolatile memory. */
-typedef struct {
-
- /* Optional */
- /* SUPL Security */
- uint8_t suplSecurity_valid; /**< Must be set to true if suplSecurity is being passed */
- uint8_t suplSecurity;
- /**< Indicates whether SUPL security is enabled.
- \begin{itemize1}
- \item 0x01 (TRUE) -- SUPL security is enabled
- \item 0x00 (FALSE) -- SUPL security is disabled
- \vspace{-0.18in} \end{itemize1} */
-
- /* Optional */
- /* VX Version */
- uint8_t vxVersion_valid; /**< Must be set to true if vxVersion is being passed */
- qmiLocVxVersionEnumT_v02 vxVersion;
- /**< VX version.
-
- Valid values: \n
- - eQMI_LOC_VX_VERSION_V1_ONLY (1) -- V1 VX version
- - eQMI_LOC_VX_VERSION_V2_ONLY (2) -- V2 VX version
- */
-
- /* Optional */
- /* SUPL Version */
- uint8_t suplVersion_valid; /**< Must be set to true if suplVersion is being passed */
- qmiLocSuplVersionEnumT_v02 suplVersion;
- /**< SUPL version.
-
- Valid values: \n
- - eQMI_LOC_SUPL_VERSION_1_0 (1) -- SUPL version 1.0
- - eQMI_LOC_SUPL_VERSION_2_0 (2) -- SUPL version 2.0
- - eQMI_LOC_SUPL_VERSION_2_0_2 (3) -- SUPL version 2.0.2
- */
-
- /* Optional */
- /* LPP Configuration */
- uint8_t lppConfig_valid; /**< Must be set to true if lppConfig is being passed */
- qmiLocLppConfigMaskT_v02 lppConfig;
- /**< LTE Positioning Profile (LPP) configuration.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- LPP_CONFIG_ ENABLE_USER_PLANE
- \item 0x00000002 -- LPP_CONFIG_ ENABLE_CONTROL_PLANE
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* Assisted GLONASS Protocol Mask */
- uint8_t assistedGlonassProtocolMask_valid; /**< Must be set to true if assistedGlonassProtocolMask is being passed */
- qmiLocAssistedGlonassProtocolMaskT_v02 assistedGlonassProtocolMask;
- /**< Configures the protocols that the location service supports
- for assisted GLONASS.
-
- Valid bitmasks: \n
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_RRC_CP (0x00000001) -- Assisted GLONASS is supported over RRC in the control plane
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_RRLP_UP (0x00000002) -- Assisted GLONASS is supported over RRLP in the user plane
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_LPP_UP (0x00000004) -- Assisted GLONASS is supported over LPP in the user plane;
- QMI_LOC_LPP_CONFIG_ENABLE_USER_PLANE must be set
- in the LPP configuration for this to take effect
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_LPP_CP (0x00000008) -- Assisted GLONASS is supported over LPP in the control plane;
- QMI_LOC_LPP_CONFIG_ENABLE_CONTROL_PLANE must be set
- in the LPP configuration for this to take effect
- */
-
- /* Optional */
- /* SUPL Hash Algorithm */
- uint8_t suplHashAlgo_valid; /**< Must be set to true if suplHashAlgo is being passed */
- qmiLocSuplHashAlgoEnumT_v02 suplHashAlgo;
- /**< SUPL hash algorithm to be used.
-
- Valid values: \n
- - eQMI_LOC_SUPL_HASH_ALGO_SHA1 (0) -- SHA-1 hash algorithm for SUPL version 2.0 or later
- - eQMI_LOC_SUPL_HASH_ALGO_SHA256 (1) -- SHA-256 hash algorithm for SUPL version 2.0 or later
- */
-
- /* Optional */
- /* SUPL TLS Version */
- uint8_t suplTlsVersion_valid; /**< Must be set to true if suplTlsVersion is being passed */
- qmiLocSuplTlsVersionEnumT_v02 suplTlsVersion;
- /**< SUPL Transport Layer Security (TLS) version. This configuration is only
- applicable to SUPL 2.0 or later, as SUPL 1.0 always uses TLS version 1.0.
-
- Valid values: \n
- - eQMI_LOC_SUPL_TLS_VERSION_1_0 (0) -- SUPL TLS version 1.0
- - eQMI_LOC_SUPL_TLS_VERSION_1_1 (1) -- SUPL TLS version 1.1
- */
-
- /* Optional */
- /* Emergency Protocol */
- uint8_t emergencyProtocol_valid; /**< Must be set to true if emergencyProtocol is being passed */
- qmiLocEmergencyProtocolEnumT_v02 emergencyProtocol;
- /**< Configures the protocol to be used during an emergency. \n
- \textbf{Note:} Currently, this can only be selected on WCDMA. For GSM
- and 1X, the UE only allows a control plane NI trigger for positioning.
- For LTE, the UE allows either a SUPL or a control plane NI trigger.
-
- Valid values: \n
- - eQMI_LOC_EMERGENCY_PROTOCOL_WCDMA_CP (0) -- Use Control Plane Protocol during an emergency while on WCDMA
- - eQMI_LOC_EMERGENCY_PROTOCOL_WCDMA_UP (1) -- Use SUPL 2.0 emergency services during an emergency while on WCDMA
- */
-
- /* Optional */
- /* Wi-Fi Scan Injection Timeout Period */
- uint8_t wifiScanInjectTimeout_valid; /**< Must be set to true if wifiScanInjectTimeout is being passed */
- uint8_t wifiScanInjectTimeout;
- /**< Configures the timeout duration that the service waits for scan results
- injection from the control point after the event notification is sent. \n
- \textbf{Note:} The timeout value is in seconds. \n
- Values: \n
- 0 to 10 seconds \n
- The minimum value (0 seconds) is the default. At this value, the service
- disables sending the Wi-Fi scan injection notification and ignores any
- scan results injection request.
- */
-
- /* Optional */
- /* LPPe User Plane Configure */
- uint8_t lppeUpConfig_valid; /**< Must be set to true if lppeUpConfig is being passed */
- qmiLocLppeUpAuxTechMaskT_v02 lppeUpConfig;
- /**< LPPe user plane auxiliary technology mask.
-
- Valid bitmasks: \n
- - QMI_LOC_LPPE_MASK_UP_DBH (0x00000001) -- Enable Device-Based Hybrid (3D High Accuracy Position) mode on LPPe user plane.
- - QMI_LOC_LPPE_MASK_UP_AP_WIFI_MEASUREMENT (0x00000002) -- Enable WLAN AP Measurements mode on LPPe user plane.
- */
-
- /* Optional */
- /* LPPe Control Plane Configure */
- uint8_t lppeCpConfig_valid; /**< Must be set to true if lppeCpConfig is being passed */
- qmiLocLppeCpAuxTechMaskT_v02 lppeCpConfig;
- /**< LPPe control plane auxiliary technology mask.
-
- Valid bitmasks: \n
- - QMI_LOC_LPPE_MASK_CP_DBH (0x00000001) -- Enable Device-Based Hybrid (3D High Accuracy Position) mode on LPPe control plane.
- - QMI_LOC_LPPE_MASK_CP_AP_WIFI_MEASUREMENT (0x00000002) -- Enable WLAN AP Measurements mode on LPPe control plane.
- */
-}qmiLocSetProtocolConfigParametersReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint64_t qmiLocProtocolConfigParamMaskT_v02;
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_SECURITY_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000001ull) /**< Mask for the SUPL security configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_VX_VERSION_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000002ull) /**< Mask for the VX version configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_VERSION_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000004ull) /**< Mask for the SUPL version configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPP_CONFIG_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000008ull) /**< Mask for the LPP configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_ASSISTED_GLONASS_PROTOCOL_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000010ull) /**< Mask for the assisted GLONASS configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_HASH_ALGO_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000020ull) /**< Mask for the SUPL hash algorithm configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_TLS_VERSION_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000040ull) /**< Mask for the SUPL TLS version configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_EMERGENCY_PROTOCOL_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000080ull) /**< Mask for the emergency protocol configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_WIFI_SCAN_INJECT_TIMEOUT_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000100ull) /**< Mask for the Wi-Fi scan injection timeout configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPPE_UP_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000200ull) /**< Mask for the LPPe user plane configuration parameter */
-#define QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPPE_CP_V02 ((qmiLocProtocolConfigParamMaskT_v02)0x0000000000000400ull) /**< Mask for the LPPe control plane configuration parameter */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to configure parameters stored
- in the nonvolatile memory. */
-typedef struct {
-
- /* Mandatory */
- /* Set Config Params Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Configuration Parameters request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Failed Parameters */
- uint8_t failedProtocolConfigParamMask_valid; /**< Must be set to true if failedProtocolConfigParamMask is being passed */
- qmiLocProtocolConfigParamMaskT_v02 failedProtocolConfigParamMask;
- /**< Identifies parameters that were not set successfully. This field
- is sent only if the status is not SUCCESS.
-
- Valid bitmasks: \n
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_SECURITY (0x0000000000000001) -- Mask for the SUPL security configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_VX_VERSION (0x0000000000000002) -- Mask for the VX version configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_VERSION (0x0000000000000004) -- Mask for the SUPL version configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPP_CONFIG (0x0000000000000008) -- Mask for the LPP configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_ASSISTED_GLONASS_PROTOCOL (0x0000000000000010) -- Mask for the assisted GLONASS configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_HASH_ALGO (0x0000000000000020) -- Mask for the SUPL hash algorithm configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_TLS_VERSION (0x0000000000000040) -- Mask for the SUPL TLS version configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_EMERGENCY_PROTOCOL (0x0000000000000080) -- Mask for the emergency protocol configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_WIFI_SCAN_INJECT_TIMEOUT (0x0000000000000100) -- Mask for the Wi-Fi scan injection timeout configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPPE_UP (0x0000000000000200) -- Mask for the LPPe user plane configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPPE_CP (0x0000000000000400) -- Mask for the LPPe control plane configuration parameter
- */
-}qmiLocSetProtocolConfigParametersIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the configuration
- parameters stored in the nonvolatile memory. */
-typedef struct {
-
- /* Mandatory */
- /* Config Parameters */
- qmiLocProtocolConfigParamMaskT_v02 getProtocolConfigParamMask;
- /**< Mask denoting the configuration parameters to be retrieved.
-
- Valid bitmasks: \n
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_SECURITY (0x0000000000000001) -- Mask for the SUPL security configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_VX_VERSION (0x0000000000000002) -- Mask for the VX version configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_VERSION (0x0000000000000004) -- Mask for the SUPL version configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPP_CONFIG (0x0000000000000008) -- Mask for the LPP configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_ASSISTED_GLONASS_PROTOCOL (0x0000000000000010) -- Mask for the assisted GLONASS configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_HASH_ALGO (0x0000000000000020) -- Mask for the SUPL hash algorithm configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_SUPL_TLS_VERSION (0x0000000000000040) -- Mask for the SUPL TLS version configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_EMERGENCY_PROTOCOL (0x0000000000000080) -- Mask for the emergency protocol configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_WIFI_SCAN_INJECT_TIMEOUT (0x0000000000000100) -- Mask for the Wi-Fi scan injection timeout configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPPE_UP (0x0000000000000200) -- Mask for the LPPe user plane configuration parameter
- - QMI_LOC_PROTOCOL_CONFIG_PARAM_MASK_LPPE_CP (0x0000000000000400) -- Mask for the LPPe control plane configuration parameter
- */
-}qmiLocGetProtocolConfigParametersReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the configuration
- parameters stored in the nonvolatile memory. */
-typedef struct {
-
- /* Mandatory */
- /* Get Config Params Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Configuration Parameters request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* SUPL Security */
- uint8_t suplSecurity_valid; /**< Must be set to true if suplSecurity is being passed */
- uint8_t suplSecurity;
- /**< Indicates whether SUPL security is enabled.
- \begin{itemize1}
- \item 0x01 (TRUE) -- SUPL security is enabled
- \item 0x00 (FALSE) -- SUPL security is disabled
- \vspace{-0.18in} \end{itemize1}*/
-
- /* Optional */
- /* VX Version */
- uint8_t vxVersion_valid; /**< Must be set to true if vxVersion is being passed */
- qmiLocVxVersionEnumT_v02 vxVersion;
- /**< VX version.
-
- Valid values: \n
- - eQMI_LOC_VX_VERSION_V1_ONLY (1) -- V1 VX version
- - eQMI_LOC_VX_VERSION_V2_ONLY (2) -- V2 VX version
- */
-
- /* Optional */
- /* SUPL Version */
- uint8_t suplVersion_valid; /**< Must be set to true if suplVersion is being passed */
- qmiLocSuplVersionEnumT_v02 suplVersion;
- /**< SUPL version.
-
- Valid values: \n
- - eQMI_LOC_SUPL_VERSION_1_0 (1) -- SUPL version 1.0
- - eQMI_LOC_SUPL_VERSION_2_0 (2) -- SUPL version 2.0
- - eQMI_LOC_SUPL_VERSION_2_0_2 (3) -- SUPL version 2.0.2
- */
-
- /* Optional */
- /* LPP Configuration */
- uint8_t lppConfig_valid; /**< Must be set to true if lppConfig is being passed */
- qmiLocLppConfigMaskT_v02 lppConfig;
- /**< LTE Positioning Profile (LPP) configuration.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- LPP_CONFIG_ ENABLE_USER_PLANE
- \item 0x00000002 -- LPP_CONFIG_ ENABLE_CONTROL_PLANE
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* Assisted GLONASS Protocol Mask */
- uint8_t assistedGlonassProtocolMask_valid; /**< Must be set to true if assistedGlonassProtocolMask is being passed */
- qmiLocAssistedGlonassProtocolMaskT_v02 assistedGlonassProtocolMask;
- /**< Assisted GLONASS Protocol mask.
-
- Valid bitmasks: \n
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_RRC_CP (0x00000001) -- Assisted GLONASS is supported over RRC in the control plane
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_RRLP_UP (0x00000002) -- Assisted GLONASS is supported over RRLP in the user plane
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_LPP_UP (0x00000004) -- Assisted GLONASS is supported over LPP in the user plane;
- QMI_LOC_LPP_CONFIG_ENABLE_USER_PLANE must be set
- in the LPP configuration for this to take effect
- - QMI_LOC_ASSISTED_GLONASS_PROTOCOL_MASK_LPP_CP (0x00000008) -- Assisted GLONASS is supported over LPP in the control plane;
- QMI_LOC_LPP_CONFIG_ENABLE_CONTROL_PLANE must be set
- in the LPP configuration for this to take effect
- */
-
- /* Optional */
- /* SUPL Hash Algorithm */
- uint8_t suplHashAlgo_valid; /**< Must be set to true if suplHashAlgo is being passed */
- qmiLocSuplHashAlgoEnumT_v02 suplHashAlgo;
- /**< SUPL hash algorithm to be used.
-
- Valid values: \n
- - eQMI_LOC_SUPL_HASH_ALGO_SHA1 (0) -- SHA-1 hash algorithm for SUPL version 2.0 or later
- - eQMI_LOC_SUPL_HASH_ALGO_SHA256 (1) -- SHA-256 hash algorithm for SUPL version 2.0 or later
- */
-
- /* Optional */
- /* SUPL TLS Version */
- uint8_t suplTlsVersion_valid; /**< Must be set to true if suplTlsVersion is being passed */
- qmiLocSuplTlsVersionEnumT_v02 suplTlsVersion;
- /**< SUPL TLS version. This configuration is only
- applicable to SUPL 2.0 or later, as SUPL 1.0 always uses TLS version 1.0.
-
- Valid values: \n
- - eQMI_LOC_SUPL_TLS_VERSION_1_0 (0) -- SUPL TLS version 1.0
- - eQMI_LOC_SUPL_TLS_VERSION_1_1 (1) -- SUPL TLS version 1.1
- */
-
- /* Optional */
- /* Emergency Protocol */
- uint8_t emergencyProtocol_valid; /**< Must be set to true if emergencyProtocol is being passed */
- qmiLocEmergencyProtocolEnumT_v02 emergencyProtocol;
- /**< Protocol to be used during emergency.
-
- Valid values: \n
- - eQMI_LOC_EMERGENCY_PROTOCOL_WCDMA_CP (0) -- Use Control Plane Protocol during an emergency while on WCDMA
- - eQMI_LOC_EMERGENCY_PROTOCOL_WCDMA_UP (1) -- Use SUPL 2.0 emergency services during an emergency while on WCDMA
- */
-
- /* Optional */
- /* Wi-Fi Scan Injection Timeout Period */
- uint8_t wifiScanInjectTimeout_valid; /**< Must be set to true if wifiScanInjectTimeout is being passed */
- uint8_t wifiScanInjectTimeout;
- /**< Timeout duration that the service waits for a scan results
- injection from the control point after the event notification is sent. \n
- Values: \n
- 0 to 10 seconds
- */
-
- /* Optional */
- /* LPPe User Plane Configure */
- uint8_t lppeUpConfig_valid; /**< Must be set to true if lppeUpConfig is being passed */
- qmiLocLppeUpAuxTechMaskT_v02 lppeUpConfig;
- /**< LPPe user plane auxiliary technology mask.
-
- Valid bitmasks: \n
- - QMI_LOC_LPPE_MASK_UP_DBH (0x00000001) -- Enable Device-Based Hybrid (3D High Accuracy Position) mode on LPPe user plane.
- - QMI_LOC_LPPE_MASK_UP_AP_WIFI_MEASUREMENT (0x00000002) -- Enable WLAN AP Measurements mode on LPPe user plane.
- */
-
- /* Optional */
- /* LPPe Control Plane Configure */
- uint8_t lppeCpConfig_valid; /**< Must be set to true if lppeCpConfig is being passed */
- qmiLocLppeCpAuxTechMaskT_v02 lppeCpConfig;
- /**< LPPe control plane auxiliary technology mask.
-
- Valid bitmasks: \n
- - QMI_LOC_LPPE_MASK_CP_DBH (0x00000001) -- Enable Device-Based Hybrid (3D High Accuracy Position) mode on LPPe control plane.
- - QMI_LOC_LPPE_MASK_CP_AP_WIFI_MEASUREMENT (0x00000002) -- Enable WLAN AP Measurements mode on LPPe control plane.
- */
-}qmiLocGetProtocolConfigParametersIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSENSORSCONTROLCONFIGSENSORUSEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_ENABLE_V02 = 0, /**< Sensors data should be requested whenever a position request is
- received. If sensor data are injected, the positioning engine
- attempts to improve the heading and positioning performance using sensors.
- This is the default.
- */
- eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_DISABLE_V02 = 1, /**< Inertial sensors are not to be used to aid heading and position
- improvement. */
- QMILOCSENSORSCONTROLCONFIGSENSORUSEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSensorsControlConfigSensorUseEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSENSORSCONTROLCONFIGSENSORPROVIDERENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_SSC_V02 = 0, /**< Sensors data provider is Snapdragon Sensor Core (SSC);
- this is the default
- */
- eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_NATIVE_V02 = 1, /**< Sensors data provider is on the host processor */
- QMILOCSENSORSCONTROLCONFIGSENSORPROVIDERENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSensorsControlConfigSensorProviderEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sets the sensor control configuration. */
-typedef struct {
-
- /* Optional */
- /* Sensors Usage */
- uint8_t sensorsUsage_valid; /**< Must be set to true if sensorsUsage is being passed */
- qmiLocSensorsControlConfigSensorUseEnumT_v02 sensorsUsage;
- /**< Controls how sensors are used to aid heading and positioning
- performance.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_ENABLE (0) -- Sensors data should be requested whenever a position request is
- received. If sensor data are injected, the positioning engine
- attempts to improve the heading and positioning performance using sensors.
- This is the default.
-
- - eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_DISABLE (1) -- Inertial sensors are not to be used to aid heading and position
- improvement.
- */
-
- /* Optional */
- /* Sensors Provider */
- uint8_t sensorProvider_valid; /**< Must be set to true if sensorProvider is being passed */
- qmiLocSensorsControlConfigSensorProviderEnumT_v02 sensorProvider;
- /**< Controls which sensors data provider is to be used.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_SSC (0) -- Sensors data provider is Snapdragon Sensor Core (SSC);
- this is the default
-
- - eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_NATIVE (1) -- Sensors data provider is on the host processor
- */
-}qmiLocSetSensorControlConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sets the sensor control configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Set Sensor Control Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Sensor Control Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetSensorControlConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Retrieves the current sensor control configuration. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetSensorControlConfigReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Retrieves the current sensor control configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Get Sensor Control Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Sensors Control Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Sensors Usage */
- uint8_t sensorsUsage_valid; /**< Must be set to true if sensorsUsage is being passed */
- qmiLocSensorsControlConfigSensorUseEnumT_v02 sensorsUsage;
- /**< Controls how sensors are used to aid the heading and positioning
- performance.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_ENABLE (0) -- Sensors data should be requested whenever a position request is
- received. If sensor data are injected, the positioning engine
- attempts to improve the heading and positioning performance using sensors.
- This is the default.
-
- - eQMI_LOC_SENSOR_CONFIG_SENSOR_USE_DISABLE (1) -- Inertial sensors are not to be used to aid heading and position
- improvement.
- */
-
- /* Optional */
- /* Sensors Provider */
- uint8_t sensorProvider_valid; /**< Must be set to true if sensorProvider is being passed */
- qmiLocSensorsControlConfigSensorProviderEnumT_v02 sensorProvider;
- /**< Controls which sensors data provider to be used.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_SSC (0) -- Sensors data provider is Snapdragon Sensor Core (SSC);
- this is the default
-
- - eQMI_LOC_SENSOR_CONFIG_USE_PROVIDER_NATIVE (1) -- Sensors data provider is on the host processor
- */
-}qmiLocGetSensorControlConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocSensorPropertiesMaskT_v02;
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_GYRO_BIAS_VARIANCE_RANDOM_WALK_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000001) /**< Denotes the gyro bias variance random walk parameter */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VELOCITY_RANDOM_WALK_SPECTRAL_DENSITY_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000002) /**< Denotes the velocity random walk spectral density parameter */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_ACCELERATION_RANDOM_WALK_SPECTRAL_DENSITY_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000004) /**< Denotes the acceleration random walk spectral density parameter */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_ANGLE_RANDOM_WALK_SPECTRAL_DENSITY_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000008) /**< Denotes the angle random walk spectral density parameter */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_RATE_RANDOM_WALK_SPECTRAL_DENSITY_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000010) /**< Denotes the rate random walk spectral density parameter */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_DATA_USE_CONTROL_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000020) /**< Denotes the vehicle data use control parameter */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_VELOCITY_RWSD_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000040) /**< Denotes the vehicle velocity random walk spectral density */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ACCEL_RWSD_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000080) /**< Denotes the vehicle accelerometer random walk spectral density */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ANGLE_RWSD_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000100) /**< Denotes the vehicle angle random walk spectral density */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ANGULAR_RATE_RWSD_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000200) /**< Denotes the vehicle angular rate random walk spectral density */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ODOMETRY_SCALE_RWSD_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000400) /**< Denotes the vehicle odometry scale random walk spectral density */
-#define QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ODOMETRY_VARIANCE_V02 ((qmiLocSensorPropertiesMaskT_v02)0x00000800) /**< Denotes the vehicle odometry variance */
-typedef uint64_t qmiLocVehicleDataUseControlMaskT_v02;
-#define QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_X_AXIS_V02 ((qmiLocVehicleDataUseControlMaskT_v02)0x0000000000000001ull) /**< Enable use of X-axis vehicle acceleration sensor data */
-#define QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_Y_AXIS_V02 ((qmiLocVehicleDataUseControlMaskT_v02)0x0000000000000002ull) /**< Enable use of Y-axis vehicle acceleration sensor data */
-#define QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_Z_AXIS_V02 ((qmiLocVehicleDataUseControlMaskT_v02)0x0000000000000004ull) /**< Enable use of Z-axis vehicle acceleration sensor data */
-#define QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_X_AXIS_V02 ((qmiLocVehicleDataUseControlMaskT_v02)0x0000000000000010ull) /**< Enable use of X-axis vehicle gyroscope data */
-#define QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_Y_AXIS_V02 ((qmiLocVehicleDataUseControlMaskT_v02)0x0000000000000020ull) /**< Enable use of Y-axis vehicle gyroscope data */
-#define QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_Z_AXIS_V02 ((qmiLocVehicleDataUseControlMaskT_v02)0x0000000000000040ull) /**< Enable use of Z-axis vehicle gyroscope data */
-#define QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ODOMETRY_V02 ((qmiLocVehicleDataUseControlMaskT_v02)0x0000000000000100ull) /**< Enable use of odometry data */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sets the properties specific to the type of sensor used.
- The control point must set sensor properties before they can be
- used to aid in heading and positioning performance improvement.
- */
-typedef struct {
-
- /* Optional */
- /* Gyro Bias Random Walk Variance */
- uint8_t gyroBiasVarianceRandomWalk_valid; /**< Must be set to true if gyroBiasVarianceRandomWalk is being passed */
- float gyroBiasVarianceRandomWalk;
- /**< Specifies the gyro bias random walk variance parameter as a positive
- floating-point value. This value has internal default value 1.0e-5 radian^2/second^4.
- The gyro bias variance random walk parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Radians^2/seconds^4
-
- */
-
- /* Optional */
- /* Velocity Random Walk Spectral Density */
- uint8_t velocityRandomWalkSpectralDensity_valid; /**< Must be set to true if velocityRandomWalkSpectralDensity is being passed */
- float velocityRandomWalkSpectralDensity;
- /**< Specifies the velocity random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The velocity random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Meters/seconds^2/Hertz^0.5
-
- */
-
- /* Optional */
- /* Acceleration Random Walk Spectral Density */
- uint8_t accelerationRandomWalkSpectralDensity_valid; /**< Must be set to true if accelerationRandomWalkSpectralDensity is being passed */
- float accelerationRandomWalkSpectralDensity;
- /**< Specifies the acceleration random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The acceleration random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Meters/seconds^3/Hertz^0.5
-
- */
-
- /* Optional */
- /* Angle Random Walk Spectral Density */
- uint8_t angleRandomWalkSpectralDensity_valid; /**< Must be set to true if angleRandomWalkSpectralDensity is being passed */
- float angleRandomWalkSpectralDensity;
- /**< Specifies the angle random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The angle random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Radians/seconds/Hertz^0.5
-
- */
-
- /* Optional */
- /* Rate Random Walk Spectral Density */
- uint8_t rateRandomWalkSpectralDensity_valid; /**< Must be set to true if rateRandomWalkSpectralDensity is being passed */
- float rateRandomWalkSpectralDensity;
- /**< Specifies the rate random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The rate random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Radians/seconds^2/Hertz^0.5
-
- */
-
- /* Optional */
- /* Vehicle Data Use Control */
- uint8_t vehicleDataUse_valid; /**< Must be set to true if vehicleDataUse is being passed */
- qmiLocVehicleDataUseControlMaskT_v02 vehicleDataUse;
- /**< Identifies which portions of the vehicle data to use in location
- estimation (information provided by the message
- QMI_LOC_INJECT_VEHICLE_SENSOR_DATA). Valid bitmasks: \n
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_X_AXIS (0x0000000000000001) -- Enable use of X-axis vehicle acceleration sensor data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_Y_AXIS (0x0000000000000002) -- Enable use of Y-axis vehicle acceleration sensor data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_Z_AXIS (0x0000000000000004) -- Enable use of Z-axis vehicle acceleration sensor data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_X_AXIS (0x0000000000000010) -- Enable use of X-axis vehicle gyroscope data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_Y_AXIS (0x0000000000000020) -- Enable use of Y-axis vehicle gyroscope data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_Z_AXIS (0x0000000000000040) -- Enable use of Z-axis vehicle gyroscope data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ODOMETRY (0x0000000000000100) -- Enable use of odometry data
- \b Note: All other bits are reserved for future use and are to be set to 0. */
-
- /* Optional */
- /* Vehicle Velocity Random Walk Spectral Density */
- uint8_t vehicleVelocityRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleVelocityRandomWalkSpectralDensity is being passed */
- float vehicleVelocityRandomWalkSpectralDensity;
- /**< Vehicle velocity random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Meters/seconds^2/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Acceleration Random Walk Spectral Density */
- uint8_t vehicleAccelRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleAccelRandomWalkSpectralDensity is being passed */
- float vehicleAccelRandomWalkSpectralDensity;
- /**< Vehicle accelerometer random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Meters/seconds^3/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Angle Random Walk Spectral Density */
- uint8_t vehicleAngleRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleAngleRandomWalkSpectralDensity is being passed */
- float vehicleAngleRandomWalkSpectralDensity;
- /**< Vehicle angle random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Radians/seconds/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Angular Rate Random Walk Spectral Density */
- uint8_t vehicleAngularRateRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleAngularRateRandomWalkSpectralDensity is being passed */
- float vehicleAngularRateRandomWalkSpectralDensity;
- /**< Vehicle angular rate random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Radians/seconds^2/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Odometry Scale Factor Random Walk Spectral Density */
- uint8_t vehicleOdometryScaleFactorRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleOdometryScaleFactorRandomWalkSpectralDensity is being passed */
- float vehicleOdometryScaleFactorRandomWalkSpectralDensity;
- /**< Vehicle odometry scale factor random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: (1/seconds)/Hz^0.5 \n
- - Range: Approximately 0.0001 to 0.001 \n
- - Default: 0.001 (actual calibration recommended)
- */
-
- /* Optional */
- /* Vehicle Odometry Variance */
- uint8_t vehicleOdometryVariance_valid; /**< Must be set to true if vehicleOdometryVariance is being passed */
- float vehicleOdometryVariance;
- /**< Vehicle odometry variance of each odometry sample
- (coarseness of measurement). \n
- - Type: 32-bit float \n
- - Units: Meters^2 \n
- - Valid values: Positive values \n
- - Default: None
- */
-}qmiLocSetSensorPropertiesReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sets the properties specific to the type of sensor used.
- The control point must set sensor properties before they can be
- used to aid in heading and positioning performance improvement.
- */
-typedef struct {
-
- /* Mandatory */
- /* Set Sensor Properties Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Sensor Properties request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-
- /* Optional */
- /* Failed Set Sensor Properties */
- uint8_t failedSensorPropertiesMask_valid; /**< Must be set to true if failedSensorPropertiesMask is being passed */
- qmiLocSensorPropertiesMaskT_v02 failedSensorPropertiesMask;
- /**< This field is sent only if the status is not SUCCESS.
- Identifies the parameters that were not set successfully.
-
- Valid bitmasks:
- - QMI_LOC_SENSOR_PROPERTIES_MASK_GYRO_BIAS_VARIANCE_RANDOM_WALK (0x00000001) -- Denotes the gyro bias variance random walk parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VELOCITY_RANDOM_WALK_SPECTRAL_DENSITY (0x00000002) -- Denotes the velocity random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_ACCELERATION_RANDOM_WALK_SPECTRAL_DENSITY (0x00000004) -- Denotes the acceleration random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_ANGLE_RANDOM_WALK_SPECTRAL_DENSITY (0x00000008) -- Denotes the angle random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_RATE_RANDOM_WALK_SPECTRAL_DENSITY (0x00000010) -- Denotes the rate random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_DATA_USE_CONTROL (0x00000020) -- Denotes the vehicle data use control parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_VELOCITY_RWSD (0x00000040) -- Denotes the vehicle velocity random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ACCEL_RWSD (0x00000080) -- Denotes the vehicle accelerometer random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ANGLE_RWSD (0x00000100) -- Denotes the vehicle angle random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ANGULAR_RATE_RWSD (0x00000200) -- Denotes the vehicle angular rate random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ODOMETRY_SCALE_RWSD (0x00000400) -- Denotes the vehicle odometry scale random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ODOMETRY_VARIANCE (0x00000800) -- Denotes the vehicle odometry variance
- \vspace{-0.18in} \end{itemize1}
- */
-}qmiLocSetSensorPropertiesIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Retrieves the current sensor properties. */
-typedef struct {
-
- /* Mandatory */
- /* Sensor Properties Config Parameters */
- qmiLocSensorPropertiesMaskT_v02 getSensorPropertiesMask;
- /**< Mask denoting the sensor properties parameters to be retrieved.
-
- Valid bitmasks:
- - QMI_LOC_SENSOR_PROPERTIES_MASK_GYRO_BIAS_VARIANCE_RANDOM_WALK (0x00000001) -- Denotes the gyro bias variance random walk parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VELOCITY_RANDOM_WALK_SPECTRAL_DENSITY (0x00000002) -- Denotes the velocity random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_ACCELERATION_RANDOM_WALK_SPECTRAL_DENSITY (0x00000004) -- Denotes the acceleration random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_ANGLE_RANDOM_WALK_SPECTRAL_DENSITY (0x00000008) -- Denotes the angle random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_RATE_RANDOM_WALK_SPECTRAL_DENSITY (0x00000010) -- Denotes the rate random walk spectral density parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_DATA_USE_CONTROL (0x00000020) -- Denotes the vehicle data use control parameter
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_VELOCITY_RWSD (0x00000040) -- Denotes the vehicle velocity random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ACCEL_RWSD (0x00000080) -- Denotes the vehicle accelerometer random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ANGLE_RWSD (0x00000100) -- Denotes the vehicle angle random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ANGULAR_RATE_RWSD (0x00000200) -- Denotes the vehicle angular rate random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ODOMETRY_SCALE_RWSD (0x00000400) -- Denotes the vehicle odometry scale random walk spectral density
- - QMI_LOC_SENSOR_PROPERTIES_MASK_VEHICLE_ODOMETRY_VARIANCE (0x00000800) -- Denotes the vehicle odometry variance
- */
-}qmiLocGetSensorPropertiesReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Retrieves the current sensor properties. */
-typedef struct {
-
- /* Mandatory */
- /* Get Sensor Properties Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Sensors Properties request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Gyro Bias Random Walk Variance */
- uint8_t gyroBiasVarianceRandomWalk_valid; /**< Must be set to true if gyroBiasVarianceRandomWalk is being passed */
- float gyroBiasVarianceRandomWalk;
- /**< Specifies the gyro bias random walk variance parameter as a positive
- floating-point value. This value has internal default value 1.0e-5 radian^2/second^4.
- The gyro bias variance random walk parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Radians^2/seconds^4
-
- */
-
- /* Optional */
- /* Velocity Random Walk Spectral Density */
- uint8_t velocityRandomWalkSpectralDensity_valid; /**< Must be set to true if velocityRandomWalkSpectralDensity is being passed */
- float velocityRandomWalkSpectralDensity;
- /**< Specifies the velocity random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The velocity random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Meters/seconds^2/Hertz^0.5
-
- */
-
- /* Optional */
- /* Acceleration Random Walk Spectral Density */
- uint8_t accelerationRandomWalkSpectralDensity_valid; /**< Must be set to true if accelerationRandomWalkSpectralDensity is being passed */
- float accelerationRandomWalkSpectralDensity;
- /**< Specifies the acceleration random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The acceleration random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Meters/seconds^3/Hertz^0.5
-
- */
-
- /* Optional */
- /* Angle Random Walk Spectral Density */
- uint8_t angleRandomWalkSpectralDensity_valid; /**< Must be set to true if angleRandomWalkSpectralDensity is being passed */
- float angleRandomWalkSpectralDensity;
- /**< Specifies the angle random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The angle random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Radians/seconds/Hertz^0.5
-
- */
-
- /* Optional */
- /* Rate Random Walk Spectral Density */
- uint8_t rateRandomWalkSpectralDensity_valid; /**< Must be set to true if rateRandomWalkSpectralDensity is being passed */
- float rateRandomWalkSpectralDensity;
- /**< Specifies the rate random walk spectral density parameter as a positive
- floating-point value. This value does not have any internal defaults.
- The rate random walk spectral density parameter is derived from either the
- sensors data sheet or a sensors conformance test. \n
- - Units: Radians/seconds^2/Hertz^0.5
-
- */
-
- /* Optional */
- /* Vehicle Data Use Control */
- uint8_t vehicleDataUse_valid; /**< Must be set to true if vehicleDataUse is being passed */
- qmiLocVehicleDataUseControlMaskT_v02 vehicleDataUse;
- /**< Identifies which portions of the vehicle data to use in location
- estimation (information provided by message
- QMI_LOC_INJECT_VEHICLE_SENSOR_DATA). Valid bitmasks: \n
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_X_AXIS (0x0000000000000001) -- Enable use of X-axis vehicle acceleration sensor data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_Y_AXIS (0x0000000000000002) -- Enable use of Y-axis vehicle acceleration sensor data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ACCEL_Z_AXIS (0x0000000000000004) -- Enable use of Z-axis vehicle acceleration sensor data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_X_AXIS (0x0000000000000010) -- Enable use of X-axis vehicle gyroscope data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_Y_AXIS (0x0000000000000020) -- Enable use of Y-axis vehicle gyroscope data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_GYRO_Z_AXIS (0x0000000000000040) -- Enable use of Z-axis vehicle gyroscope data
- - QMI_LOC_VEHICLE_DATA_ENABLE_USE_MASK_ODOMETRY (0x0000000000000100) -- Enable use of odometry data
- @note1 All other bits are reserved for future use and are to be set to 0. */
-
- /* Optional */
- /* Vehicle Velocity Random Walk Spectral Density */
- uint8_t vehicleVelocityRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleVelocityRandomWalkSpectralDensity is being passed */
- float vehicleVelocityRandomWalkSpectralDensity;
- /**< Vehicle velocity random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Meters/seconds^2/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Acceleration Random Walk Spectral Density */
- uint8_t vehicleAccelRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleAccelRandomWalkSpectralDensity is being passed */
- float vehicleAccelRandomWalkSpectralDensity;
- /**< Vehicle accelerometer random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Meters/seconds^3/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Angle Random Walk Spectral Density */
- uint8_t vehicleAngleRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleAngleRandomWalkSpectralDensity is being passed */
- float vehicleAngleRandomWalkSpectralDensity;
- /**< Vehicle angle random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Radians/seconds/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Angular Rate Random Walk Spectral Density */
- uint8_t vehicleAngularRateRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleAngularRateRandomWalkSpectralDensity is being passed */
- float vehicleAngularRateRandomWalkSpectralDensity;
- /**< Vehicle angular rate random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: Radians/seconds^2/Hz^0.5 \n
- - Valid values: Positive values \n
- - Default: None
- */
-
- /* Optional */
- /* Vehicle Odometry Scale Factor Random Walk Spectral Density */
- uint8_t vehicleOdometryScaleFactorRandomWalkSpectralDensity_valid; /**< Must be set to true if vehicleOdometryScaleFactorRandomWalkSpectralDensity is being passed */
- float vehicleOdometryScaleFactorRandomWalkSpectralDensity;
- /**< Vehicle odometry scale factor random walk spectral density. \n
- - Type: 32-bit float \n
- - Units: (1/seconds)/Hz^0.5 \n
- - Range: Approximately 0.0001 to 0.001 \n
- - Default: 0.001 (actual calibration recommended)
- */
-
- /* Optional */
- /* Vehicle Odometry Variance */
- uint8_t vehicleOdometryVariance_valid; /**< Must be set to true if vehicleOdometryVariance is being passed */
- float vehicleOdometryVariance;
- /**< Vehicle odometry variance of each odometry sample
- (coarseness of measurement). \n
- - Type: 32-bit float \n
- - Units: Meters^2 \n
- - Valid values: Positive values \n
- - Default: None
- */
-}qmiLocGetSensorPropertiesIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSENSORPERFORMANCECONTROLMODEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SENSOR_PERFORMANCE_CONTROL_MODE_AUTO_V02 = 0, /**< Sensors usage is to be determined by the GNSS location engine.
- This mode can optimize power consumption and give a
- power-balanced positioning and heading enhancement using
- inertial sensors */
- eQMI_LOC_SENSOR_PERFORMANCE_CONTROL_MODE_FORCED_V02 = 1, /**< Sensors usage is to be forced ON.
- This mode can be requested by the control point when
- power consumption is not a restriction to the use of
- inertial sensors. */
- QMILOCSENSORPERFORMANCECONTROLMODEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSensorPerformanceControlModeEnumT_v02;
-/**
- @}
- */
-
-typedef uint32_t qmiLocSensorAlgorithmMaskT_v02;
-#define QMI_LOC_SENSOR_ALGORITHM_MASK_DISABLE_INS_POSITIONING_FILTER_V02 ((qmiLocSensorAlgorithmMaskT_v02)0x00000001) /**< Inertial sensors are not to be used in Accelerometer-integrated fashion with
- GNSS. They can still be used for aiding in heading improvements. */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Provides fine-grained control of sensor based positioning
- performance. */
-typedef struct {
-
- /* Optional */
- /* Sensor Performance Control Mode */
- uint8_t performanceControlMode_valid; /**< Must be set to true if performanceControlMode is being passed */
- qmiLocSensorPerformanceControlModeEnumT_v02 performanceControlMode;
- /**< Controls when sensors data is requested during GNSS fix processing.
- This field is relevant only when sensors have been enabled using the
- sensors control configuration.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_PERFORMANCE_CONTROL_MODE_AUTO (0) -- Sensors usage is to be determined by the GNSS location engine.
- This mode can optimize power consumption and give a
- power-balanced positioning and heading enhancement using
- inertial sensors
- - eQMI_LOC_SENSOR_PERFORMANCE_CONTROL_MODE_FORCED (1) -- Sensors usage is to be forced ON.
- This mode can be requested by the control point when
- power consumption is not a restriction to the use of
- inertial sensors.
- */
-
- /* Optional */
- /* Accelerometer Sampling Specification */
- uint8_t accelSamplingSpec_valid; /**< Must be set to true if accelSamplingSpec is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 accelSamplingSpec;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location
- engine is to request acceleration data to be used by the low data rate
- filter. The sensor data rate is specified in terms of the nominal number
- of samples per batch and the number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 10 Hz sampling rate and 2 Hz batching rate.
- */
-
- /* Optional */
- /* Gyroscope Sampling Specification */
- uint8_t gyroSamplingSpec_valid; /**< Must be set to true if gyroSamplingSpec is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 gyroSamplingSpec;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location
- engine is to request gyro data to be used by the high data rate filter.
- The sensor data rate is specified in terms of the nominal number of
- samples per batch and the number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 10 Hz sampling rate and 2 Hz batching rate.
- */
-
- /* Optional */
- /* Algorithm Configuration */
- uint8_t algorithmConfig_valid; /**< Must be set to true if algorithmConfig is being passed */
- qmiLocSensorAlgorithmMaskT_v02 algorithmConfig;
- /**< Sets which sensor algorithms are to be used when processing sensor data.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- DISABLE_INS_ POSITIONING_FILTER
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* High Data Rate Filter Accelerometer Sampling Specification */
- uint8_t accelSamplingSpecHigh_valid; /**< Must be set to true if accelSamplingSpecHigh is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 accelSamplingSpecHigh;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location engine is to request
- acceleration data to be used by the high data rate filter. The sensor
- data rate is specified in terms of the nominal number of samples per
- batch and the number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 100 Hz sampling rate and 4 Hz batching rate.
- */
-
- /* Optional */
- /* High Data Rate Filter Gyroscope Sampling Specification */
- uint8_t gyroSamplingSpecHigh_valid; /**< Must be set to true if gyroSamplingSpecHigh is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 gyroSamplingSpecHigh;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location engine is to request
- gyro data to be used by the high data rate filter. The sensor data rate
- is specified in terms of the nominal number of samples per batch and the
- number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 100 Hz sampling rate and 4 Hz batching rate.
- */
-}qmiLocSetSensorPerformanceControlConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocSensorPerformanceControlConfigFailureMaskT_v02;
-#define QMI_LOC_SENSOR_PERFORMANCE_CONTROL_CONFIG_PARAM_MASK_PERFORMANCE_MODE_V02 ((qmiLocSensorPerformanceControlConfigFailureMaskT_v02)0x00000001) /**< Failed to set the performance mode */
-#define QMI_LOC_SENSOR_PERFORMANCE_CONTROL_CONFIG_PARAM_MASK_ACCEL_SAMPLING_SPEC_V02 ((qmiLocSensorPerformanceControlConfigFailureMaskT_v02)0x00000002) /**< Failed to set the accelerometer sampling specification */
-#define QMI_LOC_SENSOR_PERFORMANCE_CONTROL_CONFIG_PARAM_MASK_GYRO_SAMPLING_SPEC_V02 ((qmiLocSensorPerformanceControlConfigFailureMaskT_v02)0x00000004) /**< Failed to set the gyroscope sampling specification */
-#define QMI_LOC_SENSOR_PERFORMANCE_CONTROL_CONFIG_PARAM_MASK_ALGORITHM_CONFIG_V02 ((qmiLocSensorPerformanceControlConfigFailureMaskT_v02)0x00000008) /**< Failed to set the algorithm configuration */
-#define QMI_LOC_SENSOR_PERFORMANCE_CONTROL_CONFIG_PARAM_MASK_ACCEL_SAMPLING_SPEC_HIGH_V02 ((qmiLocSensorPerformanceControlConfigFailureMaskT_v02)0x00000010) /**< Failed to set the accelerometer sampling specification */
-#define QMI_LOC_SENSOR_PERFORMANCE_CONTROL_CONFIG_PARAM_MASK_GYRO_SAMPLING_SPEC_HIGH_V02 ((qmiLocSensorPerformanceControlConfigFailureMaskT_v02)0x00000020) /**< Failed to set the gyroscope sampling specification */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Provides fine-grained control of sensor based positioning
- performance. */
-typedef struct {
-
- /* Mandatory */
- /* Set Sensor Perf Control Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Sensor Performance Control Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Failed Configuration */
- uint8_t failedConfiguration_valid; /**< Must be set to true if failedConfiguration is being passed */
- qmiLocSensorPerformanceControlConfigFailureMaskT_v02 failedConfiguration;
- /**< Identifies parameters that were not configured successfully. This field
- is sent only if the status is not a success.
-
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- PERFORMANCE_ MODE
- \item 0x00000002 -- ACCEL_SAMPLING_ SPEC
- \item 0x00000004 -- GYRO_SAMPLING_ SPEC
- \item 0x00000008 -- ALGORITHM_ CONFIG
- \item 0x00000010 -- ACCEL_SAMPLING_ SPEC_HIGH
- \item 0x00000020 -- GYRO_SAMPLING_ SPEC_HIGH
- \vspace{-0.18in} \end{itemize1}
- */
-}qmiLocSetSensorPerformanceControlConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Retrieves the current sensor performance control
- configuration. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetSensorPerformanceControlConfigReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Retrieves the current sensor performance control
- configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Get Sensor Perf Control Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Sensor Performance Control Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Performance Control Mode */
- uint8_t performanceControlMode_valid; /**< Must be set to true if performanceControlMode is being passed */
- qmiLocSensorPerformanceControlModeEnumT_v02 performanceControlMode;
- /**< Controls when sensor data is requested during GNSS fix processing.
- This field is relevant only when sensors have been enabled using the
- sensor control configuration.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_PERFORMANCE_CONTROL_MODE_AUTO (0) -- Sensors usage is to be determined by the GNSS location engine.
- This mode can optimize power consumption and give a
- power-balanced positioning and heading enhancement using
- inertial sensors
- - eQMI_LOC_SENSOR_PERFORMANCE_CONTROL_MODE_FORCED (1) -- Sensors usage is to be forced ON.
- This mode can be requested by the control point when
- power consumption is not a restriction to the use of
- inertial sensors.
- */
-
- /* Optional */
- /* Accelerometer Sampling Specification */
- uint8_t accelSamplingSpec_valid; /**< Must be set to true if accelSamplingSpec is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 accelSamplingSpec;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location engine is to request
- acceleration data to be used by the high data rate filter. The sensor
- data rate is specified in terms of the nominal number of samples per
- batch and the number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 10 Hz sampling rate and 2 Hz batching rate.
- */
-
- /* Optional */
- /* Gyroscope Sampling Specification */
- uint8_t gyroSamplingSpec_valid; /**< Must be set to true if gyroSamplingSpec is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 gyroSamplingSpec;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location engine is to request
- gyro data to be used by the high data rate filter. The sensor data
- rate is specified in terms of the nominal number of samples per batch
- and the number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 10 Hz sampling rate and 2 Hz batching rate.
- */
-
- /* Optional */
- /* Algorithm Configuration */
- uint8_t algorithmConfig_valid; /**< Must be set to true if algorithmConfig is being passed */
- qmiLocSensorAlgorithmMaskT_v02 algorithmConfig;
- /**< Informs which sensor algorithms are currently set.
-
- Valid bitmasks: \begin{itemize1}
- \item 0x00000001 -- DISABLE_INS_ POSITIONING_FILTER
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* High Data Rate Filter Accelerometer Sampling Specification */
- uint8_t accelSamplingSpecHigh_valid; /**< Must be set to true if accelSamplingSpecHigh is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 accelSamplingSpecHigh;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location engine is to request
- acceleration data to be used by the high data rate filter. The sensor
- data rate is specified in terms of the nominal number of samples per
- batch and the number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 100 Hz sampling rate and 4 Hz batching rate.
- */
-
- /* Optional */
- /* High Data Rate Filter Gyroscope Sampling Specification */
- uint8_t gyroSamplingSpecHigh_valid; /**< Must be set to true if gyroSamplingSpecHigh is being passed */
- qmiLocSensorControlConfigSamplingSpecStructT_v02 gyroSamplingSpecHigh;
- /**< \vspace{0.06in} \n Sets the nominal rate at which the GNSS location engine is to request
- gyro data to be used by the high data rate filter. The sensor data rate
- is specified in terms of the nominal number of samples per batch and the
- number of batches per second.
- However, the final control of the actual requested rate resides with
- the Sensors Manager Module/GNSS location engine. \n
- Default: 100 Hz sampling rate and 4 Hz batching rate.
- */
-}qmiLocGetSensorPerformanceControlConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects a SUPL certificate to be used in AGNSS sessions. */
-typedef struct {
-
- /* Mandatory */
- /* SUPL Certificate ID */
- uint8_t suplCertId;
- /**< Certificate ID of the SUPL certificate. \n
- - Units: Bytes \n
- - Range: 0 to 9 */
-
- /* Mandatory */
- /* SUPL Certificate Data */
- uint32_t suplCertData_len; /**< Must be set to # of elements in suplCertData */
- uint8_t suplCertData[QMI_LOC_MAX_SUPL_CERT_LENGTH_V02];
- /**< SUPL certificate contents. \n
- - Type: Array of bytes \n
- - Maximum certificate size: 2000 bytes */
-}qmiLocInjectSuplCertificateReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects a SUPL certificate to be used in AGNSS sessions. */
-typedef struct {
-
- /* Mandatory */
- /* SUPL Certificate Injection Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject SUPL Certificate request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectSuplCertificateIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Deletes a SUPL certificate. */
-typedef struct {
-
- /* Optional */
- /* SUPL Certificate ID */
- uint8_t suplCertId_valid; /**< Must be set to true if suplCertId is being passed */
- uint8_t suplCertId;
- /**< Certificate ID of the SUPL certificate to be deleted. \n
- - Units: Bytes \n
- - Range: 0 to 9 \n
- If suplCertId is not specified,
- all SUPL certificates are deleted. */
-}qmiLocDeleteSuplCertificateReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Deletes a SUPL certificate. */
-typedef struct {
-
- /* Mandatory */
- /* SUPL Certificate Deletion Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Delete SUPL Certificate request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocDeleteSuplCertificateIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocPositionEngineConfigParamMaskT_v02;
-#define QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_INJECTED_POSITION_CONTROL_V02 ((qmiLocPositionEngineConfigParamMaskT_v02)0x00000001) /**< Denotes whether the position engine uses the
- injected position in a direct position calculation. */
-#define QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_FILTER_SV_USAGE_V02 ((qmiLocPositionEngineConfigParamMaskT_v02)0x00000002) /**< Denotes whether the position engine filters the
- SV usage in the fix. */
-#define QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_STORE_ASSIST_DATA_V02 ((qmiLocPositionEngineConfigParamMaskT_v02)0x00000004) /**< Denotes whether the position engine stores assistance data
- in persistent memory. */
-#define QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_ENABLE_FASTER_TTFF_V02 ((qmiLocPositionEngineConfigParamMaskT_v02)0x00000008) /**< Denotes whether the position engine stays on to optimize
- the TTFF for the subsequent position fix. */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to configure position engine
- functionality. */
-typedef struct {
-
- /* Optional */
- /* Injected Position Control */
- uint8_t injectedPositionControl_valid; /**< Must be set to true if injectedPositionControl is being passed */
- uint8_t injectedPositionControl;
- /**< Controls how the injected position is used in the position engine.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- Use the injected position in a direct position
- calculation
- \item 0x00 (FALSE) -- Do not use the injected position in a direct
- position calculation
- \end{itemize1}
- The default value is TRUE.
- */
-
- /* Optional */
- /* Filter SV Usage */
- uint8_t filterSvUsage_valid; /**< Must be set to true if filterSvUsage is being passed */
- uint8_t filterSvUsage;
- /**< Controls whether SV usage is filtered in a position fix.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- Filter the usage of SVs in the fix
- \item 0x00 (FALSE) -- Do not filter the usage of SVs in the fix
- \end{itemize1}
- The default value is FALSE.
- */
-
- /* Optional */
- /* Store Assist Data */
- uint8_t storeAssistData_valid; /**< Must be set to true if storeAssistData is being passed */
- uint8_t storeAssistData;
- /**< Controls whether assistance data is to be stored in
- persistent memory.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- Store assistance data in persistent memory
- \item 0x00 (FALSE) -- Do not store assistance data in persistent memory
- \end{itemize1}
- The default value is TRUE.
- */
-
- /* Optional */
- /* Enable Faster TTFF */
- uint8_t enableFasterTTFF_valid; /**< Must be set to true if enableFasterTTFF is being passed */
- uint8_t enableFasterTTFF;
- /**< Allows the receiver to stay on after a position session in order to
- collect information that will help reduce the Time To First Fix (TTFF)
- when the next position request is made. The receiver will stay
- on only if the engine determines that it needs to collect some
- information. The receiver will stay on for the duration needed to
- collect the information.
- If enabled, the clients may see a delay in receiving the Engine Off
- event after the position session ends.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- Allow the engine to stay on for reduced TTFF
- \item 0x00 (FALSE) -- Do not allow the engine to stay on for reduced
- TTFF
- \end{itemize1}
- The default value is TRUE.*/
-}qmiLocSetPositionEngineConfigParametersReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to configure position engine
- functionality. */
-typedef struct {
-
- /* Mandatory */
- /* Set Position Engine Configuration Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Configuration Parameters request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Failed Parameters */
- uint8_t failedPositionEngineConfigParamMask_valid; /**< Must be set to true if failedPositionEngineConfigParamMask is being passed */
- qmiLocPositionEngineConfigParamMaskT_v02 failedPositionEngineConfigParamMask;
- /**< Identifies the parameters that were not set successfully.
- This field is sent only if the status is other than SUCCESS.
-
- Valid bitmasks:\n
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_INJECTED_POSITION_CONTROL (0x00000001) -- Denotes whether the position engine uses the
- injected position in a direct position calculation.
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_FILTER_SV_USAGE (0x00000002) -- Denotes whether the position engine filters the
- SV usage in the fix.
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_STORE_ASSIST_DATA (0x00000004) -- Denotes whether the position engine stores assistance data
- in persistent memory.
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_ENABLE_FASTER_TTFF (0x00000008) -- Denotes whether the position engine stays on to optimize
- the TTFF for the subsequent position fix.
- */
-}qmiLocSetPositionEngineConfigParametersIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the position engine
- configuration parameters. */
-typedef struct {
-
- /* Mandatory */
- /* Config Parameters */
- qmiLocPositionEngineConfigParamMaskT_v02 getPositionEngineConfigParamMask;
- /**< Mask denoting the configuration parameters to be retrieved.
-
- Valid bitmasks:
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_INJECTED_POSITION_CONTROL (0x00000001) -- Denotes whether the position engine uses the
- injected position in a direct position calculation.
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_FILTER_SV_USAGE (0x00000002) -- Denotes whether the position engine filters the
- SV usage in the fix.
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_STORE_ASSIST_DATA (0x00000004) -- Denotes whether the position engine stores assistance data
- in persistent memory.
- - QMI_LOC_POSITION_ENGINE_CONFIG_PARAM_MASK_ENABLE_FASTER_TTFF (0x00000008) -- Denotes whether the position engine stays on to optimize
- the TTFF for the subsequent position fix.
- */
-}qmiLocGetPositionEngineConfigParametersReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the position engine
- configuration parameters. */
-typedef struct {
-
- /* Mandatory */
- /* Get Position Engine Configuration Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Configuration Parameters request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Injected Position Control */
- uint8_t injectedPositionControl_valid; /**< Must be set to true if injectedPositionControl is being passed */
- uint8_t injectedPositionControl;
- /**< Specifies whether the injected position is used for a direct calculation
- in the position engine.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- The injected position is used in a direct
- position calculation
- \item 0x00 (FALSE) -- The injected position is not used in a direct
- position calculation
- \end{itemize1}
- The default value is TRUE.
- */
-
- /* Optional */
- /* Filter SV Usage */
- uint8_t filterSvUsage_valid; /**< Must be set to true if filterSvUsage is being passed */
- uint8_t filterSvUsage;
- /**< Specifies whether SV usage is filtered in a position fix.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- SV usage is filtered in the fix
- \item 0x00 (FALSE) -- SV usage is not filtered in the fix
- \end{itemize1}
- The default value is FALSE.
- */
-
- /* Optional */
- /* Store Assist Data */
- uint8_t storeAssistData_valid; /**< Must be set to true if storeAssistData is being passed */
- uint8_t storeAssistData;
- /**< Specifies whether assistance data is stored in persistent memory.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- Assistance data is stored in persistent memory
- \item 0x00 (FALSE) -- Assistance data is not stored in persistent
- memory
- \end{itemize1}
- The default value is TRUE.
- */
-
- /* Optional */
- /* Enable Faster TTFF */
- uint8_t enableFasterTTFF_valid; /**< Must be set to true if enableFasterTTFF is being passed */
- uint8_t enableFasterTTFF;
- /**< Allows the receiver to stay on after a position session in order to
- collect information that will help reduce the TTFF
- when the next position request is made. The receiver will stay
- on only if the engine determines that it needs to collect some
- information. The receiver will stay on for the duration needed to
- collect the information.
- If enabled, the clients may see a delay in receiving the Engine Off
- event after the position session ends.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- Allow the engine to stay on for reduced TTFF
- \item 0x00 (FALSE) -- Do not allow the engine to stay on for reduced
- TTFF
- \end{itemize1}
- The default value is TRUE.*/
-}qmiLocGetPositionEngineConfigParametersIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint8_t qmiLocGeofenceBreachMaskT_v02;
-#define QMI_LOC_GEOFENCE_BREACH_ENTERING_MASK_V02 ((qmiLocGeofenceBreachMaskT_v02)0x01) /**< If this mask is set, a breach event is reported
- when the Geofence is entered */
-#define QMI_LOC_GEOFENCE_BREACH_LEAVING_MASK_V02 ((qmiLocGeofenceBreachMaskT_v02)0x02) /**< If this mask is set, a breach event is reported
- when the Geofence is exited */
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCERESPONSIVENESSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_RESPONSIVENESS_LOW_V02 = 0x01, /**< The Geofence is monitored for a breach at a
- low rate of 15 minutes. The gap between the actual breach and
- the time it is reported is higher. This
- setting results in lower power usage. */
- eQMI_LOC_GEOFENCE_RESPONSIVENESS_MED_V02 = 0x02, /**< The Geofence is monitored for a breach at a
- medium rate of 2 minutes. This is the default setting. */
- eQMI_LOC_GEOFENCE_RESPONSIVENESS_HIGH_V02 = 0x03, /**< The Geofence is monitored for a breach at a
- high rate of 10 seconds. The gap between the actual breach and
- the time it is reported is low. This results
- in higher power usage. */
- eQMI_LOC_GEOFENCE_RESPONSIVENESS_ULTRA_HIGH_V02 = 0x04, /**< The Geofence is monitored for a breach at a
- very high rate of 1 second. The gap between the actual breach and
- the time it is reported is very low. This results
- in very high power usage. This setting must be avoided whenever
- possible because of the drastic power implications. */
- eQMI_LOC_GEOFENCE_RESPONSIVENESS_CUSTOM_V02 = 0x05, /**< The Geofence is monitored for a breach at a
- user defined rate. The gap between the actual breach and
- the time it is reported depends on the user setting. The power implication
- is inversely proportional to the responsiveness value set by the user.
- The higher the responsiveness value, the lower the power implications, and vice-versa. */
- QMILOCGEOFENCERESPONSIVENESSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceResponsivenessEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- double latitude;
- /**< Latitude of the center of the Geofence.*/
-
- double longitude;
- /**< Longitude of the center of the Geofence.*/
-
- uint32_t radius;
- /**< Radius of the circular Geofence in meters. */
-}qmiLocCircularGeofenceArgsStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCEPOSITIONENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_POSITION_INSIDE_V02 = 0x01, /**< Position is inside a Geofence */
- eQMI_LOC_GEOFENCE_POSITION_OUTSIDE_V02 = 0x02, /**< Position is outside a Geofence */
- QMILOCGEOFENCEPOSITIONENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofencePositionEnumT_v02;
-/**
- @}
- */
-
-typedef uint8_t qmiLocGeofenceDwellTypeMaskT_v02;
-#define QMI_LOC_GEOFENCE_DWELL_TYPE_INSIDE_MASK_V02 ((qmiLocGeofenceDwellTypeMaskT_v02)0x01) /**< If this mask is set, a dwell event is reported
- when a user dwells inside the Geofence for a specified time */
-#define QMI_LOC_GEOFENCE_DWELL_TYPE_OUTSIDE_MASK_V02 ((qmiLocGeofenceDwellTypeMaskT_v02)0x02) /**< If this mask is set, a dwell event is reported
- when a user dwells outside the Geofence for a specified time */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to add a circular Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned in the Add Circular Geofence
- indication. */
-
- /* Mandatory */
- /* Circular Geofence Arguments */
- qmiLocCircularGeofenceArgsStructT_v02 circularGeofenceArgs;
-
- /* Mandatory */
- /* Breach Event Mask */
- qmiLocGeofenceBreachMaskT_v02 breachMask;
- /**< Specifies the breach events in which the client is interested.
-
- Valid values: \begin{itemize1}
- \item 0x01 -- GEOFENCE_BREACH_ ENTERING_MASK
- \item 0x02 -- GEOFENCE_BREACH_ LEAVING_MASK
- \vspace{-0.18in} \end{itemize1} */
-
- /* Mandatory */
- /* Include Position in Breach Event */
- uint8_t includePosition;
- /**< Specifies whether the Geofence engine is to include the position
- in a breach event.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- Position will be reported with the breach event
- \item 0x00 (FALSE) -- Position will not be reported with the breach
- event
- \vspace{-0.18in} \end{itemize1} */
-
- /* Optional */
- /* Responsiveness */
- uint8_t responsiveness_valid; /**< Must be set to true if responsiveness is being passed */
- qmiLocGeofenceResponsivenessEnumT_v02 responsiveness;
- /**< Specifies the rate of detection for a Geofence breach.
- This may impact the time lag between the actual breach event and
- when it is reported. This parameter has power implications
- and is to be fine-tuned to optimize power savings.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_LOW (0x01) -- The Geofence is monitored for a breach at a
- low rate of 15 minutes. The gap between the actual breach and
- the time it is reported is higher. This
- setting results in lower power usage.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_MED (0x02) -- The Geofence is monitored for a breach at a
- medium rate of 2 minutes. This is the default setting.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_HIGH (0x03) -- The Geofence is monitored for a breach at a
- high rate of 10 seconds. The gap between the actual breach and
- the time it is reported is low. This results
- in higher power usage.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_ULTRA_HIGH (0x04) -- The Geofence is monitored for a breach at a
- very high rate of 1 second. The gap between the actual breach and
- the time it is reported is very low. This results
- in very high power usage. This setting must be avoided whenever
- possible because of the drastic power implications.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_CUSTOM (0x05) -- The Geofence is monitored for a breach at a
- user defined rate. The gap between the actual breach and
- the time it is reported depends on the user setting. The power implication
- is inversely proportional to the responsiveness value set by the user.
- The higher the responsiveness value, the lower the power implications, and vice-versa.
- */
-
- /* Optional */
- /* Confidence */
- uint8_t confidence_valid; /**< Must be set to true if confidence is being passed */
- qmiLocGeofenceConfidenceEnumT_v02 confidence;
- /**< Given a breach event, the confidence determines the probability
- that the breach happened at the Geofence boundary.
- This parameter has power implications and
- is to be fine-tuned to optimize power savings.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_CONFIDENCE_LOW (0x01) -- Geofence engine indicates a breach with
- low confidence; this setting results in lower
- power usage, and it can impact the yield because
- incorrect breach events may be sent
- - eQMI_LOC_GEOFENCE_CONFIDENCE_MED (0x02) -- (Default) Geofence engine indicates a breach with
- medium confidence
- - eQMI_LOC_GEOFENCE_CONFIDENCE_HIGH (0x03) -- Geofence engine indicates a breach with
- high confidence; this setting results in higher
- power usage
- */
-
- /* Optional */
- /* Custom Responsiveness Value */
- uint8_t customResponsivenessValue_valid; /**< Must be set to true if customResponsivenessValue is being passed */
- uint32_t customResponsivenessValue;
- /**< Specifies in seconds the user-defined rate of detection for a Geofence breach.
- This may impact the time lag between the actual breach event and
- when it is reported. The gap between the actual breach and
- the time it is reported depends on the user setting. The power implication
- is inversely proportional to the responsiveness value set by the user.
- The higher the responsiveness value, the lower the power implications, and vice-versa.
- If this field is set, the responsiveness is always treated
- as eQMI_LOC_GEOFENCE_ RESPONSIVENESS_CUSTOM.
- The minimum value supported in this field is 1 second, and the maximum value is 65535 seconds.
- An error is returned if an attempt is made to set this to an unsupported value.
- If this field is set, the responsiveness is always treated
- as eQMI_LOC_GEOFENCE_ RESPONSIVENESS_CUSTOM, which means that the other responsiveness
- types, such as eQMI_LOC_GEOFENCE _RESPONSIVENESS_LOW, eQMI_LOC_GEOFENCE_ RESPONSIVENESS_MEDIUM,
- eQMI_LOC_GEOFENCE_ RESPONSIVENESS_HIGH, and eQMI_LOC_GEOFENCE_ RESPONSIVENESS_ULTRA_HIGH are all
- disregarded.
- If this field is not set, the responsiveness will be treated as
- eQMI_LOC_GEOFENCE_ RESPONSIVENESS_LOW, eQMI_LOC_GEOFENCE_RESPONSIVENESS_MEDIUM,
- eQMI_LOC_GEOFENCE_RESPONSIVENESS_HIGH, or eQMI_LOC_GEOFENCE_RESPONSIVENESS_ULTRA_HIGH.
- */
-
- /* Optional */
- /* Dwell Time of Geofence */
- uint8_t dwellTime_valid; /**< Must be set to true if dwellTime is being passed */
- uint32_t dwellTime;
- /**< Dwell time is the time in seconds a user spends in the Geofence before a dwell
- event is sent.
- */
-
- /* Optional */
- /* Geofence Dwell Type */
- uint8_t dwellTypeMask_valid; /**< Must be set to true if dwellTypeMask is being passed */
- qmiLocGeofenceDwellTypeMaskT_v02 dwellTypeMask;
- /**< Type of dwell event in which the user is interested .
-
- Valid values: \n
- - QMI_LOC_GEOFENCE_DWELL_TYPE_INSIDE_MASK (0x01) -- If this mask is set, a dwell event is reported
- when a user dwells inside the Geofence for a specified time
- - QMI_LOC_GEOFENCE_DWELL_TYPE_OUTSIDE_MASK (0x02) -- If this mask is set, a dwell event is reported
- when a user dwells outside the Geofence for a specified time
- */
-}qmiLocAddCircularGeofenceReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to add a circular Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Add Circular Geofence Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Add Circular Geofence request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Add Circular
- Geofence request. This parameter will always be present
- if the status field is set to SUCCESS. */
-
- /* Optional */
- /* Geofence ID */
- uint8_t geofenceId_valid; /**< Must be set to true if geofenceId is being passed */
- uint32_t geofenceId;
- /**< Geofence identifier allocated by the engine.
- The client must include this identifier in all transactions
- pertaining to this Geofence. */
-}qmiLocAddCircularGeofenceIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to delete a Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence ID */
- uint32_t geofenceId;
- /**< Identifier for the Geofence that is to be deleted. */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned in the Delete Geofence
- indication. */
-}qmiLocDeleteGeofenceReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to delete a Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Delete Geofence Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Delete Geofence request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Geofence ID */
- uint8_t geofenceId_valid; /**< Must be set to true if geofenceId is being passed */
- uint32_t geofenceId;
- /**< Identifier for the Geofence that was deleted. */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Delete
- Geofence request. This parameter will always be present
- if the status field is set to SUCCESS. */
-}qmiLocDeleteGeofenceIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCEORIGINENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_ORIGIN_NETWORK_V02 = 1, /**< Geofence was initiated by a network-initiated client */
- eQMI_LOC_GEOFENCE_ORIGIN_DEVICE_V02 = 2, /**< Geofence was initiated by the device */
- QMILOCGEOFENCEORIGINENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceOriginEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCESTATEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_STATE_ACTIVE_V02 = 1, /**< Geofence is being actively monitored */
- eQMI_LOC_GEOFENCE_STATE_SUSPEND_V02 = 2, /**< Geofence monitoring is suspended */
- QMILOCGEOFENCESTATEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceStateEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to query a Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence ID */
- uint32_t geofenceId;
- /**< Identifier for the Geofence that is to be queried. */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned with the Query Geofence
- indication. */
-}qmiLocQueryGeofenceReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to query a Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Query Geofence Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Query Geofence request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Geofence ID */
- uint8_t geofenceId_valid; /**< Must be set to true if geofenceId is being passed */
- uint32_t geofenceId;
- /**< Identifier for the Geofence that was queried. */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Query
- Geofence request. This parameter will always be present
- if the status field is set to SUCCESS. */
-
- /* Optional */
- /* Geofence Origin */
- uint8_t geofenceOrigin_valid; /**< Must be set to true if geofenceOrigin is being passed */
- qmiLocGeofenceOriginEnumT_v02 geofenceOrigin;
- /**< Originator of the Geofence.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_ORIGIN_NETWORK (1) -- Geofence was initiated by a network-initiated client
- - eQMI_LOC_GEOFENCE_ORIGIN_DEVICE (2) -- Geofence was initiated by the device
- */
-
- /* Optional */
- /* Position with Respect to Geofence */
- uint8_t posWrtGeofence_valid; /**< Must be set to true if posWrtGeofence is being passed */
- qmiLocGeofencePositionEnumT_v02 posWrtGeofence;
- /**< Indicates if the client is currently inside or outside
- the Geofence.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_POSITION_INSIDE (0x01) -- Position is inside a Geofence
- - eQMI_LOC_GEOFENCE_POSITION_OUTSIDE (0x02) -- Position is outside a Geofence
- */
-
- /* Optional */
- /* Circular Geofence Parameters */
- uint8_t circularGeofenceArgs_valid; /**< Must be set to true if circularGeofenceArgs is being passed */
- qmiLocCircularGeofenceArgsStructT_v02 circularGeofenceArgs;
-
- /* Optional */
- /* Geofence State */
- uint8_t geofenceState_valid; /**< Must be set to true if geofenceState is being passed */
- qmiLocGeofenceStateEnumT_v02 geofenceState;
- /**< Specifies whether the Geofence is to be actively monitored.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_STATE_ACTIVE (1) -- Geofence is being actively monitored
- - eQMI_LOC_GEOFENCE_STATE_SUSPEND (2) -- Geofence monitoring is suspended
- */
-}qmiLocQueryGeofenceIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocMotionDetectionSourceMaskT_v02;
-#define QMI_LOC_MOTION_DETECTION_SOURCE_SENSORS_V02 ((qmiLocMotionDetectionSourceMaskT_v02)0x00000001) /**< Sensors are used for motion detection */
-#define QMI_LOC_MOTION_DETECTION_SOURCE_WIFI_V02 ((qmiLocMotionDetectionSourceMaskT_v02)0x00000002) /**< Wi-Fi is used for motion detection */
-#define QMI_LOC_MOTION_DETECTION_SOURCE_WWAN_V02 ((qmiLocMotionDetectionSourceMaskT_v02)0x00000004) /**< Wireless WAN is used for motion detection */
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGEOFENCEMOTIONSTATESENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GEOFENCE_MOTION_STATE_STATIONARY_V02 = 0, /**< Motion state Stationary -- Handset is completely stationary */
- eQMI_LOC_GEOFENCE_MOTION_STATE_FIDDLE_V02 = 1, /**< Motion state Fiddle -- Handset is not in motion but is being "fiddled" with */
- eQMI_LOC_GEOFENCE_MOTION_STATE_WALK_V02 = 2, /**< Motion state Walk -- User is walking with the handset */
- eQMI_LOC_GEOFENCE_MOTION_STATE_RUN_V02 = 3, /**< Motion state Run -- User is running with the handset */
- eQMI_LOC_GEOFENCE_MOTION_STATE_DRIVE_V02 = 4, /**< Motion state Drive -- User is driving with the handset */
- QMILOCGEOFENCEMOTIONSTATESENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGeofenceMotionStatesEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocGeofenceMotionStatesEnumT_v02 motionState;
- /**< Motion state for which information is being configured. */
-
- float motionStateSpeed;
- /**< Motion state speed in milliseconds.
-
- These are positive floating values.
- The state speed must be configured carefully. Very low speed
- configuration for a state may result in missing Geofence
- breaches in some scenarios.
-
- Typical motion state speeds: \n
- - Stationary speed -- 0 meters/sec
- - Fiddle speed -- 0 meters/sec \n
- - Walk speed -- 3 meters/sec \n
- - Run speed -- 8 meters/sec \n
- - Drive speed -- 56 meters/sec
- */
-}qmiLocGeofenceMotionStateConfigStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to set the Geofence engine configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned with the Set Geofence Configuration
- indication. */
-
- /* Optional */
- /* GNSS Unavailable Indication Timeout */
- uint8_t gnssUnavailableIndicationTimeout_valid; /**< Must be set to true if gnssUnavailableIndicationTimeout is being passed */
- uint32_t gnssUnavailableIndicationTimeout;
- /**< In a bad GNSS environment, this is the timeout after which the Geofence
- engine sends out a GNSS Unavailable indication. The GNSS Unavailable
- indication is sent under the following conditions: \begin{itemize1}
- \item If gnssUnavailableIndicationTimeout is less than
- gnssPositionSessionTimeout, the GNSS
- Unavailable timeout indication is sent after
- gnssPositionSessionTimeout expires
- \item If gnssPositionSessionTimeout is less than
- gnssUnavailableIndicationTimeout, the
- GNSS Unavailable timeout indication is sent after
- gnssUnavailableIndicationTimeout expires
- \vspace{-0.18in} \end{itemize1} */
-
- /* Optional */
- /* Max Geofences */
- uint8_t maxGeofences_valid; /**< Must be set to true if maxGeofences is being passed */
- uint32_t maxGeofences;
- /**< Identifies the maximum number of Geofences that can be supported by
- the Geofence engine. If this number is less than the currently deployed
- Geofences, this command fails.
-
- If the command succeeds, the engine supports the maximum number of
- Geofences requested, provided there is enough memory to support that
- many Geofences. Increasing this value to a very large number in a
- constrained memory environment might affect other modules negatively.
- This value is determined by phone manufacturers. The default value
- is 200. */
-
- /* Optional */
- /* Enable Motion Detection Sources */
- uint8_t enableMotionDetectionSources_valid; /**< Must be set to true if enableMotionDetectionSources is being passed */
- qmiLocMotionDetectionSourceMaskT_v02 enableMotionDetectionSources;
- /**< Identifies the sources that can be enabled for motion detection by
- the Geofence engine. The sources of motion detection that are enabled
- by the Geofence engine are dependent on the platform.
- These sources can only be set once at boot time and they are not expected to be changed after that.
- Any attempt to set the value of the motion detection sources at runtime results in an undefined behavior.
- Valid values: \n
- - QMI_LOC_MOTION_DETECTION_SOURCE_SENSORS (0x00000001) -- Sensors are used for motion detection
- - QMI_LOC_MOTION_DETECTION_SOURCE_WIFI (0x00000002) -- Wi-Fi is used for motion detection
- - QMI_LOC_MOTION_DETECTION_SOURCE_WWAN (0x00000004) -- Wireless WAN is used for motion detection */
-
- /* Optional */
- /* Enable Coarse Position Injection Usage */
- uint8_t enableCpiUsage_valid; /**< Must be set to true if enableCpiUsage is being passed */
- uint8_t enableCpiUsage;
- /**< Indicates whether external Coarse Position Injection (CPI) is used
- by the Geofence engine.
- \begin{itemize1}
- \item 0x01 (TRUE) -- CPI is enabled (default)
- \item 0x00 (FALSE) -- CPI is disabled
- \vspace{-0.18in} \end{itemize1}*/
-
- /* Optional */
- /* GNSS Position QOS Session Timeout */
- uint8_t gnssPositionSessionTimeout_valid; /**< Must be set to true if gnssPositionSessionTimeout is being passed */
- uint32_t gnssPositionSessionTimeout;
- /**< Identifies the session timeout value (in seconds) for requesting a
- position in a bad GNSS environment.
-
- Valid values: \begin{itemize1}
- \item If the gnssUnavailableIndicationTimeout value is less than
- gnssPositionSessionTimeout, in a bad GNSS environment, the GNSS
- Unavailable timeout indication is sent after
- gnssPositionSessionTimeout expires.
- \item If gnssPositionSessionTimeout is less than gnssUnavailableIndicationTimeout,
- in a bad GNSS environment, the GNSS Unavailable timeout indication
- is sent after gnssUnavailableIndicationTimeout expires. \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* GNSS Position Maximum Position Uncertainity Acceptable */
- uint8_t gnssPositionMaxPuncAcceptable_valid; /**< Must be set to true if gnssPositionMaxPuncAcceptable is being passed */
- uint32_t gnssPositionMaxPuncAcceptable;
- /**< GNSS maximum position uncertainity in meters acceptable by
- the Geofence engine.
-
- Valid values: \n
- - All positive values
- */
-
- /* Optional */
- /* Medium Responsiveness Value */
- uint8_t mediumResponsivenessValue_valid; /**< Must be set to true if mediumResponsivenessValue is being passed */
- uint32_t mediumResponsivenessValue;
- /**< Medium responsiveness value in seconds that the Geofence engine
- uses for all medium responsiveness Geofences in the Geofence engine.
-
- Valid values: \begin{itemize1}
- \item Positive values (in seconds)
- \item If the value is configured for less than 30 sec, the value is
- set at 30 sec
- \item If the value is configured for more than 600 sec, the value is
- set at 600 sec
- \item Default -- The Geofence engine uses 120 sec as the medium
- responsiveness value
- \end{itemize1}
-
- If the medium responsiveness value is changed, the responsiveness
- of the existing medium responsiveness Geofence does not change until the next
- position fix, which is based on the previous medium responsiveness
- setting.
- */
-
- /* Optional */
- /* Challenging GNSS Environment Minimum CPI Wait Interval */
- uint8_t chalGnssEnvMinCpiWaitInterval_valid; /**< Must be set to true if chalGnssEnvMinCpiWaitInterval is being passed */
- uint32_t chalGnssEnvMinCpiWaitInterval;
- /**< Number of seconds that the Geofence engine is to wait between
- CPI requests in challenging a GNSS environment.
-
- Valid values: \n
- - Positive values (in seconds)
- */
-
- /* Optional */
- /* Geofence Motion State Information */
- uint8_t motionStateInfo_valid; /**< Must be set to true if motionStateInfo is being passed */
- uint32_t motionStateInfo_len; /**< Must be set to # of elements in motionStateInfo */
- qmiLocGeofenceMotionStateConfigStructT_v02 motionStateInfo[QMI_LOC_GEOFENCE_MAX_MOTION_STATES_V02];
- /**< \vspace{4pt} \n Motion state information (e.g., motion state speed) that the
- Geofence engine is to use.
- */
-}qmiLocSetGeofenceEngineConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to set the Geofence engine configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Set Geofence Engine Configuration Status. */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Geofence Engine Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Set Geofence Configuration
- request. This parameter is always present if the status
- field is set to SUCCESS. */
-}qmiLocSetGeofenceEngineConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the Geofence engine configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned with the Get Geofence Engine Configuration
- indication. */
-}qmiLocGetGeofenceEngineConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the Geofence engine configuration. */
-typedef struct {
-
- /* Mandatory */
- /* Get Geofence Engine Configuration Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Geofence Engine Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Get Geofence Engine Configuration
- request. This parameter is always present
- if the status field is set to SUCCESS. */
-
- /* Optional */
- /* GPS Unavailable Indication Timeout */
- uint8_t gnssUnavailableIndicationTimeout_valid; /**< Must be set to true if gnssUnavailableIndicationTimeout is being passed */
- uint32_t gnssUnavailableIndicationTimeout;
- /**< In a bad GNSS environment, the timeout after which the Geofence engine
- sends out a GNSS unavailable indication. */
-
- /* Optional */
- /* Max Geofences */
- uint8_t maxGeofences_valid; /**< Must be set to true if maxGeofences is being passed */
- uint32_t maxGeofences;
- /**< Identifies the maximum number of Geofences that are currently supported
- in the Geofence engine. */
-
- /* Optional */
- /* Enabled Motion Detection Sources */
- uint8_t enabledMotionDetectionSources_valid; /**< Must be set to true if enabledMotionDetectionSources is being passed */
- qmiLocMotionDetectionSourceMaskT_v02 enabledMotionDetectionSources;
- /**< Identifies the sources that are currently enabled for motion detection
- by the Geofence engine.
-
- Valid values: \n
- - QMI_LOC_MOTION_DETECTION_SOURCE_SENSORS (0x00000001) -- Sensors are used for motion detection
- - QMI_LOC_MOTION_DETECTION_SOURCE_WIFI (0x00000002) -- Wi-Fi is used for motion detection
- - QMI_LOC_MOTION_DETECTION_SOURCE_WWAN (0x00000004) -- Wireless WAN is used for motion detection */
-
- /* Optional */
- /* Enabled for CPI Position Injection Usage */
- uint8_t enabledCpiUsage_valid; /**< Must be set to true if enabledCpiUsage is being passed */
- uint8_t enabledCpiUsage;
- /**< Indicates whether CPI usage is enabled.
- \begin{itemize1}
- \item 0x01 (TRUE) -- CPI usage is enabled
- \item 0x00 (FALSE) -- CPI usage is disabled
- \vspace{-0.18in} \end{itemize1}*/
-}qmiLocGetGeofenceEngineConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to edit a Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Geofence ID */
- uint32_t geofenceId;
- /**< Identifier for the Geofence to be edited. */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Edit Geofence
- request. This parameter will always be present if the
- status field is set to SUCCESS.
- */
-
- /* Optional */
- /* Geofence State */
- uint8_t geofenceState_valid; /**< Must be set to true if geofenceState is being passed */
- qmiLocGeofenceStateEnumT_v02 geofenceState;
- /**< Specifies whether the Geofence is to be actively monitored.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_STATE_ACTIVE (1) -- Geofence is being actively monitored
- - eQMI_LOC_GEOFENCE_STATE_SUSPEND (2) -- Geofence monitoring is suspended
- */
-
- /* Optional */
- /* Breach Event Mask */
- uint8_t breachMask_valid; /**< Must be set to true if breachMask is being passed */
- qmiLocGeofenceBreachMaskT_v02 breachMask;
- /**< Specifies the breach events in which the client is interested.
-
- Valid values: \begin{itemize1}
- \item 0x01 -- GEOFENCE_BREACH_ ENTERING_MASK
- \item 0x02 -- GEOFENCE_BREACH_ LEAVING_MASK
- \vspace{-0.18in} \end{itemize1} */
-
- /* Optional */
- /* Responsiveness */
- uint8_t responsiveness_valid; /**< Must be set to true if responsiveness is being passed */
- qmiLocGeofenceResponsivenessEnumT_v02 responsiveness;
- /**< Specifies the rate of detection for a Geofence breach.
- This may impact the time lag between the actual breach event and
- when it is reported. This parameter has power implications
- and is to be fine-tuned to optimize power savings.
-
- Valid values: \n
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_LOW (0x01) -- The Geofence is monitored for a breach at a
- low rate of 15 minutes. The gap between the actual breach and
- the time it is reported is higher. This
- setting results in lower power usage.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_MED (0x02) -- The Geofence is monitored for a breach at a
- medium rate of 2 minutes. This is the default setting.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_HIGH (0x03) -- The Geofence is monitored for a breach at a
- high rate of 10 seconds. The gap between the actual breach and
- the time it is reported is low. This results
- in higher power usage.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_ULTRA_HIGH (0x04) -- The Geofence is monitored for a breach at a
- very high rate of 1 second. The gap between the actual breach and
- the time it is reported is very low. This results
- in very high power usage. This setting must be avoided whenever
- possible because of the drastic power implications.
- - eQMI_LOC_GEOFENCE_RESPONSIVENESS_CUSTOM (0x05) -- The Geofence is monitored for a breach at a
- user defined rate. The gap between the actual breach and
- the time it is reported depends on the user setting. The power implication
- is inversely proportional to the responsiveness value set by the user.
- The higher the responsiveness value, the lower the power implications, and vice-versa.
- */
-}qmiLocEditGeofenceReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocGeofenceConfigParamMaskT_v02;
-#define QMI_LOC_GEOFENCE_PARAM_MASK_GEOFENCE_STATE_V02 ((qmiLocGeofenceConfigParamMaskT_v02)0x00000001) /**< Mask for the Geofence state parameter. */
-#define QMI_LOC_GEOFENCE_PARAM_MASK_BREACH_MASK_V02 ((qmiLocGeofenceConfigParamMaskT_v02)0x00000002) /**< Mask for Geofence breach mask parameter. */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to edit a Geofence. */
-typedef struct {
-
- /* Mandatory */
- /* Edit Geofence Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Edit Geofence request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-
- /* Optional */
- /* Geofence ID */
- uint8_t geofenceId_valid; /**< Must be set to true if geofenceId is being passed */
- uint32_t geofenceId;
- /**< Identifier for the Geofence that was edited. */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is specified in the Edit Geofence request. */
-
- /* Optional */
- /* Failed Parameters */
- uint8_t failedParams_valid; /**< Must be set to true if failedParams is being passed */
- qmiLocGeofenceConfigParamMaskT_v02 failedParams;
- /**< Specified only when the status is not set to SUCCESS. If
- the mask corresponding to a field is set, it indicates that
- the Geofence parameter could not be edited.
-
- Valid values: \begin{itemize1}
- \item 0x00000001 -- GEOFENCE_PARAM_ MASK_GEOFENCE_STATE
- \item 0x00000002 -- GEOFENCE_PARAM_ MASK_BREACH_MASK
- \vspace{-0.18in} \end{itemize1} */
-}qmiLocEditGeofenceIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to get time zone information. */
-typedef struct {
-
- /* Mandatory */
- /* Get Time Zone Info Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Time Zone Info request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocEventGetTimeZoneReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint64_t dstOffset;
- /**< Offset for Daylight Savings Time in seconds. This is zero if the time zone is not in Daylight Savings
- Time during the specified UTC timestamp. */
-
- uint64_t rawOffset;
- /**< Offset from UTC (in seconds) for the current location. This does not take daylight savings into account. */
-}qmiLocTimeZoneStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject time zone information. */
-typedef struct {
-
- /* Mandatory */
- /* UTC Time */
- uint64_t timeUtc;
- /**< UTC time since Jan. 1, 1970.\n
- - Units: Milliseconds */
-
- /* Mandatory */
- /* Time Zone Information */
- qmiLocTimeZoneStructT_v02 timeZone;
-}qmiLocInjectTimeZoneInfoReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject time zone information. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Time Zone Info Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the inject time zone information.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectTimeZoneInfoIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the best available
- position estimate from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned in the Get Best Available Position indication. */
-}qmiLocGetBestAvailablePositionReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the best available
- position estimate from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get Best Available Position Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Best Available Position request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Get Best
- Available Position request. This parameter will
- always be present if the status field is set to
- SUCCESS. */
-
- /* Optional */
- /* Latitude */
- uint8_t latitude_valid; /**< Must be set to true if latitude is being passed */
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Optional */
- /* Longitude */
- uint8_t longitude_valid; /**< Must be set to true if longitude is being passed */
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Optional */
- /* Circular Horizontal Position Uncertainty */
- uint8_t horUncCircular_valid; /**< Must be set to true if horUncCircular is being passed */
- float horUncCircular;
- /**< Horizontal position uncertainty (circular).\n
- - Units: Meters */
-
- /* Optional */
- /* Altitude With Respect to Ellipsoid */
- uint8_t altitudeWrtEllipsoid_valid; /**< Must be set to true if altitudeWrtEllipsoid is being passed */
- float altitudeWrtEllipsoid;
- /**< Altitude with respect to the WGS84 ellipsoid.\n
- - Units: Meters \n
- - Range: -500 to 15883 */
-
- /* Optional */
- /* Vertical Uncertainty */
- uint8_t vertUnc_valid; /**< Must be set to true if vertUnc is being passed */
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- /* Optional */
- /* UTC Timestamp */
- uint8_t timestampUtc_valid; /**< Must be set to true if timestampUtc is being passed */
- uint64_t timestampUtc;
- /**< UTC timestamp.
- \begin{itemize1}
- \item Units: Milliseconds since Jan. 1, 1970
- \vspace{-0.18in} \end{itemize1} */
-
- /* Optional */
- /* Time Uncertainty */
- uint8_t timeUnc_valid; /**< Must be set to true if timeUnc is being passed */
- float timeUnc;
- /**< Time uncertainty. \n
- - Units: Milliseconds */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty Semi-Minor Axis */
- uint8_t horUncEllipseSemiMinor_valid; /**< Must be set to true if horUncEllipseSemiMinor is being passed */
- float horUncEllipseSemiMinor;
- /**< Semi-minor axis of horizontal elliptical uncertainty. \n
- - Units: Meters */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty Semi-Major Axis */
- uint8_t horUncEllipseSemiMajor_valid; /**< Must be set to true if horUncEllipseSemiMajor is being passed */
- float horUncEllipseSemiMajor;
- /**< Semi-major axis of horizontal elliptical uncertainty. \n
- - Units: Meters */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty Azimuth */
- uint8_t horUncEllipseOrientAzimuth_valid; /**< Must be set to true if horUncEllipseOrientAzimuth is being passed */
- float horUncEllipseOrientAzimuth;
- /**< Elliptical horizontal uncertainty azimuth of orientation. \n
- - Units: Decimal degrees \n
- - Range: 0 to 180 */
-
- /* Optional */
- /* Horizontal Circular Confidence */
- uint8_t horCircularConfidence_valid; /**< Must be set to true if horCircularConfidence is being passed */
- uint8_t horCircularConfidence;
- /**< Horizontal circular uncertainty confidence. \n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Horizontal Elliptical Confidence */
- uint8_t horEllipticalConfidence_valid; /**< Must be set to true if horEllipticalConfidence is being passed */
- uint8_t horEllipticalConfidence;
- /**< Horizontal elliptical uncertainty confidence. \n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Horizontal Reliability */
- uint8_t horReliability_valid; /**< Must be set to true if horReliability is being passed */
- qmiLocReliabilityEnumT_v02 horReliability;
- /**< Specifies the reliability of the horizontal position.
-
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Horizontal Speed */
- uint8_t horSpeed_valid; /**< Must be set to true if horSpeed is being passed */
- float horSpeed;
- /**< Horizontal speed. \n
- - Units: Meters/second */
-
- /* Optional */
- /* Horizontal Speed Uncertainty */
- uint8_t horSpeedUnc_valid; /**< Must be set to true if horSpeedUnc is being passed */
- float horSpeedUnc;
- /**< Horizontal speed uncertainty. \n
- - Units: Meters/second */
-
- /* Optional */
- /* Altitude With Respect to Sea Level */
- uint8_t altitudeWrtMeanSeaLevel_valid; /**< Must be set to true if altitudeWrtMeanSeaLevel is being passed */
- float altitudeWrtMeanSeaLevel;
- /**< Altitude with respect to mean sea level. \n
- - Units: Meters */
-
- /* Optional */
- /* Vertical Confidence */
- uint8_t vertConfidence_valid; /**< Must be set to true if vertConfidence is being passed */
- uint8_t vertConfidence;
- /**< Vertical uncertainty confidence. \n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Vertical Reliability */
- uint8_t vertReliability_valid; /**< Must be set to true if vertReliability is being passed */
- qmiLocReliabilityEnumT_v02 vertReliability;
- /**< Specifies the reliability of the vertical position.
-
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Vertical Speed */
- uint8_t vertSpeed_valid; /**< Must be set to true if vertSpeed is being passed */
- float vertSpeed;
- /**< Vertical speed. \n
- - Units: Meters/second */
-
- /* Optional */
- /* Vertical Speed Uncertainty */
- uint8_t vertSpeedUnc_valid; /**< Must be set to true if vertSpeedUnc is being passed */
- float vertSpeedUnc;
- /**< Vertical speed uncertainty. \n
- - Units: Meters/second */
-
- /* Optional */
- /* Heading */
- uint8_t heading_valid; /**< Must be set to true if heading is being passed */
- float heading;
- /**< Heading. \n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- /* Optional */
- /* Heading Uncertainty */
- uint8_t headingUnc_valid; /**< Must be set to true if headingUnc is being passed */
- float headingUnc;
- /**< Heading uncertainty. \n
- - Type: Floating point \n
- - Range: 0 to 359.999 */
-
- /* Optional */
- /* Magnetic Deviation */
- uint8_t magneticDeviation_valid; /**< Must be set to true if magneticDeviation is being passed */
- float magneticDeviation;
- /**< Difference between the bearing to true north and the bearing shown
- on a magnetic compass. The deviation is positive when the magnetic
- north is east of true north. */
-
- /* Optional */
- /* Technology Used Mask */
- uint8_t technologyMask_valid; /**< Must be set to true if technologyMask is being passed */
- qmiLocPosTechMaskT_v02 technologyMask;
- /**< Technology used in computing this fix.
- Valid bitmasks: \n
- - QMI_LOC_POS_TECH_MASK_SATELLITE (0x00000001) -- Satellites were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_CELLID (0x00000002) -- Cell towers were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_WIFI (0x00000004) -- Wi-Fi access points were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_SENSORS (0x00000008) -- Sensors were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_REFERENCE_LOCATION (0x00000010) -- Reference Location was used to generate the fix
- - QMI_LOC_POS_TECH_MASK_INJECTED_COARSE_POSITION (0x00000020) -- Coarse position injected into the location engine was used to
- generate the fix
- - QMI_LOC_POS_TECH_MASK_AFLT (0x00000040) -- AFLT was used to generate the fix
- - QMI_LOC_POS_TECH_MASK_HYBRID (0x00000080) -- GNSS and network-provided measurements were used to
- generate the fix
- */
-
- /* Optional */
- /* Dilution of Precision */
- uint8_t DOP_valid; /**< Must be set to true if DOP is being passed */
- qmiLocDOPStructT_v02 DOP;
-
- /* Optional */
- /* GPS Time */
- uint8_t gpsTime_valid; /**< Must be set to true if gpsTime is being passed */
- qmiLocGPSTimeStructT_v02 gpsTime;
-
- /* Optional */
- /* Time Source */
- uint8_t timeSrc_valid; /**< Must be set to true if timeSrc is being passed */
- qmiLocTimeSourceEnumT_v02 timeSrc;
- /**< Time source.
- Valid values: \n
- - eQMI_LOC_TIME_SRC_INVALID (0) -- Invalid time.
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TRANSFER (1) -- Time is set by the 1X system
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TAGGING (2) -- Time is set by WCDMA/GSM time tagging (that is,
- associating network time with GPS time)
- - eQMI_LOC_TIME_SRC_EXTERNAL_INPUT (3) -- Time is set by an external injection
- - eQMI_LOC_TIME_SRC_TOW_DECODE (4) -- Time is set after decoding over-the-air GPS navigation data
- from one GPS satellite
- - eQMI_LOC_TIME_SRC_TOW_CONFIRMED (5) -- Time is set after decoding over-the-air GPS navigation data
- from multiple satellites
- - eQMI_LOC_TIME_SRC_TOW_AND_WEEK_CONFIRMED (6) -- Both time of the week and the GPS week number are known
- - eQMI_LOC_TIME_SRC_NAV_SOLUTION (7) -- Time is set by the position engine after the fix is obtained
- - eQMI_LOC_TIME_SRC_SOLVE_FOR_TIME (8) -- Time is set by the position engine after performing SFT;
- this is done when the clock time uncertainty is large
- - eQMI_LOC_TIME_SRC_GLO_TOW_DECODE (9) -- Time is set after decoding GLO satellites
- - eQMI_LOC_TIME_SRC_TIME_TRANSFORM (10) -- Time is set after transforming the GPS to GLO time
- - eQMI_LOC_TIME_SRC_WCDMA_SLEEP_TIME_TAGGING (11) -- Time is set by the sleep time tag provided by the WCDMA network
- - eQMI_LOC_TIME_SRC_GSM_SLEEP_TIME_TAGGING (12) -- Time is set by the sleep time tag provided by the GSM network
- - eQMI_LOC_TIME_SRC_UNKNOWN (13) -- Source of the time is unknown
- - eQMI_LOC_TIME_SRC_SYSTEM_TIMETICK (14) -- Time is derived from the system clock (better known as the slow clock);
- GNSS time is maintained irrespective of the GNSS receiver state
- - eQMI_LOC_TIME_SRC_QZSS_TOW_DECODE (15) -- Time is set after decoding QZSS satellites
- - eQMI_LOC_TIME_SRC_BDS_TOW_DECODE (16) -- Time is set after decoding BDS satellites
- - eQMI_LOC_TIME_SRC_GAL_TOW_DECODE (17) -- Time is set after decoding GAL satellites
- */
-
- /* Optional */
- /* Sensor Data Usage */
- uint8_t sensorDataUsage_valid; /**< Must be set to true if sensorDataUsage is being passed */
- qmiLocSensorUsageIndicatorStructT_v02 sensorDataUsage;
-
- /* Optional */
- /* SVs Used to Calculate the Fix */
- uint8_t gnssSvUsedList_valid; /**< Must be set to true if gnssSvUsedList is being passed */
- uint32_t gnssSvUsedList_len; /**< Must be set to # of elements in gnssSvUsedList */
- uint16_t gnssSvUsedList[QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02];
- /**< Each entry in the list contains the SV ID of a satellite
- used for calculating this position report. The following
- information is associated with each SV ID: \n
- Range: \n
- - For GPS: 1 to 32 \n
- - For GLONASS: 65 to 96 \n
- - For SBAS: 120 to 158 and 183 to 187 \n
- - For QZSS: 193 to 197 \n
- - For BDS: 201 to 237 \n
- - For GAL: 301 to 336
- */
-}qmiLocGetBestAvailablePositionIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCMOTIONSTATEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_MOTION_STATE_UNKNOWN_V02 = 0, /**< Device state is not known */
- eQMI_LOC_MOTION_STATE_STATIONARY_V02 = 1, /**< Device state is Stationary */
- eQMI_LOC_MOTION_STATE_IN_MOTION_V02 = 2, /**< Device state is In Motion */
- QMILOCMOTIONSTATEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocMotionStateEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCMOTIONMODEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_MOTION_MODE_UNKNOWN_V02 = 0, /**< Device movement is not known */
- eQMI_LOC_MOTION_MODE_STATIONARY_V02 = 1, /**< Device is not moving */
- eQMI_LOC_MOTION_MODE_PEDESTRIAN_UNKNOWN_V02 = 200, /**< Device movement is in Pedestrian mode; nothing else is known about the movement */
- eQMI_LOC_MOTION_MODE_PEDESTRIAN_WALKING_V02 = 201, /**< Device movement is in pedestrian Walking mode */
- eQMI_LOC_MOTION_MODE_PEDESTRIAN_RUNNING_V02 = 202, /**< Device movement is in pedestrian Running mode */
- eQMI_LOC_MOTION_MODE_VEHICLE_UNKNOWN_V02 = 300, /**< Device movement is in Vehicular mode; nothing else is known about the movement */
- QMILOCMOTIONMODEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocMotionModeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocMotionStateEnumT_v02 motion_state;
- /**< Current motion state of the user.
-
- Valid values: \n
- - eQMI_LOC_MOTION_STATE_UNKNOWN (0) -- Device state is not known
- - eQMI_LOC_MOTION_STATE_STATIONARY (1) -- Device state is Stationary
- - eQMI_LOC_MOTION_STATE_IN_MOTION (2) -- Device state is In Motion
- */
-
- qmiLocMotionModeEnumT_v02 motion_mode;
- /**< Modes of user motion.
-
- Valid values: \n
- - eQMI_LOC_MOTION_MODE_UNKNOWN (0) -- Device movement is not known
- - eQMI_LOC_MOTION_MODE_STATIONARY (1) -- Device is not moving
- - eQMI_LOC_MOTION_MODE_PEDESTRIAN_UNKNOWN (200) -- Device movement is in Pedestrian mode; nothing else is known about the movement
- - eQMI_LOC_MOTION_MODE_PEDESTRIAN_WALKING (201) -- Device movement is in pedestrian Walking mode
- - eQMI_LOC_MOTION_MODE_PEDESTRIAN_RUNNING (202) -- Device movement is in pedestrian Running mode
- - eQMI_LOC_MOTION_MODE_VEHICLE_UNKNOWN (300) -- Device movement is in Vehicular mode; nothing else is known about the movement
- */
-
- float probability_of_state;
- /**< Probability that the device is actually undergoing the motion state
- specified by the combination of the values of motion_state, motion_mode,
- and motion_sub_mode. \vspace{0.1in}
-
- This value is a floating point number in the range of 0 to 100, in
- units of percent probability. Any value greater than 99.9999 is
- applied as 99.9999. \vspace{0.1in}
-
- It is recommended that if a particular combination of motion_state and
- motion_mode cannot be determined with more than 50 percent confidence,
- that a more general statement of user motion be made.
- For example, if the mode of In-Motion + Pedestrian-Running can only be
- determined with 50 percent probability, and the simpler statement of In-Motion
- can be determined with 90 percent probability, it is recommended that this field
- be used to simply state In-Motion with 90 percent probability. \vspace{0.1in}
-
- If the motion_state is not known, the value in this field is not used.
- */
-
- uint16_t age;
- /**< Age of the motion data in milliseconds at the time of injection.
- */
-
- uint16_t timeout;
- /**< If the age of the motion data input exceeds the timeout value, the data
- will no longer be used. The timeout value is in units of milliseconds.
- Values in the range of 0 to 10000 are accepted. If 65535 is provided,
- the motion data input is applied until the next input is
- received. \n
-
- If the determination of motion data is an instantaneous observation
- and no notice is guaranteed to be given via the QMI on a change in the
- state of the motion data, it is recommended that this field be set to 0. \vspace{0.1in}
-
- If the determination of motion data is continuously monitored
- external to the QMI and an update is always applied to the QMI upon any
- change in state, a value of 65535 is used for this field.
- Note that in this case, if a certain mode is set and is not later
- unset (e.g., by sending in the request message with a user motion
- state of Unknown), the value is applied indefinitely.
- */
-}qmiLocMotionDataStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects motion data for MSM GPS service use. */
-typedef struct {
-
- /* Mandatory */
- /* Motion Data */
- qmiLocMotionDataStructT_v02 motion_data;
-}qmiLocInjectMotionDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects motion data for MSM GPS service use. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Motion Data Request Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Motion Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectMotionDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to retrieve the list of network
- initiated Geofence IDs. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The same transaction ID
- will be returned in the Get NI Geofence ID List indication. */
-}qmiLocGetNiGeofenceIdListReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to retrieve the list of network
- initiated Geofence IDs. */
-typedef struct {
-
- /* Mandatory */
- /* Get NI Geofence ID List Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get NI Geofence ID List request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Get NI
- Geofence ID List request. */
-
- /* Optional */
- /* NI Geofence ID List */
- uint8_t niGeofenceIdList_valid; /**< Must be set to true if niGeofenceIdList is being passed */
- uint32_t niGeofenceIdList_len; /**< Must be set to # of elements in niGeofenceIdList */
- uint32_t niGeofenceIdList[QMI_LOC_MAX_NI_GEOFENCE_ID_LIST_LENGTH_V02];
- /**< List containing the NI Geofence IDs.
- - Type: Array of unsigned 32-bit integers \n
- - Maximum NI Geofence ID List length: 16 */
-}qmiLocGetNiGeofenceIdListIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t MCC;
- /**< GSM mobile country code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-
- uint32_t MNC;
- /**< GSM mobile network code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-
- uint32_t LAC;
- /**< GSM location area code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-
- uint32_t CID;
- /**< GSM cell identification. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-}qmiLocGSMCellIdStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects GSM cell information into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* GSM Cell ID */
- qmiLocGSMCellIdStructT_v02 gsmCellId;
- /**< \vspace{0.06in} \n Identifies the GSM cell on which the device is currently camped. */
-
- /* Mandatory */
- /* Roaming Status */
- uint8_t roamingStatus;
- /**< Indicates whether the device is roaming.
- \begin{itemize1}
- \item 0x01 (TRUE) -- Device is roaming
- \item 0x00 (FALSE) -- Device is not roaming
- \vspace{-0.18in} \end{itemize1}*/
-
- /* Optional */
- /* Timing Advance */
- uint8_t timingAdvance_valid; /**< Must be set to true if timingAdvance is being passed */
- uint32_t timingAdvance;
- /**< Round trip delay between the MS and the BS, in units of 3.69 microseconds.
- Refer to 3GPP \hyperref[TS 05.10]{TS 05.10} and \hyperref[TS 45.010]{TS 45.010}. */
-}qmiLocInjectGSMCellInfoReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects GSM cell information into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* Inject GSM Cell Info Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject GSM Cell Info request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectGSMCellInfoIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCROAMINGSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_PHONE_NOT_ROAMING_V02 = 1, /**< Modem is camped on a home network */
- eQMI_LOC_PHONE_ROAMING_V02 = 2, /**< Modem is camped on a roaming network */
- QMILOCROAMINGSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocRoamingStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t mcc;
- /**< WCDMA mobile country code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-
- uint32_t mnc;
- /**< WCDMA mobile network code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-
- uint32_t cid;
- /**< WCDMA cell identity. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-}qmiLocWCDMACellIdStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects WCDMA cell information into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* WCDMA Cell ID */
- qmiLocWCDMACellIdStructT_v02 wcdmaCellId;
- /**< \n Identifies the WCDMA cell on which the device is currently camped. */
-
- /* Mandatory */
- /* Roaming Status */
- qmiLocRoamingStatusEnumT_v02 roamingStatus;
- /**< Indicates whether the device is roaming.
-
- Valid values: \n
- - eQMI_LOC_PHONE_NOT_ROAMING (1) -- Modem is camped on a home network
- - eQMI_LOC_PHONE_ROAMING (2) -- Modem is camped on a roaming network
- */
-
- /* Optional */
- /* Cell Frequency */
- uint8_t freq_valid; /**< Must be set to true if freq is being passed */
- uint32_t freq;
- /**< Frequency information of the serving cell. \n
- Valid range: 0 to 16383 \n
- Refer to 3GPP \hyperref[TS 25.331]{TS 25.331}. */
-
- /* Optional */
- /* Primary Scrambling Code */
- uint8_t psc_valid; /**< Must be set to true if psc is being passed */
- uint32_t psc;
- /**< Primary scrambling code of the serving cell. \n
- Valid range: 0 to 511 \n
- Refer to 3GPP \hyperref[TS 25.331]{TS 25.331}. */
-}qmiLocInjectWCDMACellInfoReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects WCDMA cell information into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* Inject WCDMA Cell Info Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject WCDMA Cell Info request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectWCDMACellInfoIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t mcc;
- /**< TDSCDMA mobile country code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-
- uint32_t mnc;
- /**< TDSCDMA mobile network code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-
- uint32_t cid;
- /**< TDSCDMA cell identity. Refer to 3GPP \hyperref[TS 25.331]{TS 25.331}. */
-
- uint32_t lac;
- /**< TDSCDMA location area code. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}. */
-}qmiLocTDSCDMACellIdStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects TDSCDMA cell information into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* TDSCDMA Cell ID */
- qmiLocTDSCDMACellIdStructT_v02 tdscdmaCellId;
- /**< \n Identifies the TDSCDMA cell on which the device is currently camped. */
-
- /* Mandatory */
- /* Roaming Status */
- qmiLocRoamingStatusEnumT_v02 roamingStatus;
- /**< Indicates whether the device is roaming.
-
- Valid values: \n
- - eQMI_LOC_PHONE_NOT_ROAMING (1) -- Modem is camped on a home network
- - eQMI_LOC_PHONE_ROAMING (2) -- Modem is camped on a roaming network
- */
-
- /* Optional */
- /* Cell Frequency */
- uint8_t freq_valid; /**< Must be set to true if freq is being passed */
- uint32_t freq;
- /**< Frequency information of the serving cell. \n
- Valid range: 0 to 16383 \n
- Refer to 3GPP \hyperref[TS 25.331]{TS 25.331}. */
-}qmiLocInjectTDSCDMACellInfoReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects TDSCDMA cell information into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* Inject TDSCDMA Cell Info Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject TDSCDMA Cell Info request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectTDSCDMACellInfoIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects the phone's subscriber ID into the location engine. */
-typedef struct {
-
- /* Optional */
- /* Preferred IMSI */
- uint8_t preferredIMSI_valid; /**< Must be set to true if preferredIMSI is being passed */
- uint64_t preferredIMSI;
- /**< IMSI number of the preferred RAT. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}.*/
-
- /* Optional */
- /* Preferred MSISDN */
- uint8_t preferredMSISDN_valid; /**< Must be set to true if preferredMSISDN is being passed */
- uint64_t preferredMSISDN;
- /**< MSISDN number of the preferred RAT. Refer to \hyperref[ITU-T E.212]{ITU-T E.212}.*/
-}qmiLocInjectSubscriberIDReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects the phone's subscriber ID into the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Subscriber ID Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Subscriber ID request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectSubscriberIDIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCINJECTEDNETWORKINITIATEDMESSAGETYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_INJECTED_NETWORK_INITIATED_MESSAGE_TYPE_SUPL_V02 = 0, /**< SUPL network-initiated message is being injected. */
- QMILOCINJECTEDNETWORKINITIATEDMESSAGETYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocInjectedNetworkInitiatedMessageTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects a network-initiated message into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* Injected Network Initiated Message Type */
- qmiLocInjectedNetworkInitiatedMessageTypeEnumT_v02 injectedNIMessageType;
- /**< Type of the network-initiated message being injected.
-
- Valid values: \n
- - eQMI_LOC_INJECTED_NETWORK_INITIATED_MESSAGE_TYPE_SUPL (0) -- SUPL network-initiated message is being injected. */
-
- /* Mandatory */
- /* Injected Network Initiated Message */
- uint32_t injectedNIMessage_len; /**< Must be set to # of elements in injectedNIMessage */
- uint8_t injectedNIMessage[QMI_LOC_MAX_INJECTED_NETWORK_INITIATED_MESSAGE_LENGTH_V02];
- /**< Network-initiated message body.
- If the inject NI message type is TYPE_SUPL, the message contains
- a SUPL INIT message as defined in OMA-TS-ULP-V2_\hyperref[0-20110527-C]{0-20110527-C}. */
-}qmiLocInjectNetworkInitiatedMessageReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects a network-initiated message into the location
- engine. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Network Initiated Message Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Network Initiated Message request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectNetworkInitiatedMessageIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Notifies the location engine that the device is out of
- service. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocWWANOutOfServiceNotificationReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the location engine that the device is out of
- service. */
-typedef struct {
-
- /* Mandatory */
- /* Notify WWAN Out of Service Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Notify WWAN Out of Service request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocWWANOutOfServiceNotificationIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject pedometer data
- into the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Time Source */
- qmiLocSensorDataTimeSourceEnumT_v02 timeSource;
- /**< Time source for the pedometer. The location service uses
- this field to identify the time reference used in the
- pedometer data time stamp.
-
- Valid values: \n
- - eQMI_LOC_SENSOR_TIME_SOURCE_UNSPECIFIED (0) -- Sensor time source is unspecified
- - eQMI_LOC_SENSOR_TIME_SOURCE_COMMON (1) -- Time source is common between the sensors and
- the location engine
- */
-
- /* Mandatory */
- /* Pedometer Report Timestamp */
- uint32_t timestamp;
- /**< Time stamp of the last step event in this report, that is, the time stamp
- of the step event that caused this report to be generated.
- The time stamp is in the time reference scale that is
- used by the pedometer time source. \n
- - Units: Milliseconds */
-
- /* Mandatory */
- /* Time Interval */
- uint32_t timeInterval;
- /**< Time interval during which the step count was calculated. Subtracting
- timeInterval from the timestamp field yields the time when
- the step detection for the first step in this report started. \n
- - Units: Milliseconds */
-
- /* Mandatory */
- /* Step Count */
- uint32_t stepCount;
- /**< Number of steps counted during the time interval. */
-
- /* Optional */
- /* Step Confidence */
- uint8_t stepConfidence_valid; /**< Must be set to true if stepConfidence is being passed */
- uint8_t stepConfidence;
- /**< Confidence associated with the step. This field is only applicable
- for a single step report, that is, if the step count is one. \n
- - Range: 0 to 100 \n
- \textbf{Note:} The report is ignored if confidence is 0. */
-
- /* Optional */
- /* Step Count Uncertainty */
- uint8_t stepCountUncertainty_valid; /**< Must be set to true if stepCountUncertainty is being passed */
- float stepCountUncertainty;
- /**< Uncertainty (in steps) associated with the step count. */
-
- /* Optional */
- /* Step Rate */
- uint8_t stepRate_valid; /**< Must be set to true if stepRate is being passed */
- float stepRate;
- /**< Current estimate for the rate of steps per second. \n
- - Units: steps/second \n
- - Range: >= 0.0 */
-}qmiLocPedometerReportReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject pedometer data
- into the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Status of Pedometer Report Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Pedometer Report request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocPedometerReportIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the batching size. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID is returned in the Get
- Batch Size indication. */
-
- /* Mandatory */
- /* Requested Batch Size */
- uint32_t batchSize;
- /**< Request the service with the number of location fixes to be batched. */
-}qmiLocGetBatchSizeReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the batching size. */
-typedef struct {
-
- /* Mandatory */
- /* Get Batch Size Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Batch Size request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Get Batch
- Size request.
- */
-
- /* Mandatory */
- /* Batch Size Supported */
- uint32_t batchSize;
- /**< Number of location fixes that the service is able to batch.
- The batch size value is returned as 0 in the case of a failure status.
- */
-}qmiLocGetBatchSizeIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to initiate a batching session. */
-typedef struct {
-
- /* Optional */
- /* Minimum Interval Between Position Reports */
- uint8_t minInterval_valid; /**< Must be set to true if minInterval is being passed */
- uint32_t minInterval;
- /**< Minimum time interval, specified by the control point, that must elapse between
- position reports. \n
- - Units: milliseconds \n
- - Default: 60000 ms
- */
-
- /* Optional */
- /* Horizontal Accuracy Level */
- uint8_t horizontalAccuracyLevel_valid; /**< Must be set to true if horizontalAccuracyLevel is being passed */
- qmiLocAccuracyLevelEnumT_v02 horizontalAccuracyLevel;
- /**< Specifies the horizontal accuracy level required by the control point.
- If not specified, accuracy defaults to LOW.
-
- Valid values: \n
- - eQMI_LOC_ACCURACY_LOW (1) -- Low accuracy
- - eQMI_LOC_ACCURACY_MED (2) -- Medium accuracy
- - eQMI_LOC_ACCURACY_HIGH (3) -- High accuracy
- */
-
- /* Optional */
- /* Fix Session Timeout Period */
- uint8_t fixSessionTimeout_valid; /**< Must be set to true if fixSessionTimeout is being passed */
- uint32_t fixSessionTimeout;
- /**< Configures the fix session timeout duration. \n
- - Units: Milliseconds \n
- - Default: 20,000 ms
- */
-
- /* Optional */
- /* Minimum Distance */
- uint8_t minDistance_valid; /**< Must be set to true if minDistance is being passed */
- uint32_t minDistance;
- /**< Specifies the minimum distance that should be traversed before a
- position should be batched.
- If no distance is specified, the positions are batched after
- the minInterval period expires. If both minInterval and minDistance are
- specified, the position are batched only after minInterval has
- expired AND minDistance has been traversed. \n
- - Units: Meters
- */
-
- /* Optional */
- /* Batch All Positions */
- uint8_t batchAllPos_valid; /**< Must be set to true if batchAllPos is being passed */
- uint8_t batchAllPos;
- /**< Values: \n
- - TRUE -- All positions that are available must be batched. For example,
- if any other type of positioning is active (such as 1 Hz tracking), all
- positions computed for that use case are also batched. This may
- result in the BATCH_FULL indication getting generated earlier. \n
- - FALSE -- Only positions that meet the time and/or distance criteria are batched
- (default).
- */
-
- /* Optional */
- /* Request ID */
- uint8_t requestId_valid; /**< Must be set to true if requestId is being passed */
- uint32_t requestId;
- /**< Identifies the request. A batching client can start multiple batching
- requests with different batching parameters,
- however, positions corresponding to all requests from the same client are
- batched in the same buffer. A request ID value of 0 is considered invalid. \n
- Valid Values 0x01 - 0xFFFFFFFF
- */
-}qmiLocStartBatchingReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to initiate a batching session. */
-typedef struct {
-
- /* Mandatory */
- /* Start Batching Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Start Batching request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Request ID */
- uint8_t requestId_valid; /**< Must be set to true if requestId is being passed */
- uint32_t requestId;
- /**< Identifies the request. A batching client can start multiple batching
- requests with different batching parameters, however, positions
- corresponding to all requests from the same client are
- batched in the same buffer. \n
- Valid Values 0x01 - 0xFFFFFFFF
- */
-}qmiLocStartBatchingIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used to notify the control point that the batched buffer is full. */
-typedef struct {
-
- /* Mandatory */
- /* Number of Entries in the Batch During Full Event */
- uint32_t batchCount;
- /**< Number of entries in the batch during a full event.
- */
-}qmiLocEventBatchFullIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint64_t qmiLocBatchedReportValidFieldsMaskT_v02;
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_LATITUDE_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000001ull) /**< Latitude field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_LONGITUDE_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000002ull) /**< Longitude field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_HOR_CIR_UNC_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000004ull) /**< Horizontal circular uncertainty field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_SPEED_HOR_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000008ull) /**< Horizontal speed field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_SPEED_UNC_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000010ull) /**< Speed uncertainty field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_ALT_WRT_ELP_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000020ull) /**< Altitude with respect to ellipsoid field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_SPEED_VER_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000040ull) /**< Vertical speed field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_HEADING_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000080ull) /**< Heading field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_HEADING_UNC_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000100ull) /**< Heading uncertainty field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_TECH_MASK_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000200ull) /**< Technology source mask field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_TIMESTAMP_UTC_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000400ull) /**< UTC timestamp field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_TIME_UNC_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00000800ull) /**< Time uncertainty field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_MAGNETIC_DEV_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00001000ull) /**< Magnetic deviation field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_VERT_UNC_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00002000ull) /**< Vertical uncertainty field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_HOR_CONF_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00004000ull) /**< Horizontal confidence field is valid for this fix */
-#define QMI_LOC_BATCHED_REPORT_MASK_VALID_TIMESTAMP_GPS_V02 ((qmiLocBatchedReportValidFieldsMaskT_v02)0x00008000ull) /**< GPS timestamp field is valid for this fix */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t fixId;
- /**< Fix count for the session. The count starts at 0 and increments by one for
- each successive batched position report for a particular session. */
-
- qmiLocBatchedReportValidFieldsMaskT_v02 validFields;
- /**< Mask of all valid fields for this fix.
- Valid bitmasks: \n
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_LATITUDE (0x00000001) -- Latitude field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_LONGITUDE (0x00000002) -- Longitude field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_HOR_CIR_UNC (0x00000004) -- Horizontal circular uncertainty field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_SPEED_HOR (0x00000008) -- Horizontal speed field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_SPEED_UNC (0x00000010) -- Speed uncertainty field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_ALT_WRT_ELP (0x00000020) -- Altitude with respect to ellipsoid field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_SPEED_VER (0x00000040) -- Vertical speed field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_HEADING (0x00000080) -- Heading field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_HEADING_UNC (0x00000100) -- Heading uncertainty field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_TECH_MASK (0x00000200) -- Technology source mask field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_TIMESTAMP_UTC (0x00000400) -- UTC timestamp field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_TIME_UNC (0x00000800) -- Time uncertainty field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_MAGNETIC_DEV (0x00001000) -- Magnetic deviation field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_VERT_UNC (0x00002000) -- Vertical uncertainty field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_HOR_CONF (0x00004000) -- Horizontal confidence field is valid for this fix
- - QMI_LOC_BATCHED_REPORT_MASK_VALID_TIMESTAMP_GPS (0x00008000) -- GPS timestamp field is valid for this fix
- */
-
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- float horUncCircular;
- /**< Horizontal position uncertainty (circular).\n
- - Units: Meters */
-
- float speedHorizontal;
- /**< Horizontal speed.\n
- - Units: Meters/second */
-
- float speedUnc;
- /**< 3-D Speed uncertainty.\n
- - Units: Meters/second */
-
- float altitudeWrtEllipsoid;
- /**< Altitude with respect to the WGS84 ellipsoid.\n
- - Units: Meters \n
- - Range: -500 to 15883 */
-
- float speedVertical;
- /**< Vertical speed.\n
- - Units: Meters/second */
-
- float heading;
- /**< Heading.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- float headingUnc;
- /**< Heading uncertainty.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- qmiLocPosTechMaskT_v02 technologyMask;
- /**< Technology used in computing this fix.
- Valid bitmasks: \n
- - QMI_LOC_POS_TECH_MASK_SATELLITE (0x00000001) -- Satellites were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_CELLID (0x00000002) -- Cell towers were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_WIFI (0x00000004) -- Wi-Fi access points were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_SENSORS (0x00000008) -- Sensors were used to generate the fix
- - QMI_LOC_POS_TECH_MASK_REFERENCE_LOCATION (0x00000010) -- Reference Location was used to generate the fix
- - QMI_LOC_POS_TECH_MASK_INJECTED_COARSE_POSITION (0x00000020) -- Coarse position injected into the location engine was used to
- generate the fix
- - QMI_LOC_POS_TECH_MASK_AFLT (0x00000040) -- AFLT was used to generate the fix
- - QMI_LOC_POS_TECH_MASK_HYBRID (0x00000080) -- GNSS and network-provided measurements were used to
- generate the fix
- */
-
- uint64_t timestampUtc;
- /**< UTC timestamp. \n
- - Units: Milliseconds since Jan. 1, 1970 */
-
- float timeUnc;
- /**< Time uncertainty. \n
- - Units: Milliseconds */
-
- float magneticDeviation;
- /**< Difference between the bearing to true north and the bearing shown
- on a magnetic compass. The deviation is positive when the magnetic
- north is east of true north. */
-
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- uint8_t horConfidence;
- /**< Horizontal confidence.
- - Units: Percent
- - Range: 0 to 99 */
-
- qmiLocGPSTimeStructT_v02 gpsTime;
- /**< Number of weeks since Jan. 5, 1980, and milliseconds into the current week. */
-}qmiLocBatchedReportStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used to notify the control point with the live batched
- position report. */
-typedef struct {
-
- /* Mandatory */
- /* Batched Position Report */
- qmiLocBatchedReportStructT_v02 liveBatchedReport;
- /**< \n Live position report that is also batched. */
-}qmiLocEventLiveBatchedPositionReportIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to retrieve fixes from the batch. */
-typedef struct {
-
- /* Mandatory */
- /* Number of Fix Entries to be Retrieved from the Batch */
- uint32_t numberOfEntries;
- /**< Number of fix entries to be retrieved from the batch. \n
- Maximum limit -- QMI_LOC_READ_FROM_BATCH_MAX_SIZE.
- */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID is returned in the Read
- from Batch indication. */
-}qmiLocReadFromBatchReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to retrieve fixes from the batch. */
-typedef struct {
-
- /* Mandatory */
- /* Read from Batch Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Read from Batch request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Read from Batch
- request.
- */
-
- /* Optional */
- /* Number of Fix Entries Returned from the Batch */
- uint8_t numberOfEntries_valid; /**< Must be set to true if numberOfEntries is being passed */
- uint32_t numberOfEntries;
- /**< Number of fix entries returned from the batch. */
-
- /* Optional */
- /* List of Batched Position Reports Returned */
- uint8_t batchedReportList_valid; /**< Must be set to true if batchedReportList is being passed */
- uint32_t batchedReportList_len; /**< Must be set to # of elements in batchedReportList */
- qmiLocBatchedReportStructT_v02 batchedReportList[QMI_LOC_READ_FROM_BATCH_MAX_SIZE_V02];
- /**< \n List of fix reports returned from the batch. */
-}qmiLocReadFromBatchIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to stop an ongoing batching session. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Transaction ID of the request. */
-
- /* Optional */
- /* Request ID */
- uint8_t requestId_valid; /**< Must be set to true if requestId is being passed */
- uint32_t requestId;
- /**< Identifies the batching request that must be stopped.
- A batching client can start multiple batching requests. \n
- Valid Values 0x01 - 0xFFFFFFFF
- */
-}qmiLocStopBatchingReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to stop an ongoing batching session. */
-typedef struct {
-
- /* Mandatory */
- /* Stop Batching Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Stop Batching request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Stop Batching request.
- */
-
- /* Optional */
- /* Request ID */
- uint8_t requestId_valid; /**< Must be set to true if requestId is being passed */
- uint32_t requestId;
- /**< Identifies the batching request that was stopped.
- A batching client can start multiple batching requests. \n
- Valid Values 0x01 - 0xFFFFFFFF
- */
-}qmiLocStopBatchingIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to release the batching buffer. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. */
-}qmiLocReleaseBatchReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to release the batching buffer. */
-typedef struct {
-
- /* Mandatory */
- /* Release Batch Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Release Batch request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Release Batch request.
- */
-}qmiLocReleaseBatchIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Requests the control point to inject Wi-Fi AP data. */
-typedef struct {
-
- /* Optional */
- /* E911 Mode */
- uint8_t e911Mode_valid; /**< Must be set to true if e911Mode is being passed */
- uint8_t e911Mode;
- /**< Specifies whether the GPS engine is in E911 mode when this
- indication is sent to the client.
-
- Valid values: \begin{itemize1}
- \item 0x01 (TRUE) -- GPS engine is in E911 mode
- \item 0x00 (FALSE) -- GPS engine is not in E911 mode
- \end{itemize1}
- */
-}qmiLocEventInjectWifiApDataReqIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWIFIAPDATADEVICETYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WIFI_AP_DATA_DEVICE_TYPE_WLAN_802_11_A_V02 = 0, /**< Wi-Fi AP device is 802.11a. */
- eQMI_LOC_WIFI_AP_DATA_DEVICE_TYPE_WLAN_802_11_B_V02 = 1, /**< Wi-Fi AP device is 802.11b. */
- eQMI_LOC_WIFI_AP_DATA_DEVICE_TYPE_WLAN_802_11_G_V02 = 2, /**< Wi-Fi AP device is 802.11g. */
- QMILOCWIFIAPDATADEVICETYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWifiApDataDeviceTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWIFIAPDATARTDUNITTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WIFI_AP_DATA_RTD_UNIT_MICROSEC_V02 = 0, /**< Wi-Fi AP data Round-trip Delay (RTD) is in microseconds. */
- eQMI_LOC_WIFI_AP_DATA_RTD_UNIT_HUNDREDS_OF_NANOSEC_V02 = 1, /**< Wi-Fi AP data RTD is in hundreds of nanoseconds. */
- eQMI_LOC_WIFI_AP_DATA_RTD_UNIT_TENS_OF_NANOSEC_V02 = 2, /**< Wi-Fi AP data RTD is in tens of nanoseconds. */
- eQMI_LOC_WIFI_AP_DATA_RTD_UNIT_NANOSEC_V02 = 3, /**< Wi-Fi AP data RTD is in nanoseconds. */
- eQMI_LOC_WIFI_AP_DATA_RTD_UNIT_TENTH_OF_NANOSEC_V02 = 4, /**< Wi-Fi AP data RTD is in tenths of nanoseconds. */
- QMILOCWIFIAPDATARTDUNITTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWifiApDataRtdUnitTypeEnumT_v02;
-/**
- @}
- */
-
-typedef uint32_t qmiLocWifiApDataMaskT_v02;
-#define QMI_LOC_WIFI_APDATA_MASK_AP_TRANSMIT_POWER_V02 ((qmiLocWifiApDataMaskT_v02)0x00000001) /**< AP transmit power is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_AP_ANTENNA_GAIN_V02 ((qmiLocWifiApDataMaskT_v02)0x00000002) /**< AP antenna gain is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_AP_SNR_V02 ((qmiLocWifiApDataMaskT_v02)0x00000004) /**< AP signal-to-noise ratio is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_AP_DEVICE_TYPE_V02 ((qmiLocWifiApDataMaskT_v02)0x00000008) /**< AP device type is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_AP_RSSI_V02 ((qmiLocWifiApDataMaskT_v02)0x00000010) /**< AP RSSI is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_AP_CHANNEL_V02 ((qmiLocWifiApDataMaskT_v02)0x00000020) /**< AP channel is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_AP_ROUNDTRIP_DELAY_V02 ((qmiLocWifiApDataMaskT_v02)0x00000040) /**< AP roundtrip delay is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_AP_ROUNDTRIP_DELAY_ACCURACY_V02 ((qmiLocWifiApDataMaskT_v02)0x00000080) /**< AP roundtrip delay accuracy is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_MOBILE_SNR_V02 ((qmiLocWifiApDataMaskT_v02)0x00000100) /**< Mobile signal-to-noise ratio is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_MOBILE_RSSI_V02 ((qmiLocWifiApDataMaskT_v02)0x00000200) /**< Mobile RSSI is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_RSSI_TIMESTAMP_V02 ((qmiLocWifiApDataMaskT_v02)0x00000400) /**< RSSI timestamp is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_MEASUREMENT_AGE_V02 ((qmiLocWifiApDataMaskT_v02)0x00000800) /**< Measurement age is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_SERVING_AP_V02 ((qmiLocWifiApDataMaskT_v02)0x00001000) /**< Serving access point is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_FREQUENCY_V02 ((qmiLocWifiApDataMaskT_v02)0x00002000) /**< Channel frequency is valid */
-#define QMI_LOC_WIFI_APDATA_MASK_SSID_V02 ((qmiLocWifiApDataMaskT_v02)0x00004000) /**< SSID is valid */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocWifiApDataMaskT_v02 wifiApDataMask;
- /**< Specifies which Wi-Fi AP scan information types are being used.
-
- Valid values: \n
- - QMI_LOC_WIFI_APDATA_MASK_AP_TRANSMIT_POWER (0x00000001) -- AP transmit power is valid
- - QMI_LOC_WIFI_APDATA_MASK_AP_ANTENNA_GAIN (0x00000002) -- AP antenna gain is valid
- - QMI_LOC_WIFI_APDATA_MASK_AP_SNR (0x00000004) -- AP signal-to-noise ratio is valid
- - QMI_LOC_WIFI_APDATA_MASK_AP_DEVICE_TYPE (0x00000008) -- AP device type is valid
- - QMI_LOC_WIFI_APDATA_MASK_AP_RSSI (0x00000010) -- AP RSSI is valid
- - QMI_LOC_WIFI_APDATA_MASK_AP_CHANNEL (0x00000020) -- AP channel is valid
- - QMI_LOC_WIFI_APDATA_MASK_AP_ROUNDTRIP_DELAY (0x00000040) -- AP roundtrip delay is valid
- - QMI_LOC_WIFI_APDATA_MASK_AP_ROUNDTRIP_DELAY_ACCURACY (0x00000080) -- AP roundtrip delay accuracy is valid
- - QMI_LOC_WIFI_APDATA_MASK_MOBILE_SNR (0x00000100) -- Mobile signal-to-noise ratio is valid
- - QMI_LOC_WIFI_APDATA_MASK_MOBILE_RSSI (0x00000200) -- Mobile RSSI is valid
- - QMI_LOC_WIFI_APDATA_MASK_RSSI_TIMESTAMP (0x00000400) -- RSSI timestamp is valid
- - QMI_LOC_WIFI_APDATA_MASK_MEASUREMENT_AGE (0x00000800) -- Measurement age is valid
- - QMI_LOC_WIFI_APDATA_MASK_SERVING_AP (0x00001000) -- Serving access point is valid
- - QMI_LOC_WIFI_APDATA_MASK_FREQUENCY (0x00002000) -- Channel frequency is valid
- - QMI_LOC_WIFI_APDATA_MASK_SSID (0x00004000) -- SSID is valid */
-
- uint8_t macAddress[QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02];
- /**< MAC address. \n
- Each address is of length QMI_LOC_WIFI_MAC_ADDR_LENGTH.
- */
-
- int32_t apTransmitPower;
- /**< AP transmit power in dBm. */
-
- int32_t apAntennaGain;
- /**< AP antenna gain in dBI. */
-
- int32_t apSignalToNoise;
- /**< AP SNR received at the mobile device. */
-
- qmiLocWifiApDataDeviceTypeEnumT_v02 apDeviceType;
- /**< List of AP device types. */
-
- int32_t apRssi;
- /**< AP signal strength indicator in dBm. */
-
- uint16_t apChannel;
- /**< AP Wi-Fi channel on which a beacon was received. */
-
- uint32_t apRoundTripDelay;
- /**< Round trip delay between the mobile device and the AP, in units of
- apRoundTripDelayUnit. */
-
- qmiLocWifiApDataRtdUnitTypeEnumT_v02 apRoundTripDelayUnit;
- /**< Units of apRoundTripDelay and its accuracy; mandatory if apRoundTripDelay
- is present. */
-
- uint8_t apRoundTripDelayAccuracy;
- /**< AP's accuracy of round trip delay apRoundTripDelay, in units of
- apRoundTripDelayUnit. */
-
- int32_t mobileSignalToNoise;
- /**< Mobile SNR received at the AP. */
-
- int32_t mobileRssi;
- /**< Mobile signal strength at the AP. */
-}qmiLocWifiApDataStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- int64_t rssiTimestamp;
- /**< Measurement time stamp corresponding to when the beacon was received.
- Units: Milliseconds \n
- Type: int64 */
-
- int32_t measAge;
- /**< Measurements age; -1 means information is not available.
- Units: Milliseconds \n
- Type: int32 */
-
- uint8_t servingAccessPoint;
- /**< This parameter indicates whether a set of WLAN-AP measurements
- were obtained for a serving WLAN-AP (TRUE) or a nonserving WLAN-AP (FALSE).
- A target device with multiple radio support may indicate more than
- one type of serving access for the same time instant.
- Type: boolean */
-
- uint32_t channelFrequency;
- /**< Primary channel frequency.
- Units: MHz \n
- Type : uint32 */
-
- char ssid[QMI_LOC_MAX_WIFI_AP_SSID_STR_LENGTH_V02 + 1];
- /**< The NULL-terminated SSID of the Wi-Fi AP.
- Its maximum length according to the ASCII standard is 32 octets. \n
- Type: string */
-
- int32_t apHighResolutionRssi;
- /**< AP signal strength indicator in dBm.
- Units: 0.1 dBm \n
- Type: int32 */
-}qmiLocWifiApAdditionalDataStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWLANAPERRENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WLAN_AP_ERR_UNKNOWN_V02 = 0, /**< Error is unknown */
- eQMI_LOC_WLAN_AP_ERR_NO_REQ_MEAS_AVAILABLE_V02 = 1, /**< None of the requested measurements could be provided */
- eQMI_LOC_WLAN_AP_ERR_WIFI_OFF_V02 = 2, /**< Wi-Fi is off */
- QMILOCWLANAPERRENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWlanApErrEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects Wi-Fi AP data. */
-typedef struct {
-
- /* Mandatory */
- /* Wi-Fi AP Scan Data */
- uint32_t wifiApInfo_len; /**< Must be set to # of elements in wifiApInfo */
- qmiLocWifiApDataStructT_v02 wifiApInfo[QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02];
- /**< \n List of Wi-Fi AP scan information entered by the control point. */
-
- /* Optional */
- /* Failure Reason for WLAN-AP Measurements Not Available */
- uint8_t errorCause_valid; /**< Must be set to true if errorCause is being passed */
- qmiLocWlanApErrEnumT_v02 errorCause;
- /**< If WLAN-AP measurements are not available,
- the reason for the error/failure should be indicated.
- This field is not present when WLAN-AP measurements are available.
-
- Valid values: \n
- - eQMI_LOC_WLAN_AP_ERR_UNKNOWN (0) -- Error is unknown
- - eQMI_LOC_WLAN_AP_ERR_NO_REQ_MEAS_AVAILABLE (1) -- None of the requested measurements could be provided
- - eQMI_LOC_WLAN_AP_ERR_WIFI_OFF (2) -- Wi-Fi is off */
-
- /* Optional */
- /* Scan Request Timestamp */
- uint8_t requestTimestamp_valid; /**< Must be set to true if requestTimestamp is being passed */
- int64_t requestTimestamp;
- /**< UTC timestamp at which the scan was requested. \n
- Units: Milliseconds \n
- Type: int64 */
-
- /* Optional */
- /* Scan Receive Timestamp */
- uint8_t receiveTimestamp_valid; /**< Must be set to true if receiveTimestamp is being passed */
- int64_t receiveTimestamp;
- /**< UTC timestamp at which the scan was received. \n
- Units: Milliseconds \n
- Type: int64 */
-
- /* Optional */
- /* Free Scan or On-Demand Scan */
- uint8_t onDemandScan_valid; /**< Must be set to true if onDemandScan is being passed */
- uint8_t onDemandScan;
- /**< Indicates whether this scan was requested by the modem. \begin{itemize1}
- \item 0x00 (FALSE) -- The Wi-Fi AP data injection was not requested by the modem (Free Scan).
- \item 0x01 (TRUE) -- The Wi-Fi AP data injection was requested by the modem (On-Demand Scan).*/
-
- /* Optional */
- /* Wi-Fi AP Additional Measurements Scan Data */
- uint8_t wifiApInfoA_valid; /**< Must be set to true if wifiApInfoA is being passed */
- uint32_t wifiApInfoA_len; /**< Must be set to # of elements in wifiApInfoA */
- qmiLocWifiApAdditionalDataStructT_v02 wifiApInfoA[QMI_LOC_WIFI_MAX_REPORTED_APS_PER_MSG_V02];
- /**< \n List of Wi-Fi AP additional measurements scan information entered by the control point.
- The order and the number of additional measurements must be as same as wifiApInfo. */
-}qmiLocInjectWifiApDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects Wi-Fi AP data. */
-typedef struct {
-
- /* Mandatory */
- /* Wi-Fi AP Scan Information Injection Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Wi-Fi AP Scan Information request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectWifiApDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWIFIACCESSPOINTATTACHSTATESENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WIFI_ACCESS_POINT_ATTACHED_V02 = 0, /**< Attached to an access point */
- eQMI_LOC_WIFI_ACCESS_POINT_DETACHED_V02 = 1, /**< Detached from an access point */
- eQMI_LOC_WIFI_ACCESS_POINT_HANDOVER_V02 = 2, /**< Handed over to another access point */
- QMILOCWIFIACCESSPOINTATTACHSTATESENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWifiAccessPointAttachStatesEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject the Wi-Fi attachment status. */
-typedef struct {
-
- /* Mandatory */
- /* Attach State */
- qmiLocWifiAccessPointAttachStatesEnumT_v02 attachState;
- /**< Wi.Fi access point attach state.
-
- Valid values: \n
- - eQMI_LOC_WIFI_ACCESS_POINT_ATTACHED (0) -- Attached to an access point
- - eQMI_LOC_WIFI_ACCESS_POINT_DETACHED (1) -- Detached from an access point
- - eQMI_LOC_WIFI_ACCESS_POINT_HANDOVER (2) -- Handed over to another access point */
-
- /* Optional */
- /* Access Point MAC Address */
- uint8_t accessPointMacAddress_valid; /**< Must be set to true if accessPointMacAddress is being passed */
- uint8_t accessPointMacAddress[QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02];
- /**< MAC address of the access point to which the Wi-Fi is attached.
- This must always be specified if the attach state is Handover.
- */
-
- /* Optional */
- /* Wi-Fi AP SSID String */
- uint8_t wifiApSsid_valid; /**< Must be set to true if wifiApSsid is being passed */
- char wifiApSsid[QMI_LOC_MAX_WIFI_AP_SSID_STR_LENGTH_V02 + 1];
- /**< The NULL-terminated SSID of the Wi-Fi AP. Its maximum length according to the ASCII standard is 32 octets. */
-}qmiLocNotifyWifiAttachmentStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject the Wi-Fi attachment status. */
-typedef struct {
-
- /* Mandatory */
- /* Status of Wi-Fi Attachment Status Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of Wi-Fi Attachment Status request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocNotifyWifiAttachmentStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCWIFIENABLEDSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_WIFI_ENABLED_FALSE_V02 = 0, /**< Wi-Fi is disabled on the device */
- eQMI_LOC_WIFI_ENABLED_TRUE_V02 = 1, /**< Wi-Fi is enabled on the device */
- QMILOCWIFIENABLEDSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocWifiEnabledStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject the Wi-Fi enabled status. */
-typedef struct {
-
- /* Mandatory */
- /* Enabled Status */
- qmiLocWifiEnabledStatusEnumT_v02 enabledStatus;
- /**< Wi-Fi enabled status on the device.
-
- Valid values: \n
- - eQMI_LOC_WIFI_ENABLED_FALSE (0) -- Wi-Fi is disabled on the device
- - eQMI_LOC_WIFI_ENABLED_TRUE (1) -- Wi-Fi is enabled on the device */
-}qmiLocNotifyWifiEnabledStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject the Wi-Fi enabled status. */
-typedef struct {
-
- /* Mandatory */
- /* Status of Wi-Fi Enabled Status Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Wi-Fi Enabled Status request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocNotifyWifiEnabledStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point whether the GNSS location engine is
- ready to accept vehicle data. */
-typedef struct {
-
- /* Optional */
- /* Vehicle Accelerometer Ready Status */
- uint8_t vehicleAccelReadyStatus_valid; /**< Must be set to true if vehicleAccelReadyStatus is being passed */
- uint8_t vehicleAccelReadyStatus;
- /**< The location service uses this TLV to let a control point know when it is
- ready or not ready to receive vehicle accelerometer data input.
- Values: \n
- - 0x00 -- Not ready \n
- - 0x01 -- Ready */
-
- /* Optional */
- /* Vehicle Angular Rate Ready Status */
- uint8_t vehicleAngularRateReadyStatus_valid; /**< Must be set to true if vehicleAngularRateReadyStatus is being passed */
- uint8_t vehicleAngularRateReadyStatus;
- /**< The location service uses this TLV to let a control point know when it is
- ready or not ready to receive vehicle angular rate data input.
- Values: \n
- - 0x00 -- Not ready \n
- - 0x01 -- Ready */
-
- /* Optional */
- /* Vehicle Odometry Ready Status */
- uint8_t vehicleOdometryReadyStatus_valid; /**< Must be set to true if vehicleOdometryReadyStatus is being passed */
- uint8_t vehicleOdometryReadyStatus;
- /**< The location service uses this TLV to let a control point know when it is
- ready or not ready to receive vehicle odometry data input.
- Values: \n
- - 0x00 -- Not ready \n
- - 0x01 -- Ready*/
-}qmiLocEventVehicleDataReadyIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t timeOffset;
- /**< Sample time offset. This time offset must be
- relative to the vehicle sensor time of the first sample. \n
- - Units: Microseconds \n
- - Range: Up to over 4000 seconds */
-
- uint32_t axisSample_len; /**< Must be set to # of elements in axisSample */
- float axisSample[QMI_LOC_VEHICLE_SENSOR_DATA_MAX_AXES_V02];
- /**< Sensor axis sample. \n
- - Type: Floating point \n
- - Units accelerometer: Meters/seconds^2 \n
- - Units gyroscope: Radians/seconds \vspace{4pt}
-
- Note: The axes samples must be in the following order: \n
- 1. X-Axis \n
- 2. Y-Axis \n
- 3. Z-Axis */
-}qmiLocVehicleSensorSampleStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint8_t qmiLocAxesMaskT_v02;
-#define QMI_LOC_MASK_X_AXIS_V02 ((qmiLocAxesMaskT_v02)0x01) /**< X-axis is valid */
-#define QMI_LOC_MASK_Y_AXIS_V02 ((qmiLocAxesMaskT_v02)0x02) /**< Y-axis is valid */
-#define QMI_LOC_MASK_Z_AXIS_V02 ((qmiLocAxesMaskT_v02)0x04) /**< Z-axis is valid */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t sampleTimeBase;
- /**< Denotes a 32-bit time tag of the reference time from which
- all samples in this message are offset. This time must
- be the same as or (slightly) earlier than the first (oldest)
- sample in this message. \n
- - Units: Milliseconds \n
- - Range: Approx. 4 million seconds, or almost 50 days between rollovers */
-
- qmiLocAxesMaskT_v02 axesValidity;
- /**< Identifies the axes that are valid for all sensor samples.
-
- Valid values: \n
- - QMI_LOC_MASK_X_AXIS (0x01) -- X-axis is valid
- - QMI_LOC_MASK_Y_AXIS (0x02) -- Y-axis is valid
- - QMI_LOC_MASK_Z_AXIS (0x04) -- Z-axis is valid */
-
- uint32_t sensorData_len; /**< Must be set to # of elements in sensorData */
- qmiLocVehicleSensorSampleStructT_v02 sensorData[QMI_LOC_VEHICLE_SENSOR_DATA_MAX_SAMPLES_V02];
-}qmiLocVehicleSensorSampleListStructType_v02; /* Type */
-/**
- @}
- */
-
-typedef uint32_t qmiLocVehicleOdometryMeasDeviationMaskType_v02;
-#define QMI_LOC_MASK_VEHICLE_ODOMETRY_REVERSE_MOVEMENT_V02 ((qmiLocVehicleOdometryMeasDeviationMaskType_v02)0x00000001) /**< Odometry data in this message includes at least some data where
- the vehicle may have been moving in the reverse direction; this
- bit must be set if odometry data may be in reverse, and should
- not be set if odometry data is all in the forward direction */
-#define QMI_LOC_MASK_VEHICLE_ODOMETRY_AFFECTED_BY_ERRORS_V02 ((qmiLocVehicleOdometryMeasDeviationMaskType_v02)0x00000002) /**< Odometry data in this message includes at least some data affected
- by a major error source affecting distance-travelled accuracy,
- such as wheel slippage due to skidding, gravel, snow, or ice, as
- detected by the vehicle, e.g., via an ABS or other system */
-#define QMI_LOC_MASK_VEHICLE_ODOMETRY_ABSOLUTE_MEASUREMENT_V02 ((qmiLocVehicleOdometryMeasDeviationMaskType_v02)0x00000004) /**< Odometry data in this message is an absolute amount since the vehicle
- began service, and is the same vehicle that is regularly used with
- this device (so that the offset of this value, since the last time
- this measurement was used by the location engine, can safely be used
- as a likely correct estimate of distance travelled since last
- use) */
-typedef uint32_t qmiLocVehicleOdometryWheelFlagsMaskT_v02;
-#define QMI_LOC_MASK_VEHICLE_ODOMETRY_LEFT_AND_RIGHT_AVERAGE_V02 ((qmiLocVehicleOdometryWheelFlagsMaskT_v02)0x00000001) /**< Average of left and right non-turning wheels */
-#define QMI_LOC_MASK_VEHICLE_ODOMETRY_LEFT_V02 ((qmiLocVehicleOdometryWheelFlagsMaskT_v02)0x00000002) /**< Left side, non-turning wheel */
-#define QMI_LOC_MASK_VEHICLE_ODOMETRY_RIGHT_V02 ((qmiLocVehicleOdometryWheelFlagsMaskT_v02)0x00000004) /**< Right side, non-turning wheel */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t timeOffset;
- /**< Sample time offset. This time offset must be
- relative to the sensor time of the first sample. \n
- - Units: Microseconds \n
- - Range: Up to over 4000 seconds */
-
- uint32_t distanceTravelled_len; /**< Must be set to # of elements in distanceTravelled */
- uint32_t distanceTravelled[QMI_LOC_VEHICLE_ODOMETRY_MAX_MEASUREMENTS_V02];
- /**< Distance travelled (odometry) sample offset. \n
- - Units of accumulated distance: Millimeters \n
- - Range: Over 4000 kilometers
-
- This measurement (with units in millimeters) is added to
- the distance_travelled_base measurement (in meters) to
- get the total distance travelled sample value.
-
- Note: The order of measurements must be as follows: \n
- 1. Left and right average \n
- 2. Left \n
- 3. Right
- */
-}qmiLocVehicleOdometrySampleStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t sampleTimeBase;
- /**< Denotes a 32-bit time tag of a reference time, from which
- all samples in this message are offset. Note this time must
- be the same or (slightly) earlier than the first (oldest)
- sample in this message. \n
- - Units: 1 millisecond \n
- - Range: ~4 million seconds, or almost 50 days between rollovers */
-
- qmiLocVehicleOdometryMeasDeviationMaskType_v02 flags;
- /**< Flags to indicate any deviation from the default measurement
- assumptions. Valid bitmasks: \n
- - QMI_LOC_MASK_VEHICLE_ODOMETRY_REVERSE_MOVEMENT (0x00000001) -- Odometry data in this message includes at least some data where
- the vehicle may have been moving in the reverse direction; this
- bit must be set if odometry data may be in reverse, and should
- not be set if odometry data is all in the forward direction
- - QMI_LOC_MASK_VEHICLE_ODOMETRY_AFFECTED_BY_ERRORS (0x00000002) -- Odometry data in this message includes at least some data affected
- by a major error source affecting distance-travelled accuracy,
- such as wheel slippage due to skidding, gravel, snow, or ice, as
- detected by the vehicle, e.g., via an ABS or other system
- - QMI_LOC_MASK_VEHICLE_ODOMETRY_ABSOLUTE_MEASUREMENT (0x00000004) -- Odometry data in this message is an absolute amount since the vehicle
- began service, and is the same vehicle that is regularly used with
- this device (so that the offset of this value, since the last time
- this measurement was used by the location engine, can safely be used
- as a likely correct estimate of distance travelled since last
- use) */
-
- qmiLocVehicleOdometryWheelFlagsMaskT_v02 wheelFlags;
- /**< Delineates for which wheels measurements are being provided
- in the following samples, where one or more of the following
- bits must be set, and data samples aligned with these axes must
- appear in groups, in this order.
-
- Valid bitmasks: \n
- - QMI_LOC_MASK_VEHICLE_ODOMETRY_LEFT_AND_RIGHT_AVERAGE (0x00000001) -- Average of left and right non-turning wheels
- - QMI_LOC_MASK_VEHICLE_ODOMETRY_LEFT (0x00000002) -- Left side, non-turning wheel
- - QMI_LOC_MASK_VEHICLE_ODOMETRY_RIGHT (0x00000004) -- Right side, non-turning wheel */
-
- uint32_t distanceTravelledBase;
- /**< Distance traveled base. \n
- - Units of accumulated distance: Meters \n
- - Range: Over 4,000,0000 kilometers \vspace{0.06in} \n
-
- Distance travelled (odometry) is to be reported in a continuously
- accumulating way from device power up. It may be incremental distance
- starting at 0, or another arbitrary point, from device power up, or the
- absolute distance traveled by the vehicle
- (and if so, set QMI_LOC_MASK_VEHICLE_ODOMETRY_ABSOLUTE_MEASUREMENT),
- as long as it grows incrementally from device power up.
-
- This distance_travelled_base is added to the distrance_travelled_offset
- of each sample (below) to get the absolute distance of each sample
- point.
-
- Distance travelled errors are expected to be primarily due to the
- scale factor, with some allowance for noise due to minor slippage
- events (e.g., gravel.)
- Major wheel slippage events that affect odometry
- must be flagged -- see the flags field.
-
- Note that other events, such as a vehicle travelling in reverse, may
- also affect the available accuracy of this information, and notification
- of those events must be provided -- see the flags field. */
-
- uint32_t odometryData_len; /**< Must be set to # of elements in odometryData */
- qmiLocVehicleOdometrySampleStructT_v02 odometryData[QMI_LOC_VEHICLE_SENSOR_DATA_MAX_SAMPLES_V02];
- /**< Variable length array to specify the odometry samples.
- Maximum length of the array is 50. */
-}qmiLocVehicleOdometrySampleListStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects on-vehicle sensor data into the location engine. */
-typedef struct {
-
- /* Optional */
- /* On-Vehicle Accelerometer Data */
- uint8_t accelData_valid; /**< Must be set to true if accelData is being passed */
- qmiLocVehicleSensorSampleListStructType_v02 accelData;
- /**< \vspace{0.06in} \n Vehicle accelerometer sensor samples. */
-
- /* Optional */
- /* On-Vehicle Angular Rotation Data */
- uint8_t angRotationData_valid; /**< Must be set to true if angRotationData is being passed */
- qmiLocVehicleSensorSampleListStructType_v02 angRotationData;
- /**< \vspace{0.06in} \n Vehicle angular rotation data sensor samples. */
-
- /* Optional */
- /* Odometry Data */
- uint8_t odometryData_valid; /**< Must be set to true if odometryData is being passed */
- qmiLocVehicleOdometrySampleListStructT_v02 odometryData;
- /**< \vspace{0.06in} \n Odometer sensor samples. */
-
- /* Optional */
- /* External Time Sync Information */
- uint8_t changeInTimeScales_valid; /**< Must be set to true if changeInTimeScales is being passed */
- int32_t changeInTimeScales;
- /**< This field is to be used in conjunction with an external
- time-sync mechanism that is aligning the vehicle sensor time scale
- with the on-device sensor time scale to ensure that updates in
- that time offset do not appear as jumps in the relative sensor time
- of the samples provided in this message. If there is no such sync
- mechanism, e.g., if only the vehicle time is provided, this field
- may be left at 0.
-
- This field is defined as the change from the previously-sent QMI
- message with similar TLVs 0x10, 0x11, or 0x12 in it, to this QMI
- message in the amount that the sensor_time is ahead of an
- external vehicle time. \n
-
- - Units: Microseconds \n
- - Range: Approximately -2100 seconds to + 2100 seconds, where
- full-scale (minimum and maximum value) is interpreted
- as equal to or greater than this value of an offset change
- (unlikely to be reached in practice, unless there is a
- startup, major resync, or some other rollover event). */
-}qmiLocInjectVehicleSensorDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects on-vehicle sensor data into the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Inject Vehicle Sensor Data Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject Vehicle Sensor Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectVehicleSensorDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the first available WWAN
- position from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned in the Get Available WWAN Position indication. */
-}qmiLocGetAvailWwanPositionReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the first available WWAN
- position from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Get Available WWAN Position Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Get Available WWAN Position request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Get Available
- WWAN Position request. This parameter will
- always be present if the status field is set to
- SUCCESS. */
-
- /* Optional */
- /* Latitude */
- uint8_t latitude_valid; /**< Must be set to true if latitude is being passed */
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Optional */
- /* Longitude */
- uint8_t longitude_valid; /**< Must be set to true if longitude is being passed */
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Optional */
- /* Circular Horizontal Position Uncertainty */
- uint8_t horUncCircular_valid; /**< Must be set to true if horUncCircular is being passed */
- float horUncCircular;
- /**< Horizontal position uncertainty (circular).\n
- - Units: Meters */
-
- /* Optional */
- /* Altitude With Respect to Ellipsoid */
- uint8_t altitudeWrtEllipsoid_valid; /**< Must be set to true if altitudeWrtEllipsoid is being passed */
- float altitudeWrtEllipsoid;
- /**< Altitude with respect to the WGS84 ellipsoid.\n
- - Units: Meters \n
- - Range: -500 to 15883 */
-
- /* Optional */
- /* Vertical Uncertainty */
- uint8_t vertUnc_valid; /**< Must be set to true if vertUnc is being passed */
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- /* Optional */
- /* UTC Timestamp */
- uint8_t timestampUtc_valid; /**< Must be set to true if timestampUtc is being passed */
- uint64_t timestampUtc;
- /**< UTC timestamp. \n
- - Units: Milliseconds since Jan. 1, 1970 */
-
- /* Optional */
- /* Time Uncertainty */
- uint8_t timeUnc_valid; /**< Must be set to true if timeUnc is being passed */
- float timeUnc;
- /**< Time uncertainty. \n
- - Units: Milliseconds */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty Semi-Minor Axis */
- uint8_t horUncEllipseSemiMinor_valid; /**< Must be set to true if horUncEllipseSemiMinor is being passed */
- float horUncEllipseSemiMinor;
- /**< Semi-minor axis of horizontal elliptical uncertainty. \n
- - Units: Meters */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty Semi-Major Axis */
- uint8_t horUncEllipseSemiMajor_valid; /**< Must be set to true if horUncEllipseSemiMajor is being passed */
- float horUncEllipseSemiMajor;
- /**< Semi-major axis of horizontal elliptical uncertainty. \n
- - Units: Meters */
-
- /* Optional */
- /* Horizontal Elliptical Uncertainty Azimuth */
- uint8_t horUncEllipseOrientAzimuth_valid; /**< Must be set to true if horUncEllipseOrientAzimuth is being passed */
- float horUncEllipseOrientAzimuth;
- /**< Elliptical horizontal uncertainty azimuth of orientation. \n
- - Units: Decimal degrees \n
- - Range: 0 to 180 */
-
- /* Optional */
- /* Horizontal Circular Confidence */
- uint8_t horCircularConfidence_valid; /**< Must be set to true if horCircularConfidence is being passed */
- uint8_t horCircularConfidence;
- /**< Horizontal circular uncertainty confidence. \n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Horizontal Elliptical Confidence */
- uint8_t horEllipticalConfidence_valid; /**< Must be set to true if horEllipticalConfidence is being passed */
- uint8_t horEllipticalConfidence;
- /**< Horizontal elliptical uncertainty confidence. \n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Horizontal Reliability */
- uint8_t horReliability_valid; /**< Must be set to true if horReliability is being passed */
- qmiLocReliabilityEnumT_v02 horReliability;
- /**< Specifies the reliability of the horizontal position.
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* Altitude With Respect to Sea Level */
- uint8_t altitudeWrtMeanSeaLevel_valid; /**< Must be set to true if altitudeWrtMeanSeaLevel is being passed */
- float altitudeWrtMeanSeaLevel;
- /**< Altitude with respect to mean sea level. \n
- - Units: Meters */
-
- /* Optional */
- /* Vertical Confidence */
- uint8_t vertConfidence_valid; /**< Must be set to true if vertConfidence is being passed */
- uint8_t vertConfidence;
- /**< Vertical uncertainty confidence. \n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Vertical Reliability */
- uint8_t vertReliability_valid; /**< Must be set to true if vertReliability is being passed */
- qmiLocReliabilityEnumT_v02 vertReliability;
- /**< Specifies the reliability of the vertical position.
-
- Valid values: \n
- - eQMI_LOC_RELIABILITY_NOT_SET (0) -- Location reliability is not set
- - eQMI_LOC_RELIABILITY_VERY_LOW (1) -- Location reliability is very low; use it at your own risk
- - eQMI_LOC_RELIABILITY_LOW (2) -- Location reliability is low; little or no cross-checking is possible
- - eQMI_LOC_RELIABILITY_MEDIUM (3) -- Location reliability is medium; limited cross-check passed
- - eQMI_LOC_RELIABILITY_HIGH (4) -- Location reliability is high; strong cross-check passed
- */
-
- /* Optional */
- /* GPS Time */
- uint8_t gpsTime_valid; /**< Must be set to true if gpsTime is being passed */
- qmiLocGPSTimeStructT_v02 gpsTime;
-
- /* Optional */
- /* Time Source */
- uint8_t timeSrc_valid; /**< Must be set to true if timeSrc is being passed */
- qmiLocTimeSourceEnumT_v02 timeSrc;
- /**< Time source.
-
- Valid values: \n
- - eQMI_LOC_TIME_SRC_INVALID (0) -- Invalid time.
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TRANSFER (1) -- Time is set by the 1X system
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TAGGING (2) -- Time is set by WCDMA/GSM time tagging (that is,
- associating network time with GPS time)
- - eQMI_LOC_TIME_SRC_EXTERNAL_INPUT (3) -- Time is set by an external injection
- - eQMI_LOC_TIME_SRC_TOW_DECODE (4) -- Time is set after decoding over-the-air GPS navigation data
- from one GPS satellite
- - eQMI_LOC_TIME_SRC_TOW_CONFIRMED (5) -- Time is set after decoding over-the-air GPS navigation data
- from multiple satellites
- - eQMI_LOC_TIME_SRC_TOW_AND_WEEK_CONFIRMED (6) -- Both time of the week and the GPS week number are known
- - eQMI_LOC_TIME_SRC_NAV_SOLUTION (7) -- Time is set by the position engine after the fix is obtained
- - eQMI_LOC_TIME_SRC_SOLVE_FOR_TIME (8) -- Time is set by the position engine after performing SFT;
- this is done when the clock time uncertainty is large
- - eQMI_LOC_TIME_SRC_GLO_TOW_DECODE (9) -- Time is set after decoding GLO satellites
- - eQMI_LOC_TIME_SRC_TIME_TRANSFORM (10) -- Time is set after transforming the GPS to GLO time
- - eQMI_LOC_TIME_SRC_WCDMA_SLEEP_TIME_TAGGING (11) -- Time is set by the sleep time tag provided by the WCDMA network
- - eQMI_LOC_TIME_SRC_GSM_SLEEP_TIME_TAGGING (12) -- Time is set by the sleep time tag provided by the GSM network
- - eQMI_LOC_TIME_SRC_UNKNOWN (13) -- Source of the time is unknown
- - eQMI_LOC_TIME_SRC_SYSTEM_TIMETICK (14) -- Time is derived from the system clock (better known as the slow clock);
- GNSS time is maintained irrespective of the GNSS receiver state
- - eQMI_LOC_TIME_SRC_QZSS_TOW_DECODE (15) -- Time is set after decoding QZSS satellites
- - eQMI_LOC_TIME_SRC_BDS_TOW_DECODE (16) -- Time is set after decoding BDS satellites
- - eQMI_LOC_TIME_SRC_GAL_TOW_DECODE (17) -- Time is set after decoding GAL satellites
- */
-}qmiLocGetAvailWwanPositionIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCPREMIUMSERVICEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_PREMIUM_SERVICE_GTP_CELL_V02 = 0, /**< Premium service -- Global terrestrial positioning for the cell */
- eQMI_LOC_PREMIUM_SERVICE_SAP_V02 = 1, /**< Premium service -- Sensor-assisted positioning */
- eQMI_LOC_PREMIUM_SERVICE_GTP_ENH_CELL_V02 = 2, /**< Premium service -- Global terrestrial positioning enhanced cell */
- eQMI_LOC_PREMIUM_SERVICE_GTP_WIFI_V02 = 3, /**< Premium service -- Global terrestrial positioning for Wi-Fi */
- QMILOCPREMIUMSERVICEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocPremiumServiceEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCPREMIUMSERVICECFGENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_PREMIUM_SERVICE_DISABLED_V02 = 0, /**< Premium service disabled */
- eQMI_LOC_PREMIUM_SERVICE_ENABLED_BASIC_V02 = 1, /**< Premium service enabled for basic */
- eQMI_LOC_PREMIUM_SERVICE_ENABLED_PREMIUM_V02 = 2, /**< Premium service enabled for premium */
- QMILOCPREMIUMSERVICECFGENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocPremiumServiceCfgEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to set the configuration */
-typedef struct {
-
- /* Mandatory */
- /* Set Premium Service Type */
- qmiLocPremiumServiceEnumT_v02 premiumServiceType;
- /**< Specifies the premium service to configure.
-
- Valid values: \n
- - eQMI_LOC_PREMIUM_SERVICE_GTP_CELL (0) -- Premium service -- Global terrestrial positioning for the cell
- - eQMI_LOC_PREMIUM_SERVICE_SAP (1) -- Premium service -- Sensor-assisted positioning
- - eQMI_LOC_PREMIUM_SERVICE_GTP_ENH_CELL (2) -- Premium service -- Global terrestrial positioning enhanced cell
- - eQMI_LOC_PREMIUM_SERVICE_GTP_WIFI (3) -- Premium service -- Global terrestrial positioning for Wi-Fi
- */
-
- /* Mandatory */
- /* Set Premium Service Configuration */
- qmiLocPremiumServiceCfgEnumT_v02 premiumServiceCfg;
- /**< Specifies the premium service configuration mode.
-
- Valid values: \n
- - eQMI_LOC_PREMIUM_SERVICE_DISABLED (0) -- Premium service disabled
- - eQMI_LOC_PREMIUM_SERVICE_ENABLED_BASIC (1) -- Premium service enabled for basic
- - eQMI_LOC_PREMIUM_SERVICE_ENABLED_PREMIUM (2) -- Premium service enabled for premium
- */
-}qmiLocSetPremiumServicesCfgReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to set the configuration */
-typedef struct {
-
- /* Mandatory */
- /* Set Premium Service Configuration Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Premium Services Configuration request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocSetPremiumServicesCfgIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCXTRAVERSIONCHECKENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_XTRA_VERSION_CHECK_DISABLE_V02 = 0, /**< XTRA file version check is not required */
- eQMI_LOC_XTRA_VERSION_CHECK_AUTO_V02 = 1, /**< XTRA file version check is required; the Location service decides the 'expected version' based on the preprovisioned XTRA version configuration */
- eQMI_LOC_XTRA_VERSION_CHECK_XTRA2_V02 = 2, /**< Check the XTRA file against XTRA2 format */
- eQMI_LOC_XTRA_VERSION_CHECK_XTRA3_V02 = 3, /**< Check the XTRA file against XTRA3 format */
- eQMI_LOC_XTRA_VERSION_CHECK_XTRA3_1_V02 = 4, /**< Check the XTRA file against XTRA3.1 format */
- QMILOCXTRAVERSIONCHECKENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocXtraVersionCheckEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to enable or disable XTRA version
- verification. */
-typedef struct {
-
- /* Mandatory */
- /* Set XTRA Version Check Mode */
- qmiLocXtraVersionCheckEnumT_v02 xtraVersionCheckMode;
- /**< Specifies XTRA version check mode.
-
- Valid values: \n
- - eQMI_LOC_XTRA_VERSION_CHECK_DISABLE (0) -- XTRA file version check is not required
- - eQMI_LOC_XTRA_VERSION_CHECK_AUTO (1) -- XTRA file version check is required; the Location service decides the 'expected version' based on the preprovisioned XTRA version configuration
- - eQMI_LOC_XTRA_VERSION_CHECK_XTRA2 (2) -- Check the XTRA file against XTRA2 format
- - eQMI_LOC_XTRA_VERSION_CHECK_XTRA3 (3) -- Check the XTRA file against XTRA3 format
- - eQMI_LOC_XTRA_VERSION_CHECK_XTRA3_1 (4) -- Check the XTRA file against XTRA3.1 format
- */
-}qmiLocSetXtraVersionCheckReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to enable or disable XTRA version
- verification. */
-typedef struct {
-
- /* Mandatory */
- /* Set XTRA Version Check Mode Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set XTRA version check request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocSetXtraVersionCheckIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint64_t qmiLocGNSSConstellEnumT_v02;
-#define eQMI_SYSTEM_GPS_V02 ((qmiLocGNSSConstellEnumT_v02)0x01ull) /**< Enable GPS \n */
-#define eQMI_SYSTEM_GLO_V02 ((qmiLocGNSSConstellEnumT_v02)0x02ull) /**< Enable GLONASS \n */
-#define eQMI_SYSTEM_BDS_V02 ((qmiLocGNSSConstellEnumT_v02)0x04ull) /**< Enable BDS \n */
-#define eQMI_SYSTEM_GAL_V02 ((qmiLocGNSSConstellEnumT_v02)0x08ull) /**< Enable Galileo */
-#define eQMI_SYSTEM_QZSS_V02 ((qmiLocGNSSConstellEnumT_v02)0x10ull) /**< Enable QZSS */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sets satellite constellations of interest for reporting. */
-typedef struct {
-
- /* Optional */
- /* GNSS Measurement Report Constellation Control */
- uint8_t measReportConfig_valid; /**< Must be set to true if measReportConfig is being passed */
- qmiLocGNSSConstellEnumT_v02 measReportConfig;
- /**< GNSS measurement report constellation control. \n
- Valid values: \n
- - eQMI_SYSTEM_GPS (0x01) -- Enable GPS \n
- - eQMI_SYSTEM_GLO (0x02) -- Enable GLONASS \n
- - eQMI_SYSTEM_BDS (0x04) -- Enable BDS \n
- - eQMI_SYSTEM_GAL (0x08) -- Enable Galileo
- - eQMI_SYSTEM_QZSS (0x10) -- Enable QZSS
- */
-
- /* Optional */
- /* SV Polynomial Report Constellation Control */
- uint8_t svPolyReportConfig_valid; /**< Must be set to true if svPolyReportConfig is being passed */
- qmiLocGNSSConstellEnumT_v02 svPolyReportConfig;
- /**< SV polynomial report constellation control. \n
- Valid values: \n
- - eQMI_SYSTEM_GPS (0x01) -- Enable GPS \n
- - eQMI_SYSTEM_GLO (0x02) -- Enable GLONASS \n
- - eQMI_SYSTEM_BDS (0x04) -- Enable BDS \n
- - eQMI_SYSTEM_GAL (0x08) -- Enable Galileo
- - eQMI_SYSTEM_QZSS (0x10) -- Enable QZSS
- */
-}qmiLocSetGNSSConstRepConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sets satellite constellations of interest for reporting. */
-typedef struct {
-
- /* Mandatory */
- /* Set GNSS Constellation Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GNSS constellation.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocSetGNSSConstRepConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSOURCEOFFREQENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_FREQ_SOURCE_INVALID_V02 = 0, /**< Source of the frequency is invalid \n */
- eQMI_LOC_FREQ_SOURCE_EXTERNAL_V02 = 1, /**< Source of the frequency is from an external injection \n */
- eQMI_LOC_FREQ_SOURCE_PE_CLK_REPORT_V02 = 2, /**< Source of the frequency is from the GNSS navigation engine \n */
- eQMI_LOC_FREQ_SOURCE_UNKNOWN_V02 = 3, /**< Source of the frequency is unknown */
- QMILOCSOURCEOFFREQENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSourceofFreqEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- float clockDrift;
- /**< Receiver clock drift. \n
- - Units: Meters per second
- */
-
- float clockDriftUnc;
- /**< Receiver clock drift uncertainty. \n
- - Units: Meters per second
- */
-
- qmiLocSourceofFreqEnumT_v02 sourceOfFreq;
- /**< Source of the clock frequency information.
-
- Valid values: \n
- - eQMI_LOC_FREQ_SOURCE_INVALID (0) -- Source of the frequency is invalid \n
- - eQMI_LOC_FREQ_SOURCE_EXTERNAL (1) -- Source of the frequency is from an external injection \n
- - eQMI_LOC_FREQ_SOURCE_PE_CLK_REPORT (2) -- Source of the frequency is from the GNSS navigation engine \n
- - eQMI_LOC_FREQ_SOURCE_UNKNOWN (3) -- Source of the frequency is unknown
- */
-}qmiLocRcvrClockFrequencyInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t leapSec;
- /**< GPS time leap second delta to UTC time. \n
- For nonzero values of leapSecUnc, leapSec must be treated as unknown. \n
- - Units: Seconds
- */
-
- uint8_t leapSecUnc;
- /**< Uncertainty for the GPS leap second. \n
- - Units: Seconds
- */
-}qmiLocLeapSecondInfoStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint8_t qmiLocInterSystemBiasValidMaskT_v02;
-#define QMI_LOC_SYS_TIME_BIAS_VALID_V02 ((qmiLocInterSystemBiasValidMaskT_v02)0x01) /**< System time bias is valid \n */
-#define QMI_LOC_SYS_TIME_BIAS_UNC_VALID_V02 ((qmiLocInterSystemBiasValidMaskT_v02)0x02) /**< System time bias uncertainty is valid */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocInterSystemBiasValidMaskT_v02 validMask;
- /**< Fields that are valid. \n
- Valid values: \n
- - QMI_LOC_SYS_TIME_BIAS_VALID (0x01) -- System time bias is valid \n
- - QMI_LOC_SYS_TIME_BIAS_UNC_VALID (0x02) -- System time bias uncertainty is valid \n
- */
-
- float timeBias;
- /**< System 1 to System 2 time bias. \n
- - Units: Milliseconds
- */
-
- float timeBiasUnc;
- /**< System 1 to System 2 time bias uncertainty. \n
- - Units: Milliseconds
- */
-}qmiLocInterSystemBiasStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocSvSystemEnumT_v02 system;
- /**< Specifies the satellite system constellation.
-
- Valid values: \n
- - eQMI_LOC_SV_SYSTEM_GPS (1) -- GPS satellite
- - eQMI_LOC_SV_SYSTEM_GALILEO (2) -- GALILEO satellite
- - eQMI_LOC_SV_SYSTEM_SBAS (3) -- SBAS satellite
- - eQMI_LOC_SV_SYSTEM_COMPASS (4) -- COMPASS satellite (Deprecated)
- - eQMI_LOC_SV_SYSTEM_GLONASS (5) -- GLONASS satellite
- - eQMI_LOC_SV_SYSTEM_BDS (6) -- BDS satellite
- - eQMI_LOC_SV_SYSTEM_QZSS (7) -- QZSS satellite
- */
-
- uint16_t systemWeek;
- /**< Current system week. \n
- - For GPS: Calculated from midnight, Jan. 6, 1980 \n
- - For BDS: Calculated from 00:00:00 on January 1, 2006 of Coordinated Universal Time (UTC) \n
- - For GAL: Calculated from 00:00 UT on Sunday August 22, 1999 (midnight between August 21 and August 22) \n
- If the week is unknown, set this value to 65535. \n
- - Units: Weeks */
-
- uint32_t systemMsec;
- /**< Amount of time into the current week. \n
- - Units: Milliseconds */
-
- float systemClkTimeBias;
- /**< System clock time bias (submilliseconds). \n
- - Units: Milliseconds
- (system time = systemMsec - systemClkTimeBias)
- */
-
- float systemClkTimeUncMs;
- /**< Single-sided maximum time bias uncertainty. \n
- - Units: Milliseconds
- */
-}qmiLocGnssTimeStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t gloFourYear;
- /**< GLONASS four year number from 1996. Refer to GLONASS ICD. \n
- Applicable only for GLONASS and is to be ignored for other constellations. \n
- If unknown, set this value to 255.
- */
-
- uint16_t gloDays;
- /**< GLONASS day number in four years. Refer to GLONASS ICD. \n
- Applicable only for GLONASS and is to be ignored for other constellations. \n
- If unknown, set this value to 65535.
- */
-
- uint32_t gloMsec;
- /**< GLONASS time of day in msec. Refer to GLONASS ICD. \n
- - Units: Milliseconds
- */
-
- float gloClkTimeBias;
- /**< System clock time bias (submillisecond). \n
- - Units: Milliseconds
- (system time = systemMsec - systemClkTimeBias)
- */
-
- float gloClkTimeUncMs;
- /**< Single-sided maximum time bias uncertainty. \n
- - Units: Milliseconds
- */
-}qmiLocGloTimeStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t refFCount;
- /**< Receiver frame counter value at a reference tick. */
-
- uint8_t systemRtc_valid;
- /**< Validity indicator for the system RTC. */
-
- uint64_t systemRtcMs;
- /**< Platform system RTC value. \n
- - Units: Milliseconds
- */
-
- qmiLocTimeSourceEnumT_v02 sourceOfTime;
- /**< Source of the time information.
-
- Valid values: \n
- - eQMI_LOC_TIME_SRC_INVALID (0) -- Invalid time.
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TRANSFER (1) -- Time is set by the 1X system
- - eQMI_LOC_TIME_SRC_NETWORK_TIME_TAGGING (2) -- Time is set by WCDMA/GSM time tagging (that is,
- associating network time with GPS time)
- - eQMI_LOC_TIME_SRC_EXTERNAL_INPUT (3) -- Time is set by an external injection
- - eQMI_LOC_TIME_SRC_TOW_DECODE (4) -- Time is set after decoding over-the-air GPS navigation data
- from one GPS satellite
- - eQMI_LOC_TIME_SRC_TOW_CONFIRMED (5) -- Time is set after decoding over-the-air GPS navigation data
- from multiple satellites
- - eQMI_LOC_TIME_SRC_TOW_AND_WEEK_CONFIRMED (6) -- Both time of the week and the GPS week number are known
- - eQMI_LOC_TIME_SRC_NAV_SOLUTION (7) -- Time is set by the position engine after the fix is obtained
- - eQMI_LOC_TIME_SRC_SOLVE_FOR_TIME (8) -- Time is set by the position engine after performing SFT;
- this is done when the clock time uncertainty is large
- - eQMI_LOC_TIME_SRC_GLO_TOW_DECODE (9) -- Time is set after decoding GLO satellites
- - eQMI_LOC_TIME_SRC_TIME_TRANSFORM (10) -- Time is set after transforming the GPS to GLO time
- - eQMI_LOC_TIME_SRC_WCDMA_SLEEP_TIME_TAGGING (11) -- Time is set by the sleep time tag provided by the WCDMA network
- - eQMI_LOC_TIME_SRC_GSM_SLEEP_TIME_TAGGING (12) -- Time is set by the sleep time tag provided by the GSM network
- - eQMI_LOC_TIME_SRC_UNKNOWN (13) -- Source of the time is unknown
- - eQMI_LOC_TIME_SRC_SYSTEM_TIMETICK (14) -- Time is derived from the system clock (better known as the slow clock);
- GNSS time is maintained irrespective of the GNSS receiver state
- - eQMI_LOC_TIME_SRC_QZSS_TOW_DECODE (15) -- Time is set after decoding QZSS satellites
- - eQMI_LOC_TIME_SRC_BDS_TOW_DECODE (16) -- Time is set after decoding BDS satellites
- - eQMI_LOC_TIME_SRC_GAL_TOW_DECODE (17) -- Time is set after decoding GAL satellites
- */
-}qmiLocGnssTimeExtStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint64_t qmiLocSvMeasStatusValidMaskT_v02;
-#define QMI_LOC_MASK_MEAS_STATUS_SM_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000001ull) /**< Satellite time in submilliseconds (code-phase) */
-#define QMI_LOC_MASK_MEAS_STATUS_SB_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000002ull) /**< Satellite sub-bit time */
-#define QMI_LOC_MASK_MEAS_STATUS_MS_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000004ull) /**< Satellite time in milliseconds */
-#define QMI_LOC_MASK_MEAS_STATUS_BE_CONFIRM_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000008ull) /**< Signal bit edge is confirmed */
-#define QMI_LOC_MASK_MEAS_STATUS_VEL_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000010ull) /**< Satellite Doppler is measured */
-#define QMI_LOC_MASK_MEAS_STATUS_VEL_FINE_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000020ull) /**< Fine/coarse Doppler measurement indicator */
-#define QMI_LOC_MASK_MEAS_STATUS_FROM_RNG_DIFF_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000200ull) /**< Range update from satellite differences */
-#define QMI_LOC_MASK_MEAS_STATUS_FROM_VE_DIFF_STAT_BIT_VALID_V02 ((qmiLocSvMeasStatusValidMaskT_v02)0x00000400ull) /**< Doppler update from satellite differences */
-typedef uint64_t qmiLocSvMeasStatusMaskT_v02;
-#define QMI_LOC_MASK_MEAS_STATUS_SM_VALID_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000001ull) /**< Satellite time in submilliseconds (code phase) is known */
-#define QMI_LOC_MASK_MEAS_STATUS_SB_VALID_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000002ull) /**< Satellite sub-bit time is known */
-#define QMI_LOC_MASK_MEAS_STATUS_MS_VALID_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000004ull) /**< Satellite time in milliseconds is known */
-#define QMI_LOC_MASK_MEAS_STATUS_BE_CONFIRM_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000008ull) /**< Signal bit edge is confirmed */
-#define QMI_LOC_MASK_MEAS_STATUS_VELOCITY_VALID_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000010ull) /**< Satellite Doppler is measured */
-#define QMI_LOC_MASK_MEAS_STATUS_VELOCITY_FINE_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000020ull) /**< TRUE: Fine Doppler is measured, FALSE: Coarse Doppler is measured */
-#define QMI_LOC_MASK_MEAS_STATUS_FROM_RNG_DIFF_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000200ull) /**< Range update from satellite differences is measured */
-#define QMI_LOC_MASK_MEAS_STATUS_FROM_VE_DIFF_V02 ((qmiLocSvMeasStatusMaskT_v02)0x00000400ull) /**< Doppler update from satellite differences is measured} */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint32_t svTimeMs;
- /**< Satellite time in milliseconds. \n
- - For GPS, BDS, GAL, and QZSS -- Range is 0 thru (604800000-1) \n
- - For GLONASS -- Range is 0 thru (86400000-1) \n
- - Units: Milliseconds \vspace{4pt}
-
- This is valid when the QMI_LOC_MEAS_ STATUS_MS_VALID bit is set
- in the measurement status. \vspace{4pt}
-
- @note1hang All SV times in the current measurement block are
- already propagated to a common reference time epoch.
- */
-
- float svTimeSubMs;
- /**< Satellite time in submilliseconds. \n
- Total SV Time = svMs + svSubMs \n
- - Units: Milliseconds
- */
-
- float svTimeUncMs;
- /**< Satellite time uncertainty. \n
- - Units: Milliseconds
- */
-
- float dopplerShift;
- /**< Satellite Doppler. \n
- - Units: Meters per second
- */
-
- float dopplerShiftUnc;
- /**< Satellite Doppler uncertainty. \n
- - Units: Meters per second
- */
-
- uint8_t dopplerAccel_valid;
- /**< Validity for Doppler acceleration. */
-
- float dopplerAccel;
- /**< Satellite Doppler acceleration. \n
- - Units: Hz/second
- */
-}qmiLocSVTimeSpeedStructT_v02; /* Type */
-/**
- @}
- */
-
-typedef uint16_t qmiLocMeasFieldsValidMaskT_v02;
-#define QMI_LOC_SV_HEALTH_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x01) /**< SV health information is valid */
-#define QMI_LOC_SV_MULTIPATH_EST_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x02) /**< Multipath estimate for SV is valid */
-#define QMI_LOC_SV_FINE_SPEED_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x04) /**< Fine speed for SV is valid */
-#define QMI_LOC_SV_FINE_SPEED_UNC_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x08) /**< Fine speed uncertainty for SV is valid */
-#define QMI_LOC_SV_CARRIER_PHASE_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x10) /**< Carrier phase for SV is valid */
-#define QMI_LOC_SV_SV_DIRECTION_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x20) /**< SV direction information for SV is valid */
-#define QMI_LOC_SV_CYCLESLIP_COUNT_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x40) /**< Cycle slip count information is valid */
-#define QMI_LOC_SV_LOSSOFLOCK_VALID_V02 ((qmiLocMeasFieldsValidMaskT_v02)0x80) /**< Loss of lock information is valid */
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint16_t gnssSvId;
- /**< GNSS SV ID.
- \begin{itemize1}
- \item Range: \begin{itemize1}
- \item For GPS: 1 to 32
- \item For GLONASS: 65 to 96. When slot-number to SV ID mapping is unknown, set as 255.
- \item For QZSS: 193 to 197
- \item For BDS: 201 to 237
- \item For GAL: 301 to 336
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- uint8_t gloFrequency;
- /**< GLONASS frequency number + 7. \n
- Valid only for a GLONASS system and
- is to be ignored for all other systems. \n
- - Range: 1 to 14
- */
-
- qmiLocSvStatusEnumT_v02 svStatus;
- /**< Satellite search state.
-
- Valid values: \n
- - eQMI_LOC_SV_STATUS_IDLE (1) -- SV is not being actively processed
- - eQMI_LOC_SV_STATUS_SEARCH (2) -- The system is searching for this SV
- - eQMI_LOC_SV_STATUS_TRACK (3) -- SV is being tracked
- */
-
- qmiLocMeasFieldsValidMaskT_v02 validMask;
- /**< Validity mask (0 = Not valid; 1 = Valid). \n
-
- - QMI_LOC_SV_HEALTH_VALID (0x01) -- SV health information is valid
- - QMI_LOC_SV_MULTIPATH_EST_VALID (0x02) -- Multipath estimate for SV is valid
- - QMI_LOC_SV_FINE_SPEED_VALID (0x04) -- Fine speed for SV is valid
- - QMI_LOC_SV_FINE_SPEED_UNC_VALID (0x08) -- Fine speed uncertainty for SV is valid
- - QMI_LOC_SV_CARRIER_PHASE_VALID (0x10) -- Carrier phase for SV is valid
- - QMI_LOC_SV_SV_DIRECTION_VALID (0x20) -- SV direction information for SV is valid
- - QMI_LOC_SV_CYCLESLIP_COUNT_VALID (0x40) -- Cycle slip count information is valid
- - QMI_LOC_SV_LOSSOFLOCK_VALID (0x80) -- Loss of lock information is valid
- */
-
- uint8_t healthStatus;
- /**< Health status. \n
- \begin{itemize1}
- - Range: 0 to 1, where 0 = unhealthy, 1 = healthy
- */
-
- qmiLocSvInfoMaskT_v02 svInfoMask;
- /**< Indicates whether almanac and ephemeris information is available.
-
- Valid values: \n
- - QMI_LOC_SVINFO_MASK_HAS_EPHEMERIS (0x01) -- Ephemeris is available for this SV
- - QMI_LOC_SVINFO_MASK_HAS_ALMANAC (0x02) -- Almanac is available for this SV
- */
-
- qmiLocSvMeasStatusValidMaskT_v02 validMeasStatusMask;
- /**< Validity mask for measurement status information. \n
- A set bit in validMeasStatusMask indicates that the corresponding bit
- in measurementStatus has valid status information: \n
- Valid masks: \n
- - QMI_LOC_MASK_MEAS_STATUS_SM_STAT_BIT_VALID (0x00000001) -- Satellite time in submilliseconds (code-phase)
- - QMI_LOC_MASK_MEAS_STATUS_SB_STAT_BIT_VALID (0x00000002) -- Satellite sub-bit time
- - QMI_LOC_MASK_MEAS_STATUS_MS_STAT_BIT_VALID (0x00000004) -- Satellite time in milliseconds
- - QMI_LOC_MASK_MEAS_STATUS_BE_CONFIRM_STAT_BIT_VALID (0x00000008) -- Signal bit edge is confirmed
- - QMI_LOC_MASK_MEAS_STATUS_VEL_STAT_BIT_VALID (0x00000010) -- Satellite Doppler is measured
- - QMI_LOC_MASK_MEAS_STATUS_VEL_FINE_STAT_BIT_VALID (0x00000020) -- Fine/coarse Doppler measurement indicator
- - QMI_LOC_MASK_MEAS_STATUS_FROM_RNG_DIFF_STAT_BIT_VALID (0x00000200) -- Range update from satellite differences
- - QMI_LOC_MASK_MEAS_STATUS_FROM_VE_DIFF_STAT_BIT_VALID (0x00000400) -- Doppler update from satellite differences
-\vspace{4pt}
- Additionally, MSB 0xFFC0000000000000 bits indicate the validity of DONT_USE bits. \n
-
- */
-
- qmiLocSvMeasStatusMaskT_v02 measurementStatus;
- /**< Bitmask indicating the SV measurement status.
-
- Valid bitmasks: \n
- - QMI_LOC_MASK_MEAS_STATUS_SM_VALID (0x00000001) -- Satellite time in submilliseconds (code phase) is known
- - QMI_LOC_MASK_MEAS_STATUS_SB_VALID (0x00000002) -- Satellite sub-bit time is known
- - QMI_LOC_MASK_MEAS_STATUS_MS_VALID (0x00000004) -- Satellite time in milliseconds is known
- - QMI_LOC_MASK_MEAS_STATUS_BE_CONFIRM (0x00000008) -- Signal bit edge is confirmed
- - QMI_LOC_MASK_MEAS_STATUS_VELOCITY_VALID (0x00000010) -- Satellite Doppler is measured
- - QMI_LOC_MASK_MEAS_STATUS_VELOCITY_FINE (0x00000020) -- TRUE: Fine Doppler is measured, FALSE: Coarse Doppler is measured
- - QMI_LOC_MASK_MEAS_STATUS_FROM_RNG_DIFF (0x00000200) -- Range update from satellite differences is measured
- - QMI_LOC_MASK_MEAS_STATUS_FROM_VE_DIFF (0x00000400) -- Doppler update from satellite differences is measured}
-
- If any MSB bit in 0xFFC0000000000000 DONT_USE is set, the measurement
- must not be used by the client.
- */
-
- uint16_t CNo;
- /**< Carrier to noise ratio. \n
- - Units: dBHz \n
- - Scale: 0.1
- */
-
- uint16_t gloRfLoss;
- /**< GLONASS RF loss reference to the antenna. \n
- - Units: dB \n
- - Scale: 0.1
- */
-
- int32_t measLatency;
- /**< Age of the measurement. A positive value means the measurement precedes the reference time. \n
- - Units: Milliseconds
- */
-
- qmiLocSVTimeSpeedStructT_v02 svTimeSpeed;
- /**< SV time and speed information. */
-
- uint8_t lossOfLock;
- /**< Loss of signal lock indicator. \n
- - 0 -- Signal is in continuous track \n
- - 1 -- Signal is not in track
- */
-
- float multipathEstimate;
- /**< Estimate of multipath in a measurement. \n
- - Units: Meters
- */
-
- float fineSpeed;
- /**< Carrier phase derived speed. \n
- - Units: Meters per second
- */
-
- float fineSpeedUnc;
- /**< Carrier phase derived speed uncertainty. \n
- - Units: Meters per second
- */
-
- double carrierPhase;
- /**< Carrier phase measurement (L1 cycles).
- */
-
- uint8_t cycleSlipCount;
- /**< Increments when a cycle slip is detected. */
-
- float svAzimuth;
- /**< Satellite azimuth. \n
- - Units: Radians \n
- - Range: 0 to 2*pi()
- */
-
- float svElevation;
- /**< Satellite elevation. \n
- - Units: Radians \n
- - Range: 0 to pi()/2
- */
-}qmiLocSVMeasurementStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a satellite measurement report to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* Current Message Sequence Number */
- uint8_t seqNum;
- /**< Current message number. Used for segmentation/assembly of measurement reports. */
-
- /* Mandatory */
- /* Maximum Number of Messages to be Sent for Present Time Epoch */
- uint8_t maxMessageNum;
- /**< Maximum number of messages that are to be sent for the present time epoch. */
-
- /* Mandatory */
- /* Specifies Satellite System Constellation of This Report */
- qmiLocSvSystemEnumT_v02 system;
- /**< Specifies the satellite system constellation of this report.
-
- Valid values: \n
- - eQMI_LOC_SV_SYSTEM_GPS (1) -- GPS satellite
- - eQMI_LOC_SV_SYSTEM_GALILEO (2) -- GALILEO satellite
- - eQMI_LOC_SV_SYSTEM_SBAS (3) -- SBAS satellite
- - eQMI_LOC_SV_SYSTEM_COMPASS (4) -- COMPASS satellite (Deprecated)
- - eQMI_LOC_SV_SYSTEM_GLONASS (5) -- GLONASS satellite
- - eQMI_LOC_SV_SYSTEM_BDS (6) -- BDS satellite
- - eQMI_LOC_SV_SYSTEM_QZSS (7) -- QZSS satellite
- */
-
- /* Optional */
- /* GNSS Receiver Clock Frequency Information */
- uint8_t rcvrClockFrequencyInfo_valid; /**< Must be set to true if rcvrClockFrequencyInfo is being passed */
- qmiLocRcvrClockFrequencyInfoStructT_v02 rcvrClockFrequencyInfo;
-
- /* Optional */
- /* Leap Second Information */
- uint8_t leapSecondInfo_valid; /**< Must be set to true if leapSecondInfo is being passed */
- qmiLocLeapSecondInfoStructT_v02 leapSecondInfo;
-
- /* Optional */
- /* GPS to GLONASS Intersystem Time Bias */
- uint8_t gpsGloInterSystemBias_valid; /**< Must be set to true if gpsGloInterSystemBias is being passed */
- qmiLocInterSystemBiasStructT_v02 gpsGloInterSystemBias;
- /**< \vspace{4pt} \n
- This is reported if both GPS and GLONASS system
- information reporting are enabled. \n
- - System 1: GPS \n
- - System 2: GLONASS
- */
-
- /* Optional */
- /* GPS to BDS Intersystem Time Bias */
- uint8_t gpsBdsInterSystemBias_valid; /**< Must be set to true if gpsBdsInterSystemBias is being passed */
- qmiLocInterSystemBiasStructT_v02 gpsBdsInterSystemBias;
- /**< \vspace{4pt} \n
- This is reported if both GPS and BDS system
- information reporting are enabled. \n
- - System 1: GPS \n
- - System 2: BDS
- */
-
- /* Optional */
- /* GPS to GALILEO Intersystem Time Bias */
- uint8_t gpsGalInterSystemBias_valid; /**< Must be set to true if gpsGalInterSystemBias is being passed */
- qmiLocInterSystemBiasStructT_v02 gpsGalInterSystemBias;
- /**< \vspace{4pt} \n
- This is reported if both GPS and GALILEO system
- information reporting are enabled. \n
- - System 1: GPS \n
- - System 2: GALILEO
- */
-
- /* Optional */
- /* BDS to GLONASS Intersystem Time Bias */
- uint8_t bdsGloInterSystemBias_valid; /**< Must be set to true if bdsGloInterSystemBias is being passed */
- qmiLocInterSystemBiasStructT_v02 bdsGloInterSystemBias;
- /**< \vspace{4pt} \n
- This is reported if both BDS and GLONASS system
- information reporting are enabled. \n
- - System 1: BDS \n
- - System 2: GLONASS
- */
-
- /* Optional */
- /* GAL to GLONASS Intersystem Time Bias */
- uint8_t galGloInterSystemBias_valid; /**< Must be set to true if galGloInterSystemBias is being passed */
- qmiLocInterSystemBiasStructT_v02 galGloInterSystemBias;
- /**< \vspace{4pt} \n
- This is reported if both GAL and GLONASS system
- information reporting are enabled. \n
- - System 1: GAL \n
- - System 2: GLONASS
- */
-
- /* Optional */
- /* GAL to BDS Intersystem Time Bias */
- uint8_t galBdsInterSystemBias_valid; /**< Must be set to true if galBdsInterSystemBias is being passed */
- qmiLocInterSystemBiasStructT_v02 galBdsInterSystemBias;
- /**< \vspace{4pt} \n
- This is reported if both GAL and BDS system
- information reporting are enabled. \n
- - System 1: GAL \n
- - System 2: BDS
- */
-
- /* Optional */
- /* Satellite System Time Information for GPS, BDS, GAL Constellation */
- uint8_t systemTime_valid; /**< Must be set to true if systemTime is being passed */
- qmiLocGnssTimeStructT_v02 systemTime;
-
- /* Optional */
- /* GLONASS System Time Information */
- uint8_t gloTime_valid; /**< Must be set to true if gloTime is being passed */
- qmiLocGloTimeStructT_v02 gloTime;
-
- /* Optional */
- /* Extended Time Information */
- uint8_t systemTimeExt_valid; /**< Must be set to true if systemTimeExt is being passed */
- qmiLocGnssTimeExtStructT_v02 systemTimeExt;
-
- /* Optional */
- /* Satellite System Measurement Report for Enabled Constellation */
- uint8_t svMeasurement_valid; /**< Must be set to true if svMeasurement is being passed */
- uint32_t svMeasurement_len; /**< Must be set to # of elements in svMeasurement */
- qmiLocSVMeasurementStructT_v02 svMeasurement[QMI_LOC_SV_MEAS_LIST_MAX_SIZE_V02];
-
- /* Optional */
- /* Extended Time Information - Cumulative Number of Clock Resets */
- uint8_t numClockResets_valid; /**< Must be set to true if numClockResets is being passed */
- uint32_t numClockResets;
- /**< Number of clock resets/discontinuities detected, affecting the local hardware counter value. */
-}qmiLocEventGnssSvMeasInfoIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint16_t qmiLocSvPolyStatusMaskT_v02;
-#define QMI_LOC_SV_POLY_SRC_ALM_CORR_V02 ((qmiLocSvPolyStatusMaskT_v02)0x01) /**< Polynomials based on XTRA */
-#define QMI_LOC_SV_POLY_GLO_STR4_V02 ((qmiLocSvPolyStatusMaskT_v02)0x02) /**< GLONASS string 4 has been received */
-typedef uint16_t qmiLocSvPolyStatusMaskValidityT_v02;
-#define QMI_LOC_SV_POLY_SRC_ALM_CORR_VALID_V02 ((qmiLocSvPolyStatusMaskValidityT_v02)0x01) /**< Validity status for QMI_LOC_SV_POLY_SRC_ALM_CORR */
-#define QMI_LOC_SV_POLY_GLO_STR4_VALID_V02 ((qmiLocSvPolyStatusMaskValidityT_v02)0x02) /**< Validity status for QMI_LOC_SV_POLY_GLO_STR4 */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a satellite polynomial report to the control point. */
-typedef struct {
-
- /* Mandatory */
- /* GNSS SV Polynomial Report */
- uint16_t gnssSvId;
- /**< GNSS SV ID. \begin{itemize1}
- \item Range: \begin{itemize1}
- \item For GPS: 1 to 32
- \item For GLONASS: 65 to 96 (when the slot number to SV ID mapping is unknown, set to 255)
- \item For SBAS: 120 to 158 and 183 to 187
- \item For QZSS: 193 to 197
- \item For BDS: 201 to 237
- \item For GAL: 301 to 336
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Mandatory */
- /* Reference Time for Polynomial Calculations */
- double T0;
- /**< Reference time for polynomial calculations. \n
- - GPS, QZSS: Seconds in the week \n
- - GLO: Full seconds since Jan. 1, 1996 \n
- - BDS: Full seconds since Jan. 1, 2006 \n
- - GAL: Calculated from 00:00 UT on Sunday, August 22, 1999 (midnight between August 21 and August 22)
- */
-
- /* Mandatory */
- /* SV Polynomial Validity Status */
- qmiLocSvPolyStatusMaskValidityT_v02 svPolyFlagValid;
- /**< Validity mask for bits in svPolyFlags. A set bit in svPolyFlagValid indicates that a
- corresponding bit in svPolyFlags has valid status information.
-
- Valid bitmasks: \n
- - QMI_LOC_SV_POLY_SRC_ALM_CORR_VALID (0x01) -- Validity status for QMI_LOC_SV_POLY_SRC_ALM_CORR
- - QMI_LOC_SV_POLY_GLO_STR4_VALID (0x02) -- Validity status for QMI_LOC_SV_POLY_GLO_STR4 */
-
- /* Mandatory */
- /* SV Polynomial Report Status */
- qmiLocSvPolyStatusMaskT_v02 svPolyFlags;
- /**< Flags indicating the status of a polynomial report.
-
- Valid bitmasks: \n
- - QMI_LOC_SV_POLY_SRC_ALM_CORR (0x01) -- Polynomials based on XTRA
- - QMI_LOC_SV_POLY_GLO_STR4 (0x02) -- GLONASS string 4 has been received */
-
- /* Optional */
- /* Polynomial Coefficient's 0th Term for X, Y, and Z Coordinates */
- uint8_t polyCoeffXYZ0_valid; /**< Must be set to true if polyCoeffXYZ0 is being passed */
- double polyCoeffXYZ0[QMI_LOC_SV_POLY_XYZ_0_TH_ORDER_COEFF_SIZE_V02];
- /**< Polynomial coefficient's 0th term for X, Y, and Z coordinates (C0X, C0Y, C0Z). \n
- - Units: Meters
- */
-
- /* Optional */
- /* Polynomial Coefficient's 1st, 2nd, and 3rd Terms for X, Y, and Z Coordinates */
- uint8_t polyCoefXYZN_valid; /**< Must be set to true if polyCoefXYZN is being passed */
- double polyCoefXYZN[QMI_LOC_SV_POLY_XYZ_N_TH_ORDER_COEFF_SIZE_V02];
- /**< Polynomial coefficient's 1st, 2nd, and 3rd terms for X, Y, and Z coordinates (C1X, C2X,... C2Z, C3Z). \begin{itemize1}
- \item Units: \begin{itemize1}
- \item 1st term -- Meters/second
- \item 2nd term -- Meters/second^2
- \item 3rd term -- Meters/seconds^3 \vspace{-0.18in} \end{itemize1} end{itemize1}
- */
-
- /* Optional */
- /* Polynomial Coefficients for Satellite Clock Bias Correction */
- uint8_t polyCoefClockBias_valid; /**< Must be set to true if polyCoefClockBias is being passed */
- float polyCoefClockBias[QMI_LOC_SV_POLY_SV_CLKBIAS_COEFF_SIZE_V02];
- /**< Polynomial coefficients for satellite clock bias correction (C0T, C1T, C2T, C3T). \begin{itemize1}
- \item Units: \begin{itemize1}
- \item 0th term -- Milliseconds/second
- \item 1st term -- Milliseconds/second^2
- \item 2nd term -- Milliseconds/second^3
- \item 3rd term -- Milliseconds/second^4 \vspace{-0.18in} \end{itemize1} end{itemize1}
- */
-
- /* Optional */
- /* GLONASS Frequency Number */
- uint8_t gloFrequency_valid; /**< Must be set to true if gloFrequency is being passed */
- uint8_t gloFrequency;
- /**< GLONASS frequency number + 7. \n
- Valid only for GLONASS systems and
- must be ignored for all other systems. \n
- - Range: 1 to 14
- */
-
- /* Optional */
- /* Ephemeris Reference Time */
- uint8_t IODE_valid; /**< Must be set to true if IODE is being passed */
- uint16_t IODE;
- /**< Ephemeris reference time. \n
- - GPS -- Issue of data ephemeris used (unitless) \n
- - GLONASS -- Tb 7-bit \n
- - Galileo -- 10-bit
- */
-
- /* Optional */
- /* Enhanced Reference Time */
- uint8_t enhancedIOD_valid; /**< Must be set to true if enhancedIOD is being passed */
- uint32_t enhancedIOD;
- /**< For BDS ephemeris, this is TOE.
- */
-
- /* Optional */
- /* SV Position Uncertainty */
- uint8_t svPosUnc_valid; /**< Must be set to true if svPosUnc is being passed */
- float svPosUnc;
- /**< SV position uncertainty. \n
- - Units: Meters
- */
-
- /* Optional */
- /* Iono Delay */
- uint8_t ionoDelay_valid; /**< Must be set to true if ionoDelay is being passed */
- float ionoDelay;
- /**< Ionospheric delay at T0. \n
- - Units: Meters
- */
-
- /* Optional */
- /* Iono Delay Rate */
- uint8_t ionoDot_valid; /**< Must be set to true if ionoDot is being passed */
- float ionoDot;
- /**< Ionospheric delay rate. \n
- - Units: Meters/second
- */
-
- /* Optional */
- /* SBAS Iono Delay */
- uint8_t sbasIonoDelay_valid; /**< Must be set to true if sbasIonoDelay is being passed */
- float sbasIonoDelay;
- /**< SBAS ionospheric delay at T0. \n
- - Units: Meters
- */
-
- /* Optional */
- /* SBAS Iono Delay Rate */
- uint8_t sbasIonoDot_valid; /**< Must be set to true if sbasIonoDot is being passed */
- float sbasIonoDot;
- /**< SBAS ionospheric delay rate. \n
- - Units: Meters/second
- */
-
- /* Optional */
- /* Tropospheric Delay */
- uint8_t tropoDelay_valid; /**< Must be set to true if tropoDelay is being passed */
- float tropoDelay;
- /**< Tropospheric delay. \n
- - Units: Meters
- */
-
- /* Optional */
- /* Satellite Elevation */
- uint8_t elevation_valid; /**< Must be set to true if elevation is being passed */
- float elevation;
- /**< Satellite elevation at T0. \n
- - Units: Radians
- */
-
- /* Optional */
- /* Satellite Elevation Rate */
- uint8_t elevationDot_valid; /**< Must be set to true if elevationDot is being passed */
- float elevationDot;
- /**< Satellite elevation rate. \n
- - Units: Radians/second
- */
-
- /* Optional */
- /* Satellite Elevation Uncertainty */
- uint8_t elenationUnc_valid; /**< Must be set to true if elenationUnc is being passed */
- float elenationUnc;
- /**< SV elevation uncertainty. \n
- - Units: Radians
- */
-
- /* Optional */
- /* Polynomial Coefficients for SV Velocity */
- uint8_t velCoef_valid; /**< Must be set to true if velCoef is being passed */
- double velCoef[QMI_LOC_SV_POLY_VELOCITY_COEF_SIZE_V02];
- /**< Polynomial coefficients for SV velocity (C0X, C1X, C2X, C3X,... C2Z, C3Z). \begin{itemize1}
- \item Units: \begin{itemize1}
- \item 0th term -- Meters/second
- \item 1st term -- Meters/second^2
- \item 2nd term -- Meters/second^3
- \item 3rd term -- Meters/second^4 \vspace{-0.18in} \end{itemize1} end{itemize1}
- */
-}qmiLocEventGnssSvPolyIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t wifiApMacAddress[QMI_LOC_WIFI_MAC_ADDR_LENGTH_V02];
- /**< MAC address of the Wi-Fi AP. */
-}qmiLocWifiApMacAddressStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- char uuid[QMI_LOC_MAX_IBEACON_UUID_STR_LENGTH_V02 + 1];
- /**< NULL-terminated IBeacon identifier string; a 128-bit value. */
-
- uint32_t majorNumber;
- /**< IBeacon major number.*/
-
- uint32_t minorNumber;
- /**< IBeacon minor number.*/
-}qmiLocIBeaconIdStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject the Geofence context. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned in the Add Geofence Context indication. */
-
- /* Optional */
- /* Geofence ID */
- uint8_t geofenceId_valid; /**< Must be set to true if geofenceId is being passed */
- uint32_t geofenceId;
- /**< Geofence identifier allocated by the engine. \n
- If the Geofence ID is not provided, a Geofence is created with an Area ID
- list only (e.g., Wi-Fi only list Geofence). \n
- If the Geofence ID is provided, the added list is used as assistance data
- to the existing Geofence. */
-
- /* Optional */
- /* Wi-Fi AP SSID String */
- uint8_t wifiApSsidInfo_valid; /**< Must be set to true if wifiApSsidInfo is being passed */
- uint32_t wifiApSsidInfo_len; /**< Must be set to # of elements in wifiApSsidInfo */
- qmiLocWifiApSsidStructT_v02 wifiApSsidInfo[QMI_LOC_WIFI_AREA_ID_LIST_LENGTH_V02];
- /**< \vspace{4pt} \n The ordering of the Wi-Fi AP SSID list should match the Wi-Fi AP MAC address
- list when both are provided,
- that is, the first element of the Wi-Fi AP SSID list must be the SSID of the AP whose MAC
- address is in the first element in the Wi-Fi AP MAC address, etc. */
-
- /* Optional */
- /* Wi-Fi AP MAC Address List for the Geofence */
- uint8_t wifiApMacAddressList_valid; /**< Must be set to true if wifiApMacAddressList is being passed */
- uint32_t wifiApMacAddressList_len; /**< Must be set to # of elements in wifiApMacAddressList */
- qmiLocWifiApMacAddressStructT_v02 wifiApMacAddressList[QMI_LOC_WIFI_AREA_ID_LIST_LENGTH_V02];
- /**< The ordering of the Wi-Fi AP SSID list should match the Wi-Fi AP MAC address
- list when both are provided,
- that is, the first element of the Wi-Fi AP SSID list must be the SSID of the AP whose MAC
- address is in the first element in the Wi-Fi AP MAC address, etc. */
-
- /* Optional */
- /* TDSCDMA Cell ID List for the Geofence */
- uint8_t tdsCdmaCellIDList_valid; /**< Must be set to true if tdsCdmaCellIDList is being passed */
- qmiLocTDSCDMACellIdStructT_v02 tdsCdmaCellIDList[QMI_LOC_CELL_ID_LIST_LENGTH_V02];
- /**< \n Identifies the TDSCDMA cell on which the device is currently camped. */
-
- /* Optional */
- /* WCDMA Cell ID List for the Geofence */
- uint8_t wcdmaCellIDList_valid; /**< Must be set to true if wcdmaCellIDList is being passed */
- uint32_t wcdmaCellIDList_len; /**< Must be set to # of elements in wcdmaCellIDList */
- qmiLocWCDMACellIdStructT_v02 wcdmaCellIDList[QMI_LOC_CELL_ID_LIST_LENGTH_V02];
- /**< \vspace{4pt} \n Identifies the WCDMA cell on which the device is currently camped. */
-
- /* Optional */
- /* GSM Cell ID List for the Geofence */
- uint8_t gsmCellIDList_valid; /**< Must be set to true if gsmCellIDList is being passed */
- uint32_t gsmCellIDList_len; /**< Must be set to # of elements in gsmCellIDList */
- qmiLocGSMCellIdStructT_v02 gsmCellIDList[QMI_LOC_CELL_ID_LIST_LENGTH_V02];
- /**< \n Identifies the GSM cell on which the device is currently camped. */
-
- /* Optional */
- /* IBeacon List of the Geofence */
- uint8_t iBeaconList_valid; /**< Must be set to true if iBeaconList is being passed */
- uint32_t iBeaconList_len; /**< Must be set to # of elements in iBeaconList */
- qmiLocIBeaconIdStructT_v02 iBeaconList[QMI_LOC_IBEACON_LIST_LENGTH_V02];
-}qmiLocAddGeofenceContextReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject the Geofence context. */
-typedef struct {
-
- /* Mandatory */
- /* Status of the Add Geofence Context Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Add Geofence Context request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Add Geofence Context
- request. This parameter is always present
- if the status field is set to SUCCESS. */
-
- /* Optional */
- /* Geofence ID */
- uint8_t geofenceId_valid; /**< Must be set to true if geofenceId is being passed */
- uint32_t geofenceId;
- /**< Geofence identifier allocated by the engine. \n
- If the client specifies the Geofence ID during the Add Geofence Context request,
- the same ID is returned. \n
- If the client does not specify the Geofence ID during the Add Geofence Context request,
- a new Geofence ID is created by the Geofence engine and returned. */
-
- /* Optional */
- /* Context ID */
- uint8_t contextId_valid; /**< Must be set to true if contextId is being passed */
- uint32_t contextId;
- /**< Geofence context ID allocated by the engine.
- The context ID is generated by the Geofence engine to identify the context
- for a particular Geofence ID.
- The same Geofence ID may be associated with multiple contexts. */
-}qmiLocAddGeofenceContextIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject the Geofence engine context. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned in the Set Geofence Engine Context indication. */
-
- /* Optional */
- /* UTC Timestamp of the Day */
- uint8_t utcTimeOfDay_valid; /**< Must be set to true if utcTimeOfDay is being passed */
- uint64_t utcTimeOfDay;
- /**< The UTC time of the day. */
-
- /* Optional */
- /* Temperature of the Day in Fahrenheit */
- uint8_t temperature_valid; /**< Must be set to true if temperature is being passed */
- int32_t temperature;
- /**< The temperature of the day in degrees Fahrenheit. */
-}qmiLocSetGeofenceEngineContextReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject the Geofence engine context. */
-typedef struct {
-
- /* Mandatory */
- /* Status of the Set Geofence Engine Context Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Set Geofence Engine Context request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Set Geofence Engine Context
- request. This parameter will always be present
- if the status field is set to SUCCESS. */
-}qmiLocSetGeofenceEngineContextIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to delete the Geofence context. */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The transaction ID
- is returned in the Delete Geofence Context indication. */
-
- /* Mandatory */
- /* Geofence ID */
- uint32_t geofenceId;
- /**< Identifies the Geofence whose context is to be deleted. */
-
- /* Optional */
- /* Context ID */
- uint8_t contextId_valid; /**< Must be set to true if contextId is being passed */
- uint32_t contextId;
- /**< Identifies the context associated with the Geofence to be deleted.
- If not specified, all contexts associated with this Geofence are deleted. */
-}qmiLocDeleteGeofenceContextReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to delete the Geofence context. */
-typedef struct {
-
- /* Mandatory */
- /* Status of the Delete Geofence Context Request */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Delete Geofence Context request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Transaction ID that was specified in the Delete Geofence Context request.
- This parameter will always be present
- if the status field is set to SUCCESS. */
-
- /* Optional */
- /* Geofence ID */
- uint8_t geofenceId_valid; /**< Must be set to true if geofenceId is being passed */
- uint32_t geofenceId;
- /**< Identifier for the Geofence whose context was deleted. */
-
- /* Optional */
- /* Context ID */
- uint8_t contextId_valid; /**< Must be set to true if contextId is being passed */
- uint32_t contextId;
- /**< Identifier for the context of the Geofence that was deleted. */
-}qmiLocDeleteGeofenceContextIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects Global Terrestrial Positioning (GTP) WWAN client downloaded data. */
-typedef struct {
-
- /* Mandatory */
- /* Data */
- uint32_t ClientDownloadedData_len; /**< Must be set to # of elements in ClientDownloadedData */
- char ClientDownloadedData[QMI_LOC_MAX_GTP_WWAN_CLIENT_DOWNLOADED_DATA_LEN_V02];
- /**< WWAN client downloaded data. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 512
- */
-}qmiLocInjectGtpClientDownloadedDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects Global Terrestrial Positioning (GTP) WWAN client downloaded data. */
-typedef struct {
-
- /* Mandatory */
- /* GTP Client Downloaded Data Injection Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GTP client downloaded data injection.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectGtpClientDownloadedDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sends a GDT upload begin response to GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* Access Status to GDT */
- qmiLocGdtAccessStatusEnumT_v02 gdtAccessStatus;
- /**< GDT status information for this service ID.
-
- Values: \n
- - eQMI_LOC_GDT_ACCESS_ALLOWED (1) -- GDT access to the service is allowed
- - eQMI_LOC_GDT_ACCESS_FAILED (2) -- Any type of GDT access error
- - eQMI_LOC_GDT_ACCESS_NOT_ALLOWED (3) -- GDT access to the service is not allowed
- */
-}qmiLocGdtUploadBeginStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a GDT upload begin response to GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Upload Begin Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GDT begin request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocGdtUploadBeginStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGDTENDACKENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GDT_ACK_SUCCESS_V02 = 1, /**< The sent data is accepted */
- eQMI_LOC_GDT_ACK_FAILED_V02 = 2, /**< The sent data was not accepted */
- eQMI_LOC_GDT_ACK_INVALID_V02 = 3, /**< General error in the received data */
- QMILOCGDTENDACKENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGdtEndAckEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sends a GDT upload end response to GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* Access Status to GDT */
- qmiLocGdtEndAckEnumT_v02 gdtEndStatus;
- /**< GDT end status information for this service ID.
-
- Valid values: \n
- - eQMI_LOC_GDT_ACK_SUCCESS (1) -- The sent data is accepted
- - eQMI_LOC_GDT_ACK_FAILED (2) -- The sent data was not accepted
- - eQMI_LOC_GDT_ACK_INVALID (3) -- General error in the received data
- */
-}qmiLocGdtUploadEndReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a GDT upload end response to GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* UTC GDT Upload End Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GDT upload end request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocGdtUploadEndIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGTPAPSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GTP_AP_STATUS_DB_READY_V02 = 1, /**< Indicates that the AP is initialized and ready to process MP download requests */
- eQMI_LOC_GTP_AP_STATUS_DB_REFRESHED_V02 = 2, /**< Indicates that the AP has successfully refreshed partitions */
- eQMI_LOC_GTP_AP_STATUS_DB_DELETED_V02 = 3, /**< Indicates that the AP has removed local partitions */
- QMILOCGTPAPSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGtpApStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sends a Global Terrestrial Position (GTP) message to the MP
- notifying the GTP MP of AP DB readiness. */
-typedef struct {
-
- /* Mandatory */
- /* AP DB Status */
- qmiLocGtpApStatusEnumT_v02 gtpApDbStatus;
- /**< GTP AP DB status information.
-
- Valid values: \n
- - eQMI_LOC_GTP_AP_STATUS_DB_READY (1) -- Indicates that the AP is initialized and ready to process MP download requests
- - eQMI_LOC_GTP_AP_STATUS_DB_REFRESHED (2) -- Indicates that the AP has successfully refreshed partitions
- - eQMI_LOC_GTP_AP_STATUS_DB_DELETED (3) -- Indicates that the AP has removed local partitions
- */
-
- /* Optional */
- /* AP PCID (8 byte) */
- uint8_t gtpApPcid64_valid; /**< Must be set to true if gtpApPcid64 is being passed */
- uint64_t gtpApPcid64;
- /**< AP pseudoclient ID. */
-
- /* Optional */
- /* OEM ID (non-NULL Terminated) */
- uint8_t oemId_valid; /**< Must be set to true if oemId is being passed */
- uint32_t oemId_len; /**< Must be set to # of elements in oemId */
- char oemId[QMI_LOC_MAX_OEM_ID_LEN_V02];
- /**< OEM ID. \n
- - Type: character string \n
- - Maximum length of the array: 256
- */
-
- /* Optional */
- /* Model ID (non-NULL Terminated) */
- uint8_t modelId_valid; /**< Must be set to true if modelId is being passed */
- uint32_t modelId_len; /**< Must be set to # of elements in modelId */
- char modelId[QMI_LOC_MAX_MODEL_ID_LEN_V02];
- /**< Model ID. \n
- - Type: character string \n
- - Maximum length of the array: 256
- */
-}qmiLocGtpApStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t asnMajorVersion;
- /**< ASN major version. */
-
- uint8_t asnMinorVersion;
- /**< ASN minor version. */
-
- uint8_t asnPointVersion;
- /**< ASN point version. */
-}qmiLocGtpAsnVerStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a Global Terrestrial Position (GTP) message to the MP
- notifying the GTP MP of AP DB readiness. */
-typedef struct {
-
- /* Mandatory */
- /* GTP MP Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GTP handshake.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* MP Client Software Version */
- uint16_t clientSoftwareVersion;
- /**< MP client software version. */
-
- /* Mandatory */
- /* MP ASN Version */
- qmiLocGtpAsnVerStructT_v02 asnVersion;
-}qmiLocGtpApStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCGTPPROCESSSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_GTP_PROCESS_SUCCESS_FROM_LOCAL_V02 = 1, /**< DL processing was processed successfully locally */
- eQMI_LOC_GTP_PROCESS_SUCCESS_FROM_SERVER_V02 = 2, /**< DL processing was processed successfully via server access */
- eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_AP_NOT_READY_V02 = 3, /**< DL processing is not allowed because the AP is not ready */
- eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_AP_TIMEOUT_V02 = 4, /**< DL processing is not allowed because the AP cannot process within the given interval */
- eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_NO_CONNECTIVITY_V02 = 5, /**< DL processing via server is not allowed because the AP has no connectivity, but
- it will be processed locally */
- eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_THROTTLED_V02 = 6, /**< DL processing via server is not allowed due to throttling, but it will be
- processed locally */
- eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_OTHER_V02 = 7, /**< DL processing via server is not allowed for another reason, but it will be
- processed locally */
- eQMI_LOC_GTP_PROCESS_FAILED_UNSPECIFIED_V02 = 8, /**< DL processing failed for any other reason */
- QMILOCGTPPROCESSSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocGtpProcessStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sends a GTP message to the MP notifying it of an AP download response. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* AP Process Status */
- qmiLocGtpProcessStatusEnumT_v02 processingStatus;
- /**< AP processing status information for this service ID.
-
- Valid values: \n
- - eQMI_LOC_GTP_PROCESS_SUCCESS_FROM_LOCAL (1) -- DL processing was processed successfully locally
- - eQMI_LOC_GTP_PROCESS_SUCCESS_FROM_SERVER (2) -- DL processing was processed successfully via server access
- - eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_AP_NOT_READY (3) -- DL processing is not allowed because the AP is not ready
- - eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_AP_TIMEOUT (4) -- DL processing is not allowed because the AP cannot process within the given interval
- - eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_NO_CONNECTIVITY (5) -- DL processing via server is not allowed because the AP has no connectivity, but
- it will be processed locally
- - eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_THROTTLED (6) -- DL processing via server is not allowed due to throttling, but it will be
- processed locally
- - eQMI_LOC_GTP_PROCESS_NOT_ALLOWED_OTHER (7) -- DL processing via server is not allowed for another reason, but it will be
- processed locally
- - eQMI_LOC_GTP_PROCESS_FAILED_UNSPECIFIED (8) -- DL processing failed for any other reason
- */
-
- /* Optional */
- /* WWAN Download Flag */
- uint8_t wwanDownloadFlag_valid; /**< Must be set to true if wwanDownloadFlag is being passed */
- uint16_t wwanDownloadFlag;
- /**< WWAN download flag. */
-
- /* Optional */
- /* Encoded Response Location Information */
- uint8_t respLocInfo_valid; /**< Must be set to true if respLocInfo is being passed */
- uint32_t respLocInfo_len; /**< Must be set to # of elements in respLocInfo */
- uint8_t respLocInfo[QMI_LOC_MAX_GTP_RLI_LEN_V02];
- /**< Response location information encoded in asn.1 format. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 256
- */
-
- /* Optional */
- /* AP Remaining Throttle Time */
- uint8_t apRemainingThrottleTime_valid; /**< Must be set to true if apRemainingThrottleTime is being passed */
- uint32_t apRemainingThrottleTime;
- /**< Remaining time in seconds during which the AP will remain throttled for server access. */
-}qmiLocGdtDownloadBeginStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a GTP message to the MP notifying it of an AP download response. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Download Begin Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GDT begin request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocGdtDownloadBeginStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Sends a GTP message to the MP notifying it of data readiness. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* Processing Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the AP processing request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Data File Path (NULL Terminated) */
- uint32_t filePath_len; /**< Must be set to # of elements in filePath */
- char filePath[QMI_LOC_MAX_GDT_PATH_LEN_V02];
- /**< File path to the data. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 255
- */
-}qmiLocGdtDownloadReadyStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Sends a GTP message to the MP notifying it of data readiness. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Ready Begin Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GDT ready request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocGdtDownloadReadyStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Acknowledges receipt of Receive Done to the GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* QMI LOC Status */
- qmiLocStatusEnumT_v02 status;
- /**< Values: \n
-
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocGdtReceiveDoneStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Acknowledges receipt of Receive Done to the GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Receive Done Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Receive Done request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocGdtReceiveDoneStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Acknowledges the receipt of download completion to the GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Service ID */
- qmiLocGdtServiceIdEnumT_v02 serviceId;
- /**< Values: \n
-
- - eQMI_LOC_GDT_SERVICE_WWAN (1) -- GDT service for WWAN UL \n
- - eQMI_LOC_GDT_SERVICE_WWAN_DL (2) -- GDT service for WWAN DL */
-
- /* Mandatory */
- /* Session ID */
- uint32_t sessionId;
- /**< Session ID. */
-
- /* Mandatory */
- /* QMI LOC Status */
- qmiLocStatusEnumT_v02 status;
- /**< Values: \n
-
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocGdtDownloadEndStatusReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Acknowledges the receipt of download completion to the GDT MP. */
-typedef struct {
-
- /* Mandatory */
- /* GDT Download End Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the GDT download end request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocGdtDownloadEndStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCDBTUSAGEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_DBT_USAGE_NAVIGATION_V02 = 1, /**< Navigation usage type */
- QMILOCDBTUSAGEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocDbtUsageEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCDBDISTANCETYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_DBT_DISTANCE_TYPE_STRAIGHT_LINE_V02 = 1, /**< Straight line distance between
- location updates */
- QMILOCDBDISTANCETYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocDbDistanceTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to initiate a Distance Based Tracking (DBT) session. */
-typedef struct {
-
- /* Mandatory */
- /* Request ID */
- uint8_t reqId;
- /**< ID of the request as identified by the control point. The request ID
- is reported back in the position reports. The control point must
- specify the same request ID in the QMI_LOC_STOP_DBT_REQ message. \n
- - Range: 0 to 255
- */
-
- /* Mandatory */
- /* Minimum Distance Between Position Reports */
- uint32_t minDistance;
- /**< Minimum distance, specified by the control point,
- that must be traversed between position reports. \n
- - Units: Meters
- */
-
- /* Mandatory */
- /* Type of Distance to be Tracked */
- qmiLocDbDistanceTypeEnumT_v02 distanceType;
- /**< Straight line distance or accumulated distance. \n
-
- Valid values: \n
- - eQMI_LOC_DBT_DISTANCE_TYPE_STRAIGHT_LINE (1) -- Straight line distance between
- location updates
- */
-
- /* Mandatory */
- /* Need Origin Location */
- uint8_t needOriginLocation;
- /**< Indicates whether the control point wants the position
- corresponding to the origin. \begin{itemize1}
- \item 0x01 (TRUE) -- Control point is requesting origin
- location
- \item 0x00 (FALSE) -- Control point is not requesting origin
- location
- \vspace{-0.18in} \end{itemize1}
- */
-
- /* Optional */
- /* Maximum Latency Threshold for Position Reports */
- uint8_t maxLatency_valid; /**< Must be set to true if maxLatency is being passed */
- uint32_t maxLatency;
- /**< Maximum time period, specified by the control point, after the minimum
- distance criteria has been met within which a location update must
- be provided. If not specified, an ideal value will be assumed by the
- engine \n
- - Units: seconds
- */
-
- /* Optional */
- /* Usage Type */
- uint8_t usageType_valid; /**< Must be set to true if usageType is being passed */
- qmiLocDbtUsageEnumT_v02 usageType;
- /**< Specifies the type of usage by the control point. It refers specifically
- to the use case category of the client. For example, a navigation client should
- set this to QMI_LOC_USAGE_NAVIGATION for better performance in difficult
- signal conditions, such as tunnels.
-
- If not specified, the service uses default algorithms to provide an ideal
- performance.
-
- Valid values: \n
- - eQMI_LOC_DBT_USAGE_NAVIGATION (1) -- Navigation usage type
- */
-}qmiLocStartDbtReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to initiate a Distance Based Tracking (DBT) session. */
-typedef struct {
-
- /* Mandatory */
- /* Start DBT Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Start DBT request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Request ID */
- uint8_t reqId_valid; /**< Must be set to true if reqId is being passed */
- uint8_t reqId;
- /**< ID of the DBT start request for which this
- indication was generated. */
-}qmiLocStartDbtIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to stop a DBT session. */
-typedef struct {
-
- /* Mandatory */
- /* Request ID */
- uint8_t reqId;
- /**< ID of the request that was specified in the Start DBT
- request (QMI_LOC_START_DBT_REQ).\n
- - Range: 0 to 255 */
-}qmiLocStopDbtReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to stop a DBT session. */
-typedef struct {
-
- /* Mandatory */
- /* Stop DBT Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Stop DBT request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Request ID */
- uint8_t reqId_valid; /**< Must be set to true if reqId is being passed */
- uint8_t reqId;
- /**< ID of the DBT stop request for which this
- indication was generated. */
-}qmiLocStopDbtIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCDBTPOSITIONTYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_DBT_POSITION_TYPE_ORIGIN_V02 = 1, /**< Position reported is at the origin */
- eQMI_LOC_DBT_POSITION_TYPE_TRACKING_V02 = 2, /**< Position reported is a tracking type
- where the origin location has already
- been reported */
- QMILOCDBTPOSITIONTYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocDbtPositionTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- /* UTC Timestamp */
- uint64_t timestampUtc;
- /**< UTC timestamp. \n
- - Units: Milliseconds since Jan. 1, 1970
- */
-
- /* Latitude */
- double latitude;
- /**< Latitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Longitude */
- double longitude;
- /**< Longitude (specified in WGS84 datum).
- \begin{itemize1}
- \item Type: Floating point
- \item Units: Degrees
- \item Range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
-
- /* Horizontal Elliptical Uncertainty (Semi-Minor Axis) */
- float horUncEllipseSemiMinor;
- /**< Semi-minor axis of horizontal elliptical uncertainty.\n
- - Units: Meters */
-
- /* Horizontal Elliptical Uncertainty (Semi-Major Axis) */
- float horUncEllipseSemiMajor;
- /**< Semi-major axis of horizontal elliptical uncertainty.\n
- - Units: Meters */
-
- /* Elliptical Horizontal Uncertainty Azimuth */
- float horUncEllipseOrientAzimuth;
- /**< Elliptical horizontal uncertainty azimuth of orientation.\n
- - Units: Decimal degrees \n
- - Range: 0 to 180 */
-
- /* Horizontal Speed Validity Bit */
- uint8_t speedHorizontal_valid;
- /**< Indicates whether the horizontal speed field contains valid
- information. \n
- - 0x01 (TRUE) -- Horizontal speed is valid \n
- - 0x00 (FALSE) -- Horizontal speed is invalid
- and is to be ignored \vspace{-0.18in}
- */
-
- /* Horizontal Speed */
- float speedHorizontal;
- /**< Horizontal speed.\n
- - Units: Meters/second */
-
- /* Altitude Validity Bit */
- uint8_t altitudeWrtEllipsoid_valid;
- /**< Indicates whether the altitude field contains valid
- information. \n
- - 0x01 (TRUE) -- Altitude field is valid \n
- - 0x00 (FALSE) -- Altitude field is invalid
- and is to be ignored \vspace{-0.18in}
- */
-
- /* Altitude With Respect to Ellipsoid */
- float altitudeWrtEllipsoid;
- /**< Altitude with respect to the WGS84 ellipsoid.\n
- - Units: Meters \n
- - Range: -500 to 15883 */
-
- /* Vertical Uncertainty Validity Bit */
- uint8_t vertUnc_valid;
- /**< Indicates whether the vertical uncertainty field contains valid
- information. \n
- - 0x01 (TRUE) -- Vertical Uncertainty field is valid \n
- - 0x00 (FALSE) -- Vertical Uncertainty field is invalid
- and is to be ignored \vspace{-0.18in}
- */
-
- /* Vertical Uncertainty */
- float vertUnc;
- /**< Vertical uncertainty.\n
- - Units: Meters */
-
- /* Vertical Speed Validity Bit */
- uint8_t speedVertical_valid;
- /**< Indicates whether the vertical speed field contains valid
- information. \n
- - 0x01 (TRUE) -- Vertical Speed field is valid \n
- - 0x00 (FALSE) -- Vertical Speed field is invalid
- and is to be ignored \vspace{-0.18in}
- */
-
- /* Vertical Speed */
- float speedVertical;
- /**< Vertical speed.\n
- - Units: Meters/second */
-
- /* Heading Validity Bit */
- uint8_t heading_valid;
- /**< Indicates whether the heading field contains valid
- information. \n
- - 0x01 (TRUE) -- Heading field is valid \n
- - 0x00 (FALSE) -- Heading field is invalid
- and is to be ignored \vspace{-0.18in}
- */
-
- /* Heading */
- float heading;
- /**< Heading.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-}qmiLocDbtPositionStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of
- a DBT position report. */
-typedef struct {
-
- /* Mandatory */
- /* Request ID */
- uint8_t reqId;
- /**< ID of the DBT request for which this
- report was generated. */
-
- /* Mandatory */
- /* DBT Position */
- qmiLocDbtPositionStructT_v02 dbtPosition;
- /**< Position of the client when it has traversed the
- specified distance.
- */
-
- /* Mandatory */
- /* DBT Position Type */
- qmiLocDbtPositionTypeEnumT_v02 positionType;
- /**< Specifies whether the position reported is at the
- origin of the DBT session or during the tracking
- duration of the session. Values: \n
-
- - eQMI_LOC_DBT_POSITION_TYPE_ORIGIN (1) -- Position reported is at the origin
- - eQMI_LOC_DBT_POSITION_TYPE_TRACKING (2) -- Position reported is a tracking type
- where the origin location has already
- been reported */
-
- /* Optional */
- /* Heading Uncertainty */
- uint8_t headingUnc_valid; /**< Must be set to true if headingUnc is being passed */
- float headingUnc;
- /**< Heading uncertainty.\n
- - Units: Degrees \n
- - Range: 0 to 359.999 */
-
- /* Optional */
- /* Speed Uncertainty */
- uint8_t speedUnc_valid; /**< Must be set to true if speedUnc is being passed */
- float speedUnc;
- /**< 3-D speed uncertainty.\n
- - Units: Meters/second */
-
- /* Optional */
- /* Horizontal Confidence */
- uint8_t horConfidence_valid; /**< Must be set to true if horConfidence is being passed */
- uint8_t horConfidence;
- /**< Horizontal uncertainty confidence.\n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Vertical Confidence */
- uint8_t vertConfidence_valid; /**< Must be set to true if vertConfidence is being passed */
- uint8_t vertConfidence;
- /**< Vertical uncertainty confidence.\n
- - Units: Percent \n
- - Range: 0 to 99 */
-
- /* Optional */
- /* Dilution of Precision */
- uint8_t DOP_valid; /**< Must be set to true if DOP is being passed */
- qmiLocDOPStructT_v02 DOP;
- /**< \vspace{0.06in} \n Dilution of precision associated with this position. */
-
- /* Optional */
- /* SVs Used to Calculate the Fix */
- uint8_t gnssSvUsedList_valid; /**< Must be set to true if gnssSvUsedList is being passed */
- uint32_t gnssSvUsedList_len; /**< Must be set to # of elements in gnssSvUsedList */
- uint16_t gnssSvUsedList[QMI_LOC_MAX_SV_USED_LIST_LENGTH_V02];
- /**< Each entry in the list contains the SV ID of a satellite
- used for calculating this position report. The following
- information is associated with each SV ID: \n
- Range: \n
- - For GPS: 1 to 32 \n
- - For GLONASS: 65 to 96 \n
- - For SBAS: 120 to 158 and 183 to 187 \n
- - For QZSS: 193 to 197 \n
- - For BDS: 201 to 237 \n
- - For GAL: 301 to 336
- */
-
- /* Optional */
- /* Position Source */
- uint8_t positionSrc_valid; /**< Must be set to true if positionSrc is being passed */
- qmiLocPositionSrcEnumT_v02 positionSrc;
- /**< Source from which this position was obtained.
- Valid values: \n
- - eQMI_LOC_POSITION_SRC_GNSS (0) -- Position source is GNSS
- - eQMI_LOC_POSITION_SRC_CELLID (1) -- Position source is Cell ID
- - eQMI_LOC_POSITION_SRC_ENH_CELLID (2) -- Position source is Enhanced Cell ID
- - eQMI_LOC_POSITION_SRC_WIFI (3) -- Position source is Wi-Fi
- - eQMI_LOC_POSITION_SRC_TERRESTRIAL (4) -- Position source is Terrestrial
- - eQMI_LOC_POSITION_SRC_GNSS_TERRESTRIAL_HYBRID (5) -- Position source is GNSS Terrestrial Hybrid
- - eQMI_LOC_POSITION_SRC_OTHER (6) -- Other sources
- */
-}qmiLocEventDbtPositionReportIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCDBTSESSIONSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_DBT_UNABLE_TO_TRACK_V02 = 1, /**< Distance based tracking is unavailable and DBT fixes
- cannot currently be obtained */
- eQMI_LOC_DBT_ABLE_TO_TRACK_V02 = 2, /**< Distance based tracking is available and DBT fixes
- can currently be obtained */
- QMILOCDBTSESSIONSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocDbtSessionStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of the
- DBT session status. */
-typedef struct {
-
- /* Mandatory */
- /* DBT Session Status */
- qmiLocDbtSessionStatusEnumT_v02 dbtSessionStatus;
- /**< Specifies the DBT session status type.
-
- Valid values: \n
- - eQMI_LOC_DBT_UNABLE_TO_TRACK (1) -- Distance based tracking is unavailable and DBT fixes
- cannot currently be obtained
- - eQMI_LOC_DBT_ABLE_TO_TRACK (2) -- Distance based tracking is available and DBT fixes
- can currently be obtained
- */
-
- /* Optional */
- /* Request ID */
- uint8_t reqId_valid; /**< Must be set to true if reqId is being passed */
- uint8_t reqId;
- /**< ID of the DBT request for which this
- status was generated. */
-}qmiLocEventDbtSessionStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCPOSITIONSOURCEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_POS_SRC_GNSS_V02 = 1, /**< Source of the position is GNSS */
- QMILOCPOSITIONSOURCEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocPositionSourceEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCPOSITIONRPTPROPAGATIONENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_POS_REPORT_PROPAGATED_TO_CURRENT_UTC_V02 = 1, /**< Reported position is propagated to the current UTC */
- QMILOCPOSITIONRPTPROPAGATIONENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocPositionRptPropagationEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSECURELOCDATAMODEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SECURE_LOC_DATA_ENCRYPTED_V02 = 1, /**< Data in the indication is to be encrypted */
- eQMI_LOC_SECURE_LOC_DATA_UNENCRYPTED_V02 = 2, /**< Data in the indication is to be unencrypted */
- QMILOCSECURELOCDATAMODEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSecureLocDataModeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSECUREGETAVAILABLEPOSPARAMETERIDENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_PARAM_TRANSACTION_ID_V02 = 1, /**< Parameter ID for the Transaction ID field. Mandatory field.
- Identifies the transaction. The transaction ID is returned in the
- Secured Get Available Position indication. \n
- - Parameter type: uint32
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_PARAM_NONCE_V02 = 2, /**< Parameter ID for the Nonce field. Optional field.
- - Parameter type: uint64
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_PARAM_SOURCE_V02 = 3, /**< Parameter ID for the Position Source field. Optional field.
- Specifies the source of the position in which the control point is interest.
- If not included, the value defaults to GNSS. \n
- - Parameter type: int32 \n
- Parameter valid values: \n
- - eQMI_LOC_POS_SRC_GNSS (1) -- Source of the position is GNSS
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_PARAM_REPORT_DATA_SECURITY_MODE_V02 = 4, /**< Secured position report data security mode. Optional field.
- If this TLV is not sent, the position report is encrypted by default. \n
- - Parameter type: int32 \n
- Parameter valid values: \n
- - eQMI_LOC_SECURE_LOC_DATA_ENCRYPTED (1) -- Position reports are encrypted
- - eQMI_LOC_SECURE_LOC_DATA_UNENCRYPTED (2) -- Position reports are not encrypted
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_PARAM_REPORT_DATA_TIME_PROPAGATION_V02 = 5, /**< Secured position report data propagation. Optional field.
- If this TLV is not sent, the position report is propagated to the current UTC time by default. \n
- - Parameter type: int32 \n
- Parameter valid values: \n
- - eQMI_LOC_POS_REPORT_PROPAGATED_TO_CURRENT_UTC (1) -- Position reports are propagated to the current UTC. \n
- */
- QMILOCSECUREGETAVAILABLEPOSPARAMETERIDENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSecureGetAvailablePosParameterIDEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSECUREMESSAGEDATATYPEENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SECURE_DATA_TYPE_BYTE_8_V02 = 1, /**< Data type: Byte (8 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_CHAR_8_V02 = 2, /**< Data type: Char (8 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_UNSIGNED_CHAR_8_V02 = 3, /**< Data type: Unsigned char (8 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_INT_8_V02 = 4, /**< Data type: Int (8 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_UNSIGNED_INT_8_V02 = 5, /**< Data type: Unsigned int (8 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_INT_16_V02 = 6, /**< Data type: Int (16 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_UNSIGNED_INT_16_V02 = 7, /**< Data type: Unsigned int (16 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_INT_32_V02 = 8, /**< Data type: Int (32 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_UNSIGNED_INT_32_V02 = 9, /**< Data type: Unsigned int (32 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_INT_64_V02 = 10, /**< Data type: Int (64 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_UNSIGNED_INT_64_V02 = 11, /**< Data type: Unsigned int (64 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_BOOL_8_V02 = 12, /**< Data type: Boolean (8 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_DOUBLE_64_V02 = 13, /**< Data type: Double (64 bits) */
- eQMI_LOC_SECURE_DATA_TYPE_FLOAT_32_V02 = 14, /**< Data type: Float (32 bits) */
- QMILOCSECUREMESSAGEDATATYPEENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSecureMessageDataTypeEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to get the available
- position estimate from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Data Security Mode for Encoded Data Buffer */
- qmiLocSecureLocDataModeEnumT_v02 secureLocDataMode;
- /**< Data security mode for the encoded data buffer.
-
- Valid values: \n
- - eQMI_LOC_SECURE_LOC_DATA_ENCRYPTED (1) -- Data in the indication is to be encrypted
- - eQMI_LOC_SECURE_LOC_DATA_UNENCRYPTED (2) -- Data in the indication is to be unencrypted
- */
-
- /* Mandatory */
- /* Encoded Data Buffer Containing Secure Get Available Position Request Parameters */
- uint32_t qmilocSecureGetAvailablePositionRequestData_len; /**< Must be set to # of elements in qmilocSecureGetAvailablePositionRequestData */
- uint8_t qmilocSecureGetAvailablePositionRequestData[QMI_LOC_SECURE_GET_AVAILABLE_POS_REQUEST_ENCRYPTED_MAX_V02];
- /**< Encoded data buffer containing the secure Get Available Position Request parameters. */
-}qmiLocSecureGetAvailablePositionReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSECUREGETAVAILABLEPOSITIONINDPARAMIDENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_TRANSACTION_ID_V02 = 1, /**< Parameter ID for the Transaction ID field. Mandatory field.
- Transaction ID that was specified in the Secured Get Available Position request.
- This parameter is always present if the status field is set to SUCCESS. \n
- - Parameter type: uint32
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_NONCE_V02 = 2, /**< Parameter ID for the Secure Session Nonce.
- This echos back the Nonce received from the Secured Get Available Position Request.
- Optional field. \n
- - Parameter type: uint64
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_LATITUDE_V02 = 3, /**< Parameter ID for Latitude (specified in WGS84 datum). Optional field.
- \begin{itemize1}
- \item Parameter type: Floating point
- \item Parameter units: Degrees
- \item Parameter range: -90.0 to 90.0 \begin{itemize1}
- \item Positive values indicate northern latitude
- \item Negative values indicate southern latitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_LONGITUDE_V02 = 4, /**< Parameter ID for Longitude (specified in WGS84 datum). Optional field.
- \begin{itemize1}
- \item Parameter type: Floating point
- \item Parameter units: Degrees
- \item Parameter range: -180.0 to 180.0 \begin{itemize1}
- \item Positive values indicate eastern longitude
- \item Negative values indicate western longitude
- \vspace{-0.18in} \end{itemize1} \end{itemize1} */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HORIZ_UNC_CIRCULAR_V02 = 5, /**< Parameter ID for Circular Horizontal Uncertainty. Optional field. \n
- - Parameter tnits: Meters \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_ALTITUDE_WRT_ELP_V02 = 6, /**< Parameter ID for altitude with respect to the WGS84 ellipsoid. Optional field. \n
- - Parameter units: Meters \n
- - Parameter range: -500 to 15883 \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_VERTICAL_UNC_V02 = 7, /**< Parameter ID for Vertical Uncertainty. Optional field.\n
- - Parameter units: Meters \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_TIME_STAMP_UTC_V02 = 8, /**< Parameter ID for the UTC timestamp. Optional field.\n
- - Parameter type: uint64 \n
- - Parameter units: Milliseconds since Jan. 1, 1970
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_TIME_UNC_V02 = 9, /**< Parameter ID for time uncertainty. Optional field.\n
- - Parameter type: Float \n
- - Parameter units: Milliseconds */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HORIZ_UNC_ELP_SEMIMINOR_V02 = 10, /**< Parameter ID for the Semi-Minor Axis of Horizontal Elliptical Uncertainty. Optional field.\n
- - Parameter mnits: Meters \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HORIZ_UNC_ELP_SEMIMAJOR_V02 = 11, /**< Parameter ID for the Semi-Major Axis of Horizontal Elliptical Uncertainty. Optional field.\n
- - Parameter units: Meters \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HORIZ_UNC_ELP_ORIENT_AZIMUTH_V02 = 12, /**< Parameter ID for the Elliptical Horizontal Uncertainty Azimuth of orientation. Optional field.\n
- - Parameter units: Decimal degrees \n
- - Parameter range: 0 to 180 \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HORIZ_CONFIDENCE_V02 = 13, /**< Parameter ID for Horizontal uncertainty confidence. Optional field.\n
- If both elliptical and horizontal uncertainties are specified in this message,
- the confidence corresponds to the elliptical uncertainty. Optional field.\n
- - Parameter units: Percent \n
- - Parameter range: 0 to 99 \n
- - Parameter type: uint8 */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HORIZ_ELLIP_CONFIDENCE_V02 = 14, /**< Parameter ID for Horizontal Elliptical Uncertainty Confidence. Optional field.\n
- If both elliptical and horizontal uncertainties are specified in this message,
- the confidence corresponds to the elliptical uncertainty. Optional field.\n
- - Parameter units: Percent \n
- - Parameter range: 0 to 99 \n
- - Parameter type: uint8 */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HORIZ_RELIABILITY_V02 = 15, /**< Parameter ID for Specifies the reliability of the horizontal position. Optional field.
- - Parameter Type: int32 \n
- Parameter valid values: \n
- - RELIABILITY_NOT_SET = 0 \n
- - RELIABILITY_VERY_LOW = 1 \n
- - RELIABILITY_LOW = 2 \n
- - RELIABILITY_MEDIUM = 3 \n
- - RELIABILITY_HIGH = 4
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_SPEED_HORIZ_V02 = 16, /**< Parameter ID for Horizontal Speed. Optional field.\n
- - Parameter units: Meters/second \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_SPEED_HORIZ_UNC_V02 = 17, /**< Parameter ID for Horizontal Speed Uncertainty. Optional field.\n
- - Parameter units: Meters/second \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_ALTITUDE_WRT_MSA_V02 = 18, /**< Parameter ID for Altitude with respect to mean sea level. Optional field.\n
- - Parameter units: Meters \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_VERTICAL_CONF_V02 = 19, /**< Parameter ID for Vertical uncertainty confidence. Optional field.\n
- - Parameter units: Percent \n
- - Parameter range: 0 to 99 \n
- - Parameter type: uint8 */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_VERT_RELIABILITY_V02 = 20, /**< Parameter ID for specifies the reliability of the vertical position. Optional field. \n
- - Parameter type: int32 \n
- Parameter valid values: \n
- - RELIABILITY_NOT_SET = 0 \n
- - RELIABILITY_VERY_LOW = 1 \n
- - RELIABILITY_LOW = 2 \n
- - RELIABILITY_MEDIUM = 3 \n
- - RELIABILITY_HIGH = 4
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_SPEED_VERTICAL_V02 = 21, /**< Parameter ID for Vertical Speed. Optional field.\n
- - Parameter units: Meters/second \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_SPEED_VERTICAL_UNC_V02 = 22, /**< Parameter ID for Vertical Speed Uncertainty. Optional field.\n
- - Parameter units: Meters/second \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HEADING_V02 = 23, /**< Parameter ID for Heading. Optional field.\n
- - Parameter units: Degrees \n
- - Parameter range: 0 to 359.999 \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HEADING_UNC_V02 = 24, /**< Parameter ID for Heading Uncertainty. Optional field.\n
- - Parameter units: Degrees \n
- - Parameter range: 0 to 359.999 \n
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_MAGNETIC_DEVIATION_V02 = 25, /**< Parameter ID for Magnetic Deviation. Optional field.\n
- Difference between the bearing to true north and the bearing shown
- on a magnetic compass. The deviation is positive when the magnetic
- north is east of true north.
- - Parameter type: Float */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_TECH_MASK_V02 = 26, /**< Parameter ID for Technology Used in computing this fix. Optional field.\n
- - Parameter type: uint32 \n
- Parameter valid bitmasks: \n
- - QMI_LOC_POS_TECH_MASK_SATELLITE = 0x00000001,
- - QMI_LOC_POS_TECH_MASK_CELLID = 0x00000002,
- - QMI_LOC_POS_TECH_MASK_WIFI = 0x00000004,
- - QMI_LOC_POS_TECH_MASK_SENSORS = 0x00000008,
- - QMI_LOC_POS_TECH_MASK_REFERENCE_LOCATION = 0x00000010,
- - QMI_LOC_POS_TECH_MASK_INJECTED_COARSE_POSITION = 0x00000020,
- - QMI_LOC_POS_TECH_MASK_AFLT = 0x00000040,
- - QMI_LOC_POS_TECH_MASK_HYBRID = 0x00000080
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_PDOP_V02 = 27, /**< Parameter ID for Position Dilution of Precision associated with this position. Optional field.\n
- - Parameter type: Float
- - Parameter range: 1 (highest accuracy) to 50 (lowest accuracy)
- - PDOP = square root of (HDOP^2 + VDOP^2)
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_HDOP_V02 = 28, /**< Parameter ID for Horizontal Dilution of Precision associated with this position. Optional field.\n
- - Parameter type: Float
- - Parameter range: 1 (highest accuracy) to 50 (lowest accuracy)
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_VDOP_V02 = 29, /**< Parameter ID for Vertical Dilution of Precision associated with this position. Optional field.\n
- - Parameter type: Float
- - Parameter range: 1 (highest accuracy) to 50 (lowest accuracy)
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_GPS_WEEK_V02 = 30, /**< Parameter ID for the current GPS Week, as calculated from midnight, Jan. 6, 1980. Optional field.\n
- - Parameter type: uint16
- - Parameter units: Weeks
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_GPS_TIMEOFWEEKMS_V02 = 31, /**< Parameter ID for amount of time into the current GPS Week. Optional field.\n
- - Parameter type: uint32
- - Parameter units: Milliseconds
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_TIME_SRC_V02 = 32, /**< Parameter ID for Time Source. Optional field.\n
- - Parameter type: uint32 (enum qmiLocTimeSourceEnumT)
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_SENSOR_USAGE_MASK_V02 = 33, /**< Parameter ID that specifies which sensors were used in calculating the position in the
- position report. Optional field.\n
- - Parameter type: uint32 \n
- Parameter valid bitmasks: \n
- - 0x00000001 -- SENSOR_USED_ACCEL \n
- - 0x00000002 -- SENSOR_USED_GYRO
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_AIDING_IND_MASK_V02 = 34, /**< Parameter ID that specifies which which results were aided by sensors. Optional field.\n
- - Parameter type: uint32 \n
- Parameter valid bitmasks: \n
- - 0x00000001 -- AIDED_HEADING \n
- - 0x00000002 -- AIDED_SPEED \n
- - 0x00000004 -- AIDED_POSITION \n
- - 0x00000008 -- AIDED_VELOCITY
- */
- eQMI_LOC_SECURE_GET_AVAILABLE_POS_REP_PARAM_SV_USED_V02 = 35, /**< Each entry in the list contains the SV ID of a satellite
- used for calculating this position report. The following
- information is associated with each SV ID. Optional field. \n
- - Parameter type: uint16 \n
- Parameter range: \n
- - For GPS: 1 to 32 \n
- - For SBAS: 33 to 64 \n
- - For GLONASS: 65 to 96 \n
- - For QZSS: 193 to 197 \n
- - For BDS: 201 to 237
- */
- QMILOCSECUREGETAVAILABLEPOSITIONINDPARAMIDENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSecureGetAvailablePositionIndParamIDEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to get the available
- position estimate from the location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Session Status */
- qmiLocSessionStatusEnumT_v02 sessionStatus;
- /**< Session status.
-
- Valid values: \n
- - eQMI_LOC_SESS_STATUS_SUCCESS (0) -- Session was successful
- - eQMI_LOC_SESS_STATUS_IN_PROGRESS (1) -- Session is still in progress; further position reports will be generated
- until either the fix criteria specified by the client are met or the
- client response timeout occurs
- - eQMI_LOC_SESS_STATUS_GENERAL_FAILURE (2) -- Session failed
- - eQMI_LOC_SESS_STATUS_TIMEOUT (3) -- Fix request failed because the session timed out
- - eQMI_LOC_SESS_STATUS_USER_END (4) -- Fix request failed because the session was ended by the user
- - eQMI_LOC_SESS_STATUS_BAD_PARAMETER (5) -- Fix request failed due to bad parameters in the request
- - eQMI_LOC_SESS_STATUS_PHONE_OFFLINE (6) -- Fix request failed because the phone is offline
- - eQMI_LOC_SESS_STATUS_ENGINE_LOCKED (7) -- Fix request failed because the engine is locked
- */
-
- /* Mandatory */
- /* Data Security Mode for Encoded Data Buffer. */
- qmiLocSecureLocDataModeEnumT_v02 secureLocDataMode;
- /**< Data security mode for encoded data buffer.
-
- Valid values: \n
- - eQMI_LOC_SECURE_LOC_DATA_ENCRYPTED (1) -- Data in the indication is to be encrypted
- - eQMI_LOC_SECURE_LOC_DATA_UNENCRYPTED (2) -- Data in the indication is to be unencrypted
- */
-
- /* Optional */
- /* Encoded Data Buffer Containing Secured Get Available Position Report Indication */
- uint8_t qmilocSecureGetAvailablePositionInd_valid; /**< Must be set to true if qmilocSecureGetAvailablePositionInd is being passed */
- uint32_t qmilocSecureGetAvailablePositionInd_len; /**< Must be set to # of elements in qmilocSecureGetAvailablePositionInd */
- uint8_t qmilocSecureGetAvailablePositionInd[QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_ENCRYPTED_MAX_V02];
- /**< Encoded data buffer containing the secured Get Available Position Report indication.*/
-}qmiLocSecureGetAvailablePositionIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCAPRELIABILITYENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_AP_RELIABILITY_NOT_SET_V02 = 0, /**< AP location reliability is not set */
- eQMI_LOC_AP_RELIABILITY_LEVEL_1_V02 = 1, /**< AP location reliability level 1 */
- eQMI_LOC_AP_RELIABILITY_LEVEL_2_V02 = 2, /**< AP location reliability level 2 */
- eQMI_LOC_AP_RELIABILITY_LEVEL_3_V02 = 3, /**< AP location reliability level 3 */
- eQMI_LOC_AP_RELIABILITY_LEVEL_4_V02 = 4, /**< AP location reliability level 4 */
- eQMI_LOC_AP_RELIABILITY_LEVEL_5_V02 = 5, /**< AP location reliability level 5 */
- eQMI_LOC_AP_RELIABILITY_LEVEL_6_V02 = 6, /**< AP location reliability level 6 */
- eQMI_LOC_AP_RELIABILITY_LEVEL_7_V02 = 7, /**< AP location reliability level 7 */
- QMILOCAPRELIABILITYENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocApReliabilityEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint64_t macAddress;
- /**< AP MAC address. */
-
- float xLat;
- /**< AP latitude. \n
- - Units: degrees */
-
- float yLon;
- /**< AP longitude sensor y-axis sample. \n
- - Units: degrees */
-
- float mar;
- /**< Maximum antenna range. \n
- - Units: Meters */
-}qmiLocApCacheStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint8_t hepeValid;
- /**< Indicates whether HEPE data is available. Values: \n
- - 0x00 (FALSE) -- Ignore the HEPE data of this AP \n
- - 0x01 (TRUE) -- HEPE data of this AP is available */
-
- uint16_t hepe;
- /**< Horizontal estimated position error. \n
- - Units: Meters */
-
- qmiLocApReliabilityEnumT_v02 apReliability;
- /**< Specifies the reliability of the AP position.
- The lowest is eQMI_LOC_AP_RELIABILITY_LEVEL_1 and the highest is eQMI_LOC_AP_RELIABILITY_LEVEL_7.
- The AP reliability increases as the level increases.
- Valid values: \n
- - eQMI_LOC_AP_RELIABILITY_NOT_SET (0) -- AP location reliability is not set
- - eQMI_LOC_AP_RELIABILITY_LEVEL_1 (1) -- AP location reliability level 1
- - eQMI_LOC_AP_RELIABILITY_LEVEL_2 (2) -- AP location reliability level 2
- - eQMI_LOC_AP_RELIABILITY_LEVEL_3 (3) -- AP location reliability level 3
- - eQMI_LOC_AP_RELIABILITY_LEVEL_4 (4) -- AP location reliability level 4
- - eQMI_LOC_AP_RELIABILITY_LEVEL_5 (5) -- AP location reliability level 5
- - eQMI_LOC_AP_RELIABILITY_LEVEL_6 (6) -- AP location reliability level 6
- - eQMI_LOC_AP_RELIABILITY_LEVEL_7 (7) -- AP location reliability level 7
- */
-}qmiLocApCacheHepeRelStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject APs into the cache of
- the low power Wi-Fi engine for fix computation. */
-typedef struct {
-
- /* Mandatory */
- /* Version Number */
- uint8_t versionNumber;
- /**< AP cache protocol version number. */
-
- /* Mandatory */
- /* Part Number */
- uint8_t partNumber;
- /**< Multiple message part number; used for ordering AP information. */
-
- /* Mandatory */
- /* Total Parts */
- uint8_t totalParts;
- /**< Total number of parts or messages for a complete cache update. */
-
- /* Mandatory */
- /* AP Cache Data */
- uint32_t apCacheData_len; /**< Must be set to # of elements in apCacheData */
- qmiLocApCacheStructT_v02 apCacheData[QMI_LOC_APCACHE_DATA_MAX_SAMPLES_V02];
- /**< \vspace{4pt} \n AP cache information. */
-
- /* Optional */
- /* AP Cache HEPE Data */
- uint8_t apCacheHepeRelData_valid; /**< Must be set to true if apCacheHepeRelData is being passed */
- uint32_t apCacheHepeRelData_len; /**< Must be set to # of elements in apCacheHepeRelData */
- qmiLocApCacheHepeRelStructT_v02 apCacheHepeRelData[QMI_LOC_APCACHE_DATA_MAX_SAMPLES_V02];
- /**< \vspace{4pt} \n
- The ordering of the apCacheHepeRelData list should match the apCacheData list.
- That is, the first element of the apCacheHepeRelData must be the cache HEPE data of the AP
- whose cache data is the first element in the apCacheData, and so on. */
-}qmiLocInjectApCacheDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject APs into the cache of
- the low power Wi-Fi engine for fix computation. */
-typedef struct {
-
- /* Mandatory */
- /* Set Inject APCACHE Data Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject AP Cache Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* AP Cache Size */
- uint8_t apCacheSize_valid; /**< Must be set to true if apCacheSize is being passed */
- uint32_t apCacheSize;
- /**< Key performance indicator (KPI) for apCacheSize that measures the size
- of the last AP cache used. This parameter is always present. */
-
- /* Optional */
- /* AP Do Not Cache Size */
- uint8_t apDoNotCacheSize_valid; /**< Must be set to true if apDoNotCacheSize is being passed */
- uint32_t apDoNotCacheSize;
- /**< KPI for apDoNotCacheSize that measures the size of the last AP cache used.
- This parameter is always present. */
-
- /* Optional */
- /* AP Cache Hits */
- uint8_t apCacheHits_valid; /**< Must be set to true if apCacheHits is being passed */
- uint32_t apCacheHits;
- /**< KPI for apCacheHits that measures the number of hits to the
- AP cache of the last cache content. */
-
- /* Optional */
- /* AP Do Not Cache Hits */
- uint8_t apDoNotCacheHits_valid; /**< Must be set to true if apDoNotCacheHits is being passed */
- uint32_t apDoNotCacheHits;
- /**< KPI for apDoNotCacheHits that measures the number of hits to
- apDoNotCache of the last cache content. */
-
- /* Optional */
- /* Unknown APs */
- uint8_t unknownAps_valid; /**< Must be set to true if unknownAps is being passed */
- uint32_t unknownAps;
- /**< KPI for unknownAps that measures the number of unknown APs, those that are
- not found in any cache content. */
-
- /* Optional */
- /* Async Scans */
- uint8_t asyncScans_valid; /**< Must be set to true if asyncScans is being passed */
- uint32_t asyncScans;
- /**< KPI for asyncScans that measures the number of async scans
- perceived since the last modem boot. */
-
- /* Optional */
- /* Async Fixes */
- uint8_t asyncFixes_valid; /**< Must be set to true if asyncFixes is being passed */
- uint32_t asyncFixes;
- /**< KPI for asyncFixes that measures the number of async fixes
- generated since the last modem boot. */
-
- /* Optional */
- /* Sync Scans */
- uint8_t syncScans_valid; /**< Must be set to true if syncScans is being passed */
- uint32_t syncScans;
- /**< KPI for syncScans that measures the number of sync scans
- perceived since the last modem boot. */
-
- /* Optional */
- /* Sync Fixes */
- uint8_t syncFixes_valid; /**< Must be set to true if syncFixes is being passed */
- uint32_t syncFixes;
- /**< KPI for asyncFixes that measures the number of sync fixes
- generated since the last modem boot. */
-}qmiLocInjectApCacheDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- uint64_t macAddress;
- /**< AP's MAC address. */
-}qmiLocApDoNotCacheStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject blacked out APs into
- the low power location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Version Number */
- uint8_t versionNumber;
- /**< AP cache protocol version number. */
-
- /* Mandatory */
- /* Part Number */
- uint8_t partNumber;
- /**< Multiple message part number, used to order AP information. */
-
- /* Mandatory */
- /* Total Parts */
- uint8_t totalParts;
- /**< Total number of parts or messages for a complete cache update. */
-
- /* Mandatory */
- /* No AP Cache Data */
- uint32_t apDoNotCacheData_len; /**< Must be set to # of elements in apDoNotCacheData */
- qmiLocApDoNotCacheStructT_v02 apDoNotCacheData[QMI_LOC_APCACHE_DATA_MAX_SAMPLES_V02];
- /**< \n APDoNotCache information. */
-}qmiLocInjectApDoNotCacheDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject blacked out APs into
- the low power location engine. */
-typedef struct {
-
- /* Mandatory */
- /* Set Inject APDONOTCACHE Data Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Inject APDONOTCACHE Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocInjectApDoNotCacheDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCBATCHINGSTATUSENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_BATCH_POS_UNAVAILABLE_V02 = 1, /**< Service is unable to compute the positions for batching */
- eQMI_LOC_BATCH_POS_AVAILABLE_V02 = 2, /**< Service is able to compute the positions for batching */
- QMILOCBATCHINGSTATUSENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocBatchingStatusEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Notifies the control point of the
- batching status. */
-typedef struct {
-
- /* Mandatory */
- /* Batching Status */
- qmiLocBatchingStatusEnumT_v02 batchingStatus;
- /**< Specifies the batching status.
- Valid values: \n
- - eQMI_LOC_BATCH_POS_UNAVAILABLE (1) -- Service is unable to compute the positions for batching
- - eQMI_LOC_BATCH_POS_AVAILABLE (2) -- Service is able to compute the positions for batching
- */
-}qmiLocEventBatchingStatusIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** Identifies the always-on service capabilities. */
-typedef uint32_t qmiLocAonCapabilityMaskT_v02;
-#define QMI_LOC_MASK_AON_AUTO_BATCHING_SUPPORTED_V02 ((qmiLocAonCapabilityMaskT_v02)0x00000001) /**< The service supports auto batching; the client can enable auto
- batching by setting the distance parameter to 0 in the START_BATCHING request */
-#define QMI_LOC_MASK_AON_DISTANCE_BASED_BATCHING_SUPPORTED_V02 ((qmiLocAonCapabilityMaskT_v02)0x00000002) /**< The service supports distance-based batching */
-#define QMI_LOC_MASK_AON_TIME_BASED_BATCHING_SUPPORTED_V02 ((qmiLocAonCapabilityMaskT_v02)0x00000004) /**< The service supports time-based batching */
-#define QMI_LOC_MASK_AON_DISTANCE_BASED_TRACKING_SUPPORTED_V02 ((qmiLocAonCapabilityMaskT_v02)0x00000008) /**< The service supports distance-based tracking */
-#define QMI_LOC_MASK_AON_UPDATE_TBF_SUPPORTED_V02 ((qmiLocAonCapabilityMaskT_v02)0x00000010) /**< The service supports changing TBF dynamically */
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the clients to get always-on (AON) service settings.
- */
-typedef struct {
-
- /* Mandatory */
- /* Transaction ID */
- uint32_t transactionId;
- /**< Identifies the transaction. The same transaction ID
- is returned in the QUERY_AON_CONFIG indication. */
-}qmiLocQueryAonConfigReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the clients to get always-on (AON) service settings.
- */
-typedef struct {
-
- /* Mandatory */
- /* Always-On Config Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Query AON Config request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Transaction ID */
- uint8_t transactionId_valid; /**< Must be set to true if transactionId is being passed */
- uint32_t transactionId;
- /**< Identifies the transaction. It is the same transaction
- ID that was passed in the QUERY_AON_CONFIG request. */
-
- /* Optional */
- /* Always-On Capability */
- uint8_t aonCapability_valid; /**< Must be set to true if aonCapability is being passed */
- qmiLocAonCapabilityMaskT_v02 aonCapability;
- /**< Always-on capabilities supported by the service. \n
- Valid values: \n
- - QMI_LOC_MASK_AON_AUTO_BATCHING_SUPPORTED (0x00000001) -- The service supports auto batching; the client can enable auto
- batching by setting the distance parameter to 0 in the START_BATCHING request
- - QMI_LOC_MASK_AON_DISTANCE_BASED_BATCHING_SUPPORTED (0x00000002) -- The service supports distance-based batching
- - QMI_LOC_MASK_AON_TIME_BASED_BATCHING_SUPPORTED (0x00000004) -- The service supports time-based batching
- - QMI_LOC_MASK_AON_DISTANCE_BASED_TRACKING_SUPPORTED (0x00000008) -- The service supports distance-based tracking
- - QMI_LOC_MASK_AON_UPDATE_TBF_SUPPORTED (0x00000010) -- The service supports changing TBF dynamically */
-}qmiLocQueryAonConfigIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-typedef uint32_t qmiLocDeleteCommonDataMaskT_v02;
-#define QMI_LOC_DELETE_COMMON_MASK_POS_V02 ((qmiLocDeleteCommonDataMaskT_v02)0x00000001) /**< Position estimate; common for all GNSS types */
-#define QMI_LOC_DELETE_COMMON_MASK_TIME_V02 ((qmiLocDeleteCommonDataMaskT_v02)0x00000002) /**< Reset all CLOCK_INFO mask */
-#define QMI_LOC_DELETE_COMMON_MASK_UTC_V02 ((qmiLocDeleteCommonDataMaskT_v02)0x00000004) /**< UTC estimate */
-#define QMI_LOC_DELETE_COMMON_MASK_RTI_V02 ((qmiLocDeleteCommonDataMaskT_v02)0x00000008) /**< RTI */
-#define QMI_LOC_DELETE_COMMON_MASK_FREQ_BIAS_EST_V02 ((qmiLocDeleteCommonDataMaskT_v02)0x00000010) /**< Frequency bias estimate; common for all GNSS types */
-typedef uint32_t qmiLocDeleteSatelliteDataMaskT_v02;
-#define QMI_LOC_DELETE_DATA_MASK_EPHEMERIS_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000001) /**< Ephemeris */
-#define QMI_LOC_DELETE_DATA_MASK_ALMANAC_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000002) /**< Almanac */
-#define QMI_LOC_DELETE_DATA_MASK_SVHEALTH_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000004) /**< SV health */
-#define QMI_LOC_DELETE_DATA_MASK_SVDIR_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000008) /**< SV direction */
-#define QMI_LOC_DELETE_DATA_MASK_SVSTEER_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000010) /**< SV steer */
-#define QMI_LOC_DELETE_DATA_MASK_ALM_CORR_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000020) /**< Almanac correction */
-#define QMI_LOC_DELETE_DATA_MASK_BLACKLIST_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000040) /**< Blacklist SVs */
-#define QMI_LOC_DELETE_DATA_MASK_SA_DATA_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000080) /**< Sensitivity assistance data */
-#define QMI_LOC_DELETE_DATA_MASK_SV_NO_EXIST_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000100) /**< SV does not exist */
-#define QMI_LOC_DELETE_DATA_MASK_IONO_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000200) /**< Ionosphere correction */
-#define QMI_LOC_DELETE_DATA_MASK_TIME_V02 ((qmiLocDeleteSatelliteDataMaskT_v02)0x00000400) /**< Reset satellite time */
-typedef uint32_t qmiLocGNSSConstellMaskT_v02;
-#define QMI_LOC_SYSTEM_GPS_V02 ((qmiLocGNSSConstellMaskT_v02)0x00000001)
-#define QMI_LOC_SYSTEM_GLO_V02 ((qmiLocGNSSConstellMaskT_v02)0x00000002)
-#define QMI_LOC_SYSTEM_BDS_V02 ((qmiLocGNSSConstellMaskT_v02)0x00000004)
-#define QMI_LOC_SYSTEM_GAL_V02 ((qmiLocGNSSConstellMaskT_v02)0x00000008)
-#define QMI_LOC_SYSTEM_QZSS_V02 ((qmiLocGNSSConstellMaskT_v02)0x00000010)
-/** @addtogroup loc_qmi_aggregates
- @{
- */
-typedef struct {
-
- qmiLocGNSSConstellMaskT_v02 system;
- /**< Indicates which satellite system's data is to be deleted.
- The control point can delete multiple systems at a time.
- Valid values: \n
- - QMI_LOC_SYSTEM_GPS (0x00000001) --
- - QMI_LOC_SYSTEM_GLO (0x00000002) --
- - QMI_LOC_SYSTEM_BDS (0x00000004) --
- - QMI_LOC_SYSTEM_GAL (0x00000008) --
- - QMI_LOC_SYSTEM_QZSS (0x00000010) --
- */
-
- qmiLocDeleteSatelliteDataMaskT_v02 deleteSatelliteDataMask;
- /**< Requested bitmask of data to be deleted for the specified satellite system. \n
- Valid values: \n
- - QMI_LOC_DELETE_DATA_MASK_EPHEMERIS (0x00000001) -- Ephemeris
- - QMI_LOC_DELETE_DATA_MASK_ALMANAC (0x00000002) -- Almanac
- - QMI_LOC_DELETE_DATA_MASK_SVHEALTH (0x00000004) -- SV health
- - QMI_LOC_DELETE_DATA_MASK_SVDIR (0x00000008) -- SV direction
- - QMI_LOC_DELETE_DATA_MASK_SVSTEER (0x00000010) -- SV steer
- - QMI_LOC_DELETE_DATA_MASK_ALM_CORR (0x00000020) -- Almanac correction
- - QMI_LOC_DELETE_DATA_MASK_BLACKLIST (0x00000040) -- Blacklist SVs
- - QMI_LOC_DELETE_DATA_MASK_SA_DATA (0x00000080) -- Sensitivity assistance data
- - QMI_LOC_DELETE_DATA_MASK_SV_NO_EXIST (0x00000100) -- SV does not exist
- - QMI_LOC_DELETE_DATA_MASK_IONO (0x00000200) -- Ionosphere correction
- - QMI_LOC_DELETE_DATA_MASK_TIME (0x00000400) -- Reset satellite time
- */
-}qmiLocDeleteSatelliteDataStructT_v02; /* Type */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Deletes the location engine
- service data from memory. */
-typedef struct {
-
- /* Mandatory */
- /* Reset All */
- uint8_t deleteAllFlag;
- /**< Indicates whether all GNSS service data is to be deleted.
- Values:
- 0x01 (TRUE) -- All constellations' service data is to be reset;
- if this flag is set, all the other information
- contained in the optional fields for this
- message are ignored
- 0x00 (FALSE) -- The optional fields in the message are to be
- used to determine which data is to be deleted
- */
-
- /* Optional */
- /* Requested Bitmask of Clock Info Data to be Deleted */
- uint8_t deleteClockInfoMask_valid; /**< Must be set to true if deleteClockInfoMask is being passed */
- qmiLocDeleteClockInfoMaskT_v02 deleteClockInfoMask;
- /**< Mask for the clock information service data that is to be deleted.
- If QMI_LOC_DELETE_DATA_MASK_TIME is set in deleteServiceDataMask,
- deleteClockInfoMask will be ignored.
- Valid values: \n
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_TIME_EST (0x00000001) -- Mask to delete time estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_FREQ_EST (0x00000002) -- Mask to delete frequency estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_WEEK_NUMBER (0x00000004) -- Mask to delete week number from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_RTC_TIME (0x00000008) -- Mask to delete RTC time from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_TIME_TRANSFER (0x00000010) -- Mask to delete time transfer from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GPSTIME_EST (0x00000020) -- Mask to delete GPS time estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLOTIME_EST (0x00000040) -- Mask to delete GLONASS time estimate from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLODAY_NUMBER (0x00000080) -- Mask to delete GLONASS day number from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLO4YEAR_NUMBER (0x00000100) -- Mask to delete GLONASS four year number from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GLO_RF_GRP_DELAY (0x00000200) -- Mask to delete GLONASS RF GRP delay from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_DISABLE_TT (0x00000400) -- Mask to delete disable TT from clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GG_LEAPSEC (0x00000800) -- Mask to delete a BDS time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GG_GGTB (0x00001000) -- Mask to delete a BDS time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BDSTIME_EST (0x00002000) -- Mask to delete a BDS time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GB_GBTB (0x00004000) -- Mask to delete Glonass-to-BDS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BG_BGTB (0x00008000) -- Mask to delete BDS-to-GLONASS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BDSWEEK_NUMBER (0x00010000) -- Mask to delete the BDS week number from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_BDS_RF_GRP_DELAY (0x00020000) -- Mask to delete the BDS RF GRP delay from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTIME_EST (0x00040000) -- Mask to delete a GAL time estimate from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOGPS_TB (0x00080000) -- Mask to delete GAL-to-GPS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOGLO_TB (0x00100000) -- Mask to delete GAL-to-GLO time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALTOBDS_TB (0x00200000) -- Mask to delete GAL-to-BDS time bias-related information from the
- clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GALWEEK_NUMBER (0x00800000) -- Mask to delete the GAL week number from the clock information
- - QMI_LOC_MASK_DELETE_CLOCK_INFO_GAL_RF_GRP_DELAY (0x01000000) -- Mask to delete the GAL RF GRP delay from the clock information
- */
-
- /* Optional */
- /* Requested Bitmask of Cell DB Data to be Deleted */
- uint8_t deleteCellDbDataMask_valid; /**< Must be set to true if deleteCellDbDataMask is being passed */
- qmiLocDeleteCelldbDataMaskT_v02 deleteCellDbDataMask;
- /**< Mask for the cell database service data that is to be deleted;
- common for all GNSS types.
- Valid values: \n
- - QMI_LOC_MASK_DELETE_CELLDB_POS (0x00000001) -- Mask to delete cell database position
- - QMI_LOC_MASK_DELETE_CELLDB_LATEST_GPS_POS (0x00000002) -- Mask to delete cell database latest GPS position
- - QMI_LOC_MASK_DELETE_CELLDB_OTA_POS (0x00000004) -- Mask to delete cell database OTA position
- - QMI_LOC_MASK_DELETE_CELLDB_EXT_REF_POS (0x00000008) -- Mask to delete cell database external reference position
- - QMI_LOC_MASK_DELETE_CELLDB_TIMETAG (0x00000010) -- Mask to delete cell database time tag
- - QMI_LOC_MASK_DELETE_CELLDB_CELLID (0x00000020) -- Mask to delete cell database cell ID
- - QMI_LOC_MASK_DELETE_CELLDB_CACHED_CELLID (0x00000040) -- Mask to delete cell database cached cell ID
- - QMI_LOC_MASK_DELETE_CELLDB_LAST_SRV_CELL (0x00000080) -- Mask to delete cell database last service cell
- - QMI_LOC_MASK_DELETE_CELLDB_CUR_SRV_CELL (0x00000100) -- Mask to delete cell database current service cell
- - QMI_LOC_MASK_DELETE_CELLDB_NEIGHBOR_INFO (0x00000200) -- Mask to delete cell database neighbor information
- */
-
- /* Optional */
- /* Requested Bitmask of Common Data to be Deleted */
- uint8_t deleteCommonDataMask_valid; /**< Must be set to true if deleteCommonDataMask is being passed */
- qmiLocDeleteCommonDataMaskT_v02 deleteCommonDataMask;
- /**< Mask for the common service data that is to be deleted.
- Valid values: \n
- - QMI_LOC_DELETE_COMMON_MASK_POS (0x00000001) -- Position estimate; common for all GNSS types
- - QMI_LOC_DELETE_COMMON_MASK_TIME (0x00000002) -- Reset all CLOCK_INFO mask
- - QMI_LOC_DELETE_COMMON_MASK_UTC (0x00000004) -- UTC estimate
- - QMI_LOC_DELETE_COMMON_MASK_RTI (0x00000008) -- RTI
- - QMI_LOC_DELETE_COMMON_MASK_FREQ_BIAS_EST (0x00000010) -- Frequency bias estimate; common for all GNSS types
- */
-
- /* Optional */
- /* GNSS Service Data to be Deleted */
- uint8_t deleteSatelliteData_valid; /**< Must be set to true if deleteSatelliteData is being passed */
- qmiLocDeleteSatelliteDataStructT_v02 deleteSatelliteData;
- /**< Request to delete the GNSS service data.*/
-}qmiLocDeleteGNSSServiceDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Deletes the location engine
- service data from memory. */
-typedef struct {
-
- /* Mandatory */
- /* Delete GNSS Service Data Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Delete Assist Data request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-}qmiLocDeleteGNSSServiceDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCXTRADATAFORMATENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_XTRA_DATA_V02 = 0, /**< Default is QCOM-XTRA format. */
- QMILOCXTRADATAFORMATENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocXtraDataFormatEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Injects XTRA data. */
-typedef struct {
-
- /* Mandatory */
- /* Total Size */
- uint32_t totalSize;
- /**< Total size of the XTRA data to be injected. \n
- - Units: Bytes */
-
- /* Mandatory */
- /* Total Parts */
- uint16_t totalParts;
- /**< Total number of parts into which the XTRA data is divided. */
-
- /* Mandatory */
- /* Part Number */
- uint16_t partNum;
- /**< Number of the current XTRA data part; starts at 1. */
-
- /* Mandatory */
- /* Data */
- uint32_t partData_len; /**< Must be set to # of elements in partData */
- uint8_t partData[QMI_LOC_MAX_XTRA_PART_LEN_V02];
- /**< XTRA data. \n
- - Type: Array of bytes \n
- - Maximum length of the array: 1024
- */
-
- /* Optional */
- /* Format Type */
- uint8_t formatType_valid; /**< Must be set to true if formatType is being passed */
- qmiLocXtraDataFormatEnumT_v02 formatType;
- /**< XTRA data format. \n
- Valid values: \n
- - eQMI_LOC_XTRA_DATA (0) -- Default is QCOM-XTRA format.
- */
-}qmiLocInjectXtraDataReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Injects XTRA data. */
-typedef struct {
-
- /* Mandatory */
- /* Data Injection Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the data injection request.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Optional */
- /* Part Number */
- uint8_t partNum_valid; /**< Must be set to true if partNum is being passed */
- uint16_t partNum;
- /**< Number of the XTRA data part for which this indication
- is sent; starts at 1. */
-
- /* Optional */
- /* Success Constellation Mask */
- uint8_t ConstellationMask_valid; /**< Must be set to true if ConstellationMask is being passed */
- qmiLocGNSSConstellEnumT_v02 ConstellationMask;
- /**< The constellation mask is set when the XTRA data is accepted by the modem GNSS engine.
- This optional TLV will only be available when at least one constellation injection is successful,
- and it will only be available in the last XTRA injection IND message.
- - eQMI_SYSTEM_GPS (0x01) -- Enable GPS \n
- - eQMI_SYSTEM_GLO (0x02) -- Enable GLONASS \n
- - eQMI_SYSTEM_BDS (0x04) -- Enable BDS \n
- - eQMI_SYSTEM_GAL (0x08) -- Enable Galileo
- - eQMI_SYSTEM_QZSS (0x10) -- Enable QZSS */
-}qmiLocInjectXtraDataIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to inject PCID, which is used by XTRA service. */
-typedef struct {
-
- /* Mandatory */
- /* XTRA PCID */
- uint64_t xtraPcid;
- /**< XTRA PCID data. \n
- - Type: uint64 */
-}qmiLocInjectXtraPcidReqMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to inject PCID, which is used by XTRA service. */
-typedef struct {
-
- /* Mandatory */
- /* Inject XTRA PCID Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the inject XTRA PCID command.
-
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure */
-}qmiLocInjectXtraPcidIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Request Message; Used by the control point to query the QMI_LOC service supported features. */
-typedef struct {
- /* This element is a placeholder to prevent the declaration of
- an empty struct. DO NOT USE THIS FIELD UNDER ANY CIRCUMSTANCE */
- char __placeholder;
-}qmiLocGetSupportedFeatureReqMsgT_v02;
-
- /* Message */
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_enums
- @{
- */
-typedef enum {
- QMILOCSUPPORTEDFEATUREENUMT_MIN_ENUM_VAL_V02 = -2147483647, /**< To force a 32 bit signed enum. Do not change or use*/
- eQMI_LOC_SUPPORTED_FEATURE_ODCPI_2_V02 = 0, /**< Support the ODCPI version 2 feature */
- eQMI_LOC_SUPPORTED_FEATURE_WIFI_AP_DATA_INJECT_2_V02 = 1, /**< Support the Wi-Fi AP data inject version 2 feature */
- QMILOCSUPPORTEDFEATUREENUMT_MAX_ENUM_VAL_V02 = 2147483647 /**< To force a 32 bit signed enum. Do not change or use*/
-}qmiLocSupportedFeatureEnumT_v02;
-/**
- @}
- */
-
-/** @addtogroup loc_qmi_messages
- @{
- */
-/** Indication Message; Used by the control point to query the QMI_LOC service supported features. */
-typedef struct {
-
- /* Mandatory */
- /* Supported Feature Status */
- qmiLocStatusEnumT_v02 status;
- /**< Status of the Query Supported Feature request.
- Valid values: \n
- - eQMI_LOC_SUCCESS (0) -- Request was completed successfully \n
- - eQMI_LOC_GENERAL_FAILURE (1) -- Request failed because of a general failure \n
- - eQMI_LOC_UNSUPPORTED (2) -- Request failed because it is not supported \n
- - eQMI_LOC_INVALID_PARAMETER (3) -- Request failed because it contained invalid parameters \n
- - eQMI_LOC_ENGINE_BUSY (4) -- Request failed because the engine is busy \n
- - eQMI_LOC_PHONE_OFFLINE (5) -- Request failed because the phone is offline \n
- - eQMI_LOC_TIMEOUT (6) -- Request failed because it timed out \n
- - eQMI_LOC_CONFIG_NOT_SUPPORTED (7) -- Request failed because an undefined configuration was requested \n
- - eQMI_LOC_INSUFFICIENT_MEMORY (8) -- Request failed because the engine could not allocate sufficient memory for the request \n
- - eQMI_LOC_MAX_GEOFENCE_PROGRAMMED (9) -- Request failed because the maximum number of Geofences are already programmed \n
- - eQMI_LOC_XTRA_VERSION_CHECK_FAILURE (10) -- Location service failed because of an XTRA version-based file format check failure
- */
-
- /* Mandatory */
- /* Supported Features */
- uint32_t feature_len; /**< Must be set to # of elements in feature */
- uint8_t feature[QMI_LOC_SUPPORTED_FEATURE_LENGTH_V02];
- /**< This field describes which features are supported in the running
- QMI_LOC service. The array of unit8 is the bitmask where each bit
- represents a feature enum. Bit 0 represents feature enum ID 0,
- bit 1 represents feature enum ID 1, etc.
- For example, if QMI_LOC spports feature enum 0,1,2,8,
- feature_len is 2, and
- feature array is [7,1]. \n
- - Type: Array of uint8
- - Maximum array length: 100
- */
-}qmiLocGetSupportedFeatureIndMsgT_v02; /* Message */
-/**
- @}
- */
-
-/* Conditional compilation tags for message removal */
-//#define REMOVE_QMI_LOC_ADD_CIRCULAR_GEOFENCE_V02
-//#define REMOVE_QMI_LOC_ADD_GEOFENCE_CONTEXT_V02
-//#define REMOVE_QMI_LOC_DELETE_ASSIST_DATA_V02
-//#define REMOVE_QMI_LOC_DELETE_GEOFENCE_V02
-//#define REMOVE_QMI_LOC_DELETE_GEOFENCE_CONTEXT_V02
-//#define REMOVE_QMI_LOC_DELETE_GNSS_SERVICE_DATA_V02
-//#define REMOVE_QMI_LOC_DELETE_SUPL_CERTIFICATE_V02
-//#define REMOVE_QMI_LOC_EDIT_GEOFENCE_V02
-//#define REMOVE_QMI_LOC_EVENT_BATCHING_STATUS_V02
-//#define REMOVE_QMI_LOC_EVENT_BATCH_FULL_NOTIFICATION_V02
-//#define REMOVE_QMI_LOC_EVENT_DBT_POSITION_REPORT_V02
-//#define REMOVE_QMI_LOC_EVENT_DBT_SESSION_STATUS_V02
-//#define REMOVE_QMI_LOC_EVENT_ENGINE_STATE_V02
-//#define REMOVE_QMI_LOC_EVENT_FIX_SESSION_STATE_V02
-//#define REMOVE_QMI_LOC_EVENT_GDT_DOWNLOAD_BEGIN_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_GDT_DOWNLOAD_END_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_GDT_RECEIVE_DONE_V02
-//#define REMOVE_QMI_LOC_EVENT_GDT_UPLOAD_BEGIN_STATUS_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_GDT_UPLOAD_END_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_GEOFENCE_BATCHED_BREACH_NOTIFICATION_V02
-//#define REMOVE_QMI_LOC_EVENT_GEOFENCE_BATCHED_DWELL_NOTIFICATION_V02
-//#define REMOVE_QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_V02
-//#define REMOVE_QMI_LOC_EVENT_GEOFENCE_GEN_ALERT_V02
-//#define REMOVE_QMI_LOC_EVENT_GEOFENCE_PROXIMITY_NOTIFICATION_V02
-//#define REMOVE_QMI_LOC_EVENT_GET_TIME_ZONE_INFO_V02
-//#define REMOVE_QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02
-//#define REMOVE_QMI_LOC_EVENT_GNSS_SV_INFO_V02
-//#define REMOVE_QMI_LOC_EVENT_INJECT_POSITION_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_INJECT_TIME_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_INJECT_WIFI_AP_DATA_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_LIVE_BATCHED_POSITION_REPORT_V02
-//#define REMOVE_QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_MOTION_DATA_CONTROL_V02
-//#define REMOVE_QMI_LOC_EVENT_NI_GEOFENCE_NOTIFICATION_V02
-//#define REMOVE_QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_NMEA_V02
-//#define REMOVE_QMI_LOC_EVENT_PEDOMETER_CONTROL_V02
-//#define REMOVE_QMI_LOC_EVENT_POSITION_REPORT_V02
-//#define REMOVE_QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_V02
-//#define REMOVE_QMI_LOC_EVENT_SET_SPI_STREAMING_REPORT_V02
-//#define REMOVE_QMI_LOC_EVENT_SV_POLYNOMIAL_REPORT_IND_V02
-//#define REMOVE_QMI_LOC_EVENT_TIME_SYNC_REQ_V02
-//#define REMOVE_QMI_LOC_EVENT_VEHICLE_DATA_READY_STATUS_V02
-//#define REMOVE_QMI_LOC_EVENT_WIFI_REQ_V02
-//#define REMOVE_QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_V02
-//#define REMOVE_QMI_LOC_GDT_DOWNLOAD_END_STATUS_V02
-//#define REMOVE_QMI_LOC_GDT_DOWNLOAD_READY_STATUS_V02
-//#define REMOVE_QMI_LOC_GDT_RECEIVE_DONE_STATUS_V02
-//#define REMOVE_QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_V02
-//#define REMOVE_QMI_LOC_GDT_UPLOAD_END_V02
-//#define REMOVE_QMI_LOC_GET_AVAILABLE_WWAN_POSITION_V02
-//#define REMOVE_QMI_LOC_GET_BATCH_SIZE_V02
-//#define REMOVE_QMI_LOC_GET_BEST_AVAILABLE_POSITION_V02
-//#define REMOVE_QMI_LOC_GET_CRADLE_MOUNT_CONFIG_V02
-//#define REMOVE_QMI_LOC_GET_ENGINE_LOCK_V02
-//#define REMOVE_QMI_LOC_GET_EXTERNAL_POWER_CONFIG_V02
-//#define REMOVE_QMI_LOC_GET_FIX_CRITERIA_V02
-//#define REMOVE_QMI_LOC_GET_GEOFENCE_ENGINE_CONFIG_V02
-//#define REMOVE_QMI_LOC_GET_LOW_POWER_MODE_V02
-//#define REMOVE_QMI_LOC_GET_NI_GEOFENCE_ID_LIST_V02
-//#define REMOVE_QMI_LOC_GET_NMEA_TYPES_V02
-//#define REMOVE_QMI_LOC_GET_OPERATION_MODE_V02
-//#define REMOVE_QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_V02
-//#define REMOVE_QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_V02
-//#define REMOVE_QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_V02
-//#define REMOVE_QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_V02
-//#define REMOVE_QMI_LOC_GET_REGISTERED_EVENTS_V02
-//#define REMOVE_QMI_LOC_GET_SBAS_CONFIG_V02
-//#define REMOVE_QMI_LOC_GET_SENSOR_CONTROL_CONFIG_V02
-//#define REMOVE_QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_V02
-//#define REMOVE_QMI_LOC_GET_SENSOR_PROPERTIES_V02
-//#define REMOVE_QMI_LOC_GET_SERVER_V02
-//#define REMOVE_QMI_LOC_GET_SERVICE_REVISION_V02
-//#define REMOVE_QMI_LOC_GET_SUPPORTED_FEATURE_V02
-//#define REMOVE_QMI_LOC_GET_SUPPORTED_FIELDS_V02
-//#define REMOVE_QMI_LOC_GET_SUPPORTED_MSGS_V02
-//#define REMOVE_QMI_LOC_GET_XTRA_T_SESSION_CONTROL_V02
-//#define REMOVE_QMI_LOC_GTP_AP_STATUS_V02
-//#define REMOVE_QMI_LOC_INFORM_CLIENT_REVISION_V02
-//#define REMOVE_QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_V02
-//#define REMOVE_QMI_LOC_INFORM_NI_USER_RESPONSE_V02
-//#define REMOVE_QMI_LOC_INJECT_APCACHE_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_APDONOTCACHE_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_GSM_CELL_INFO_V02
-//#define REMOVE_QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_MOTION_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_V02
-//#define REMOVE_QMI_LOC_INJECT_POSITION_V02
-//#define REMOVE_QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_SENSOR_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_SUBSCRIBER_ID_V02
-//#define REMOVE_QMI_LOC_INJECT_SUPL_CERTIFICATE_V02
-//#define REMOVE_QMI_LOC_INJECT_TDSCDMA_CELL_INFO_V02
-//#define REMOVE_QMI_LOC_INJECT_TIME_SYNC_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_TIME_ZONE_INFO_V02
-//#define REMOVE_QMI_LOC_INJECT_UTC_TIME_V02
-//#define REMOVE_QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_WCDMA_CELL_INFO_V02
-//#define REMOVE_QMI_LOC_INJECT_WIFI_AP_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_WIFI_POSITION_V02
-//#define REMOVE_QMI_LOC_INJECT_XTRA_DATA_V02
-//#define REMOVE_QMI_LOC_INJECT_XTRA_PCID_V02
-//#define REMOVE_QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_V02
-//#define REMOVE_QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_V02
-//#define REMOVE_QMI_LOC_NOTIFY_WIFI_STATUS_V02
-//#define REMOVE_QMI_LOC_PEDOMETER_REPORT_V02
-//#define REMOVE_QMI_LOC_QUERY_AON_CONFIG_V02
-//#define REMOVE_QMI_LOC_QUERY_GEOFENCE_V02
-//#define REMOVE_QMI_LOC_READ_FROM_BATCH_V02
-//#define REMOVE_QMI_LOC_REG_EVENTS_V02
-//#define REMOVE_QMI_LOC_RELEASE_BATCH_V02
-//#define REMOVE_QMI_LOC_SECURE_GET_AVAILABLE_POSITION_V02
-//#define REMOVE_QMI_LOC_SET_CRADLE_MOUNT_CONFIG_V02
-//#define REMOVE_QMI_LOC_SET_ENGINE_LOCK_V02
-//#define REMOVE_QMI_LOC_SET_EXTERNAL_POWER_CONFIG_V02
-//#define REMOVE_QMI_LOC_SET_GEOFENCE_ENGINE_CONFIG_V02
-//#define REMOVE_QMI_LOC_SET_GEOFENCE_ENGINE_CONTEXT_V02
-//#define REMOVE_QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02
-//#define REMOVE_QMI_LOC_SET_LOW_POWER_MODE_V02
-//#define REMOVE_QMI_LOC_SET_NMEA_TYPES_V02
-//#define REMOVE_QMI_LOC_SET_OPERATION_MODE_V02
-//#define REMOVE_QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_V02
-//#define REMOVE_QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_V02
-//#define REMOVE_QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_V02
-//#define REMOVE_QMI_LOC_SET_SBAS_CONFIG_V02
-//#define REMOVE_QMI_LOC_SET_SENSOR_CONTROL_CONFIG_V02
-//#define REMOVE_QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_V02
-//#define REMOVE_QMI_LOC_SET_SENSOR_PROPERTIES_V02
-//#define REMOVE_QMI_LOC_SET_SERVER_V02
-//#define REMOVE_QMI_LOC_SET_SPI_STATUS_V02
-//#define REMOVE_QMI_LOC_SET_XTRA_T_SESSION_CONTROL_V02
-//#define REMOVE_QMI_LOC_SET_XTRA_VERSION_CHECK_V02
-//#define REMOVE_QMI_LOC_START_V02
-//#define REMOVE_QMI_LOC_START_BATCHING_V02
-//#define REMOVE_QMI_LOC_START_DBT_V02
-//#define REMOVE_QMI_LOC_STOP_V02
-//#define REMOVE_QMI_LOC_STOP_BATCHING_V02
-//#define REMOVE_QMI_LOC_STOP_DBT_V02
-//#define REMOVE_QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_V02
-
-/*Service Message Definition*/
-/** @addtogroup loc_qmi_msg_ids
- @{
- */
-#define QMI_LOC_GET_SUPPORTED_MSGS_REQ_V02 0x001E
-#define QMI_LOC_GET_SUPPORTED_MSGS_RESP_V02 0x001E
-#define QMI_LOC_GET_SUPPORTED_FIELDS_REQ_V02 0x001F
-#define QMI_LOC_GET_SUPPORTED_FIELDS_RESP_V02 0x001F
-#define QMI_LOC_INFORM_CLIENT_REVISION_REQ_V02 0x0020
-#define QMI_LOC_INFORM_CLIENT_REVISION_RESP_V02 0x0020
-#define QMI_LOC_REG_EVENTS_REQ_V02 0x0021
-#define QMI_LOC_REG_EVENTS_RESP_V02 0x0021
-#define QMI_LOC_START_REQ_V02 0x0022
-#define QMI_LOC_START_RESP_V02 0x0022
-#define QMI_LOC_STOP_REQ_V02 0x0023
-#define QMI_LOC_STOP_RESP_V02 0x0023
-#define QMI_LOC_EVENT_POSITION_REPORT_IND_V02 0x0024
-#define QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02 0x0025
-#define QMI_LOC_EVENT_NMEA_IND_V02 0x0026
-#define QMI_LOC_EVENT_NI_NOTIFY_VERIFY_REQ_IND_V02 0x0027
-#define QMI_LOC_EVENT_INJECT_TIME_REQ_IND_V02 0x0028
-#define QMI_LOC_EVENT_INJECT_PREDICTED_ORBITS_REQ_IND_V02 0x0029
-#define QMI_LOC_EVENT_INJECT_POSITION_REQ_IND_V02 0x002A
-#define QMI_LOC_EVENT_ENGINE_STATE_IND_V02 0x002B
-#define QMI_LOC_EVENT_FIX_SESSION_STATE_IND_V02 0x002C
-#define QMI_LOC_EVENT_WIFI_REQ_IND_V02 0x002D
-#define QMI_LOC_EVENT_SENSOR_STREAMING_READY_STATUS_IND_V02 0x002E
-#define QMI_LOC_EVENT_TIME_SYNC_REQ_IND_V02 0x002F
-#define QMI_LOC_EVENT_SET_SPI_STREAMING_REPORT_IND_V02 0x0030
-#define QMI_LOC_EVENT_LOCATION_SERVER_CONNECTION_REQ_IND_V02 0x0031
-#define QMI_LOC_GET_SERVICE_REVISION_REQ_V02 0x0032
-#define QMI_LOC_GET_SERVICE_REVISION_RESP_V02 0x0032
-#define QMI_LOC_GET_SERVICE_REVISION_IND_V02 0x0032
-#define QMI_LOC_GET_FIX_CRITERIA_REQ_V02 0x0033
-#define QMI_LOC_GET_FIX_CRITERIA_RESP_V02 0x0033
-#define QMI_LOC_GET_FIX_CRITERIA_IND_V02 0x0033
-#define QMI_LOC_NI_USER_RESPONSE_REQ_V02 0x0034
-#define QMI_LOC_NI_USER_RESPONSE_RESP_V02 0x0034
-#define QMI_LOC_NI_USER_RESPONSE_IND_V02 0x0034
-#define QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_REQ_V02 0x0035
-#define QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_RESP_V02 0x0035
-#define QMI_LOC_INJECT_PREDICTED_ORBITS_DATA_IND_V02 0x0035
-#define QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_REQ_V02 0x0036
-#define QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_RESP_V02 0x0036
-#define QMI_LOC_GET_PREDICTED_ORBITS_DATA_SOURCE_IND_V02 0x0036
-#define QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_REQ_V02 0x0037
-#define QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_RESP_V02 0x0037
-#define QMI_LOC_GET_PREDICTED_ORBITS_DATA_VALIDITY_IND_V02 0x0037
-#define QMI_LOC_INJECT_UTC_TIME_REQ_V02 0x0038
-#define QMI_LOC_INJECT_UTC_TIME_RESP_V02 0x0038
-#define QMI_LOC_INJECT_UTC_TIME_IND_V02 0x0038
-#define QMI_LOC_INJECT_POSITION_REQ_V02 0x0039
-#define QMI_LOC_INJECT_POSITION_RESP_V02 0x0039
-#define QMI_LOC_INJECT_POSITION_IND_V02 0x0039
-#define QMI_LOC_SET_ENGINE_LOCK_REQ_V02 0x003A
-#define QMI_LOC_SET_ENGINE_LOCK_RESP_V02 0x003A
-#define QMI_LOC_SET_ENGINE_LOCK_IND_V02 0x003A
-#define QMI_LOC_GET_ENGINE_LOCK_REQ_V02 0x003B
-#define QMI_LOC_GET_ENGINE_LOCK_RESP_V02 0x003B
-#define QMI_LOC_GET_ENGINE_LOCK_IND_V02 0x003B
-#define QMI_LOC_SET_SBAS_CONFIG_REQ_V02 0x003C
-#define QMI_LOC_SET_SBAS_CONFIG_RESP_V02 0x003C
-#define QMI_LOC_SET_SBAS_CONFIG_IND_V02 0x003C
-#define QMI_LOC_GET_SBAS_CONFIG_REQ_V02 0x003D
-#define QMI_LOC_GET_SBAS_CONFIG_RESP_V02 0x003D
-#define QMI_LOC_GET_SBAS_CONFIG_IND_V02 0x003D
-#define QMI_LOC_SET_NMEA_TYPES_REQ_V02 0x003E
-#define QMI_LOC_SET_NMEA_TYPES_RESP_V02 0x003E
-#define QMI_LOC_SET_NMEA_TYPES_IND_V02 0x003E
-#define QMI_LOC_GET_NMEA_TYPES_REQ_V02 0x003F
-#define QMI_LOC_GET_NMEA_TYPES_RESP_V02 0x003F
-#define QMI_LOC_GET_NMEA_TYPES_IND_V02 0x003F
-#define QMI_LOC_SET_LOW_POWER_MODE_REQ_V02 0x0040
-#define QMI_LOC_SET_LOW_POWER_MODE_RESP_V02 0x0040
-#define QMI_LOC_SET_LOW_POWER_MODE_IND_V02 0x0040
-#define QMI_LOC_GET_LOW_POWER_MODE_REQ_V02 0x0041
-#define QMI_LOC_GET_LOW_POWER_MODE_RESP_V02 0x0041
-#define QMI_LOC_GET_LOW_POWER_MODE_IND_V02 0x0041
-#define QMI_LOC_SET_SERVER_REQ_V02 0x0042
-#define QMI_LOC_SET_SERVER_RESP_V02 0x0042
-#define QMI_LOC_SET_SERVER_IND_V02 0x0042
-#define QMI_LOC_GET_SERVER_REQ_V02 0x0043
-#define QMI_LOC_GET_SERVER_RESP_V02 0x0043
-#define QMI_LOC_GET_SERVER_IND_V02 0x0043
-#define QMI_LOC_DELETE_ASSIST_DATA_REQ_V02 0x0044
-#define QMI_LOC_DELETE_ASSIST_DATA_RESP_V02 0x0044
-#define QMI_LOC_DELETE_ASSIST_DATA_IND_V02 0x0044
-#define QMI_LOC_SET_XTRA_T_SESSION_CONTROL_REQ_V02 0x0045
-#define QMI_LOC_SET_XTRA_T_SESSION_CONTROL_RESP_V02 0x0045
-#define QMI_LOC_SET_XTRA_T_SESSION_CONTROL_IND_V02 0x0045
-#define QMI_LOC_GET_XTRA_T_SESSION_CONTROL_REQ_V02 0x0046
-#define QMI_LOC_GET_XTRA_T_SESSION_CONTROL_RESP_V02 0x0046
-#define QMI_LOC_GET_XTRA_T_SESSION_CONTROL_IND_V02 0x0046
-#define QMI_LOC_INJECT_WIFI_POSITION_REQ_V02 0x0047
-#define QMI_LOC_INJECT_WIFI_POSITION_RESP_V02 0x0047
-#define QMI_LOC_INJECT_WIFI_POSITION_IND_V02 0x0047
-#define QMI_LOC_NOTIFY_WIFI_STATUS_REQ_V02 0x0048
-#define QMI_LOC_NOTIFY_WIFI_STATUS_RESP_V02 0x0048
-#define QMI_LOC_NOTIFY_WIFI_STATUS_IND_V02 0x0048
-#define QMI_LOC_GET_REGISTERED_EVENTS_REQ_V02 0x0049
-#define QMI_LOC_GET_REGISTERED_EVENTS_RESP_V02 0x0049
-#define QMI_LOC_GET_REGISTERED_EVENTS_IND_V02 0x0049
-#define QMI_LOC_SET_OPERATION_MODE_REQ_V02 0x004A
-#define QMI_LOC_SET_OPERATION_MODE_RESP_V02 0x004A
-#define QMI_LOC_SET_OPERATION_MODE_IND_V02 0x004A
-#define QMI_LOC_GET_OPERATION_MODE_REQ_V02 0x004B
-#define QMI_LOC_GET_OPERATION_MODE_RESP_V02 0x004B
-#define QMI_LOC_GET_OPERATION_MODE_IND_V02 0x004B
-#define QMI_LOC_SET_SPI_STATUS_REQ_V02 0x004C
-#define QMI_LOC_SET_SPI_STATUS_RESP_V02 0x004C
-#define QMI_LOC_SET_SPI_STATUS_IND_V02 0x004C
-#define QMI_LOC_INJECT_SENSOR_DATA_REQ_V02 0x004D
-#define QMI_LOC_INJECT_SENSOR_DATA_RESP_V02 0x004D
-#define QMI_LOC_INJECT_SENSOR_DATA_IND_V02 0x004D
-#define QMI_LOC_INJECT_TIME_SYNC_DATA_REQ_V02 0x004E
-#define QMI_LOC_INJECT_TIME_SYNC_DATA_RESP_V02 0x004E
-#define QMI_LOC_INJECT_TIME_SYNC_DATA_IND_V02 0x004E
-#define QMI_LOC_SET_CRADLE_MOUNT_CONFIG_REQ_V02 0x004F
-#define QMI_LOC_SET_CRADLE_MOUNT_CONFIG_RESP_V02 0x004F
-#define QMI_LOC_SET_CRADLE_MOUNT_CONFIG_IND_V02 0x004F
-#define QMI_LOC_GET_CRADLE_MOUNT_CONFIG_REQ_V02 0x0050
-#define QMI_LOC_GET_CRADLE_MOUNT_CONFIG_RESP_V02 0x0050
-#define QMI_LOC_GET_CRADLE_MOUNT_CONFIG_IND_V02 0x0050
-#define QMI_LOC_SET_EXTERNAL_POWER_CONFIG_REQ_V02 0x0051
-#define QMI_LOC_SET_EXTERNAL_POWER_CONFIG_RESP_V02 0x0051
-#define QMI_LOC_SET_EXTERNAL_POWER_CONFIG_IND_V02 0x0051
-#define QMI_LOC_GET_EXTERNAL_POWER_CONFIG_REQ_V02 0x0052
-#define QMI_LOC_GET_EXTERNAL_POWER_CONFIG_RESP_V02 0x0052
-#define QMI_LOC_GET_EXTERNAL_POWER_CONFIG_IND_V02 0x0052
-#define QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_REQ_V02 0x0053
-#define QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_RESP_V02 0x0053
-#define QMI_LOC_INFORM_LOCATION_SERVER_CONN_STATUS_IND_V02 0x0053
-#define QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02 0x0054
-#define QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_RESP_V02 0x0054
-#define QMI_LOC_SET_PROTOCOL_CONFIG_PARAMETERS_IND_V02 0x0054
-#define QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_REQ_V02 0x0055
-#define QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_RESP_V02 0x0055
-#define QMI_LOC_GET_PROTOCOL_CONFIG_PARAMETERS_IND_V02 0x0055
-#define QMI_LOC_SET_SENSOR_CONTROL_CONFIG_REQ_V02 0x0056
-#define QMI_LOC_SET_SENSOR_CONTROL_CONFIG_RESP_V02 0x0056
-#define QMI_LOC_SET_SENSOR_CONTROL_CONFIG_IND_V02 0x0056
-#define QMI_LOC_GET_SENSOR_CONTROL_CONFIG_REQ_V02 0x0057
-#define QMI_LOC_GET_SENSOR_CONTROL_CONFIG_RESP_V02 0x0057
-#define QMI_LOC_GET_SENSOR_CONTROL_CONFIG_IND_V02 0x0057
-#define QMI_LOC_SET_SENSOR_PROPERTIES_REQ_V02 0x0058
-#define QMI_LOC_SET_SENSOR_PROPERTIES_RESP_V02 0x0058
-#define QMI_LOC_SET_SENSOR_PROPERTIES_IND_V02 0x0058
-#define QMI_LOC_GET_SENSOR_PROPERTIES_REQ_V02 0x0059
-#define QMI_LOC_GET_SENSOR_PROPERTIES_RESP_V02 0x0059
-#define QMI_LOC_GET_SENSOR_PROPERTIES_IND_V02 0x0059
-#define QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02 0x005A
-#define QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_RESP_V02 0x005A
-#define QMI_LOC_SET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02 0x005A
-#define QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_REQ_V02 0x005B
-#define QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_RESP_V02 0x005B
-#define QMI_LOC_GET_SENSOR_PERFORMANCE_CONTROL_CONFIGURATION_IND_V02 0x005B
-#define QMI_LOC_INJECT_SUPL_CERTIFICATE_REQ_V02 0x005C
-#define QMI_LOC_INJECT_SUPL_CERTIFICATE_RESP_V02 0x005C
-#define QMI_LOC_INJECT_SUPL_CERTIFICATE_IND_V02 0x005C
-#define QMI_LOC_DELETE_SUPL_CERTIFICATE_REQ_V02 0x005D
-#define QMI_LOC_DELETE_SUPL_CERTIFICATE_RESP_V02 0x005D
-#define QMI_LOC_DELETE_SUPL_CERTIFICATE_IND_V02 0x005D
-#define QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02 0x005E
-#define QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_RESP_V02 0x005E
-#define QMI_LOC_SET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02 0x005E
-#define QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_REQ_V02 0x005F
-#define QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_RESP_V02 0x005F
-#define QMI_LOC_GET_POSITION_ENGINE_CONFIG_PARAMETERS_IND_V02 0x005F
-#define QMI_LOC_EVENT_NI_GEOFENCE_NOTIFICATION_IND_V02 0x0060
-#define QMI_LOC_EVENT_GEOFENCE_GEN_ALERT_IND_V02 0x0061
-#define QMI_LOC_EVENT_GEOFENCE_BREACH_NOTIFICATION_IND_V02 0x0062
-#define QMI_LOC_ADD_CIRCULAR_GEOFENCE_REQ_V02 0x0063
-#define QMI_LOC_ADD_CIRCULAR_GEOFENCE_RESP_V02 0x0063
-#define QMI_LOC_ADD_CIRCULAR_GEOFENCE_IND_V02 0x0063
-#define QMI_LOC_DELETE_GEOFENCE_REQ_V02 0x0064
-#define QMI_LOC_DELETE_GEOFENCE_RESP_V02 0x0064
-#define QMI_LOC_DELETE_GEOFENCE_IND_V02 0x0064
-#define QMI_LOC_QUERY_GEOFENCE_REQ_V02 0x0065
-#define QMI_LOC_QUERY_GEOFENCE_RESP_V02 0x0065
-#define QMI_LOC_QUERY_GEOFENCE_IND_V02 0x0065
-#define QMI_LOC_EDIT_GEOFENCE_REQ_V02 0x0066
-#define QMI_LOC_EDIT_GEOFENCE_RESP_V02 0x0066
-#define QMI_LOC_EDIT_GEOFENCE_IND_V02 0x0066
-#define QMI_LOC_GET_BEST_AVAILABLE_POSITION_REQ_V02 0x0067
-#define QMI_LOC_GET_BEST_AVAILABLE_POSITION_RESP_V02 0x0067
-#define QMI_LOC_GET_BEST_AVAILABLE_POSITION_IND_V02 0x0067
-#define QMI_LOC_INJECT_MOTION_DATA_REQ_V02 0x0068
-#define QMI_LOC_INJECT_MOTION_DATA_RESP_V02 0x0068
-#define QMI_LOC_INJECT_MOTION_DATA_IND_V02 0x0068
-#define QMI_LOC_GET_NI_GEOFENCE_ID_LIST_REQ_V02 0x0069
-#define QMI_LOC_GET_NI_GEOFENCE_ID_LIST_RESP_V02 0x0069
-#define QMI_LOC_GET_NI_GEOFENCE_ID_LIST_IND_V02 0x0069
-#define QMI_LOC_INJECT_GSM_CELL_INFO_REQ_V02 0x006A
-#define QMI_LOC_INJECT_GSM_CELL_INFO_RESP_V02 0x006A
-#define QMI_LOC_INJECT_GSM_CELL_INFO_IND_V02 0x006A
-#define QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_REQ_V02 0x006B
-#define QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_RESP_V02 0x006B
-#define QMI_LOC_INJECT_NETWORK_INITIATED_MESSAGE_IND_V02 0x006B
-#define QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_REQ_V02 0x006C
-#define QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_RESP_V02 0x006C
-#define QMI_LOC_WWAN_OUT_OF_SERVICE_NOTIFICATION_IND_V02 0x006C
-#define QMI_LOC_EVENT_PEDOMETER_CONTROL_IND_V02 0x006D
-#define QMI_LOC_EVENT_MOTION_DATA_CONTROL_IND_V02 0x006E
-#define QMI_LOC_PEDOMETER_REPORT_REQ_V02 0x006F
-#define QMI_LOC_PEDOMETER_REPORT_RESP_V02 0x006F
-#define QMI_LOC_PEDOMETER_REPORT_IND_V02 0x006F
-#define QMI_LOC_INJECT_WCDMA_CELL_INFO_REQ_V02 0x0070
-#define QMI_LOC_INJECT_WCDMA_CELL_INFO_RESP_V02 0x0070
-#define QMI_LOC_INJECT_WCDMA_CELL_INFO_IND_V02 0x0070
-#define QMI_LOC_INJECT_TDSCDMA_CELL_INFO_REQ_V02 0x0071
-#define QMI_LOC_INJECT_TDSCDMA_CELL_INFO_RESP_V02 0x0071
-#define QMI_LOC_INJECT_TDSCDMA_CELL_INFO_IND_V02 0x0071
-#define QMI_LOC_INJECT_SUBSCRIBER_ID_REQ_V02 0x0072
-#define QMI_LOC_INJECT_SUBSCRIBER_ID_RESP_V02 0x0072
-#define QMI_LOC_INJECT_SUBSCRIBER_ID_IND_V02 0x0072
-#define QMI_LOC_SET_GEOFENCE_ENGINE_CONFIG_REQ_V02 0x0073
-#define QMI_LOC_SET_GEOFENCE_ENGINE_CONFIG_RESP_V02 0x0073
-#define QMI_LOC_SET_GEOFENCE_ENGINE_CONFIG_IND_V02 0x0073
-#define QMI_LOC_GET_GEOFENCE_ENGINE_CONFIG_REQ_V02 0x0074
-#define QMI_LOC_GET_GEOFENCE_ENGINE_CONFIG_RESP_V02 0x0074
-#define QMI_LOC_GET_GEOFENCE_ENGINE_CONFIG_IND_V02 0x0074
-#define QMI_LOC_GET_BATCH_SIZE_REQ_V02 0x0075
-#define QMI_LOC_GET_BATCH_SIZE_RESP_V02 0x0075
-#define QMI_LOC_GET_BATCH_SIZE_IND_V02 0x0075
-#define QMI_LOC_START_BATCHING_REQ_V02 0x0076
-#define QMI_LOC_START_BATCHING_RESP_V02 0x0076
-#define QMI_LOC_START_BATCHING_IND_V02 0x0076
-#define QMI_LOC_EVENT_BATCH_FULL_NOTIFICATION_IND_V02 0x0077
-#define QMI_LOC_EVENT_LIVE_BATCHED_POSITION_REPORT_IND_V02 0x0078
-#define QMI_LOC_READ_FROM_BATCH_REQ_V02 0x0079
-#define QMI_LOC_READ_FROM_BATCH_RESP_V02 0x0079
-#define QMI_LOC_READ_FROM_BATCH_IND_V02 0x0079
-#define QMI_LOC_STOP_BATCHING_REQ_V02 0x007A
-#define QMI_LOC_STOP_BATCHING_RESP_V02 0x007A
-#define QMI_LOC_STOP_BATCHING_IND_V02 0x007A
-#define QMI_LOC_RELEASE_BATCH_REQ_V02 0x007B
-#define QMI_LOC_RELEASE_BATCH_RESP_V02 0x007B
-#define QMI_LOC_RELEASE_BATCH_IND_V02 0x007B
-#define QMI_LOC_EVENT_INJECT_WIFI_AP_DATA_REQ_IND_V02 0x007C
-#define QMI_LOC_INJECT_WIFI_AP_DATA_REQ_V02 0x007D
-#define QMI_LOC_INJECT_WIFI_AP_DATA_RESP_V02 0x007D
-#define QMI_LOC_INJECT_WIFI_AP_DATA_IND_V02 0x007D
-#define QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_REQ_V02 0x007E
-#define QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_RESP_V02 0x007E
-#define QMI_LOC_NOTIFY_WIFI_ATTACHMENT_STATUS_IND_V02 0x007E
-#define QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_REQ_V02 0x007F
-#define QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_RESP_V02 0x007F
-#define QMI_LOC_NOTIFY_WIFI_ENABLED_STATUS_IND_V02 0x007F
-#define QMI_LOC_EVENT_GEOFENCE_BATCHED_BREACH_NOTIFICATION_IND_V02 0x0080
-#define QMI_LOC_EVENT_VEHICLE_DATA_READY_STATUS_IND_V02 0x0081
-#define QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_REQ_V02 0x0082
-#define QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_RESP_V02 0x0082
-#define QMI_LOC_INJECT_VEHICLE_SENSOR_DATA_IND_V02 0x0082
-#define QMI_LOC_GET_AVAILABLE_WWAN_POSITION_REQ_V02 0x0083
-#define QMI_LOC_GET_AVAILABLE_WWAN_POSITION_RESP_V02 0x0083
-#define QMI_LOC_GET_AVAILABLE_WWAN_POSITION_IND_V02 0x0083
-#define QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_REQ_V02 0x0084
-#define QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_RESP_V02 0x0084
-#define QMI_LOC_SET_PREMIUM_SERVICES_CONFIG_IND_V02 0x0084
-#define QMI_LOC_SET_XTRA_VERSION_CHECK_REQ_V02 0x0085
-#define QMI_LOC_SET_XTRA_VERSION_CHECK_RESP_V02 0x0085
-#define QMI_LOC_SET_XTRA_VERSION_CHECK_IND_V02 0x0085
-#define QMI_LOC_EVENT_GNSS_MEASUREMENT_REPORT_IND_V02 0x0086
-#define QMI_LOC_EVENT_SV_POLYNOMIAL_REPORT_IND_V02 0x0087
-#define QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_V02 0x0088
-#define QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_RESP_V02 0x0088
-#define QMI_LOC_SET_GNSS_CONSTELL_REPORT_CONFIG_IND_V02 0x0088
-#define QMI_LOC_ADD_GEOFENCE_CONTEXT_REQ_V02 0x0089
-#define QMI_LOC_ADD_GEOFENCE_CONTEXT_RESP_V02 0x0089
-#define QMI_LOC_ADD_GEOFENCE_CONTEXT_IND_V02 0x0089
-#define QMI_LOC_SET_GEOFENCE_ENGINE_CONTEXT_REQ_V02 0x008A
-#define QMI_LOC_SET_GEOFENCE_ENGINE_CONTEXT_RESP_V02 0x008A
-#define QMI_LOC_SET_GEOFENCE_ENGINE_CONTEXT_IND_V02 0x008A
-#define QMI_LOC_DELETE_GEOFENCE_CONTEXT_REQ_V02 0x008B
-#define QMI_LOC_DELETE_GEOFENCE_CONTEXT_RESP_V02 0x008B
-#define QMI_LOC_DELETE_GEOFENCE_CONTEXT_IND_V02 0x008B
-#define QMI_LOC_EVENT_GEOFENCE_PROXIMITY_NOTIFICATION_IND_V02 0x008C
-#define QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_REQ_V02 0x008D
-#define QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_RESP_V02 0x008D
-#define QMI_LOC_INJECT_GTP_CLIENT_DOWNLOADED_DATA_IND_V02 0x008D
-#define QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_REQ_V02 0x008E
-#define QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_RESP_V02 0x008E
-#define QMI_LOC_GDT_UPLOAD_BEGIN_STATUS_IND_V02 0x008E
-#define QMI_LOC_GDT_UPLOAD_END_REQ_V02 0x008F
-#define QMI_LOC_GDT_UPLOAD_END_RESP_V02 0x008F
-#define QMI_LOC_GDT_UPLOAD_END_IND_V02 0x008F
-#define QMI_LOC_EVENT_GDT_UPLOAD_BEGIN_STATUS_REQ_IND_V02 0x0090
-#define QMI_LOC_EVENT_GDT_UPLOAD_END_REQ_IND_V02 0x0091
-#define QMI_LOC_START_DBT_REQ_V02 0x0092
-#define QMI_LOC_START_DBT_RESP_V02 0x0092
-#define QMI_LOC_START_DBT_IND_V02 0x0092
-#define QMI_LOC_EVENT_DBT_POSITION_REPORT_IND_V02 0x0093
-#define QMI_LOC_EVENT_DBT_SESSION_STATUS_IND_V02 0x0094
-#define QMI_LOC_STOP_DBT_REQ_V02 0x0095
-#define QMI_LOC_STOP_DBT_RESP_V02 0x0095
-#define QMI_LOC_STOP_DBT_IND_V02 0x0095
-#define QMI_LOC_SECURE_GET_AVAILABLE_POSITION_REQ_V02 0x0096
-#define QMI_LOC_SECURE_GET_AVAILABLE_POSITION_RESP_V02 0x0096
-#define QMI_LOC_SECURE_GET_AVAILABLE_POSITION_IND_V02 0x0096
-#define QMI_LOC_EVENT_GEOFENCE_BATCHED_DWELL_NOTIFICATION_IND_V02 0x0097
-#define QMI_LOC_EVENT_GET_TIME_ZONE_INFO_IND_V02 0x0098
-#define QMI_LOC_INJECT_TIME_ZONE_INFO_REQ_V02 0x0099
-#define QMI_LOC_INJECT_TIME_ZONE_INFO_RESP_V02 0x0099
-#define QMI_LOC_INJECT_TIME_ZONE_INFO_IND_V02 0x0099
-#define QMI_LOC_INJECT_APCACHE_DATA_REQ_V02 0x009A
-#define QMI_LOC_INJECT_APCACHE_DATA_RESP_V02 0x009A
-#define QMI_LOC_INJECT_APCACHE_DATA_IND_V02 0x009A
-#define QMI_LOC_INJECT_APDONOTCACHE_DATA_REQ_V02 0x009B
-#define QMI_LOC_INJECT_APDONOTCACHE_DATA_RESP_V02 0x009B
-#define QMI_LOC_INJECT_APDONOTCACHE_DATA_IND_V02 0x009B
-#define QMI_LOC_EVENT_BATCHING_STATUS_IND_V02 0x009C
-#define QMI_LOC_QUERY_AON_CONFIG_REQ_V02 0x009D
-#define QMI_LOC_QUERY_AON_CONFIG_RESP_V02 0x009D
-#define QMI_LOC_QUERY_AON_CONFIG_IND_V02 0x009D
-#define QMI_LOC_GTP_AP_STATUS_REQ_V02 0x009E
-#define QMI_LOC_GTP_AP_STATUS_RESP_V02 0x009E
-#define QMI_LOC_GTP_AP_STATUS_IND_V02 0x009E
-#define QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_REQ_V02 0x009F
-#define QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_RESP_V02 0x009F
-#define QMI_LOC_GDT_DOWNLOAD_BEGIN_STATUS_IND_V02 0x009F
-#define QMI_LOC_GDT_DOWNLOAD_READY_STATUS_REQ_V02 0x00A0
-#define QMI_LOC_GDT_DOWNLOAD_READY_STATUS_RESP_V02 0x00A0
-#define QMI_LOC_GDT_DOWNLOAD_READY_STATUS_IND_V02 0x00A0
-#define QMI_LOC_GDT_RECEIVE_DONE_STATUS_REQ_V02 0x00A1
-#define QMI_LOC_GDT_RECEIVE_DONE_STATUS_RESP_V02 0x00A1
-#define QMI_LOC_GDT_RECEIVE_DONE_STATUS_IND_V02 0x00A1
-#define QMI_LOC_GDT_DOWNLOAD_END_STATUS_REQ_V02 0x00A2
-#define QMI_LOC_GDT_DOWNLOAD_END_STATUS_RESP_V02 0x00A2
-#define QMI_LOC_GDT_DOWNLOAD_END_STATUS_IND_V02 0x00A2
-#define QMI_LOC_EVENT_GDT_DOWNLOAD_BEGIN_REQ_IND_V02 0x00A3
-#define QMI_LOC_EVENT_GDT_RECEIVE_DONE_IND_V02 0x00A4
-#define QMI_LOC_EVENT_GDT_DOWNLOAD_END_REQ_IND_V02 0x00A5
-#define QMI_LOC_DELETE_GNSS_SERVICE_DATA_REQ_V02 0x00A6
-#define QMI_LOC_DELETE_GNSS_SERVICE_DATA_RESP_V02 0x00A6
-#define QMI_LOC_DELETE_GNSS_SERVICE_DATA_IND_V02 0x00A6
-#define QMI_LOC_INJECT_XTRA_DATA_REQ_V02 0x00A7
-#define QMI_LOC_INJECT_XTRA_DATA_RESP_V02 0x00A7
-#define QMI_LOC_INJECT_XTRA_DATA_IND_V02 0x00A7
-#define QMI_LOC_INJECT_XTRA_PCID_REQ_V02 0x00A8
-#define QMI_LOC_INJECT_XTRA_PCID_RESP_V02 0x00A8
-#define QMI_LOC_INJECT_XTRA_PCID_IND_V02 0x00A8
-#define QMI_LOC_GET_SUPPORTED_FEATURE_REQ_V02 0x00A9
-#define QMI_LOC_GET_SUPPORTED_FEATURE_RESP_V02 0x00A9
-#define QMI_LOC_GET_SUPPORTED_FEATURE_IND_V02 0x00A9
-/**
- @}
- */
-
-/* Service Object Accessor */
-/** @addtogroup wms_qmi_accessor
- @{
- */
-/** This function is used internally by the autogenerated code. Clients should use the
- macro loc_get_service_object_v02( ) that takes in no arguments. */
-qmi_idl_service_object_type loc_get_service_object_internal_v02
- ( int32_t idl_maj_version, int32_t idl_min_version, int32_t library_version );
-
-/** This macro should be used to get the service object */
-#define loc_get_service_object_v02( ) \
- loc_get_service_object_internal_v02( \
- LOC_V02_IDL_MAJOR_VERS, LOC_V02_IDL_MINOR_VERS, \
- LOC_V02_IDL_TOOL_VERS )
-/**
- @}
- */
-
-
-#ifdef __cplusplus
-}
-#endif
-#endif
-
diff --git a/telephony/ims/Android.mk b/telephony/ims/Android.mk
deleted file mode 100644
index a2393bf..0000000
--- a/telephony/ims/Android.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src/org
-LOCAL_SRC_FILES := $(call all-java-files-under, src/org) \
- $(call all-Iaidl-files-under, src/org) \
- $(call all-logtags-files-under, src/org)
-
-LOCAL_JAVA_LIBRARIES := ims-common
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE := ims-ext-common
-
-include $(BUILD_STATIC_JAVA_LIBRARY)
-
-# Include subdirectory makefiles
-# ============================================================
-include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/telephony/ims/InCallUi/Android.mk b/telephony/ims/InCallUi/Android.mk
deleted file mode 100644
index f29968c..0000000
--- a/telephony/ims/InCallUi/Android.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_SRC_FILES := $(call all-subdir-java-files)
-
-LOCAL_PACKAGE_NAME := qtiImsInCallUi
-
-LOCAL_CERTIFICATE := platform
-
-LOCAL_MODULE_OWNER := qti
-
-include $(BUILD_PACKAGE)
diff --git a/telephony/ims/InCallUi/AndroidManifest.xml b/telephony/ims/InCallUi/AndroidManifest.xml
deleted file mode 100644
index badcfd6..0000000
--- a/telephony/ims/InCallUi/AndroidManifest.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/telephony/ims/InCallUi/res/drawable-hdpi/qti_ic_person_edit_number.png b/telephony/ims/InCallUi/res/drawable-hdpi/qti_ic_person_edit_number.png
deleted file mode 100644
index 5980179..0000000
Binary files a/telephony/ims/InCallUi/res/drawable-hdpi/qti_ic_person_edit_number.png and /dev/null differ
diff --git a/telephony/ims/InCallUi/res/drawable-mdpi/qti_ic_person_edit_number.png b/telephony/ims/InCallUi/res/drawable-mdpi/qti_ic_person_edit_number.png
deleted file mode 100644
index 2900c4d..0000000
Binary files a/telephony/ims/InCallUi/res/drawable-mdpi/qti_ic_person_edit_number.png and /dev/null differ
diff --git a/telephony/ims/InCallUi/res/drawable-xhdpi/qti_ic_person_edit_number.png b/telephony/ims/InCallUi/res/drawable-xhdpi/qti_ic_person_edit_number.png
deleted file mode 100644
index 143966a..0000000
Binary files a/telephony/ims/InCallUi/res/drawable-xhdpi/qti_ic_person_edit_number.png and /dev/null differ
diff --git a/telephony/ims/InCallUi/res/drawable-xxhdpi/qti_ic_person_edit_number.png b/telephony/ims/InCallUi/res/drawable-xxhdpi/qti_ic_person_edit_number.png
deleted file mode 100644
index d6d01ac..0000000
Binary files a/telephony/ims/InCallUi/res/drawable-xxhdpi/qti_ic_person_edit_number.png and /dev/null differ
diff --git a/telephony/ims/InCallUi/res/layout/edit_number.xml b/telephony/ims/InCallUi/res/layout/edit_number.xml
deleted file mode 100644
index 4c61685..0000000
--- a/telephony/ims/InCallUi/res/layout/edit_number.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/telephony/ims/InCallUi/res/values/strings.xml b/telephony/ims/InCallUi/res/values/strings.xml
deleted file mode 100644
index 1c0f20f..0000000
--- a/telephony/ims/InCallUi/res/values/strings.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
- Enter Number
- Ok
- Cancel
- Choose a contact
-
diff --git a/telephony/ims/InCallUi/src/com/qti/editnumber/QtiEditNumberDialog.java b/telephony/ims/InCallUi/src/com/qti/editnumber/QtiEditNumberDialog.java
deleted file mode 100644
index 0e5e3d4..0000000
--- a/telephony/ims/InCallUi/src/com/qti/editnumber/QtiEditNumberDialog.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package com.qti.editnumber;
-
-import android.app.Activity;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.database.Cursor;
-import android.net.Uri;
-import android.os.Bundle;
-import android.provider.ContactsContract;
-import android.provider.ContactsContract.Contacts;
-import android.text.Editable;
-import android.text.TextWatcher;
-import android.view.Menu;
-import android.view.MenuItem;
-import android.view.View;
-import android.view.WindowManager;
-import android.widget.Button;
-import android.widget.EditText;
-import android.widget.ImageButton;
-import android.widget.ListView;
-import android.widget.Toast;
-import android.util.Log;
-
-/**
- * This class contains Qti specific Deflect/ECT feature functions
- * for dynamic call number.
- */
-public class QtiEditNumberDialog extends Activity {
-
- private EditText mEditText;
- private Button mOkButton;
- private ImageButton mContactButton;
- private Button mCancelButton;
- private Cursor mCursor;
- private ListView mListView;
- private String mEditNumber;
- private static String LOG_TAG = "QtiEditNumberDialog";
- private static final int ACTIVITY_REQUEST_CONTACT_PICK = 100;
- private static final String INTENT_PICK_ACTION = "android.intent.action.PICK";
- public static final String INTENT_ACTION_DIALOG_DISMISS =
- "com.qti.editnumber.INTENT_ACTION_DIALOG_DISMISS";
-
- private BroadcastReceiver mReceiver = new BroadcastReceiver() {
- @Override
- public void onReceive(Context context, Intent intent) {
- if (intent != null &&
- intent.getAction().equals(INTENT_ACTION_DIALOG_DISMISS)) {
- finishActivity(ACTIVITY_REQUEST_CONTACT_PICK);
- finish();
- }
- }
- };
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.edit_number);
- mEditText = (EditText) findViewById(R.id.edit_number);
- mContactButton = (ImageButton) findViewById(R.id.contactlist);
- mOkButton = (Button) findViewById(R.id.btn_ok);
- mCancelButton = (Button) findViewById(R.id.btn_cancel);
-
- // register for broadcast
- IntentFilter filter = new IntentFilter();
- filter.addAction(INTENT_ACTION_DIALOG_DISMISS);
- this.registerReceiver(mReceiver, filter);
-
- // Allow the title to be set to a custom String using an extra on the intent
- String title = getIntent().getStringExtra("Title");
- if (title != null) {
- setTitle(title);
- }
- mOkButton.setEnabled(false);
-
- mEditText.addTextChangedListener(new TextWatcher() {
- @Override
- public void onTextChanged(CharSequence s, int start, int before, int count) {
- mOkButton.setEnabled(true);
- }
-
- @Override
- public void beforeTextChanged(CharSequence s, int start, int count, int after) {
- }
-
- @Override
- public void afterTextChanged(Editable s) {
- if (mEditText.getText().toString().isEmpty()) {
- mOkButton.setEnabled(false);
- }
- }
- });
-
- mContactButton.setOnClickListener(new ImageButton.OnClickListener() {
- @Override
- public void onClick(View arg0) {
- Intent intent = new Intent(INTENT_PICK_ACTION, Contacts.CONTENT_URI);
- startActivityForResult(intent,ACTIVITY_REQUEST_CONTACT_PICK);
- }
- });
-
- mOkButton.setOnClickListener(new Button.OnClickListener() {
- @Override
- public void onClick(View arg0) {
- if (mEditText.getText().toString().isEmpty()) {
- return;
- }
- mEditNumber = mEditText.getText().toString();
- Log.d(LOG_TAG, "EditText number mEditNumber = " + mEditNumber);
- finishWithResult(mEditNumber);
- }
- });
-
- mCancelButton.setOnClickListener(new Button.OnClickListener() {
- @Override
- public void onClick(View arg0) {
- finish();
- }
- });
-
- }
-
- /**
- * Return number to called Activity
- */
- private void finishWithResult(String number) {
- Bundle contactData = new Bundle();
- contactData.putString("Number", number);
- Intent intent = new Intent();
- intent.putExtras(contactData);
- setResult(RESULT_OK, intent);
- finish();
- }
-
- @Override
- protected void onActivityResult(int requestCode, int resultCode, Intent data) {
- super.onActivityResult(requestCode, resultCode, data);
-
- if (data == null) {
- Log.w(LOG_TAG, "Data is null from intent" );
- return;
- }
-
- if (resultCode == Activity.RESULT_OK) {
- Uri contactData = data.getData();
- Cursor c = managedQuery(contactData, null, null, null, null);
- if (c.moveToFirst()) {
- final String id = c.getString(c.getColumnIndexOrThrow(
- ContactsContract.Contacts._ID));
- final String hasPhone =
- c.getString(c.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));
- String number = "";
- if (hasPhone.equalsIgnoreCase("1")) {
- Cursor phones = getContentResolver().query(
- ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,
- ContactsContract.CommonDataKinds.Phone.CONTACT_ID + " = " + id,
- null, null);
- phones.moveToFirst();
- number = phones.getString(phones.getColumnIndex("data1"));
- mEditText.setText(number);
- }
- }
- }
- }
-
- @Override
- public void onAttachedToWindow() {
- super.onAttachedToWindow();
- this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
- | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
- }
-
- @Override
- public void onDestroy() {
- if (mReceiver != null) {
- unregisterReceiver(mReceiver);
- mReceiver = null;
- }
- super.onDestroy();
- }
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiCallConstants.java b/telephony/ims/src/org/codeaurora/ims/QtiCallConstants.java
deleted file mode 100644
index 6b17353..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiCallConstants.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims;
-
-import com.android.ims.ImsReasonInfo;
-
-/**
- * The class contains definitions for Qti specific constants related to any
- * value added features for video telephony.
- */
-/**
- * @hide
- */
-public class QtiCallConstants {
-
- /**
- * Call substate bitmask values
- */
-
- /* Default case */
- public static final int CALL_SUBSTATE_NONE = 0;
-
- /* Indicates that the call is connected but audio attribute is suspended */
- public static final int CALL_SUBSTATE_AUDIO_CONNECTED_SUSPENDED = 0x1;
-
- /* Indicates that the call is connected but video attribute is suspended */
- public static final int CALL_SUBSTATE_VIDEO_CONNECTED_SUSPENDED = 0x2;
-
- /* Indicates that the call is established but media retry is needed */
- public static final int CALL_SUBSTATE_AVP_RETRY = 0x4;
-
- /* Indicates that the call is multitasking */
- public static final int CALL_SUBSTATE_MEDIA_PAUSED = 0x8;
-
- /* Mask containing all the call substate bits set */
- public static final int CALL_SUBSTATE_ALL = CALL_SUBSTATE_AUDIO_CONNECTED_SUSPENDED |
- CALL_SUBSTATE_VIDEO_CONNECTED_SUSPENDED | CALL_SUBSTATE_AVP_RETRY |
- CALL_SUBSTATE_MEDIA_PAUSED;
-
- /* Call substate extra key name */
- public static final String CALL_SUBSTATE_EXTRA_KEY = "CallSubstate";
-
- /* Call encryption status extra key. The value will be a boolean. */
- public static final String CALL_ENCRYPTION_EXTRA_KEY = "CallEncryption";
-
- /* Call History Info extra key. The value will be a ArrayList of Strings. */
- public static final String EXTRAS_CALL_HISTORY_INFO = "CallHistoryInfo";
-
- /* Call fail code extra key name */
- public static final String EXTRAS_KEY_CALL_FAIL_EXTRA_CODE = "CallFailExtraCode";
-
- /* Call fail error code for handover not feasible */
- public static final int CALL_FAIL_EXTRA_CODE_LTE_3G_HA_FAILED = 149;
-
- /* Call fail error code for validate Video call number */
- public static final int CALL_FAIL_EXTRA_CODE_LOCAL_VALIDATE_NUMBER = 150;
-
- /* Call fail error code for Retry CS call*/
- public static final int CALL_FAIL_EXTRA_CODE_CALL_CS_RETRY_REQUIRED =
- ImsReasonInfo.CODE_LOCAL_CALL_CS_RETRY_REQUIRED;
-
- /* Calls are rejected due to low battery */
- public static final int CALL_FAIL_EXTRA_CODE_LOCAL_LOW_BATTERY =
- ImsReasonInfo.CODE_LOCAL_LOW_BATTERY;
-
- /* Unknown disconnect cause */
- public static final int DISCONNECT_CAUSE_UNSPECIFIED = -1;
-
- /**
- * Whether the IMS to CS retry is enabled
- *
- * Type: int (0 for false, 1 for true)
- * @hide
- */
- public static final String IMS_TO_CS_RETRY_ENABLED = "qti.settings.cs_retry";
-
- /* Default camera zoom max */
- public static final int CAMERA_MAX_ZOOM = 100;
-
- /**
- * Controls dial request route for CS calls.
- * 0 - Use the default routing strategy.
- * 1 - Place the call over CS path
- * 2 - Place the call over PS path
- */
- public static final String EXTRA_CALL_DOMAIN =
- "org.codeaurora.extra.CALL_DOMAIN";
- public static final int DOMAIN_AUTOMATIC = 0;
- public static final int DOMAIN_CS = 1;
- public static final int DOMAIN_PS = 2;
-
- /**
- * Call supplementary services failures.
- * TODO: Rename the file to QtiCallConstants.java as generic IMS constants are added. This
- * will be handled when we move the file to vendor/codeaurora/telephony project.
- */
- public static final int ERROR_CALL_CODE_UNSPECIFIED = -1;
- public static final int ERROR_CALL_SUPP_SVC_FAILED = 1;
- public static final int ERROR_CALL_SUPP_SVC_CANCELLED = 2;
- public static final int ERROR_CALL_SUPP_SVC_REINVITE_COLLISION = 3;
-
- /**
- * Private constructor. This class should not be instantiated.
- */
- private QtiCallConstants() {
- }
-
- /* UI Orientation Modes */
- public static final int ORIENTATION_MODE_UNSPECIFIED = -1;
- public static final int ORIENTATION_MODE_LANDSCAPE = 1;
- public static final int ORIENTATION_MODE_PORTRAIT = 2;
- public static final int ORIENTATION_MODE_DYNAMIC = 3;
-
- /* Orientation mode extra key name */
- public static final String ORIENTATION_MODE_EXTRA_KEY = "OrientationMode";
-
- /* Video call dataUsage Key that holds the data usage consumed by Video call
- on LTE/WLAN RATs */
- public static final String VIDEO_CALL_DATA_USAGE_KEY = "dataUsage";
-
- /* low battery extra key name that contains a boolean value,
- TRUE meaning battery is low else FALSE */
- public static final String LOW_BATTERY_EXTRA_KEY = "LowBattery";
-
- /* Upgrade/downgrade of a volte/vt call due to unknown reason. */
- public static final int CAUSE_CODE_UNSPECIFIED = 0;
-
- /* Upgrade of a volte call on request from local end */
- public static final int CAUSE_CODE_SESSION_MODIFY_UPGRADE_LOCAL_REQ = 1;
-
- /* Upgrade of a volte call on request from remote end */
- public static final int CAUSE_CODE_SESSION_MODIFY_UPGRADE_REMOTE_REQ = 2;
-
- /* Downgrade of a vt call on request from local end */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_LOCAL_REQ = 3;
-
- /* Downgrade of a vt call on request from remote end */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_REMOTE_REQ = 4;
-
- /* Downgrade of a vt call due to RTP/RTCP Timeout for Video stream */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_RTP_TIMEOUT = 5;
-
- /* Downgrade of a vt call due to QOS for Video stream */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_QOS = 6;
-
- /* Downgrade of a vt call due to PACKET LOSS for Video stream */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_PACKET_LOSS = 7;
-
- /* Downgrade of a vt call due to Low throughput for Video stream */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_LOW_THRPUT = 8;
-
- /* Downgrade of a vt call due to Thermal Mitigation */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_THERM_MITIGATION = 9;
-
- /* Downgrade of a vt call due to Lip-sync */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_LIPSYNC = 10;
-
- /* Downgrade of a vt call due to generic error */
- public static final int CAUSE_CODE_SESSION_MODIFY_DOWNGRADE_GENERIC_ERROR = 11;
-
- /* Session modification cause extra key name */
- public static final String SESSION_MODIFICATION_CAUSE_EXTRA_KEY = "SessionModificationCause";
-
- /** Modify call error due to low battery
- * Value should not conflict with videoProvider.
- * {@link VideoProvider#SESSION_MODIFY_REQUEST_REJECTED*}
- */
- public static final int SESSION_MODIFY_REQUEST_FAILED_LOW_BATTERY = 50;
-
- /**
- * Local device supports downgrade to voice
- */
- public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_LOCAL = 0x00800000;
-
- /**
- * Remote device supports downgrade to voice
- */
- public static final int CAPABILITY_SUPPORTS_DOWNGRADE_TO_VOICE_REMOTE = 0x01000000;
-
- /**
- * Add participant in an active or conference call option
- */
- public static final int CAPABILITY_ADD_PARTICIPANT = 0x02000000;
-
- /* Invalid phone Id */
- public static final int INVALID_PHONE_ID = -1;
-
- /**
- * Extra indicating the Wifi Quality
- *
- * Type: int (one of the VOWIFI_QUALITY_* values)
- */
- public static final String VOWIFI_CALL_QUALITY_EXTRA_KEY = "VoWiFiCallQuality";
-
- public static final int VOWIFI_QUALITY_NONE = 0;
- public static final int VOWIFI_QUALITY_EXCELLENT = 1;
- public static final int VOWIFI_QUALITY_FAIR = 2;
- public static final int VOWIFI_QUALITY_POOR = 4;
-
- /**
- * Extra indicating the conference support from lower layers
- *
- * Type: boolean (true if conference is supported else false)
- */
- public static final String CONF_SUPPORT_IND_EXTRA_KEY = "ConfSupportInd";
-}
-
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiCarrierConfigs.java b/telephony/ims/src/org/codeaurora/ims/QtiCarrierConfigs.java
deleted file mode 100644
index c2b26ac..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiCarrierConfigs.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims;
-
-/**
- * The class contains definitions for Qti specific carrier configs.
- */
-/**
- * @hide
- */
-public class QtiCarrierConfigs {
-
- /**
- * Private constructor. This class should not be instantiated.
- */
- private QtiCarrierConfigs() {
- }
-
- /* Flag specifying whether video calls are supported if device is in low battery or not */
- public static final String ALLOW_VIDEO_CALL_IN_LOW_BATTERY = "allow_video_call_in_low_battery";
-
- /**
- * Flag indicating whether preview video needs to be hidden during
- * video conference call.
- */
- public static final String HIDE_PREVIEW_IN_VT_CONFERENCE =
- "config_hide_preview_in_vt_confcall";
-
- /* Flag determining whether UI extensions for video calls should be used or not */
- public static final String USE_VIDEO_UI_EXTENSIONS = "video_call_use_ext";
-
- /* Flag determining whether customized video ui support is required or not */
- public static final String USE_CUSTOM_VIDEO_UI = "use_custom_video_ui";
-
- /* Flag specifying whether IMS to CS retry should be available for carrier
- false - hard disabled.
- true - then depends on user preference */
- public static final String CONFIG_CS_RETRY = "config_carrier_cs_retry_available";
-
- /* Controls modify call capabilities
- FALSE - default capabilities will be retained
- TRUE - remove modify call capabilities which will hide modify call button*/
- public static final String REMOVE_MODIFY_CALL_CAPABILITY = "remove_modify_call_capability";
-
- /* Config to show/hide Video quality toast */
- public static final String SHOW_VIDEO_QUALITY_TOAST = "show_video_quality_toast";
- /* Config to show/hide call session event toast like player start/stop */
- public static final String SHOW_CALL_SESSION_EVENT_TOAST = "show_call_session_event_toast";
- /* Config to show/hide data usage toast */
- public static final String SHOW_DATA_USAGE_TOAST = "show_data_usage_toast";
- /* Config that controls whether to stop video preview video and show static image
- in video preview or not
- true - enabled, false - disabled */
- public static final String TRANSMIT_STATIC_IMAGE = "transmit_static_image";
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiImsException.java b/telephony/ims/src/org/codeaurora/ims/QtiImsException.java
deleted file mode 100644
index 412bd73..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiImsException.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.codeaurora.ims;
-
-/**
- * This class is to handle custom exceptions for QtiImsExtManager
- */
-public class QtiImsException extends Exception {
-
- public QtiImsException() {
- // Empty constructor
- }
-
- public QtiImsException(String message) {
- super(message);
- }
-
- public QtiImsException(String message, Throwable cause) {
- super(message, cause);
- }
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiImsExtBase.java b/telephony/ims/src/org/codeaurora/ims/QtiImsExtBase.java
deleted file mode 100644
index 4c71f6f..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiImsExtBase.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.codeaurora.ims;
-
-import org.codeaurora.ims.internal.IQtiImsExt;
-import org.codeaurora.ims.internal.IQtiImsExtListener;
-import org.codeaurora.ims.QtiCallConstants;
-
-/**
- * Base implementation for IQtiImsExt.
- */
-public abstract class QtiImsExtBase {
-
- /*
- * Implement the methods of the IQtiImsExt interface in this stub
- */
- public final class QtiImsExtBinder extends IQtiImsExt.Stub {
-
- @Override
- public void setCallForwardUncondTimer(int startHour, int startMinute, int endHour,
- int endMinute, int action, int condition, int serviceClass, String number,
- IQtiImsExtListener listener) {
- onSetCallForwardUncondTimer(startHour, startMinute, endHour, endMinute, action,
- condition, serviceClass, number, listener);
- }
-
- @Override
- public void getCallForwardUncondTimer(int reason, int serviceClass,
- IQtiImsExtListener listener) {
- onGetCallForwardUncondTimer(reason, serviceClass, listener);
- }
-
- @Override
- public void getPacketCount(IQtiImsExtListener listener) {
- onGetPacketCount(listener);
- }
-
- @Override
- public void getPacketErrorCount(IQtiImsExtListener listener) {
- onGetPacketErrorCount(listener);
- }
-
- @Override
- public void sendCallDeflectRequest(int phoneId, String deflectNumber,
- IQtiImsExtListener listener) {
- onSendCallDeflectRequest(phoneId, deflectNumber, listener);
- }
-
- @Override
- public void resumePendingCall(int videoState) {
- onResumePendingCall(videoState);
- }
-
- @Override
- public void sendCallTransferRequest(int phoneId, int type, String number,
- IQtiImsExtListener listener) {
- onSendCallTransferRequest(phoneId, type, number, listener);
- }
-
- @Override
- public void queryVopsStatus(IQtiImsExtListener listener) {
- onQueryVopsStatus(listener);
- }
-
- @Override
- public void querySsacStatus(IQtiImsExtListener listener) {
- onQuerySsacStatus(listener);
- }
-
- @Override
- public int getImsPhoneId() {
- return onGetImsPhoneId();
- }
-
- @Override
- public void registerForViceRefreshInfo(IQtiImsExtListener listener) {
- onRegisterForViceRefreshInfo(listener);
- }
-
- @Override
- public void registerForParticipantStatusInfo(IQtiImsExtListener listener) {
- onRegisterForParticipantStatusInfo(listener);
- }
-
- @Override
- public void updateVoltePreference(int phoneId, int preference,
- IQtiImsExtListener listener) {
- onUpdateVoltePreference(phoneId, preference, listener);
- }
-
- @Override
- public void queryVoltePreference(int phoneId, IQtiImsExtListener listener) {
- onQueryVoltePreference(phoneId, listener);
- }
-
- @Override
- public void getHandoverConfig(IQtiImsExtListener listener) {
- onGetHandoverConfig(listener);
- }
-
- @Override
- public void setHandoverConfig(int hoConfig,
- IQtiImsExtListener listener) {
- onSetHandoverConfig(hoConfig, listener);
- }
- };
-
- private QtiImsExtBinder mQtiImsExtBinder;
-
- public QtiImsExtBinder getBinder() {
- if (mQtiImsExtBinder == null) {
- mQtiImsExtBinder = new QtiImsExtBinder();
- }
- return mQtiImsExtBinder;
- }
-
- protected void onSetCallForwardUncondTimer(int startHour, int startMinute, int endHour,
- int endMinute, int action, int condition, int serviceClass, String number,
- IQtiImsExtListener listener) {
- // no-op
- }
- protected void onGetCallForwardUncondTimer(int reason, int serviceClass,
- IQtiImsExtListener listener) {
- // no-op
- }
- protected void onGetPacketCount(IQtiImsExtListener listener) {
- // no-op
- }
- protected void onGetPacketErrorCount(IQtiImsExtListener listener) {
- // no-op
- }
- protected void onSendCallDeflectRequest(int phoneId, String deflectNumber,
- IQtiImsExtListener listener) {
- // no-op
- }
- protected void onResumePendingCall(int videoState) {
- // no-op
- }
- protected void onSendCallTransferRequest(int phoneId, int type, String number,
- IQtiImsExtListener listener) {
- // no-op
- }
- protected void onQueryVopsStatus(IQtiImsExtListener listener) {
- // no-op
- }
- protected void onQuerySsacStatus(IQtiImsExtListener listener) {
- // no-op
- }
- protected int onGetImsPhoneId() {
- return QtiCallConstants.INVALID_PHONE_ID;
- }
- protected void onRegisterForViceRefreshInfo(IQtiImsExtListener listener) {
- // no-op
- }
- protected void onRegisterForParticipantStatusInfo(IQtiImsExtListener listener) {
- // no-op
- }
- protected void onUpdateVoltePreference(int phoneId, int preference,
- IQtiImsExtListener listener) {
- // no-op
- }
- protected void onQueryVoltePreference(int phoneId, IQtiImsExtListener listener) {
- // no-op
- }
- protected void onGetHandoverConfig(IQtiImsExtListener listener) {
- // no-op
- }
- protected void onSetHandoverConfig(int hoConfig,
- IQtiImsExtListener listener) {
- // no-op
- }
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiImsExtListenerBaseImpl.java b/telephony/ims/src/org/codeaurora/ims/QtiImsExtListenerBaseImpl.java
deleted file mode 100644
index 6c6304c..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiImsExtListenerBaseImpl.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims;
-
-import org.codeaurora.ims.internal.IQtiImsExtListener;
-import android.telephony.Rlog;
-
-/**
- * This class contains default implementation for IQtiImsExtListener.
- */
-public class QtiImsExtListenerBaseImpl extends IQtiImsExtListener.Stub {
-
- @Override
- public void onSetCallForwardUncondTimer(int status) {
- }
-
- @Override
- public void onGetCallForwardUncondTimer(int startHour, int endHour, int startMinute,
- int endMinute, int reason, int status, String number, int service) {
- }
-
- @Override
- public void onUTReqFailed(int errCode, String errString) {
- }
-
- @Override
- public void onGetPacketCount(int status, long packetCount) {
- }
-
- @Override
- public void onGetPacketErrorCount(int status, long packetErrorCount) {
- }
-
- @Override
- public void receiveCallDeflectResponse(int result) {
- }
-
- @Override
- public void receiveCallTransferResponse(int result) {
- }
-
- @Override
- public void notifyVopsStatus(boolean vopsStatus) {
- }
-
- @Override
- public void notifySsacStatus(boolean ssacStatusResponse) {
- }
-
- @Override
- public void notifyRefreshViceInfo(QtiViceInfo viceInfo) {
- }
-
- @Override
- public void notifyParticipantStatusInfo(int operation, int sipStatus,
- String participantUri, boolean isEct) {
- }
-
- @Override
- public void onVoltePreferenceUpdated(int result) {
- }
-
- @Override
- public void onVoltePreferenceQueried(int result, int mode) {
- }
-
- @Override
- public void onSetHandoverConfig(int result) {
- }
-
- @Override
- public void onGetHandoverConfig(int result, int hoConfig) {
- }
-}
-
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiImsExtManager.java b/telephony/ims/src/org/codeaurora/ims/QtiImsExtManager.java
deleted file mode 100644
index 3a5e14d..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiImsExtManager.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.codeaurora.ims;
-
-import android.os.IBinder;
-import android.os.RemoteException;
-import android.os.ServiceManager;
-
-import org.codeaurora.ims.internal.IQtiImsExt;
-import org.codeaurora.ims.internal.IQtiImsExtListener;
-import org.codeaurora.ims.QtiCallConstants;
-
-/**
- * Provides API's for IQtiImsExt Binder such as sending call deflect, call transfer etc
- * This class is starting point for all the QtiImsExt actions.
- * You can acquire an instance of it by calling {@link getInstance getInstance()}
- *
- * Note: The implementation of QtiImsExtManager is not synchronized hence this is
- * not a thread safe class, Assuming all the users will call the API's from the same thread
- */
-public class QtiImsExtManager {
-
- /**
- * Key to retrieve service form the ServiceManager
- */
- public static final String SERVICE_ID = "qti.ims.ext";
-
- /**
- * Singleton instance of the {@link QtiImsExtManager}
- */
- private static QtiImsExtManager sInstance;
-
- /**
- * All the QtiImsExt actions are performed using this interface,
- * this interface/binder provides API's such as sending call deflect,
- * call transfer etc
- */
- private IQtiImsExt mQtiImsExt;
-
- private QtiImsExtManager() {
- // Empty Constructor
- }
-
- public static QtiImsExtManager getInstance() {
- if(sInstance == null) {
- sInstance = new QtiImsExtManager();
- }
- return sInstance;
- }
-
- public void setCallForwardUncondTimer(int startHour, int startMinute, int endHour,
- int endMinute, int action, int condition, int serviceClass, String number,
- IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.setCallForwardUncondTimer(startHour, startMinute, endHour, endMinute, action,
- condition, serviceClass, number, listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService setCallForwardUncondTimer : " + e);
- }
- }
-
- public void getCallForwardUncondTimer(int reason, int serviceClass,
- IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.getCallForwardUncondTimer(reason, serviceClass, listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService getCallForwardUncondTimer : " + e);
- }
- }
-
- public void getPacketCount(IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.getPacketCount(listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService getPacketCount : " + e);
- }
- }
-
- public void getPacketErrorCount(IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.getPacketErrorCount(listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService getPacketErrorCount : " + e);
- }
- }
-
- public void sendCallDeflectRequest(int phoneId, String deflectNumber,
- IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.sendCallDeflectRequest(phoneId, deflectNumber, listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService sendCallDeflectRequestCount : " + e);
- }
- }
-
- public void resumePendingCall(int videoState) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.resumePendingCall(videoState);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService resumePendingCall : " + e);
- }
- }
-
- public void sendCallTransferRequest(int phoneId, int type, String number,
- IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.sendCallTransferRequest(phoneId, type, number, listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService sendCallTransferRequest : " + e);
- }
- }
-
- public void queryVopsStatus(IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.queryVopsStatus(listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService queryVopsStatus : " + e);
- }
- }
-
- public void querySsacStatus(IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.querySsacStatus(listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService querySsacStatus : " + e);
- }
- }
-
- public int getImsPhoneId() throws QtiImsException {
- obtainBinder();
- int imsPhoneId = QtiCallConstants.INVALID_PHONE_ID;
- try {
- imsPhoneId = mQtiImsExt.getImsPhoneId();
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService getImsPhoneId : " + e);
- }
- return imsPhoneId;
- }
-
- public void registerForViceRefreshInfo(IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.registerForViceRefreshInfo(listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService registerForViceRefreshInfo : " + e);
- }
- }
-
- public void registerForParticipantStatusInfo(IQtiImsExtListener listener)
- throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.registerForParticipantStatusInfo(listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService registerForParticipantStatusInfo : " + e);
- }
- }
-
- public void updateVoltePreference(int phoneId, int preference,
- IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.updateVoltePreference(phoneId, preference, listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService updateVoltePreference : " + e);
- }
- }
-
- public void queryVoltePreference(int phoneId,
- IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.queryVoltePreference(phoneId, listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService queryVoltePreference : " + e);
- }
- }
-
- public void getHandoverConfig(IQtiImsExtListener listener) throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.getHandoverConfig(listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService getHandoverConfig : " + e);
- }
- }
-
- public void setHandoverConfig(int hoConfig, IQtiImsExtListener listener)
- throws QtiImsException {
- obtainBinder();
- try {
- mQtiImsExt.setHandoverConfig(hoConfig, listener);
- } catch(RemoteException e) {
- throw new QtiImsException("Remote ImsService setHandoverConfig : " + e);
- }
- }
-
- /**
- * Check if binder is available, else try to retrieve it from ServiceManager
- * if binder still doesn't exists throw {@link QtiImsException}
- */
- private IQtiImsExt obtainBinder() throws QtiImsException {
- if (mQtiImsExt == null) {
- IBinder b = ServiceManager.getService(SERVICE_ID);
- mQtiImsExt = IQtiImsExt.Stub.asInterface(b);
-
- if (mQtiImsExt == null) {
- throw new QtiImsException("ImsService is not running");
- }
- return mQtiImsExt;
- }
- return mQtiImsExt;
- }
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiImsUnsupportedImageFormatException.java b/telephony/ims/src/org/codeaurora/ims/QtiImsUnsupportedImageFormatException.java
deleted file mode 100644
index 4241577..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiImsUnsupportedImageFormatException.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.codeaurora.ims;
-
-/**
- * This class is to handle custom unsupported image format exception
- */
-public class QtiImsUnsupportedImageFormatException extends QtiImsException {
-
- public QtiImsUnsupportedImageFormatException() {
- // Empty constructor
- }
-
- public QtiImsUnsupportedImageFormatException(String message) {
- super(message);
- }
-
- public QtiImsUnsupportedImageFormatException(String message, Throwable cause) {
- super(message, cause);
- }
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiViceInfo.aidl b/telephony/ims/src/org/codeaurora/ims/QtiViceInfo.aidl
deleted file mode 100644
index 7d5190a..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiViceInfo.aidl
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims;
-
-parcelable QtiViceInfo;
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiViceInfo.java b/telephony/ims/src/org/codeaurora/ims/QtiViceInfo.java
deleted file mode 100644
index bd8419e..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiViceInfo.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-package org.codeaurora.ims;
-
-import android.os.Parcel;
-import android.os.Parcelable;
-import android.telephony.Rlog;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/*
- * This file contains all the api's through which
- * information received in Vice Dialog can be
- * queried
- */
-
-/**
- * Parcelable object to handle VICE Dialog Information
- * @hide
- */
-
-public class QtiViceInfo implements Parcelable {
-
- private static final String TAG = "QtiViceInfo";
- private String mViceInfoAsString = null;
- public int dialogSize = 0;
- public static List callInfo;
-
- public static final int INDEX_DIALOG_ID = 0;
- public static final int INDEX_NUMBER = 1;
- public static final int INDEX_ISPULLABLE = 2;
- public static final int INDEX_CALLTYPE = 3;
- public static final int INDEX_DIRECTION = 4;
- // INDEX Values listed above + 1 for the array to hold it
- public static final int INDEX_MAX = 5;
-
- // Strings/values that are part in DEP XML
- public static final String STATE_TERMINATED = "terminated";
- public static final String STATE_CONFIRMED = "confirmed";
- public static final String MEDIA_TYPE_AUDIO = "audio";
- public static final String MEDIA_TYPE_VIDEO = "video";
- public static final String MEDIA_DIRECTION_SENDRECV = "sendrecv";
- public static final String MEDIA_DIRECTION_SENDONLY = "sendonly";
- public static final String MEDIA_DIRECTION_RECVONLY = "recvonly";
- public static final String MEDIA_DIRECTION_INACTIVE = "inactive";
-
- // Translated values after processing the media attributes
- public static final String CALL_TYPE_VOICE_ACTIVE = "volteactive";
- public static final String CALL_TYPE_VOICE_HELD = "volteheld";
- public static final String CALL_TYPE_VIDEO_TX_RX = "vttxrx";
- public static final String CALL_TYPE_VIDEO_TX = "vttx";
- public static final String CALL_TYPE_VIDEO_RX = "vtrx";
- public static final String CALL_TYPE_VIDEO_HELD = "vtheld";
-
-
- public QtiViceInfo() {
- }
-
- public QtiViceInfo(Parcel in) {
- readFromParcel(in);
- }
-
- /**
- * dialogIds Will have following information -
- * dialogIds[INDEX_DIALOG_ID] - Holds Unique DialogId
- * dialogIds[INDEX_NUMBER] - Holds number/uri
- * dialogIds[INDEX_ISPULLABLE] - Pullable/NonPullable (true, false)
- * dialogIds[INDEX_CALLTYPE] - CallType
- * CallType - volteactive, volteheld, vttxrx, vttx, vtrx, vtheld
- * dialogIds[INDEX_DIRECTION] - Direction of the call (Originator/recipent)
- */
- public QtiViceInfo(List dialogIds) {
- if (dialogIds != null) {
- callInfo = new ArrayList();
- dialogSize = dialogIds.size();
- callInfo = dialogIds;
- Rlog.d(TAG,"QtiViceInfo const = " + toString());
- }
- }
-
- public void setViceDialogInfoAsString(String value) {
- mViceInfoAsString = value;
- Rlog.d(TAG,"setViceDialogInfoAsString XML String = " + mViceInfoAsString);
- }
-
- public String getViceDialogInfoAsString() {
- return mViceInfoAsString;
- }
-
- @Override
- public int describeContents() {
- return 0;
- }
-
- private void readFromParcel(Parcel in) {
- dialogSize = in.readInt();
- Rlog.d(TAG, "readFromParcel size = " + dialogSize);
- if (dialogSize < 0) {
- return;
- }
- callInfo = new ArrayList();
- for (int i = 0; i < dialogSize; i++) {
- String[] info = new String[INDEX_MAX];
- info = in.createStringArray(); // read each string[]
- callInfo.add(info);
- }
- Rlog.d(TAG, "readFromParcel - " + toString());
- }
-
- public String toString() {
- if (callInfo != null) {
- Rlog.d(TAG, "mCallInfo size = " + dialogSize);
- StringBuilder sb = new StringBuilder();
- for (int i = 0; i < dialogSize; i++) {
- String[] callinfo = callInfo.get(i);
- sb.append("QtiViceInfo :");
- sb.append("DialogId - ");
- sb.append(callinfo[INDEX_DIALOG_ID]);
- sb.append("Number - ");
- sb.append(callinfo[INDEX_NUMBER]);
- sb.append("IsPullable - ");
- sb.append(callinfo[INDEX_ISPULLABLE]);
- sb.append("CallType - ");
- sb.append(callinfo[INDEX_CALLTYPE]);
- sb.append("Direction - ");
- sb.append(callinfo[INDEX_DIRECTION]);
- }
- return sb.toString();
- }
- return null;
- }
-
- @Override
- public void writeToParcel(Parcel out, int flags) {
- if (callInfo != null) {
- out.writeInt(dialogSize);
- for (int i = 0; i < dialogSize; i++) {
- String[] callPull = callInfo.get(i);
- out.writeStringArray(callPull);
- }
- out.setDataPosition(0);
- }
- }
-
- public static final Creator CREATOR =
- new Creator() {
- @Override
- public QtiViceInfo createFromParcel(Parcel in) {
- return new QtiViceInfo(in);
- }
-
- @Override
- public QtiViceInfo[] newArray(int size) {
- return new QtiViceInfo[size];
- }
- };
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiVideoCallDataUsage.aidl b/telephony/ims/src/org/codeaurora/ims/QtiVideoCallDataUsage.aidl
deleted file mode 100644
index eeffa7c..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiVideoCallDataUsage.aidl
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims;
-
-parcelable QtiVideoCallDataUsage;
diff --git a/telephony/ims/src/org/codeaurora/ims/QtiVideoCallDataUsage.java b/telephony/ims/src/org/codeaurora/ims/QtiVideoCallDataUsage.java
deleted file mode 100644
index c188fb9..0000000
--- a/telephony/ims/src/org/codeaurora/ims/QtiVideoCallDataUsage.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims;
-
-import android.os.Parcel;
-import android.os.Parcelable;
-
-/**
- * Parcelable object to handle Video Call DataUsage information
- * @hide
- */
-
-public class QtiVideoCallDataUsage implements Parcelable {
-
- private long[] mDataUsage;
- public static final int DATA_USAGE_LTE = 0;
- public static final int DATA_USAGE_WLAN = 1;
- public static final int DATA_USAGE_INVALID_VALUE = -1;
- private static final String[] TEXT = {"LteDataUsage = "," WlanDataUsage = "};
-
- public QtiVideoCallDataUsage(long[] dUsage) {
- if (dUsage == null || dUsage.length == 0 ) {
- throw new RuntimeException();
- }
- mDataUsage = dUsage;
- }
-
- public QtiVideoCallDataUsage(Parcel in) {
- readFromParcel(in);
- }
-
- /*
- * This method returns LTE Data Usage
- */
- public long getLteDataUsage() {
- return mDataUsage.length > DATA_USAGE_LTE ? mDataUsage[DATA_USAGE_LTE] :
- DATA_USAGE_INVALID_VALUE;
- }
-
- /*
- * This method returns WLAN Data Usage
- */
- public long getWlanDataUsage() {
- return mDataUsage.length > DATA_USAGE_WLAN ? mDataUsage[DATA_USAGE_WLAN] :
- DATA_USAGE_INVALID_VALUE;
- }
-
- @Override
- public void writeToParcel(Parcel dest, int flag) {
- dest.writeLongArray(mDataUsage);
- }
-
- public void readFromParcel(Parcel in) {
- mDataUsage = in.createLongArray();
- }
-
- @Override
- public int describeContents() {
- return 0;
- }
-
- public static final Creator CREATOR =
- new Creator() {
- @Override
- public QtiVideoCallDataUsage createFromParcel(Parcel in) {
- return new QtiVideoCallDataUsage(in);
- }
-
- @Override
- public QtiVideoCallDataUsage[] newArray(int size) {
- return new QtiVideoCallDataUsage[size];
- }
- };
-
- @Override
- public String toString() {
- if(mDataUsage != null) {
- String msg = "";
- for (int i = 0; i < mDataUsage.length; i++) {
- msg += TEXT[i] + mDataUsage[i];
- }
- return msg;
- }
- return null;
- }
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/internal/IQtiImsExt.aidl b/telephony/ims/src/org/codeaurora/ims/internal/IQtiImsExt.aidl
deleted file mode 100644
index a86914f..0000000
--- a/telephony/ims/src/org/codeaurora/ims/internal/IQtiImsExt.aidl
+++ /dev/null
@@ -1,220 +0,0 @@
-/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims.internal;
-
-import org.codeaurora.ims.internal.IQtiImsExtListener;
-
-/**
- * Interface through which APP and vendor communicates.
- * {@hide}
- */
-interface IQtiImsExt {
- /**
- * setCallForwardingUncondTimerOptions
- * sets a call forwarding unconditional Timer option.
- *
- * @param startHour indicates starting hour
- * @param startMinute indicates starting minute
- * @param endHour indicates ending hour
- * @param endMinute indicates ending minute
- * @param action is one of the valid call forwarding
- * CF_ACTIONS, as defined in
- * com.android.internal.telephony.CommandsInterface.
- * @param reason is one of the valid call forwarding
- * CF_REASONS, as defined in
- * com.android.internal.telephony.CommandsInterface.
- * @param serviceClass is service class, that is used to set CFT
- * SERVICE_CLASS, as defined in
- * com.android.internal.telephony.CommandsInterface.
- * @param dialingNumber is the target phone number to forward calls to
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void setCallForwardUncondTimer(int startHour, int startMinute, int endHour,
- int endMinute, int action, int reason, int serviceClass, String dialingNumber,
- IQtiImsExtListener listener);
-
- /**
- * getCallForwardingUncondTimerOptions
- * gets a call forwarding option.
- *
- * @param reason is one of the valid call forwarding
- * CF_REASONS, as defined in
- * com.android.internal.telephony.CommandsInterface.
- * @param serviceClass is service class, that is used to get CFT
- * SERVICE_CLASS, as defined in
- * com.android.internal.telephony.CommandsInterface.
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void getCallForwardUncondTimer(int reason, int serviceClass,
- IQtiImsExtListener listener);
-
- /**
- * Total number of packets sent or received
- *
- * @param listener, provided if caller needs to be notified for get result.
- * @return void
- *
- * @throws RemoteException if calling the IMS service results in an error.
- */
- oneway void getPacketCount(IQtiImsExtListener listener);
-
- /**
- * Total number of packet errors encountered
- *
- * @param listener, provided if caller needs to be notified for get result.
- * @return void
- *
- * @throws RemoteException if calling the IMS service results in an error.
- */
- oneway void getPacketErrorCount(IQtiImsExtListener listener);
-
- /**
- * sendCallDeflectRequest
- * Deflects a incoming call to given number
- *
- * @param phoneId indicates the phone instance which triggered the request
- * @param deflectNumber indicates the target number to deflect
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void sendCallDeflectRequest(int phoneId, String deflectNumber,
- IQtiImsExtListener listener);
-
- /**
- * sendCallTransferRequest
- * Transfer an established call to given number or call id
- *
- * @param phoneId indicates the phone instance which triggered the request
- * @param type is one of the values QTI_IMS_*_TRANSFER, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils.
- * @param number indicates the target number to transfer
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void sendCallTransferRequest(int phoneId, int type, String number,
- IQtiImsExtListener listener);
-
- /**
- * Query Vops information
- *
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void queryVopsStatus(IQtiImsExtListener listener);
-
- /**
- * Query Ssac information
- *
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void querySsacStatus(IQtiImsExtListener listener);
-
- /**
- * Gets the phoneId on which ImsService is up and running
- * @return value in integer format
- */
- int getImsPhoneId();
-
- /**
- * resumePendingCall
- * This API shall continue to place DIAL request with videoState as either
- * Video or Voice based on user confirmation on low battery MO Video call
- *
- * @param videoState indicates either Video or Voice type
- * @return void
- */
- oneway void resumePendingCall(int videoState);
-
- /**
- * Register for VICE dialog
- *
- * @param listener, to get notified for VICE refresh information.
- * @return void
- *
- */
- oneway void registerForViceRefreshInfo(IQtiImsExtListener listener);
-
- /**
- * Register for Pariticipant status information
- *
- * @param listener, to get notified for participant status information.
- * @return void
- *
- */
- oneway void registerForParticipantStatusInfo(IQtiImsExtListener listener);
-
- /**
- * updateVoltePreference
- * Updates the user's VoLTE preference to lower layers
- *
- * @param phoneId indicates the phone instance which triggered the request
- * @param preference is one of the values QTI_IMS_VOLTE_PREF_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils.
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void updateVoltePreference(int phoneId, int preference, IQtiImsExtListener listener);
-
- /**
- * queryVoltePreference
- * Retrieves the user's VoLTE preference from lower layers
- *
- * @param phoneId indicates the phone instance which triggered the request
- * @param listener an IQtiImsExtListener instance to indicate the response
- * @return void
- */
- oneway void queryVoltePreference(int phoneId, IQtiImsExtListener listener);
-
- /**
- * getHandoverConfig
- * Get IMS Handover Enabled status
- *
- * @param listener, provided if caller needs to be notified for get result.
- * @return void
- *
- * @throws RemoteException if calling the IMS service results in an error.
- */
- oneway void getHandoverConfig(IQtiImsExtListener listener);
-
- /**
- * setHandoverConfig
- * Set IMS Handover Enabled status
- *
- * @param hoConfig is one of the values QTI_IMS_HO_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils
- * @param listener, provided if caller needs to be notified for set result.
- * @return void
- *
- * @throws RemoteException if calling the IMS service results in an error.
- */
- oneway void setHandoverConfig(int hoConfig, IQtiImsExtListener listener);
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/internal/IQtiImsExtListener.aidl b/telephony/ims/src/org/codeaurora/ims/internal/IQtiImsExtListener.aidl
deleted file mode 100644
index e2de735..0000000
--- a/telephony/ims/src/org/codeaurora/ims/internal/IQtiImsExtListener.aidl
+++ /dev/null
@@ -1,199 +0,0 @@
-/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims.internal;
-
-import org.codeaurora.ims.QtiViceInfo;
-
-/**
- * Used by client application to get the result from lower layer by
- * communicating with vendor.
- * {@hide}
- */
-oneway interface IQtiImsExtListener {
- /**
- * Notifies client the value of the set operation result.
- *
- * @param status To return status of request.
- * @return void.
- */
- void onSetCallForwardUncondTimer(int status);
-
- /**
- * Notifies client the value of the get operation result.
- *
- * @param startHour indicates starting hour
- * @param startMinute indicates starting minute
- * @param endHour indicates ending hour
- * @param endMinute indicates ending minute
- * @param reason is one of the valid call forwarding
- * CF_REASONS, as defined in
- * com.android.internal.telephony.CommandsInterface.
- * @param status indicates status of CF service.
- * @param number is the target phone number to forward calls to
- * @param serviceClass indicates serviceClass type that is supported.
- * @return void.
- */
- void onGetCallForwardUncondTimer(int startHour, int endHour, int startMinute,
- int endMinute, int reason, int status, String number, int serviceClass);
-
- /**
- * Notifies client with any UT failure result.
- *
- * @param errCode contains error code
- * @param errString contains error string if any.
- * @return void.
- */
- void onUTReqFailed(int errCode, String errString);
-
- /**
- * Notifies client the value of the get operation result on get packet count item.
- *
- * @param status. as defined in com.android.ims.ImsConfig#OperationStatusConstants.
- * @param packetCount. total number of packets sent or received
- * @return void
- */
- void onGetPacketCount(int status, long packetCount);
-
- /**
- * Notifies client the value of the get operation result on get packet error count item.
- *
- * @param status. as defined in com.android.ims.ImsConfig#OperationStatusConstants.
- * @param packetErrorCount. total number of packet errors encountered
- * @return void
- */
- void onGetPacketErrorCount(int status, long packetErrorCount);
-
- /**
- * Notifies client the result of call deflect request
- *
- * @param is one of the values QTI_IMS_REQUEST_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils.
- * @return void.
- */
- void receiveCallDeflectResponse(int result);
-
- /**
- * Notifies client the result of call transfer request
- *
- * @param is one of the values QTI_IMS_REQUEST_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils.
- * @return void.
- */
- void receiveCallTransferResponse(int result);
-
- /**
- * Notifies Vops value to the clients
- *
- * @param vopsStatus
- * if true : Voice is supported on LTE
- * if false : Voice is not supported on LTE
- * @return void.
- */
- void notifyVopsStatus(boolean vopsStatus);
-
- /**
- * Notifies Ssac value to the clients
- *
- * @param ssacStatusResponse
- * if true : Access barring factor for voice calls is 0
- * if false : Access barring factor for voice calls is non-zero
- * Range: 0 to 100. Value 100 is used when
- * the UE goes to the LTE Connected state
- * @return void.
- */
- void notifySsacStatus(boolean ssacStatusResponse);
-
- /**
- * Notifies client when Vice Dialog update is received
- *
- * @param - VICE Dialog
- *
- * @return void.
- */
- void notifyRefreshViceInfo(in QtiViceInfo viceInfo);
-
- /**
- * Notifies client when Participant status information is received
- *
- * @param operation - operation add or remove participant
- * @param sipStatus - sip code indicating status of operation
- * 180 - Ringing, 603 - remote user rejected the call
- * 200 - Remote user accepted the call, if operation is add
- * Participant removed successfully if operation is remove
- * @param participantUri - Participant URI
- * @param isEct - Explicit call transfer true or false
- *
- * @return void.
- */
- void notifyParticipantStatusInfo(int operation, int sipStatus,
- String participantUri, boolean isEct);
-
- /**
- * Notifies client the result of updateVoltePreference request
- *
- * @param is one of the values QTI_IMS_REQUEST_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils.
- * @return void.
- */
- void onVoltePreferenceUpdated(int result);
-
- /**
- * Notifies client the result of queryVoltePreference request
- *
- * @param is one of the values QTI_IMS_REQUEST_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils.
- * @param is valid only when is QTI_IMS_REQUEST_SUCCESS and
- * is one of the values QTI_IMS_VOLTE_PREF_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils.
- * @return void.
- */
- void onVoltePreferenceQueried(int result, int mode);
-
- /**
- * Notifies client the value of the set handover config result.
- *
- * @param is one of the values QTI_IMS_REQUEST_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils
- * @return void.
- */
- void onSetHandoverConfig(int status);
-
- /**
- * Notifies client the value of the get operation result on get handover config item.
- *
- * @param is one of the values QTI_IMS_REQUEST_*, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils
- * @param hoConfig is valid when status is QTI_IMS_REQUEST_SUCCESS and it can have
- * one of the values QTI_IMS_HO_* excluding QTI_IMS_HO_INVALID, as defined in
- * org.codeaurora.ims.utils.QtiImsExtUtils
- * @return void
- */
- void onGetHandoverConfig(int status, int hoConfig);
-
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/utils/QtiCallUtils.java b/telephony/ims/src/org/codeaurora/ims/utils/QtiCallUtils.java
deleted file mode 100644
index 74245c7..0000000
--- a/telephony/ims/src/org/codeaurora/ims/utils/QtiCallUtils.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims.utils;
-
-import android.content.Context;
-import android.provider.Settings;
-import com.android.ims.ImsConfig;
-
-import org.codeaurora.ims.QtiCallConstants;
-
-/**
- * This class contains Qti specific utiltity functions.
- */
-public class QtiCallUtils {
- /**
- * Private constructor for QtiCallUtils as we don't want to instantiate this class
- */
- private QtiCallUtils() {
- }
-
- /**
- * Returns the user configuration of IMS to CS retry setting
- */
- public static boolean isCsRetryEnabledByUser(Context context) {
- return android.provider.Settings.Global.getInt(
- context.getContentResolver(),
- QtiCallConstants.IMS_TO_CS_RETRY_ENABLED,
- ImsConfig.FeatureValueConstants.ON) == ImsConfig.FeatureValueConstants.ON;
- }
-}
diff --git a/telephony/ims/src/org/codeaurora/ims/utils/QtiImsExtUtils.java b/telephony/ims/src/org/codeaurora/ims/utils/QtiImsExtUtils.java
deleted file mode 100644
index 7a4bc1b..0000000
--- a/telephony/ims/src/org/codeaurora/ims/utils/QtiImsExtUtils.java
+++ /dev/null
@@ -1,466 +0,0 @@
-/**
- * Copyright (c) 2015,2016 The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.ims.utils;
-
-import android.content.ContentResolver;
-import android.content.Context;
-import android.content.res.Resources;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.graphics.Matrix;
-import android.os.PersistableBundle;
-import android.os.SystemProperties;
-import android.telephony.CarrierConfigManager;
-import android.telephony.SubscriptionInfo;
-import android.telephony.SubscriptionManager;
-import android.util.Log;
-
-import java.io.File;
-
-import org.codeaurora.ims.QtiCallConstants;
-import org.codeaurora.ims.QtiCarrierConfigs;
-import org.codeaurora.ims.QtiImsException;
-import org.codeaurora.ims.QtiImsExtManager;
-
-/**
- * This class contains QtiImsExt specific utiltity functions.
- */
-public class QtiImsExtUtils {
-
- private static String LOG_TAG = "QtiImsExtUtils";
-
- public static final String QTI_IMS_CALL_DEFLECT_NUMBER =
- "ims_call_deflect_number";
-
- /* Call deflect setting name */
- public static final String QTI_IMS_DEFLECT_ENABLED = "qti.ims.call_deflect";
-
- /* Default success value */
- public static final int QTI_IMS_REQUEST_SUCCESS = 0;
-
- /* Default error value */
- public static final int QTI_IMS_REQUEST_ERROR = 1;
-
- /* name for carrier property */
- public static final String PROPERTY_RADIO_ATEL_CARRIER = "persist.radio.atel.carrier";
-
- /* Carrier one default mcc mnc */
- public static final String CARRIER_ONE_DEFAULT_MCC_MNC = "405854";
-
- public static final String QTI_IMS_STATIC_IMAGE_SETTING =
- "ims_vt_call_static_image";
-
- /**
- * Definitions for the call transfer type. For easier implementation,
- * the transfer type is defined as a bit mask value.
- */
- //Value representing blind call transfer type
- public static final int QTI_IMS_BLIND_TRANSFER = 0x01;
- //Value representing assured call transfer type
- public static final int QTI_IMS_ASSURED_TRANSFER = 0x02;
- //Value representing consultative call transfer type
- public static final int QTI_IMS_CONSULTATIVE_TRANSFER = 0x04;
-
- /* Call transfer extra key */
- public static final String QTI_IMS_TRANSFER_EXTRA_KEY = "transferType";
-
- /* Constants used for VOPS and SSAC feature */
- // Intent action
- public static final String ACTION_VOPS_SSAC_STATUS =
- "org.codeaurora.VOIP_VOPS_SSAC_STATUS";
- /* Intent extra
- * if true : Voice is supported on LTE
- * if false : Voice is not supported on LTE
- */
- public static final String EXTRA_VOPS = "Vops";
- /* Intent extra
- * if true : Access barring factor for voice calls is 0
- * if false : Access barring factor for voice calls is non-zero
- * Range: 0 to 100. Value 100 is used when
- * the UE goes to the LTE Connected state
- */
- public static final String EXTRA_SSAC = "Ssac";
-
- /**
- * Definitions for the volte preference values.
- */
- //Value representing volte preference is OFF
- public static final int QTI_IMS_VOLTE_PREF_OFF = 0;
- //Value representing volte preference is ON
- public static final int QTI_IMS_VOLTE_PREF_ON = 1;
- //Value representing volte preference is NOT known
- public static final int QTI_IMS_VOLTE_PREF_UNKNOWN = 2;
-
-
- /* Incoming conference call extra key */
- public static final String QTI_IMS_INCOMING_CONF_EXTRA_KEY = "incomingConference";
-
- /* Handover config params */
- public static final int QTI_IMS_HO_INVALID = 0x00;
- public static final int QTI_IMS_HO_ENABLE_ALL = 0x01;
- public static final int QTI_IMS_HO_DISABLE_ALL = 0x02;
- public static final int QTI_IMS_HO_ENABLED_WLAN_TO_WWAN_ONLY = 0x03;
- public static final int QTI_IMS_HO_ENABLED_WWAN_TO_WLAN_ONLY = 0x04;
-
- /**
- * Private constructor for QtiImsExtUtils as we don't want to instantiate this class
- */
- private QtiImsExtUtils() {
- }
-
- /**
- * Retrieves the call deflection stored by the user
- * Returns stored number, or null otherwise.
- */
- public static String getCallDeflectNumber(ContentResolver contentResolver) {
- String deflectcall = android.provider.Settings.Global.getString(contentResolver,
- QTI_IMS_CALL_DEFLECT_NUMBER);
-
- /* Consider being null or empty as "Not Set" */
- if ((deflectcall != null) && (deflectcall.isEmpty())) {
- deflectcall = null;
- }
-
- return deflectcall;
- }
-
- /* Stores the call deflection provided by the user */
- public static void setCallDeflectNumber(ContentResolver contentResolver, String value) {
- String deflectNum = value;
-
- if (value == null || value.isEmpty()) {
- deflectNum = "";
- }
-
- android.provider.Settings.Global.putString(contentResolver,
- QTI_IMS_CALL_DEFLECT_NUMBER, deflectNum);
- }
-
- /**
- * Retrieves the static image stored by the user
- * Returns stored static image file path, or null otherwise.
- */
- public static String getStaticImageUriStr(ContentResolver contentResolver) {
- return android.provider.Settings.Global.getString(contentResolver,
- QTI_IMS_STATIC_IMAGE_SETTING);
- }
-
- private static boolean isValidUriStr(String uri) {
- /* uri is not valid if
- * 1. uri is null
- * 2. uri is empty
- * 3. uri doesn't exist in UE
- */
- return uri != null && !uri.isEmpty() && (new File(uri)).exists();
- }
-
- /**
- * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object
- * when decoding bitmaps using the decode* methods from {@link android.graphics.BitmapFactory}.
- * This implementation calculates the closest inSampleSize that is a power of 2 and will result
- * in the final decoded bitmap having a width and height equal to or larger than the requested
- * width and height.
- *
- * @param options An options object with out* params already populated (run through a decode*
- * method with inJustDecodeBounds==true
- * @param reqWidth The requested width of the resulting bitmap
- * @param reqHeight The requested height of the resulting bitmap
- * @return The value to be used for inSampleSize
- */
- private static int calculateInSampleSize(
- BitmapFactory.Options options, int reqWidth, int reqHeight) {
- // Raw height and width of image
- final int height = options.outHeight;
- final int width = options.outWidth;
- int inSampleSize = 1;
-
- Log.d(LOG_TAG, "calculateInSampleSize: reqWidth = " + reqWidth + " reqHeight = " + reqHeight
- + " raw width = " + width + " raw height = " + height);
-
- if (height > reqHeight || width > reqWidth) {
- final int halfHeight = height / 2;
- final int halfWidth = width / 2;
-
- // Calculate the largest inSampleSize value that is a power of 2 and keeps both
- // height and width larger than the requested height and width.
- while ((halfHeight / inSampleSize) > reqHeight
- && (halfWidth / inSampleSize) > reqWidth) {
- inSampleSize *= 2;
- }
- }
- Log.d(LOG_TAG, "calculateInSampleSize: inSampleSize = " + inSampleSize);
- return inSampleSize;
- }
-
- /**
- * Decodes an image pointed to by uri as per requested Width and requested Height
- * and returns a bitmap
- */
- public static Bitmap decodeImage(String uri, int reqWidth, int reqHeight) {
- if (uri == null) {
- return null;
- }
-
- BitmapFactory.Options options = new BitmapFactory.Options();
- // Each pixel is stored on 4 bytes
- options.inPreferredConfig = Bitmap.Config.ARGB_8888;
- /* If set to true, the decoder will return null (no bitmap),
- but the out... fields (i.e. outWidth, outHeight and outMimeType)
- will still be set, allowing the caller to query the bitmap
- without having to allocate the memory for its pixels */
- options.inJustDecodeBounds = true;
- BitmapFactory.decodeFile(uri, options);
-
- // Calculate inSampleSize
- options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
-
- // Decode bitmap with inSampleSize set
- options.inJustDecodeBounds = false;
- Bitmap bitmap = BitmapFactory.decodeFile(uri, options);
- return scaleImage(bitmap, reqWidth, reqHeight);
- }
-
- // scales the image using reqWidth/reqHeight and returns a scaled bitmap
- private static Bitmap scaleImage(Bitmap bitmap, int reqWidth, int reqHeight) {
- if (bitmap == null) {
- return null;
- }
-
- int w = bitmap.getWidth();
- int h = bitmap.getHeight();
- float scaleWidth = ((float) reqWidth) / w;
- float scaleHeight = ((float) reqHeight) / h;
- Log.d(LOG_TAG, "scaleImage bitmap w = " + w + " bitmap h = " + h);
-
- Matrix matrix = new Matrix();
- matrix.postScale(scaleWidth, scaleHeight);
- Bitmap resizedBitmap = Bitmap.createBitmap(
- bitmap, 0, 0, w, h, matrix, false);
- return resizedBitmap;
- }
-
- /**
- * Decode and sample down a bitmap from a resource to the requested width and height.
- *
- * @param res The resources containing the resId
- * @param resId The resource id
- * @param reqWidth The requested width of the resulting bitmap
- * @param reqHeight The requested height of the resulting bitmap
- * @return A down sampled bitmap
- */
- public static Bitmap decodeImage(Resources res, int resId,
- int reqWidth, int reqHeight) {
-
- // First decode with inJustDecodeBounds=true to check dimensions
- final BitmapFactory.Options options = new BitmapFactory.Options();
- // Each pixel is stored on 4 bytes
- options.inPreferredConfig = Bitmap.Config.ARGB_8888;
- /* If set to true, the decoder will return null (no bitmap),
- but the out... fields (i.e. outWidth, outHeight and outMimeType)
- will still be set, allowing the caller to query the bitmap
- without having to allocate the memory for its pixels */
- options.inJustDecodeBounds = true;
- BitmapFactory.decodeResource(res, resId, options);
-
- // Calculate inSampleSize
- options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
-
- // Decode bitmap with inSampleSize set
- options.inJustDecodeBounds = false;
- Bitmap bitmap = BitmapFactory.decodeResource(res, resId, options);
- return scaleImage(bitmap, reqWidth, reqHeight);
- }
-
- /*
- * This API:
- * 1. Checks to see if user has preconfigured any image
- * 2. Throws an INVALID_FILE_PATH exception if image file path is invalid
- * 3. Throws an IMAGE_DECODING_FAILURE exception if image decoding failed
- * 4. Returns a downsampled bitmap in all other cases.
- */
- public static Bitmap getStaticImage(Context context, int reqWidth, int reqHeight)
- throws QtiImsException {
- // Query database for user selected image
- String uriStr = getStaticImageUriStr(context.getContentResolver());
- Log.d(LOG_TAG, "getStaticImage: uriStr = " + uriStr + " reqWidth = " + reqWidth +
- " reqHeight = " + reqHeight);
-
- if (!isValidUriStr(uriStr)) {
- throw new QtiImsException("invalid file path");
- }
-
- Bitmap imageBitmap = decodeImage(uriStr, reqWidth, reqHeight);
- if (imageBitmap == null) {
- throw new QtiImsException("image decoding error");
- }
- return imageBitmap;
- }
-
- /***
- * Checks if the IMS Video call hide me feature is enabled or not.
- * Returns true if enabled, or false otherwise.
- */
- public static boolean shallTransmitStaticImage(Context context) {
- return isCarrierConfigEnabled(context, QtiCarrierConfigs.TRANSMIT_STATIC_IMAGE);
-
- }
-
- /***
- * Checks if the IMS call transfer property is enabled or not.
- * Returns true if enabled, or false otherwise.
- */
- public static boolean isCallTransferEnabled(Context context) {
- return SystemProperties.getBoolean("persist.radio.ims_call_transfer", false);
- }
-
- /**
- * This API checks to see whether we are going to use ui extension for video call or not.
- * @param context context for getting video call ui ext configuration value
- * Returns true if enabled, or false otherwise.
- */
- public static boolean useExt(Context context) {
- return isCarrierConfigEnabled(context, QtiCarrierConfigs.USE_VIDEO_UI_EXTENSIONS);
- }
-
- /**
- * This API checks to see whether custom video ui is enabled or not.
- * @param context context for getting custom video ui configuration value
- * Returns true if enabled, or false otherwise.
- */
- public static boolean useCustomVideoUi(Context context) {
- return isCarrierConfigEnabled(context, QtiCarrierConfigs.USE_CUSTOM_VIDEO_UI);
- }
-
- /**
- * This API checks to see whether IMS to CS retry is enabled or not.
- * @param context context for getting the CS retry configuration value
- * Returns true if enabled, or false otherwise.
- */
- public static boolean isCsRetryConfigEnabled(Context context) {
- return isCarrierConfigEnabled(context, QtiCarrierConfigs.CONFIG_CS_RETRY);
- }
-
- /**
- * Check is carrier one supported or not
- */
- public static boolean isCarrierOneSupported() {
- return CARRIER_ONE_DEFAULT_MCC_MNC.equals(SystemProperties.get(
- PROPERTY_RADIO_ATEL_CARRIER));
- }
-
- /**
- * Returns true if config flag is enabled.
- */
- public static boolean isCarrierConfigEnabled(Context context, String carrierConfig) {
-
- PersistableBundle b = getConfigForDefaultImsPhoneId(context);
-
- if (b == null) {
- Log.e(LOG_TAG, "isCarrierConfigEnabled bundle is null");
- return false;
- }
-
- return b.getBoolean(carrierConfig, false);
- }
-
- public static boolean allowVideoCallsInLowBattery(Context context) {
- return isCarrierConfigEnabled(context, QtiCarrierConfigs.ALLOW_VIDEO_CALL_IN_LOW_BATTERY);
- }
-
- public static boolean shallHidePreviewInVtConference(Context context) {
- return isCarrierConfigEnabled(context,
- QtiCarrierConfigs.HIDE_PREVIEW_IN_VT_CONFERENCE);
- }
-
- public static boolean shallRemoveModifyCallCapability(Context context) {
- return isCarrierConfigEnabled(context, QtiCarrierConfigs.REMOVE_MODIFY_CALL_CAPABILITY);
- }
-
- private static PersistableBundle getConfigForDefaultImsPhoneId(Context context) {
- return getConfigForPhoneId(context, getImsPhoneId());
- }
-
- private static PersistableBundle getConfigForPhoneId(Context context, int phoneId) {
- if (context == null) {
- Log.e(LOG_TAG, "getConfigForPhoneId context is null");
- return null;
- }
-
- CarrierConfigManager configManager = (CarrierConfigManager) context.getSystemService(
- Context.CARRIER_CONFIG_SERVICE);
- if (configManager == null) {
- Log.e(LOG_TAG, "getConfigForPhoneId configManager is null");
- return null;
- }
-
- if (phoneId == QtiCallConstants.INVALID_PHONE_ID) {
- Log.e(LOG_TAG, "getConfigForPhoneId phoneId is invalid");
- return null;
- }
-
- int subId = getSubscriptionIdFromPhoneId(context, phoneId);
- if (!SubscriptionManager.isValidSubscriptionId(subId)) {
- Log.e(LOG_TAG, "getConfigForPhoneId subId is invalid");
- return null;
- }
-
- return configManager.getConfigForSubId(subId);
- }
-
- /**
- * Returns IMS phone id.
- */
- private static int getImsPhoneId() {
- int phoneId = QtiCallConstants.INVALID_PHONE_ID;
- try {
- phoneId = QtiImsExtManager.getInstance().getImsPhoneId();
- } catch (QtiImsException e) {
- Log.e(LOG_TAG, "getImsPhoneId failed. Exception = " + e);
- }
- return phoneId;
- }
-
- /**
- * Returns subscription id for given phone id.
- */
- private static int getSubscriptionIdFromPhoneId(Context context, int phoneId) {
- SubscriptionManager subscriptionManager = SubscriptionManager.from(context);
- if (subscriptionManager == null) {
- return subscriptionManager.INVALID_SUBSCRIPTION_ID;
- }
-
- SubscriptionInfo subInfo = subscriptionManager.
- getActiveSubscriptionInfoForSimSlotIndex(phoneId);
- if (subInfo == null) {
- return subscriptionManager.INVALID_SUBSCRIPTION_ID;
- }
- return subInfo.getSubscriptionId();
- }
-}
diff --git a/telephony/internal/Android.mk b/telephony/internal/Android.mk
deleted file mode 100644
index 7598fe4..0000000
--- a/telephony/internal/Android.mk
+++ /dev/null
@@ -1,17 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src/org
-LOCAL_SRC_FILES := $(call all-java-files-under, src/org) \
- $(call all-Iaidl-files-under, src/org) \
- $(call all-logtags-files-under, src/org)
-
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE := telephony-ext
-
-include $(BUILD_JAVA_LIBRARY)
-
-# Include subdirectory makefiles
-# ============================================================
-include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/telephony/internal/src/org/codeaurora/internal/IDepersoResCallback.aidl b/telephony/internal/src/org/codeaurora/internal/IDepersoResCallback.aidl
deleted file mode 100644
index 26f97a0..0000000
--- a/telephony/internal/src/org/codeaurora/internal/IDepersoResCallback.aidl
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (c) 2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-package org.codeaurora.internal;
-
-oneway interface IDepersoResCallback {
- void onDepersoResult(int result, int phoneId);
-}
diff --git a/telephony/internal/src/org/codeaurora/internal/IDsda.aidl b/telephony/internal/src/org/codeaurora/internal/IDsda.aidl
deleted file mode 100644
index f688d89..0000000
--- a/telephony/internal/src/org/codeaurora/internal/IDsda.aidl
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Copyright (c) 2016 The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.codeaurora.internal;
-
-/**
- * Interface for DSDA API, to be called from telephony-fwk and they will
- * be handled in service/telecom.
- *
- * {@hide}
- */
-interface IDsda{
- void switchToActiveSub(int subId);
- int getActiveSubscription();
-}
diff --git a/telephony/internal/src/org/codeaurora/internal/IExtTelephony.aidl b/telephony/internal/src/org/codeaurora/internal/IExtTelephony.aidl
deleted file mode 100644
index 24527fa..0000000
--- a/telephony/internal/src/org/codeaurora/internal/IExtTelephony.aidl
+++ /dev/null
@@ -1,240 +0,0 @@
-/*
- * Copyright (c) 2015, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-package org.codeaurora.internal;
-
-import org.codeaurora.internal.IDepersoResCallback;
-import org.codeaurora.internal.IDsda;
-
-/**
- * Interface used to interact with the telephony framework for
- * Telephony value adds.
- * {@hide}
- */
-interface IExtTelephony {
-
- /**
- * Returns the current SIM Manual provision status.
- * @param slotId user preferred slotId.
- * @return Card provision status as integer, below are
- * possible return values.
- * '0' - returned if Uicc Card is not provisioned.
- * '1' - returned if Uicc Card provisioned.
- * '-1'- returned if there is an error @ below layers OR
- * if framework does not received info from Modem yet.
- * '-2' returned when SIM card is not present in slot.
- * Requires Permission: android.Manifest.permission.READ_PHONE_STATE
- */
- int getCurrentUiccCardProvisioningStatus(int slotId);
-
- /**
- * Returns the user preferred Uicc card provision status.
- * @param slotId user preferred slotId.
- * @return User preference value as integer, below are
- * possible return values.
- * '0' - returned if Uicc Card is not provisioned.
- * '1' - returned if Uicc Card provisioned.
- * '-1'- returned if there is an error @ below layers OR
- * if framework does not received info from Modem yet.
- * '-2' returned when SIM card is not present in slot.
- * Requires Permission: android.Manifest.permission.READ_PHONE_STATE
- */
- int getUiccCardProvisioningUserPreference(int slotId);
-
- /**
- * Activates the Uicc card.
- * @param slotId user preferred slotId.
- * @return Uicc card activation result as Integer, below are
- * supported return values:
- * '0' - Success
- * '-1' -Generic Failure
- * '-2' -Invalid input
- * '-3 -Another request in progress
- * Requires Permission: android.Manifest.permission.MODIFY_PHONE_STATE
- */
- int activateUiccCard(int slotId);
-
- /**
- * Deactivates UICC card.
- * @param slotId user preferred slotId.
- * @return Uicc card deactivation result as Integer, below are
- * supported return values:
- * '0' - Success
- * '-1' -Generic Failure
- * '-2' -Invalid input
- * '-3 -Another request in progress
- * Requires Permission: android.Manifest.permission.MODIFY_PHONE_STATE
- */
- int deactivateUiccCard(int slotId);
-
- /**
- * Check for Sms Prompt is Enabled or Not.
- * @return
- * true - Sms Prompt is Enabled
- * false - Sms prompt is Disabled
- * Requires Permission: android.Manifest.permission.READ_PHONE_STATE
- */
- boolean isSMSPromptEnabled();
-
- /**
- * Enable/Disable Sms prompt option.
- * @param - enabled
- * true - to enable Sms prompt
- * false - to disable Sms prompt
- * Requires Permission: android.Manifest.permission.MODIFY_PHONE_STATE
- */
- void setSMSPromptEnabled(boolean enabled);
-
- /**
- * Get logical phone id for Emergency call.
- * @param - void
- * @return phone id
- */
- int getPhoneIdForECall();
-
- /**
- * Set Primary card on given slot.
- * @param - slotId to be set as Primary Card.
- * @return void
- */
- void setPrimaryCardOnSlot(int slotId);
-
- /**
- * Check is FDN is enabled or not.
- * @param - void
- * @return true or false
- */
- boolean isFdnEnabled();
-
- /**
- * Get primary stack phone id.
- * @param - void
- * @return phone id
- */
- int getPrimaryStackPhoneId();
-
- /**
- * Check if number is emergency number or not.
- * @param - number
- * @return true or false
- */
- boolean isEmergencyNumber(String number);
-
- /**
- * Check if number is local emergency number or not.
- * @param - number
- * @return true or false
- */
- boolean isLocalEmergencyNumber(String number);
-
- /**
- * Check if number is potential emergency number or not.
- * @param - number
- * @return true or false
- */
- boolean isPotentialEmergencyNumber(String number);
-
- /**
- * Check if number is potential Local emergency number or not.
- * @param - number
- * @return true or false
- */
- boolean isPotentialLocalEmergencyNumber(String number);
-
- /**
- * Check if device in single stanby.
- * @param - void
- * @return true or false
- */
- boolean isDeviceInSingleStandby();
-
- /* Send local call hold request to RIL.
- * @param subId, send request on this subscription
- * @param enable
- * true - to enable local call hold
- * false - to disable local call hold
- * @return true or false
- */
- boolean setLocalCallHold(int subId, boolean enable);
-
- /**
- * Send switch to other subscription.
- * @param subId, send request on this subscription
- * @return void
- */
- void switchToActiveSub(int subId);
-
- /**
- * set adapter, so that IExtTelephony would have interface to send requests to service/telecom
- * @param dsdaAdapter, this adapter used by IExtTelephony as interface for requests in IDsda.
- * @return void
- */
- void setDsdaAdapter(in IDsda dsdaAdapter);
-
- /**
- * get active subscription.
- * @param void
- * @return subId of active subscription.
- */
- int getActiveSubscription();
-
- /**
- * returns device is in DSDA configuration or not.
- * @param void
- * @return true or false
- */
- boolean isDsdaEnabled();
-
- /**
- * supply pin to unlock sim locked on network.
- * @param - netpin - network pin to unlock the sim.
- * @param - type - PersoSubState for which the sim is locked onto.
- * @param - callback - callback to notify UI, whether the request was success or failure.
- * @param - phoneId - slot id on which the pin request is sent.
- * @return void
- */
- void supplyIccDepersonalization(String netpin, String type, in IDepersoResCallback callback,
- int phoneId);
-
- /**
- * Returns ID of the slot in which PrimaryCarrier SIM card is present.
- * If none of the slots contains PrimaryCarrier SIM, this would return '-1'
- * Supported values: 0, 1, -1
- */
- int getPrimaryCarrierSlotId();
-
- /**
- * Check if slotId has PrimaryCarrier SIM card present or not.
- * @param - slotId
- * @return true or false
- */
- boolean isPrimaryCarrierSlotId(int slotId);
-
-}
diff --git a/thermal-engine/Android.mk b/thermal-engine/Android.mk
deleted file mode 100644
index ba67e01..0000000
--- a/thermal-engine/Android.mk
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Copyright 2016 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_COPY_HEADERS_TO := thermal-engine
-LOCAL_COPY_HEADERS := ./thermal_client.h
-
-include $(BUILD_COPY_HEADERS)
diff --git a/thermal-engine/thermal_client.h b/thermal-engine/thermal_client.h
deleted file mode 100644
index b41f139..0000000
--- a/thermal-engine/thermal_client.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Copyright (c) 2016, The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include
-#ifndef __THERMAL_CLIENT_H__
-#define __THERMAL_CLIENT_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define MAX_ACTIONS (32)
-
-/* Enum for supported fields */
-enum supported_fields {
- UNKNOWN_FIELD = 0x0,
- DISABLE_FIELD = 0x1,
- SAMPLING_FIELD = 0x2,
- THRESHOLDS_FIELD = 0x4,
- SET_POINT_FIELD = THRESHOLDS_FIELD,
- THRESHOLDS_CLR_FIELD = 0x8,
- SET_POINT_CLR_FIELD = THRESHOLDS_CLR_FIELD,
- ACTION_INFO_FIELD = 0x10,
- SUPPORTED_FIELD_MAX = 0x20,
-};
-
-enum field_data_type {
- FIELD_INT = 0,
- FIELD_STR,
- FIELD_INT_ARR,
- FIELD_ARR_STR,
- FIELD_ARR_INT_ARR,
- FIELD_MAX
-};
-
-struct action_info_data {
- int info[MAX_ACTIONS];
- uint32_t num_actions;
-};
-
-struct field_data {
- char *field_name;
- enum field_data_type data_type;
- uint32_t num_data;
- void *data;
-};
-
-struct config_instance {
- char *cfg_desc;
- char *algo_type;
- unsigned int fields_mask; /* mask set by client to request to adjust supported fields */
- uint32_t num_fields;
- struct field_data *fields;
-};
-
-int thermal_client_config_query(char *algo_type, struct config_instance **configs);
-void thermal_client_config_cleanup(struct config_instance *configs, unsigned int config_size);
-int thermal_client_config_set(struct config_instance *configs, unsigned int config_size);
-
-int thermal_client_register_callback(char *client_name, int (*callback)(int , void *, void *), void *data);
-int thermal_client_request(char *client_name, int req_data);
-void thermal_client_unregister_callback(int client_cb_handle);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __THERMAL_CLIENT_H__ */
diff --git a/time-services/Android.mk b/time-services/Android.mk
deleted file mode 100644
index d3df3f6..0000000
--- a/time-services/Android.mk
+++ /dev/null
@@ -1,13 +0,0 @@
-################################################################################
-# @file vendor/qcom/opensource/time_services/Android.mk
-# @brief Makefile for installing time services header on Android.
-################################################################################
-
-LOCAL_PATH:= $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_COPY_HEADERS_TO := time-services
-LOCAL_COPY_HEADERS := ./time_genoff.h
-
-include $(BUILD_COPY_HEADERS)
diff --git a/time-services/time_genoff.h b/time-services/time_genoff.h
deleted file mode 100644
index 4704da8..0000000
--- a/time-services/time_genoff.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * Copyright (c) 2010-2014, 2016 The Linux Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of The Linux Foundation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#ifndef __TIME_GENOFF_H__
-#define __TIME_GENOFF_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Time genoff base -- To be used by the time setter
- * Reserved bases to be supported later.
- */
-typedef enum time_bases {
- ATS_RTC = 0,
- ATS_TOD,
- ATS_USER,
- ATS_SECURE,
- ATS_DRM,
- ATS_RESERVED_2,
- ATS_RESERVED_3,
- ATS_GPS,
- ATS_1X,
- ATS_RESERVED_4,
- ATS_WCDMA,
- ATS_SNTP,
- ATS_UTC,
- ATS_MODEM,
- ATS_MFLO,
- ATS_TOD_MODEM,
- ATS_WLAN,
- ATS_INVALID
-} time_bases_type;
-
-/* Time unit -- Unit in which time is set/get */
-typedef enum time_unit {
- TIME_STAMP, /* Not supported */
- TIME_MSEC,
- TIME_SECS,
- TIME_JULIAN,
- TIME_20MS_FRAME, /* Not supported */
- TIME_INVALID
-} time_unit_type;
-
-/* Operation to be done */
-typedef enum time_genoff_opr {
- T_SET,
- T_GET,
- T_IS_SET,
- T_DISABLE,
- T_ENABLE,
- T_MAX
-} time_genoff_opr_type;
-
-/* Structure to be passed as argument to time_genoff_operation() */
-/*
- * In set/get: ts_val should be assigned memory and then passed.
- * if time_unit = TIME_MSEC, TIME_SECS then ts_val = (uint64_t *)
- * if time_unit = TIME_JULIAN then ts_val = (struct tm *)
- */
-typedef struct time_genoff_info {
- time_bases_type base; /* Genoff in consideration */
- void *ts_val; /* Time to be set/get */
- time_unit_type unit; /* Time unit */
- time_genoff_opr_type operation; /* Time operation to be done */
-}time_genoff_info_type;
-
-/* API to be called for time get/set operation */
-int time_genoff_operation(time_genoff_info_type *pargs);
-
-/* API to be called for logging operations */
-int time_control_operations(time_genoff_info_type *pargs);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __TIME_GENOFF_H__ */