2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * The API provides the vibra related Central Repository keys.
16 * These keys provide information on the vibra setting controlled by
17 * profiles, maximum vibrating time supported by the device and
18 * minimum time vibra cannot be started after it was forcibly
19 * turned off when maximum time was reached. In addition keys
20 * provide tactile feedback setting controlled by profiles and
21 * default intensity and duration for feedback vibration.
22 * This interface relies on the Central Repository (CenRep) interface provided
24 * The CenRep UID is KCRUidVibraCtrl and following keys are provided:
25 * - KVibraCtrlProfileVibraEnabled
40 #ifndef HWRMVIBRASDKCRKEYS_H
41 #define HWRMVIBRASDKCRKEYS_H
46 * CenRep UID for all vibra related settings keys provided by this API.
51 const TUid KCRUidVibraCtrl = {0x10200C8B};
54 * Vibra setting controlled by profiles.
56 * Possible integer values:
58 * 0 = Vibra is off in profile (default value) <br>
59 * 1 = Vibra is on in profile <br>
64 const TUint32 KVibraCtrlProfileVibraEnabled = 0x00000001;
67 * Maximum vibrating time supported by device.
69 * Value is milliseconds as an integer.
70 * If value is zero, no maximum time is supported.
71 * Maximum supported time is TMaxTInt microseconds in milliseconds.
75 * Default value: 10000.
80 const TUint32 KVibraCtrlMaxTime = 0x00000002;
83 * Minimum time vibra cannot be started after it was
84 * forcibly turned off when maximum time was reached.
85 * This can be used to enforce vibra cooling after long
88 * Value is milliseconds as an integer.
97 const TUint32 KVibraMinOffTime = 0x00000003;
100 * Tactile feedback setting controlled by Profiles.
102 * Possible integer values:
104 * 0 = Tactile feedback is off in profile (default value) <br>
105 * 1 = Tactile feedback is on in profile <br>
110 const TUint32 KVibraCtrlProfileFeedbackEnabled = 0x00000004;
113 * Tactile feedback vibration default intensity.
115 * Possible default intensity values are from the range -100...100.
117 * Value is read-only.
124 const TUint32 KVibraCtrlFeedbackIntensity = 0x00000005;
127 * Tactile feedback vibration default duration.
129 * Value is milliseconds as an integer.
131 * Value is read-only.
138 const TUint32 KVibraCtrlFeedbackDuration = 0x00000006;
142 #endif // HWRMVIBRASDKCRKEYS_H