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
Name | Type |
---|---|
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
Name | Type |
---|---|
rtc |
Time
|
Response
Name | Type |
---|---|
payload |
Device_Set_Result
|
STRUCTS
Device_Get_Response
Defined in fuchsia.hardware.rtc/rtc.fidl
Field | Type | Description | Default |
---|---|---|---|
rtc |
Time
|
No default |
Device_Set_Response
Defined in fuchsia.hardware.rtc/rtc.fidl
Field | Type | Description | Default |
---|---|---|---|
status |
zx/Status
|
No default |
Time
Defined in fuchsia.hardware.rtc/rtc.fidl
Field | Type | Description | Default |
---|---|---|---|
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
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Device_Get_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
Device_Set_Result strict
Defined in fuchsia.hardware.rtc/rtc.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Device_Set_Response
|
|
3 |
framework_err |
internal
|
SERVICES
Service
Defined in fuchsia.hardware.rtc/rtc.fidl
Name | Type | Transport |
---|---|---|
device |
fuchsia.hardware.rtc/Device
|
Channel |