1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5library fuchsia.hardware.backlight;
6
7struct State {
8    bool on;
9    // The unitless brightness value on a linear scale where 0 is the minimum
10    // brightness and 255 is the maximum brightness.
11    uint8 brightness;
12};
13
14[Layout = "Simple"]
15interface Device {
16    // Gets the current backlight brightness
17    1: GetState() -> (State state);
18
19    // Sets the current backlight brightness
20    2: SetState(State state);
21};
22