summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/display_shared.hch
blob: 66e81112d2475d7cf9f4b05d99f11bffbd954f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*! \file display_shared.hch
 *
 * \section generic Message build up information and more
 *
 * \section project Project information.
 * Project Graphic Equalizer\n
 * \author 
 * \date 20041011
 * \version 0.1
 *
 * \section copyright Copyright
 * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
 *
 * \section history Change history
 * 20041011: \n	Initial version
 *
 ********************************************************************/
 
#ifndef _DISPLAY_SHARED_HCH
#define _DISPLAY_SHARED_HCH 1



/*
 * Volume Control lookuptable.
 * TODO: This table is now hardcoded. To ensure full skinability this table
 * should be dynamically loaded.
 */
rom unsigned 6 volumecontrol_table[46] = {31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 12, 11, 11, 10, 10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 0, 0, 0};

/*
 * Equalizer lookuptabe.
 * TODO: This table is now hardcoded. To ensure full skinability this table
 * should be dynamically loaded.
 */
rom unsigned 4 equalizer_table[66] = {15, 15, 15, 15, 15, 14, 14, 14, 14, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 11, 10, 10, 10, 10, 9, 9, 9, 9, 8, 8, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0};



/*
 * Define all area's of the display.
 */
#define AREA_WAVEFORM		0x01
#define AREA_VOLUME_YAXIS	0x02
#define AREA_SPECTRUM_ANALYZER	0x03

#define BUTTON_HELP		0x12

#define AREA_EQUALIZER_MIN	0x80
#define AREA_EQUALIZER_MAX	0xff

#else
#error "ERROR file display_shared.hch multiple times included"
#endif /* --- _DISPLAY_SHARED_HCH --- */