summaryrefslogtreecommitdiff
path: root/gnss/2.0/IGnssDebug.hal
blob: a3138ba6daa87587ced3c61258ae1d7ab480fd1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 * Copyright (C) 2019 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.
 */

package android.hardware.gnss@2.0;

import @1.0::IGnssDebug;

/** Extended interface for DEBUG support. */
interface IGnssDebug extends @1.0::IGnssDebug {

    /** Extending SatelliteData, replacing the GnssConstellationType. */
    struct SatelliteData {
        /**
         * GNSS Satellite info.
         *
         * In this version of the HAL, the field 'constellation' in the v1_0 struct is deprecated,
         * and is no longer used by the framework. The constellation type is instead reported in
         * @2.0::IGnssDebug.SatelliteData.constellation.
         */
        @1.0::IGnssDebug.SatelliteData v1_0;

        /** Defines the constellation type of the given SV. */
        GnssConstellationType constellation;
    };

    /**
     * Provides a set of debug information that is filled by the GNSS chipset when the method
     * getDebugData() is invoked.
     */
    struct DebugData {
        /** Current best known position. */
        @1.0::IGnssDebug.PositionDebug position;

        /** Current best know time estimate. */
        @1.0::IGnssDebug.TimeDebug time;

        /**
         * Provides a list of the available satellite data, for all
         * satellites and constellations the device can track,
         * including GnssConstellationType UNKNOWN.
         */
        vec<SatelliteData> satelliteDataArray;
    };

    /**
     * This methods requests position, time and satellite ephemeris debug information from the HAL.
     *
     * @return ret debugData information from GNSS Hal that contains the current best known
     * position, best known time estimate and a complete list of constellations that the device can
     * track.
     */
    getDebugData_2_0() generates (DebugData debugData);
};