2.0 alpha
[platform/core/system/devman.git] / include / device_haptic.h
1 /*
2  *  devman
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: DongGi Jang <dg0402.jang@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20 */
21
22
23 #ifndef __DEVICE_HAPTIC_H__
24 #define __DEVICE_HAPTIC_H__
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 /*
31  * Default capability value
32  */
33 #define DEFAULT_MOTOR_COUNT             1
34
35 /*
36  * Default device handle
37  */
38 #define DEFAULT_DEVICE_HANDLE           1
39
40 /*
41  * Default duration value
42  */
43 #define DEFAULT_DURATION_VALUE          30
44
45 /*
46  * Motor property for generic APIs
47  */
48         enum {
49                 HAPTIC_PROP_ENABLE,
50                 HAPTIC_PROP_LEVEL,
51                 HAPTIC_PROP_LEVEL_MAX,
52                 HAPTIC_PROP_ONESHOT,
53         };
54
55 /*
56  * Feedback level for generic APIs
57  */
58         enum {
59                 VIBE_FEEDBACK_LEVEL_0 = 0,      /* HAPTIC FEEDBACK LEVEL 0 */
60                 VIBE_FEEDBACK_LEVEL_1 = 2000,   /* HAPTIC_FEEDBACK_LEVEL_1 */
61                 VIBE_FEEDBACK_LEVEL_2 = 4000,   /* HAPTIC_FEEDBACK_LEVEL_2 */
62                 VIBE_FEEDBACK_LEVEL_3 = 6000,   /* HAPTIC_FEEDBACK_LEVEL_3 */
63                 VIBE_FEEDBACK_LEVEL_4 = 8000,   /* HAPTIC_FEEDBACK_LEVEL_4 */
64                 VIBE_FEEDBACK_LEVEL_5 = 10000,  /* HAPTIC_FEEDBACK_LEVEL_5 */
65         };
66
67 #ifdef __cplusplus
68 }
69 #endif
70 #endif
71