// Copyright 2022 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 sample.i2ctemperature; | |
using zx; | |
// Protocol for interacting with I2cTemperature. | |
protocol Device { | |
/// Sends a command to measure the temperature, then read | |
/// the value. | |
ReadTemperature() -> (struct { | |
temperature float32; | |
}) error zx.status; | |
/// Sends a command to reset the sensor. | |
ResetSensor() -> (struct {}) error zx.status; | |
}; |