Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.clock

PROTOCOLS

Clock

Defined in fuchsia.hardware.clock/clock.fidl

Disable

Disables (gates) this clock. Drivers should call this method to indicate to the clock subsystem that a particular clock signal is no longer necessary.

Request

<EMPTY>

Response

NameType
s zx/status

Enable

Enables (ungates) this clock. Drivers must call enable on all clocks they depend upon.

Request

<EMPTY>

Response

NameType
s zx/status

GetInput

Returns the index of the current input of this clock.

Request

<EMPTY>

Response

NameType
s zx/status
index uint32

GetNumInputs

Returns the number of inputs this clock has. Any value between 0 and UINT32_MAX is a valid return for this method. A Root Oscillator may return 0 for instance, if it has no inputs.

Request

<EMPTY>

Response

NameType
s zx/status
n uint32

GetRate

Returns the current rate that a given clock is running at.

Request

<EMPTY>

Response

NameType
s zx/status
hz uint64

IsEnabled

Returns true if a given clock is running. May query the hardware or return a cached value.

Request

<EMPTY>

Response

NameType
s zx/status
enabled bool

QuerySupportedRate

Query the hardware for the highest supported rate that does not exceed hz_in.

Request

NameType
hz_in uint64

Response

NameType
s zx/status
hz_out uint64

SetInput

Sets the input of this clock by index. I.e. by selecting a mux. This clock has N inputs defined 0 through N-1, which are valid arguemts as the index to SetInput.

Request

NameType
idx uint32

Response

NameType
s zx/status

SetRate

Attempt to set the rate of the clock provider.

Request

NameType
hz uint64

Response

NameType
s zx/status

Device

Defined in fuchsia.hardware.clock/clock.fidl

Disable

Request

NameType
clock uint32

Response

NameType
result Device_Disable_Result

Enable

Request

NameType
clock uint32

Response

NameType
result Device_Enable_Result

GetCount

Request

<EMPTY>

Response

NameType
count uint32

Measure

Request

NameType
clock uint32

Response

NameType
info FrequencyInfo

STRUCTS

Device_Disable_Response

Defined in fuchsia.hardware.clock/clock.fidl

<EMPTY>

Device_Enable_Response

Defined in fuchsia.hardware.clock/clock.fidl

<EMPTY>

FrequencyInfo

Defined in fuchsia.hardware.clock/clock.fidl

FieldTypeDescriptionDefault
name uint8[30] No default
frequency uint64 No default

UNIONS

Device_Disable_Result strict

Defined in fuchsia.hardware.clock/clock.fidl

Ordinal
VariantTypeDescription
1 response Device_Disable_Response
2 err zx/status

Device_Enable_Result strict

Defined in fuchsia.hardware.clock/clock.fidl

Ordinal
VariantTypeDescription
1 response Device_Enable_Response
2 err zx/status

CONSTANTS

NameValueTypeDescription
NAME_LEN 30 uint32