blob: 9abc25c5f43f81c5d4528550f88259268112b707 [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.backlight;
struct State {
bool on;
// The unitless brightness value on a linear scale where 0 is the minimum
// brightness and 255 is the maximum brightness.
uint8 brightness;
};
[Layout = "Simple"]
interface Device {
// Gets the current backlight brightness
1: GetState() -> (State state);
// Sets the current backlight brightness
2: SetState(State state);
};