fuchsia.hardware.rtc

Added: 15

PROTOCOLS

Device

Defined in fuchsia.hardware.rtc/rtc.fidl

Get

Get the current RTC time. If the driver detects that it does not have a valid time to report, then it will return an ZX_ERR_INTERNAL error.

Request

<EMPTY>

Response

NameType
payload Device_Get_Result

Set

Set the RTC time. If the RTC time is not valid, the driver will return an ZX_ERR_OUT_OF_RANGE error.

Request

NameType
rtc Time

Response

NameType
payload Device_Set_Result

STRUCTS

Device_Get_Response

Defined in fuchsia.hardware.rtc/rtc.fidl

FieldTypeDescriptionDefault
rtc Time No default

Device_Set_Response

Defined in fuchsia.hardware.rtc/rtc.fidl

FieldTypeDescriptionDefault
status zx/Status No default

Time

Defined in fuchsia.hardware.rtc/rtc.fidl

FieldTypeDescriptionDefault
seconds uint8 No default
minutes uint8 No default
hours uint8 No default
day uint8 No default
month uint8 No default
year uint16 No default

UNIONS

Device_Get_Result strict

Defined in fuchsia.hardware.rtc/rtc.fidl

OrdinalVariantTypeDescription
response Device_Get_Response
err zx/Status
framework_err internal

Device_Set_Result strict

Defined in fuchsia.hardware.rtc/rtc.fidl

OrdinalVariantTypeDescription
response Device_Set_Response
framework_err internal

SERVICES

Service

Defined in fuchsia.hardware.rtc/rtc.fidl

NameTypeTransport
device fuchsia.hardware.rtc/Device Channel