diff src/condat/com/include/light.h @ 214:adfdbcd360fd

backlight evolution: API between Condat driver and MFW With this change, the API between the Condat backlight driver and its user in MFW now carries more abstract backlight state codes (fully off, fully on, in call, charging boot mode) instead of 0-255 levels. This change is needed in order to more properly support different hardware targets with different capabilities and approaches in terms of backlight handling.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 23 Apr 2021 23:52:02 +0000
parents 8697f358f505
children
line wrap: on
line diff
--- a/src/condat/com/include/light.h	Thu Apr 22 21:23:16 2021 +0000
+++ b/src/condat/com/include/light.h	Fri Apr 23 23:52:02 2021 +0000
@@ -33,9 +33,8 @@
  */
 #define LIGHT_STATUS_OFF           0
 #define LIGHT_STATUS_ON            1
-#define LIGHT_STATUS_DIMMED        2
-#define LIGHT_STATUS_INTERMEDIATE  3
-#define LIGHT_STATUS_BRIGHT        4
+#define LIGHT_STATUS_INCALL        2
+#define LIGHT_STATUS_CHG_BOOT      3
 
 #define LIGHT_STATUS_GREEN         5
 #define LIGHT_STATUS_ORANGE        6
@@ -57,9 +56,4 @@
 EXTERN UBYTE light_SetStatus (UBYTE in_DeviceID, UBYTE in_NewStatus);
 EXTERN UBYTE light_GetStatus (UBYTE in_DeviceID, UBYTE * in_StatusPtr);
 
-void light_setBacklightOn      (void);
-void light_setBacklightOnLevel (UBYTE level);
-void light_setBacklightIdle    (void);
-void light_setBacklightOff     (void);
-
 #endif