fuchsia.hardware.gnss

Protocols and types related to GNSS locations.

Added: HEAD

PROTOCOLS

Device

Defined in fuchsia.hardware.gnss/gnss_device.fidl

Device protocol used to connect to a GPS device.

The GNSS (Global Navigation Satellite System) interface provides access to location data obtained from GNSS receivers.

Disable

Disable GNSS device and reset to initial status. Clears any cached fix available Calling this while the GNSS device is already enabled is a no-op.

Errors

Returns INTERNAL_ERROR in case of any driver issue.

Request

<EMPTY>

Response

NameType
payload Device_Disable_Result

Enable

Enable GNSS device and reset to initial status. Calling this while the GNSS device is already enabled is a no-op.

Errors

Returns MODEM_OFFLINE if modem is offline. Returns INTERNAL_ERROR in case of any other driver issue.

Request

<EMPTY>

Response

NameType
payload Device_Enable_Result

GetCapabilities

Get the device's supported capabilities.

Request

<EMPTY>

Response

NameType
payload Device_GetCapabilities_Result

GetLastFix

Return location obtained in the most recent successful session.

Errors

Returns GNSS_DISABLED if GNSS is disabled. Returns NO_FIX_AVAILABLE if no fix is available.

Request

<EMPTY>

Response

NameType
payload Device_GetLastFix_Result

GetSingleShotFix

Get a single shot time-limited position fix with a specified accuracy.

Errors

Returns GNSS_DISABLED if GNSS is disabled. Returns MISSING_PARAMETERS if all required fix parameters are not provided in the request. Returns ACTIVE_SESSION_ONGOING if an active session is ongoing. Returns NOT_SUPPORTED if this feature is not supported. Returns INTERNAL_ERROR in case of any other driver issue.

Request

NameType
params fuchsia.location.gnss.types/FixParams

Response

NameType
payload Device_GetSingleShotFix_Result

StartTimeBasedLocationTracking

Start a location tracking session.

Errors

Returns GNSS_DISABLED if GNSS is disabled. Returns MISSING_PARAMETERS if all required fix parameters are not provided in the request. Returns ACTIVE_SESSION_ONGOING if an active session is ongoing. Returns NOT_SUPPORTED if this feature is not supported. Returns INTERNAL_ERROR in case of any other driver issue.

Request

NameType
params fuchsia.location.gnss.types/FixParams
interval_msec uint32
listener server_end:LocationListener

Response

NameType
payload Device_StartTimeBasedLocationTracking_Result

LocationListener

Defined in fuchsia.hardware.gnss/gnss_device.fidl

Listener for location updates.

GetNextLocation

Hanging-get to obtain next location in the tracking session.

This call blocks until a new location is is available.

Errors

Returns GNSS_DISABLED if GNSS is disabled. Returns TIMEOUT if time out occurred before obtaining an initial location of desired accuracy. Returns INTERNAL_ERROR in case of any unspecified issue. Returns BAD_STATE when there is a pending GetNextLocation call.

Request

<EMPTY>

Response

NameType
payload LocationListener_GetNextLocation_Result

STRUCTS

Device_Disable_Response

Defined in fuchsia.hardware.gnss/gnss_device.fidl

<EMPTY>

Device_Enable_Response

Defined in fuchsia.hardware.gnss/gnss_device.fidl

<EMPTY>

Device_GetCapabilities_Response

Defined in fuchsia.hardware.gnss/gnss_device.fidl

FieldTypeDescriptionDefault
capabilities fuchsia.location.gnss.types/Capabilities

Capability bit mask.

No default

Device_GetLastFix_Response

Defined in fuchsia.hardware.gnss/gnss_device.fidl

FieldTypeDescriptionDefault
location fuchsia.location.gnss.types/Location

GNSS location.

No default

Device_GetSingleShotFix_Response

Defined in fuchsia.hardware.gnss/gnss_device.fidl

FieldTypeDescriptionDefault
location fuchsia.location.gnss.types/Location

GNSS location.

No default

Device_StartTimeBasedLocationTracking_Response

Defined in fuchsia.hardware.gnss/gnss_device.fidl

<EMPTY>

LocationListener_GetNextLocation_Response

Defined in fuchsia.hardware.gnss/gnss_device.fidl

FieldTypeDescriptionDefault
location fuchsia.location.gnss.types/Location No default

UNIONS

Device_Disable_Result strict

Defined in fuchsia.hardware.gnss/gnss_device.fidl

OrdinalVariantTypeDescription
response Device_Disable_Response
err fuchsia.location.gnss.types/Error
framework_err internal

Device_Enable_Result strict

Defined in fuchsia.hardware.gnss/gnss_device.fidl

OrdinalVariantTypeDescription
response Device_Enable_Response
err fuchsia.location.gnss.types/Error
framework_err internal

Device_GetCapabilities_Result strict

Defined in fuchsia.hardware.gnss/gnss_device.fidl

OrdinalVariantTypeDescription
response Device_GetCapabilities_Response
framework_err internal

Device_GetLastFix_Result strict

Defined in fuchsia.hardware.gnss/gnss_device.fidl

OrdinalVariantTypeDescription
response Device_GetLastFix_Response
err fuchsia.location.gnss.types/Error
framework_err internal

Device_GetSingleShotFix_Result strict

Defined in fuchsia.hardware.gnss/gnss_device.fidl

OrdinalVariantTypeDescription
response Device_GetSingleShotFix_Response
err fuchsia.location.gnss.types/Error
framework_err internal

Device_StartTimeBasedLocationTracking_Result strict

Defined in fuchsia.hardware.gnss/gnss_device.fidl

OrdinalVariantTypeDescription
response Device_StartTimeBasedLocationTracking_Response
err fuchsia.location.gnss.types/Error
framework_err internal

LocationListener_GetNextLocation_Result strict

Defined in fuchsia.hardware.gnss/gnss_device.fidl

OrdinalVariantTypeDescription
response LocationListener_GetNextLocation_Response
err fuchsia.location.gnss.types/Error
framework_err internal

SERVICES

Service

Defined in fuchsia.hardware.gnss/gnss_device.fidl

NameTypeTransport
device fuchsia.hardware.gnss/Device Channel