blob: 88a52786e926e9828b0dc05942e11aa43e8060af [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.hardware.rtc;
using zx;
@for_deprecated_c_bindings
type Time = struct {
seconds uint8;
minutes uint8;
hours uint8;
day uint8;
month uint8;
year uint16;
};
@for_deprecated_c_bindings
protocol Device {
/// Get the current RTC time
Get() -> (struct {
rtc Time;
});
/// Set the RTC time
Set(struct {
rtc Time;
}) -> (struct {
status zx.status;
});
};