LEDs¶
API for manipulating LEDs.
Functions
-
struct metal_led *
metal_led_get(char *label)¶ Get a handle for an LED.
- Return
A handle to the LED, or NULL if none is found for the requested label
- Parameters
label: The DeviceTree label for the desired LED
-
struct metal_led *
metal_led_get_rgb(char *label, char *color)¶ Get a handle for a channel of an RGB LED.
- Return
A handle to the LED, or NULL if none is found for the requested label and color
- Parameters
label: The DeviceTree label for the desired LEDcolor: The color for the LED in the DeviceTree
-
__inline__ void
metal_led_enable(struct metal_led *led)¶ Enable an LED.
- Parameters
led: The handle for the LED
-
__inline__ void
metal_led_on(struct metal_led *led)¶ Turn an LED on.
- Parameters
led: The handle for the LED
-
struct
metal_led¶ - #include <led.h>
A handle for an LED.