blob: 0042f1936b5ec5cb9087487de0754ee4101b38ee [file]
// Copyright 2020 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.
@available(added=11)
library fuchsia.hardware.power.sensor;
using zx;
@discoverable
protocol Device {
GetPowerWatts() -> (struct {
power float32;
}) error zx.Status;
GetVoltageVolts() -> (struct {
voltage float32;
}) error zx.Status;
};
service Service {
device client_end:Device;
};