2 * Copyright (c) 2008 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.
14 * Description: Channel data types definitions
20 #ifndef SENSRVTAPPINGSENSOR_H
21 #define SENSRVTAPPINGSENSOR_H
25 #include <sensrvtypes.h>
26 #include <sensrvaccelerometersensor.h>
28 // TAPPING RELATED CHANNELS
31 * - Name: Double tapping event channel type
33 * - Datatype: TSensrvTappingData
34 * - Description: Double tapping events
36 const TSensrvChannelTypeId KSensrvChannelTypeIdAccelerometerDoubleTappingData = 0x10205081;
38 // TAPPING RELATED PROPERTIES
41 * - Name: Double tapping axis active
43 * - Scope: Channel item property
46 * - Description: Indicates is sensor axis activated.
47 * Value is one if the axis is activated, zero otherwise.
49 const TSensrvPropertyId KSensrvPropIdDblTapAxisActive = KSensrvPropIdAxisActive;
52 * - Name: Double tap duration threshold
54 * - Scope: Channel property
56 * - Capability: ReadDeviceData, WriteDeviceData
57 * - Description: Threshold as an offset of the selected range.
59 const TSensrvPropertyId KSensrvPropIdDblTapThreshold = 0x00001002;
62 * - Name: Double tap duration in milliseconds
64 * - Scope: Channel property
67 * - Description: Scalar Integer representing the duration of the tap value.
68 * Not dependent upon ODR.
70 const TSensrvPropertyId KSensrvPropIdDblTapDuration = 0x00001003;
73 * - Name: Double tap latency
75 * - Scope: Channel property
78 * - Description: Double tap latency in milliseconds
80 const TSensrvPropertyId KSensrvPropIdDblTapLatency = 0x00001004;
83 * - Name: Double tap interval
85 * - Scope: Channel property
88 * - Description: Double tap interval in milliseconds
90 const TSensrvPropertyId KSensrvPropIdDblTapInterval = 0x00001005;
92 // TAPPING RELATED DATATYPES
95 * Direction of the tapping data. If direction (plus or minus) is not known,
96 * direction is, for example in x-axis case
97 * KSensrvAccelerometerDirectionXplus | KSensrvAccelerometerDirectionXminus
99 const TUint8 KSensrvAccelerometerDirectionXplus = 0x01;
100 const TUint8 KSensrvAccelerometerDirectionXminus = 0x02;
101 const TUint8 KSensrvAccelerometerDirectionYplus = 0x04;
102 const TUint8 KSensrvAccelerometerDirectionYminus = 0x08;
103 const TUint8 KSensrvAccelerometerDirectionZplus = 0x10;
104 const TUint8 KSensrvAccelerometerDirectionZminus = 0x20;
109 class TSensrvTappingData
113 * Channel data type Id number
115 static const TSensrvChannelDataTypeId KDataTypeId = 0x1020507F;
118 * Channel data type index numbers
120 enum TSensrvAccelerometerAxisDataIndexes
128 * - Item name: Sampling time.
131 * - Description: Timestamp for a sample.
136 * - Item name: Tapping direction bitmask
138 * - Conditions: Binary
139 * - Description: Direction bitmask of the tapping event.
140 * See constant definitions above.
145 #endif //SENSRVTAPPINGSENSOR_H