2006-08-12 08:01:54 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 by Linus Nielsen Feltzing
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2006-08-12 08:01:54 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
2015-01-08 23:22:40 +00:00
|
|
|
bool backlight_hw_init(void);
|
|
|
|
void backlight_hw_on(void);
|
|
|
|
void backlight_hw_off(void);
|
|
|
|
void backlight_hw_brightness(int brightness);
|
2007-11-12 18:49:53 +00:00
|
|
|
|
2015-01-08 23:22:40 +00:00
|
|
|
void buttonlight_hw_brightness(int brightness);
|
|
|
|
void buttonlight_hw_on(void);
|
|
|
|
void buttonlight_hw_off(void);
|
2006-08-12 08:01:54 +00:00
|
|
|
#endif
|