<br />

Added: HEAD

## **PROTOCOLS**

## Device

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=139)*

A driver providing high resolution timers support.
This API is intended for timers that are provided by hardware separate from the CPU
For instance this driver may abstract hardware provided by an SoC.

<br />

### GetProperties

Get driver properties.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_GetProperties_Result` |

### GetTicksLeft

Get the current time in ticks left in timer `id` until expiration.

If the specified `id` is invalid, then this call will return `INVALID_ARGS`.

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_GetTicksLeft_Result` |

### ReadClock

Read the current timer's clock value.

The returned ticks are in time-units relative to the given resolution.
Use `GetProperties()` to determine the available resolution(s).

Errors:
BAD_STATE: no clock is currently running.
INVALID_ARGS: `id` or `resolution` are invalid or unsupported values.
NOT_SUPPORTED: if `supports_read` is false, or the method is otherwise
not implemented.
INTERNAL_ERROR: internal runtime error.

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |
| `resolution` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Resolution` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_ReadClock_Result` |

### ReadTimer

Read the current timer's set or timeout value.

The returned ticks are in time-units relative to the given resolution.
Use `GetProperties()` to determine the available resolution(s).

Errors:
BAD_STATE: no readable timer currently exists.
INVALID_ARGS: `id` or `resolution` are invalid or unsupported values.
NOT_SUPPORTED: if `supports_read` is false, or the method is otherwise
not implemented.
INTERNAL_ERROR: internal runtime error.

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |
| `resolution` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Resolution` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_ReadTimer_Result` |

### SetEvent

Sets a Zircon Event to be notified of the timer expiration.

The timer expiration will be notified via the ZX_EVENT_SIGNALED signal.
The client is responsible for clearing the ZX_EVENT_SIGNALED signal.
Any previously event set for the specific `id` is replaced. Note that this may race with
the event signaling from the expiration of a timer already started.
To guarantee that an event is delivered upon timer expiration, this method must be
called before calling `Start`.

If the specified `id` is invalid, then this call will return `INVALID_ARGS`.
If this method is not supported for the given `id`, then this call will return
`NOT_SUPPORTED`.
If the driver encounters an internal error, then this call will return `INTERNAL_ERROR`.
Deprecated: HEAD

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |
| `event` | `handle<event>` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_SetEvent_Result` |

### Start

Start the timer `id` to expire after `ticks`.

If `ticks` is 0 then the timer will expire in 0 ticks (immediately).
If the timer `id` was already started, then the previous `Start` is canceled and the driver
will restart the timer. Note that this may race with the expiration of the previous timer,
for instance the notification process may be already started and a new `Start` call won't
be able to stop a notification that is already in flight.
If the specified `id` is invalid, then this call will return `INVALID_ARGS`.
If the specified `resolution` is not supported per the `resolutions` provided by
`GetProperties`, then this call will return `INVALID_ARGS`.
If the specified `ticks` is beyond the range supported for the timer as provided by
`GetProperties`, then this call will return `INVALID_ARGS`.
If the driver encounters an internal error, then this call will return `INTERNAL_ERROR`.
Deprecated: HEAD

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |
| `resolution` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Resolution` |
| `ticks` | `uint64` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_Start_Result` |

### StartAndWait

Start the timer `id` to expire after `ticks` and waits until the timer expires with
support for preventing suspension via the Power Framework.

The driver will signal the `setup_event` event once the timer has been setup using the
ZX_EVENT_SIGNALED signal. This allows a client to know that it is safe to allow the
system to suspend. The client is responsible for clearing this event.

The driver will not respond to this call (hang) until the timer has triggered.
Calling `Stop` on the timer will abort this call and return `CANCELED`. Note that this
may race with the expiration of the timer.

A driver supporting this call must be able to get a lease on a power element that keeps
the system from suspending. This lease is returned to the client via the `keep_alive`
LeaseToken channel field. When `keep_alive` is closed, then the driver lease keeping the
system from suspending will be dropped. Hence, to guarantee that the system is not
suspended by the Power Framework a client must either keep this `keep_alive` token for
as long as the system needs to not suspend, or a client must get its own lease from the
Power Framework to prevent suspension before it drops `keep_alive`.

If the specified `id` is invalid, then this call will return `INVALID_ARGS`.
If this method is not supported for the given `id`, then this call will return
`NOT_SUPPORTED`.
If the driver does not have a `keep_alive` token to provide to the client, then this
call will return `BAD_STATE`.
If the driver encounters an internal error, then this call will return `INTERNAL_ERROR`.

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |
| `resolution` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Resolution` |
| `ticks` | `uint64` |
| `setup_event` | `handle<event>` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_StartAndWait_Result` |

### StartAndWait2

Start timer `id` and wait for it to expire after `ticks` ticks.

The driver will not respond to this call (hang) until the timer has triggered.
Calling `Stop` on the timer will abort this call and return `CANCELED`. Note that this
may race with the expiration of the timer.

This method keeps the system awake (prevents suspension) while the timer is setup using the
mandatory passed-in `setup_keep_alive` `LeaseToken`.
When the timer expires this method returns a second `expiration_keep_alive`
`LeaseToken` to prevent suspension at the time of expiration.
These keep alive wake lease tokens are provided by the Power Framework's System Activity
Governor. A driver supporting this call must be able to get `expiration_keep_alive` from
System Activity Governor.

When `expiration_keep_alive` is closed, then this driver created wake lease keeping the
system from suspending at the time of the timer expiration is dropped. Hence, to guarantee
that the system is not suspended by the Power Framework a client must either keep this
`expiration_keep_alive` for as long as the system needs to stay awake, or a client must
get its own wake lease from the Power Framework before it drops `expiration_keep_alive` to
prevent suspension.

Errors:

- INVALID_ARGS: The specified `id` is invalid.
- NOT_SUPPORTED: This method is not supported for the given `id`.
- BAD_STATE: The driver is in a bad state, for instance it does not have an `expiration_keep_alive` token to provide to the client.
- INTERNAL_ERROR: The driver encountered an internal error.

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |
| `resolution` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Resolution` |
| `ticks` | `uint64` |
| `setup_keep_alive` | `https://fuchsia.dev/reference/fuchsia.power.system//https://fuchsia.dev/reference/fuchsia.power.system#LeaseToken` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_StartAndWait2_Result` |

### Stop

Stops the timer `id`.

Note that this may race with the expiration of the timer, for instance notification via
an event set with `SetEvent` may be already in flight.
If the specified `id` is invalid, then this call will return `INVALID_ARGS`.
If the driver encounters an internal error, then this call will return `INTERNAL_ERROR`.

#### Request

| Name | Type |
|---|---|
| `id` | `uint64` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_Stop_Result` |

## **STRUCTS**

### Device_GetProperties_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=309)*

| Field | Type | Description | Default |
|---|---|---|---|
| `properties` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Properties` |   | No default |

### Device_GetTicksLeft_Response

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=214)*

| Field | Type | Description | Default |
|---|---|---|---|
| `ticks` | `uint64` |   | No default |

### Device_ReadClock_Response

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=195)*

| Field | Type | Description | Default |
|---|---|---|---|
| `ticks` | `uint64` |   | No default |

### Device_ReadTimer_Response

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=177)*

| Field | Type | Description | Default |
|---|---|---|---|
| `ticks` | `uint64` |   | No default |

### Device_SetEvent_Response

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=235)*

\<EMPTY\>

### Device_StartAndWait2_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=304)*

| Field | Type | Description | Default |
|---|---|---|---|
| `expiration_keep_alive` | `https://fuchsia.dev/reference/fuchsia.power.system//https://fuchsia.dev/reference/fuchsia.power.system#LeaseToken` |   | No default |

### Device_StartAndWait_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=267)*

| Field | Type | Description | Default |
|---|---|---|---|
| `keep_alive` | `https://fuchsia.dev/reference/fuchsia.power.system//https://fuchsia.dev/reference/fuchsia.power.system#LeaseToken` |   | No default |

### Device_Start_Response

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=161)*

\<EMPTY\>

### Device_Stop_Response

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=207)*

\<EMPTY\>

## **ENUMS**

### DriverError [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=17)*

Errors that this driver may return.

<br />

| Name | Value | Description |
|---|---|---|
| ### INTERNAL_ERROR | `1` | The driver encountered an otherwise unspecified error while performing the operation. |
| ### NOT_SUPPORTED | `2` | The operation is not implemented, supported, or enabled. |
| ### INVALID_ARGS | `3` | An argument is invalid. |
| ### BAD_STATE | `4` | The operation failed because the current state of the driver does not allow it, or a precondition of the operation is not satisfied. |
| ### CANCELED | `5` | The in-progress operation has been canceled. |

### PowerUpState [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=42)*

Indicates the power-up state of the timer hardware at boot.

<br />

| Name | Value | Description |
|---|---|---|
| ### UNKNOWN | `0` | The power-up state is unknown or not reported by the hardware. |
| ### REGULAR | `1` | The hardware powered up normally (backup power was maintained). |
| ### BATTERY_DRAIN | `2` | The hardware powered up after a battery drain or full power loss (backup domain registers were reset). |

## **TABLES**

### Properties [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=120)*

Driver properties.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `timers_properties` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#TimerProperties>:64` | Retrieves the supported timers properties. Optional. |
| ### 2 | `driver_node_token` | `handle<event>` | The driver's node token. If the driver provides this value, the caller can use it to request additional information about the driver. Optional. The driver may not have a token to give. |

### TimerProperties

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=55)*

Properties for a specific timer abstracted by the driver.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `id` | `uint64` | Unique identifier for this timer. The `id` is stable for a given timer, i.e. it does not change across different clients or different connections from the same client. Required. |
| ### 2 | `supported_resolutions` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Resolution>:64` | Retrieves the resolutions supported by this timer. Required. |
| ### 3 | `max_ticks` | `uint64` | Range in ticks. This is the maximum amount of time that can be set in terms of ticks when a timer is started. The maximum range in actual time (e.g. nanoseconds) depends on the resolution used. NOTE: The value reported here does not need to be identical to what the hardware actually supports. The driver MAY provide the support for the reported `max_ticks` that is greater than the largest value of ticks that can be put into the device's hardware register. The driver supports a greater value of `max_ticks` by re-programming the hardware counter multiple times with its maximum supported interval, with an interrupt generated after each re-programming. If you want as few re-programmings (and interrupts) to happen as possible, as may be the case when using the hrtimer in a power-aware context, select the coarsest available resolution from \[supported_resolutions\]. This will ensure the longest possible wall-clock time passes without a re-program. Required. |
| ### 4 | `supports_event` | `bool` | If true then the `SetEvent` method is supported, if false or not present it is not supported. Optional. Deprecated: HEAD |
| ### 5 | `supports_wait` | `bool` | If true then the `StartAndWait` and `StartAndWait2` methods are supported, if false or not present these methods are not supported. Optional. |
| ### 6 | `supports_read` | `bool` | If true, then the `TimerRead` and `ClockRead` methods are supported, if false or not present, these methods are not supported. Optional. |
| ### 7 | `power_up_state` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#PowerUpState` | Indicates the power-up state of the timer hardware at boot. If not present, the power-up state is `PowerUpState.UNKNOWN`. Optional. |

## **UNIONS**

### Device_GetProperties_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible) [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=309)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_GetProperties_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_GetTicksLeft_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=214)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_GetTicksLeft_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_ReadClock_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=195)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_ReadClock_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_ReadTimer_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=177)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_ReadTimer_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_SetEvent_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=235)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_SetEvent_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_StartAndWait2_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible) [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=304)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_StartAndWait2_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_StartAndWait_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible) [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=267)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_StartAndWait_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_Start_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=161)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_Start_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Device_Stop_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=207)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#Device_Stop_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.hrtimer#DriverError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Resolution [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=36)*

Amount of time for one tick of a timer.

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `duration` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Duration` | The resolution specified for one tick. |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [MAX_COUNT_RESOLUTIONS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=14) | `64` | `uint32` | Maximum count of resolutions supported by a given timer, arbitrary. |
| [MAX_COUNT_TIMERS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=11) | `64` | `uint32` | Maximum count of timers supported by this protocol, arbitrary. |

## **SERVICES**

### Service

*Defined in [fuchsia.hardware.hrtimer/hrtimer.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=314)*

| Name | Type | Transport |
|---|---|---|
| [device](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.hrtimer/hrtimer.fidl;l=315) | `fuchsia.hardware.hrtimer/Device` | Channel |

<br />