Package: android.hardware.gnss@1.1

IGnssMeasurementCallback

interface IGnssMeasurementCallback extends @1.0::IGnssMeasurementCallback

The callback interface to report measurements from the HAL.

Properties

GnssAccumulatedDeltaRangeState

enum GnssAccumulatedDeltaRangeState: @1.0::IGnssMeasurementCallback.GnssAccumulatedDeltaRangeState

Flags indicating the Accumulated Delta Range's states.

Details
Members
ADR_STATE_HALF_CYCLE_RESOLVED = 1 << 3

GnssMeasurement

struct GnssMeasurement {@ v1_0; bitfield accumulatedDeltaRangeState}

Extends a GNSS Measurement, adding the new enum.

Details
Members
v1_0
GNSS measurement information for a single satellite and frequency, as in the 1.0 version of the HAL.
In this version of the HAL, these fields of the@1.0::IGnssMeasurementCallback.GnssMeasurement v1_0 struct are deprecated, and are no longer used by the framework:carrierCycles carrierPhase carrierPhaseUncertainty
Similar information about carrier phase signal tracking is still reported in these fields of@1.0::IGnssMeasurementCallback.GnssMeasurement v1_0:accumulatedDeltaRangeM accumulatedDeltaRangeUncertaintyM
accumulatedDeltaRangeState
Provides the state of Accumulated Delta Range values, including additional information beyond version 1.0 of the HAL.See GnssAccumulatedDeltaRangeState.
In this(1.1)version of the HAL, this value is used by the framework, not the value provided by v1_0.accumulatedDeltaRangeState.

GnssData

struct GnssData {vec measurements; GnssClock clock}

Complete set of GNSS Measurement data, same as 1.0 with additional enum in measurements.

Details
Members
measurements
The full set of satellite measurement observations.
clock
The GNSS clock time reading.

Methods

gnssMeasurementCb

gnssMeasurementCb (GnssData data)

Callback for the hal to pass a GnssData structure back to the client.

Details
Parameters
data
Contains a reading of GNSS measurements.