1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Daniel Stenberg
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
24 bool is_backlight_on(void);
25 void backlight_on(void);
26 void backlight_off(void);
27 void backlight_set_timeout(int index
);
30 void backlight_init(void);
32 int backlight_get_current_timeout(void);
34 #ifdef HAVE_BACKLIGHT_PWM_FADING
35 void backlight_set_fade_in(int index
);
36 void backlight_set_fade_out(int index
);
39 void backlight_set_timeout_plugged(int index
);
40 extern const signed char backlight_timeout_value
[];
42 #ifdef HAS_BUTTON_HOLD
43 void backlight_hold_changed(bool hold_button
);
44 void backlight_set_on_button_hold(int index
);
48 void lcd_set_sleep_after_backlight_off(int index
);
49 extern const signed char lcd_sleep_timeout_value
[];
52 #else /* !HAVE_BACKLIGHT */
53 #define backlight_init()
54 #endif /* !HAVE_BACKLIGHT */
56 #ifdef HAVE_REMOTE_LCD
57 void remote_backlight_on(void);
58 void remote_backlight_off(void);
59 void remote_backlight_set_timeout(int index
);
60 void remote_backlight_set_timeout_plugged(int index
);
61 bool is_remote_backlight_on(void);
63 #ifdef HAS_REMOTE_BUTTON_HOLD
64 void remote_backlight_hold_changed(bool rc_hold_button
);
65 void remote_backlight_set_on_button_hold(int index
);
67 #endif /* HAVE_REMOTE_LCD */
70 void sim_backlight(int value
);
71 void sim_remote_backlight(int value
);
74 #ifdef HAVE_BACKLIGHT_BRIGHTNESS
75 void backlight_set_brightness(int val
);
76 #endif /* HAVE_BACKLIGHT_BRIGHTNESS */
78 #ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
79 void buttonlight_set_brightness(int val
);
80 #endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
82 #ifdef HAVE_BUTTON_LIGHT
83 void button_backlight_on(void);
84 void button_backlight_off(void);
85 void button_backlight_set_timeout(int index
);
88 #endif /* BACKLIGHT_H */