fuchsia.hardware.rtc

新增時間:15 張

通訊協定

裝置

定義於 fuchsia.hardware.rtc/rtc.fidl

取得

取得目前的 RTC 時間。 如果驅動程式庫在沒有有效的時間回報時間,則會傳回 ZX_ERR_INTERNAL 錯誤。

要求

<EMPTY>

回應

名稱類型
payload Device_Get_Result

設定

設定 RTC 時間。 如果 RTC 時間無效,驅動程式庫會傳回 ZX_ERR_OUT_OF_RANGE 錯誤。

要求

名稱類型
rtc Time

回應

名稱類型
payload Device_Set_Result

結構化

Device_Get_Response

定義於 fuchsia.hardware.rtc/rtc.fidl

欄位類型說明預設
rtc Time 無預設

Device_Set_Response

定義於 fuchsia.hardware.rtc/rtc.fidl

欄位類型說明預設
status zx/Status 無預設

分秒必爭

定義於 fuchsia.hardware.rtc/rtc.fidl

欄位類型說明預設
seconds uint8 無預設
minutes uint8 無預設
hours uint8 無預設
day uint8 無預設
month uint8 無預設
year uint16 無預設

聯合國

Device_Get_Result 嚴格

定義於 fuchsia.hardware.rtc/rtc.fidl

序數Variant類型說明
response Device_Get_Response
err zx/Status
framework_err internal

Device_Set_Result 嚴格

定義於 fuchsia.hardware.rtc/rtc.fidl

序數Variant類型說明
response Device_Set_Response
framework_err internal

服務

服務

定義於 fuchsia.hardware.rtc/rtc.fidl

名稱類型傳輸
device fuchsia.hardware.rtc/Device 版本