HAVE_ADJUSTABLE_CPU_FREQ isn't defined for simulators, so we don't have to check...
[Rockbox.git] / apps / status.h
blob68319257b8b6290ffe797390442579210154aee6
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 Linus Nielsen Feltzing
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 _STATUS_H
20 #define _STATUS_H
22 extern enum playmode ff_mode;
24 extern long switch_tick;
25 extern bool battery_state;
26 #ifdef HAVE_CHARGING
27 extern int battery_charge_step;
28 #endif
30 #if defined(HAVE_LCD_CHARCELLS)
31 extern bool record;
32 extern bool audio;
33 extern bool param;
34 extern bool usb;
35 #endif
37 enum playmode
39 STATUS_PLAY,
40 STATUS_STOP,
41 STATUS_PAUSE,
42 STATUS_FASTFORWARD,
43 STATUS_FASTBACKWARD,
44 STATUS_RECORD,
45 STATUS_RECORD_PAUSE,
46 STATUS_RADIO,
47 STATUS_RADIO_PAUSE
50 void status_init(void);
51 void status_set_ffmode(enum playmode mode);
52 enum playmode status_get_ffmode(void);
53 int current_playmode(void);
55 #ifdef SIMULATOR
56 #include <time.h>
57 #endif
58 #ifdef HAVE_LCD_CHARCELLS
59 void status_set_record(bool b);
60 void status_set_audio(bool b);
61 void status_set_param(bool b);
62 void status_set_usb(bool b);
63 #endif /* HAVE_LCD_CHARCELLS */
65 #endif /* _STATUS_H */