/
keypad.h
68 lines (54 loc) · 2.75 KB
1
2
3
4
5
/**
* @file keypad.h
* Headers for the keypad module
* <p>
* Copyright © 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
6
* Copyright (C) 2014-2019 Jolla Ltd.
7
8
* <p>
* @author David Weinehall <david.weinehall@nokia.com>
9
10
* @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
* @author Matti Lehtimäki <matti.lehtimaki@gmail.com>
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 */
28
#define MCE_KEYPAD_BACKLIGHT_FADETIME_SYS_PATH MCE_LED_DIRECT_SYS_PATH MCE_LED_COVER_PREFIX "/time"
29
30
/** Path to keyboard backlight /sys directory */
31
#define MCE_KEYBOARD_BACKLIGHT_SYS_PATH "/sys/class/leds/keyboard"
32
33
/** Path to the SysFS interface for the keyboard backlight fade-time */
34
#define MCE_KEYBOARD_BACKLIGHT_FADETIME_SYS_PATH MCE_LED_DIRECT_SYS_PATH MCE_LED_KEYBOARD_PREFIX "/time"
35
36
/** Maximum Lysti backlight LED current */
37
#define MAXIMUM_LYSTI_BACKLIGHT_LED_CURRENT 50 /* 5 mA */
38
39
/** Default key backlight brightness */
40
#define DEFAULT_KEY_BACKLIGHT_LEVEL 255
41
42
/** Default key backlight timeout in seconds */
43
#define DEFAULT_KEY_BACKLIGHT_TIMEOUT 30 /* 30 s */
44
45
/** Default key backlight fade in time in milliseconds */
46
#define DEFAULT_KEY_BACKLIGHT_FADE_IN_TIME 250 /* 250 ms */
47
48
/** Default key backlight fade out time in milliseconds */
49
#define DEFAULT_KEY_BACKLIGHT_FADE_OUT_TIME 1000 /* 1000 ms */
50
51
52
#ifndef MCE_CONF_KEYPAD_GROUP
/** Name of Keypad configuration group */
53
# define MCE_CONF_KEYPAD_GROUP "KeyPad"
54
#endif
55
56
/** Name of configuration key for keyboard backlight timeout */
57
#define MCE_CONF_KEY_BACKLIGHT_TIMEOUT "BacklightTimeout"
58
59
/** Name of configuration key for keyboard backlight fade in time */
60
#define MCE_CONF_KEY_BACKLIGHT_FADE_IN_TIME "BacklightFadeInTime"
61
62
/** Name of configuration key for keyboard backlight fade out time */
63
#define MCE_CONF_KEY_BACKLIGHT_FADE_OUT_TIME "BacklightFadeOutTime"
64
65
/** Name of configuration key for keyboard backlight path */
66
#define MCE_CONF_KEY_BACKLIGHT_SYS_PATH "BrightnessDirectory"
67
68
#endif /* _KEYPAD_H_ */