4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: DongGi Jang <dg0402.jang@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 #ifndef __DEVICE_HAPTIC_H__
24 #define __DEVICE_HAPTIC_H__
31 * Default capability value
33 #define DEFAULT_MOTOR_COUNT 1
36 * Default device handle
38 #define DEFAULT_DEVICE_HANDLE 1
41 * Default duration value
43 #define DEFAULT_DURATION_VALUE 30
46 * Motor property for generic APIs
51 HAPTIC_PROP_LEVEL_MAX,
56 * Feedback level for generic APIs
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 */