blob: 3dfa04c5d360727d4c8a21d5d675b0dae39eb46b [file] [log] [blame]
// 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.
library fuchsia.hardware.adc;
using zx;
protocol Device {
/// Get adc resolution in number of bits
GetResolution() -> (uint8 resolution) error zx.status;
/// Get sample - raw count from adc
GetSample() -> (uint32 value) error zx.status;
/// Get sample normalized to [0.0-1.0]
GetNormalizedSample() -> (float32 value) error zx.status;
};