Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 2.75 KB

keypad.h

File metadata and controls

68 lines (54 loc) · 2.75 KB
 
Dec 16, 2010
Dec 16, 2010
1
2
3
4
5
/**
* @file keypad.h
* Headers for the keypad module
* <p>
* Copyright © 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
May 17, 2019
May 17, 2019
6
* Copyright (C) 2014-2019 Jolla Ltd.
Dec 16, 2010
Dec 16, 2010
7
8
* <p>
* @author David Weinehall <david.weinehall@nokia.com>
May 17, 2019
May 17, 2019
9
10
* @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
* @author Matti Lehtimäki <matti.lehtimaki@gmail.com>
Dec 16, 2010
Dec 16, 2010
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* mce is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with mce. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _KEYPAD_H_
#define _KEYPAD_H_
/** Path to keypad backlight fade-time /sys entry */
Sep 18, 2018
Sep 18, 2018
28
#define MCE_KEYPAD_BACKLIGHT_FADETIME_SYS_PATH MCE_LED_DIRECT_SYS_PATH MCE_LED_COVER_PREFIX "/time"
Dec 16, 2010
Dec 16, 2010
29
30
/** Path to keyboard backlight /sys directory */
Sep 18, 2018
Sep 18, 2018
31
#define MCE_KEYBOARD_BACKLIGHT_SYS_PATH "/sys/class/leds/keyboard"
May 26, 2014
May 26, 2014
32
Dec 16, 2010
Dec 16, 2010
33
/** Path to the SysFS interface for the keyboard backlight fade-time */
Sep 18, 2018
Sep 18, 2018
34
#define MCE_KEYBOARD_BACKLIGHT_FADETIME_SYS_PATH MCE_LED_DIRECT_SYS_PATH MCE_LED_KEYBOARD_PREFIX "/time"
Dec 16, 2010
Dec 16, 2010
35
36
/** Maximum Lysti backlight LED current */
Sep 18, 2018
Sep 18, 2018
37
#define MAXIMUM_LYSTI_BACKLIGHT_LED_CURRENT 50 /* 5 mA */
Dec 16, 2010
Dec 16, 2010
38
39
/** Default key backlight brightness */
Sep 18, 2018
Sep 18, 2018
40
#define DEFAULT_KEY_BACKLIGHT_LEVEL 255
Dec 16, 2010
Dec 16, 2010
41
42
/** Default key backlight timeout in seconds */
Sep 18, 2018
Sep 18, 2018
43
#define DEFAULT_KEY_BACKLIGHT_TIMEOUT 30 /* 30 s */
Dec 16, 2010
Dec 16, 2010
44
45
/** Default key backlight fade in time in milliseconds */
Sep 18, 2018
Sep 18, 2018
46
#define DEFAULT_KEY_BACKLIGHT_FADE_IN_TIME 250 /* 250 ms */
Dec 16, 2010
Dec 16, 2010
47
48
/** Default key backlight fade out time in milliseconds */
Sep 18, 2018
Sep 18, 2018
49
#define DEFAULT_KEY_BACKLIGHT_FADE_OUT_TIME 1000 /* 1000 ms */
Dec 16, 2010
Dec 16, 2010
50
51
52
#ifndef MCE_CONF_KEYPAD_GROUP
/** Name of Keypad configuration group */
Sep 18, 2018
Sep 18, 2018
53
# define MCE_CONF_KEYPAD_GROUP "KeyPad"
May 26, 2014
May 26, 2014
54
#endif
Dec 16, 2010
Dec 16, 2010
55
56
/** Name of configuration key for keyboard backlight timeout */
Sep 18, 2018
Sep 18, 2018
57
#define MCE_CONF_KEY_BACKLIGHT_TIMEOUT "BacklightTimeout"
Dec 16, 2010
Dec 16, 2010
58
59
/** Name of configuration key for keyboard backlight fade in time */
Sep 18, 2018
Sep 18, 2018
60
#define MCE_CONF_KEY_BACKLIGHT_FADE_IN_TIME "BacklightFadeInTime"
Dec 16, 2010
Dec 16, 2010
61
62
/** Name of configuration key for keyboard backlight fade out time */
Sep 18, 2018
Sep 18, 2018
63
#define MCE_CONF_KEY_BACKLIGHT_FADE_OUT_TIME "BacklightFadeOutTime"
Dec 16, 2010
Dec 16, 2010
64
Sep 29, 2015
Sep 29, 2015
65
/** Name of configuration key for keyboard backlight path */
Sep 18, 2018
Sep 18, 2018
66
#define MCE_CONF_KEY_BACKLIGHT_SYS_PATH "BrightnessDirectory"
Sep 29, 2015
Sep 29, 2015
67
Dec 16, 2010
Dec 16, 2010
68
#endif /* _KEYPAD_H_ */