Lines Matching +full:led +full:- +full:1
2 * QEMU single LED device
4 * Copyright (C) 2020 Philippe Mathieu-Daudé <f4bug@amsat.org>
6 * SPDX-License-Identifier: GPL-2.0-or-later
12 #include "hw/qdev-core.h"
14 #define TYPE_LED "led"
17 * LEDColor: Color of a LED
19 * This set is restricted to physically available LED colors.
21 * LED colors from 'Table 1. Product performance of LUXEON Rebel Color
23 * https://www.lumileds.com/products/color-leds/luxeon-rebel-color/
48 * Determines whether a GPIO is using a positive (active-high)
55 DECLARE_INSTANCE_CHECKER(LEDState, LED, TYPE_LED)
58 * led_set_intensity: Set the intensity of a LED device
59 * @s: the LED object
66 * @s: the LED object
68 * Returns: The LED intensity as percentage in range 0 to 100.
73 * led_set_state: Set the state of a LED device
74 * @s: the LED object
75 * @is_emitting: boolean indicating whether the LED is emitting
77 * This utility is meant for LED connected to GPIO.
82 * led_create_simple: Create and realize a LED device
85 * @color: color of the LED
86 * @description: description of the LED (optional)
91 * Returns: The newly allocated and instantiated LED object.