1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5library fuchsia.hardware.rtc;
6
7using zx;
8
9struct Time {
10    uint8 seconds;
11    uint8 minutes;
12    uint8 hours;
13    uint8 day;
14    uint8 month;
15    uint16 year;
16};
17
18[Layout = "Simple"]
19interface Device {
20    // Get the current RTC time
21    1: Get() -> (Time rtc);
22
23    // Set the RTC time
24    2: Set(Time rtc) -> (zx.status status);
25};
26