diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/settings.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/firmware/settings.h b/firmware/settings.h new file mode 100644 index 0000000000..29c87d0468 --- /dev/null +++ b/firmware/settings.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by wavey@wavey.org | ||
11 | * | ||
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. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef __SETTINGS_H__ | ||
21 | #define __SETTINGS_H__ | ||
22 | |||
23 | /* data structures */ | ||
24 | |||
25 | typedef enum | ||
26 | { | ||
27 | RESUME_NONE, /* do not resume */ | ||
28 | RESUME_SONG, /* resume song at startup */ | ||
29 | RESUME_PLAYLIST /* resume playlist at startup */ | ||
30 | } resume_t; | ||
31 | |||
32 | typedef struct | ||
33 | { | ||
34 | /* audio settings */ | ||
35 | |||
36 | int volume; /* audio output volume: 0-100 0=off 100=max */ | ||
37 | int balance; /* stereo balance: 0-100 0=left 50=bal 100=right */ | ||
38 | int bass; /* bass eq: 0-100 0=off 100=max */ | ||
39 | int treble; /* treble eq: 0-100 0=low 100=high */ | ||
40 | int loudness; /* loudness eq: 0-100 0=off 100=max */ | ||
41 | int bass_boost; /* bass boost eq: 0-100 0=off 100=max */ | ||
42 | |||
43 | /* device settings */ | ||
44 | |||
45 | int contrast; /* lcd contrast: 0-100 0=low 100=high */ | ||
46 | int poweroff; /* power off timer: 0-100 0=never:each 1% = 60 secs */ | ||
47 | int backlight; /* backlight off timer: 0-100 0=never:each 1% = 10 secs */ | ||
48 | |||
49 | /* resume settings */ | ||
50 | |||
51 | resume_t resume; /* power-on song resume: 0=no. 1=yes song. 2=yes pl */ | ||
52 | int track_time; /* number of seconds into the track to resume */ | ||
53 | |||
54 | /* misc options */ | ||
55 | |||
56 | int loop_playlist; /* do we return to top of playlist at end? */ | ||
57 | |||
58 | } user_settings_t; | ||
59 | |||
60 | /* prototypes */ | ||
61 | |||
62 | int persist_all_settings( void ); | ||
63 | void reload_all_settings( user_settings_t *settings ); | ||
64 | void reset_settings( user_settings_t *settings ); | ||
65 | void display_current_settings( user_settings_t *settings ); | ||
66 | |||
67 | #endif /* __SETTINGS_H__ */ | ||
68 | |||
69 | |||
70 | |||