summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/hardware/lights.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hardware/lights.h b/include/hardware/lights.h
index fccd242..4973829 100644
--- a/include/hardware/lights.h
+++ b/include/hardware/lights.h
@@ -88,6 +88,11 @@ __BEGIN_DECLS
#define BRIGHTNESS_MODE_SENSOR 1
/**
+ * Light mode allows multiple LEDs
+ */
+#define LIGHT_MODE_MULTIPLE_LEDS 0x01
+
+/**
* The parameters that can be set for a given light.
*
* Not all lights must support all parameters. If you
@@ -122,6 +127,12 @@ struct light_state_t {
* Currently the values are BRIGHTNESS_MODE_USER and BRIGHTNESS_MODE_SENSOR.
*/
int brightnessMode;
+
+ /**
+ * Define the LEDs modes (multiple, ...).
+ * See the LIGHTS_MODE_* mask constants.
+ */
+ unsigned int ledsModes;
};
struct light_device_t {