2006-08-12 08:01:54 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 by Linus Nielsen Feltzing
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef BACKLIGHT_TARGET_H
|
|
|
|
#define BACKLIGHT_TARGET_H
|
|
|
|
|
2007-01-07 06:38:57 +00:00
|
|
|
/* Use these to set the buttonlight mode */
|
|
|
|
enum buttonlight_mode
|
|
|
|
{
|
2007-01-08 08:53:36 +00:00
|
|
|
/* ON follows the setting */
|
2007-01-07 06:38:57 +00:00
|
|
|
BUTTONLIGHT_ON,
|
|
|
|
|
|
|
|
/* buttonlights always off */
|
|
|
|
BUTTONLIGHT_OFF,
|
|
|
|
|
2007-01-08 08:53:36 +00:00
|
|
|
/* buttonlights follow backlight */
|
2007-05-07 19:34:34 +00:00
|
|
|
BUTTONLIGHT_FOLLOW
|
2007-01-08 08:53:36 +00:00
|
|
|
};
|
2007-01-07 06:38:57 +00:00
|
|
|
|
2007-01-08 08:53:36 +00:00
|
|
|
/* Call this to flicker or signal the button lights. Only is effective for
|
|
|
|
* modes that take a trigger input.
|
|
|
|
*/
|
|
|
|
void __buttonlight_trigger(void);
|
2007-01-07 06:38:57 +00:00
|
|
|
|
2007-01-08 08:53:36 +00:00
|
|
|
/* map the mode from the command into the state machine entries */
|
|
|
|
/* See enum buttonlight_mode for available functions */
|
2007-05-07 19:34:34 +00:00
|
|
|
void __buttonlight_mode(enum buttonlight_mode mode);
|
2007-01-07 06:38:57 +00:00
|
|
|
|
2007-11-12 18:49:53 +00:00
|
|
|
bool _backlight_init(void);
|
|
|
|
void _backlight_on(void);
|
|
|
|
void _backlight_off(void);
|
|
|
|
void _backlight_set_brightness(int brightness);
|
|
|
|
|
|
|
|
void _buttonlight_set_brightness(int brightness);
|
|
|
|
void _buttonlight_on(void);
|
|
|
|
void _buttonlight_off(void);
|
2006-08-12 08:01:54 +00:00
|
|
|
#endif
|