/*! \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 --- */