1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Daniel Stenberg
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
26 bool is_backlight_on(bool ignore_always_off
);
27 void backlight_on(void);
28 void backlight_off(void);
29 void backlight_set_timeout(int value
);
32 void backlight_init(void);
33 void backlight_close(void);
35 int backlight_get_current_timeout(void);
37 #if defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
38 void backlight_set_fade_in(int value
);
39 void backlight_set_fade_out(int value
);
40 #elif defined(HAVE_BACKLIGHT_FADING_BOOL_SETTING)
41 void backlight_set_fade_in(bool value
);
42 void backlight_set_fade_out(bool value
);
45 void backlight_set_timeout_plugged(int value
);
47 #ifdef HAS_BUTTON_HOLD
48 void backlight_hold_changed(bool hold_button
);
49 void backlight_set_on_button_hold(int index
);
53 void backlight_lcd_sleep_countdown(bool start
);
54 #ifdef HAVE_LCD_SLEEP_SETTING
55 void lcd_set_sleep_after_backlight_off(int index
);
59 #else /* !HAVE_BACKLIGHT */
60 #define backlight_init()
61 #endif /* !HAVE_BACKLIGHT */
63 #ifdef HAVE_REMOTE_LCD
64 void remote_backlight_on(void);
65 void remote_backlight_off(void);
66 void remote_backlight_set_timeout(int value
);
67 void remote_backlight_set_timeout_plugged(int value
);
68 bool is_remote_backlight_on(bool ignore_always_off
);
70 #ifdef HAS_REMOTE_BUTTON_HOLD
71 void remote_backlight_hold_changed(bool rc_hold_button
);
72 void remote_backlight_set_on_button_hold(int index
);
74 #endif /* HAVE_REMOTE_LCD */
77 void sim_backlight(int value
);
78 void sim_remote_backlight(int value
);
81 #ifdef HAVE_BACKLIGHT_BRIGHTNESS
82 extern int backlight_brightness
;
83 void backlight_set_brightness(int val
);
84 #endif /* HAVE_BACKLIGHT_BRIGHTNESS */
86 #ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
87 void buttonlight_set_brightness(int val
);
88 #endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
90 #ifdef HAVE_BUTTON_LIGHT
91 void buttonlight_on(void);
92 void buttonlight_off(void);
93 void buttonlight_set_timeout(int value
);
96 /* Private API for use in target tree backlight code only */
97 #ifdef HAVE_BUTTON_LIGHT
98 extern int _buttonlight_timeout
;
101 #endif /* BACKLIGHT_H */