blob: 61e128b734d9d14b2770bfda43911d357a7e250b [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
GetState() -> (State state);
// Sets the current backlight brightness
SetState(State state);
};