If bootloader installation failed abort logger so the user needs to confirm the error...
[Rockbox.git] / firmware / export / backlight.h
blob15dfbf1ddfb125b1383a729cd2e66d65b19af45e
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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 ****************************************************************************/
19 #ifndef BACKLIGHT_H
20 #define BACKLIGHT_H
22 #include "config.h"
24 bool is_backlight_on(void);
25 void backlight_on(void);
26 void backlight_off(void);
27 void backlight_set_timeout(int index);
29 #ifdef HAVE_BACKLIGHT
30 void backlight_init(void);
32 #if defined(IAUDIO_X5) && !defined(SIMULATOR)
33 #define X5_BACKLIGHT_SHUTDOWN
34 void x5_backlight_shutdown(void);
35 #endif
37 int backlight_get_current_timeout(void);
39 #ifdef HAVE_BACKLIGHT_PWM_FADING
40 void backlight_set_fade_in(int index);
41 void backlight_set_fade_out(int index);
42 #endif
44 void backlight_set_timeout_plugged(int index);
45 extern const signed char backlight_timeout_value[];
47 #ifdef HAS_BUTTON_HOLD
48 void backlight_hold_changed(bool hold_button);
49 void backlight_set_on_button_hold(int index);
50 #endif
52 #ifdef HAVE_LCD_SLEEP
53 void lcd_set_sleep_after_backlight_off(int index);
54 extern const signed char lcd_sleep_timeout_value[];
55 #endif
57 #else /* !HAVE_BACKLIGHT */
58 #define backlight_init()
59 #endif /* !HAVE_BACKLIGHT */
61 #ifdef HAVE_REMOTE_LCD
62 void remote_backlight_on(void);
63 void remote_backlight_off(void);
64 void remote_backlight_set_timeout(int index);
65 void remote_backlight_set_timeout_plugged(int index);
66 bool is_remote_backlight_on(void);
68 #ifdef HAS_REMOTE_BUTTON_HOLD
69 void remote_backlight_hold_changed(bool rc_hold_button);
70 void remote_backlight_set_on_button_hold(int index);
71 #endif
72 #endif /* HAVE_REMOTE_LCD */
74 #ifdef SIMULATOR
75 void sim_backlight(int value);
76 void sim_remote_backlight(int value);
77 #endif
79 #ifdef HAVE_BACKLIGHT_BRIGHTNESS
80 void backlight_set_brightness(int val);
81 #endif /* HAVE_BACKLIGHT_BRIGHTNESS */
83 #ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
84 void buttonlight_set_brightness(int val);
85 #endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
87 #ifdef HAVE_BUTTON_LIGHT
88 void button_backlight_on(void);
89 void button_backlight_off(void);
90 void button_backlight_set_timeout(int index);
91 #endif
93 #endif /* BACKLIGHT_H */