blob: 11d6edca91b3a2f44616bad0add306e69a88c839 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/*! \file display_shared.hch
*
* \brief Datastructures and defines for usage when interacting with the
* display library.
*
* \section project Project information.
* Graphic Equalizer 2\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
/*! \struct skindata_t
* \brief This struct contains all area- dimensions and color information
* for the skin.
*/
struct skindata_t {
/*! \struct skin_info_t
* \brief Structure containing the four boundry limits of an area and
* maximal two colors per area.
*/
struct skin_info_t {
unsigned 10 area_bottom; /*!< lowest point registerd in the area */
unsigned 10 area_top; /*!< highest point registerd in the area */
unsigned 10 area_left; /*!< leftmost point registerd in the area */
unsigned 10 area_right; /*!< rightmost point registerd in the area */
unsigned 24 color_primary; /*!< primary color for this area */
unsigned 24 color_secondary; /*!< optionally an area can have a second color */
};
struct skin_info_t waveform; /*!< We store all information about the waveform area here. */
struct skin_info_t spectrum; /*!< We store all information about the spectrum analyzer area here. */
struct skin_info_t volume; /*!< We store all information about the volume control area here. */
struct skin_info_t equalizer; /*!< We store all information about the equalizerbars here. */
};
#define AREA_WAVEFORM 0x01 /*!< Waveform area. */
#define AREA_VOLUME_YAXIS 0x02 /*!< Volume control on the Y plane. */
#define AREA_SPECTRUM_ANALYZER 0x03 /*!< Spectrum Analyzer area. */
#define BUTTON_LOG 0x04 /*!< Logarithmic display button. */
#define BUTTON_DEMO 0x05 /*!< Demo preset button. */
#define BUTTON_RESET 0x06 /*!< Reset presets button. */
#define BUTTON_PRESET_1 0x07 /*!< Button for switching to preset 1 */
#define BUTTON_PRESET_2 0x08 /*!< Button for switching to preset 2 */
#define BUTTON_PRESET_3 0x09 /*!< Button for switching to preset 3 */
#define BUTTON_PRESET_4 0x0a /*!< Button for switching to preset 4 */
#define BUTTON_PRESET_5 0x0b /*!< Button for switching to preset 5 */
#define BUTTON_PRESET_6 0x0c /*!< Button for switching to preset 6 */
#define BUTTON_CONVEX_FULL 0x0d /*!< / - \ 'Convex' mode Button*/
#define BUTTON_CONVEX_HALF 0x0e /*!< /\ 'Convex' mode Button */
#define BUTTON_PRECISE 0x0f /*!< | 'Precise' selection Button */
#define BUTTON_CONCAVE_HALF 0x10 /*!< \/ 'Concave' mode Button */
#define BUTTON_CONCAVE_FULL 0x11 /*!< \ _ / 'Concave' mode Button */
#define BUTTON_HELP 0x12 /*!< Button to display help screen. */
#define BUTTON_MODE 0x13 /*!< Button to change operation mode. */
#define AREA_EQUALIZER_MIN 0x80 /*!< First bar of the Equalizer Area. */
#define AREA_EQUALIZER_MAX 0xff /*!< Last bar of the Equalizer Area. */
#else
#error "ERROR file display_shared.hch multiple times included"
#endif /* --- _DISPLAY_SHARED_HCH --- */
|