sensrvtappingsensor.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : sensrvtappingsensor.h
00004 *  Part of     : Sensor Definitions API
00005 *  Description : Channel data types definitions
00006 *  Version     : %version:  4 %
00007 *
00008 *  Copyright © 2008 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 * Template version: 4.1
00018 */
00019 
00020 
00021 #ifndef SENSRVTAPPINGSENSOR_H
00022 #define SENSRVTAPPINGSENSOR_H
00023 
00024 //  INCLUDES
00025 #include <e32base.h>
00026 #include <sensrvtypes.h> 
00027 #include <sensrvaccelerometersensor.h>
00028 
00029 // TAPPING RELATED CHANNELS 
00030 
00037 const TSensrvChannelTypeId KSensrvChannelTypeIdAccelerometerDoubleTappingData = 0x10205081;
00038 
00039 // TAPPING RELATED PROPERTIES
00040 
00050 const TSensrvPropertyId KSensrvPropIdDblTapAxisActive = KSensrvPropIdAxisActive;
00051 
00060 const TSensrvPropertyId KSensrvPropIdDblTapThreshold = 0x00001002;
00061 
00071 const TSensrvPropertyId KSensrvPropIdDblTapDuration = 0x00001003;
00072 
00081 const TSensrvPropertyId KSensrvPropIdDblTapLatency = 0x00001004;
00082 
00091 const TSensrvPropertyId KSensrvPropIdDblTapInterval = 0x00001005;
00092 
00093 // TAPPING RELATED DATATYPES
00094 
00100 const TUint8 KSensrvAccelerometerDirectionXplus         = 0x01;
00101 const TUint8 KSensrvAccelerometerDirectionXminus        = 0x02;
00102 const TUint8 KSensrvAccelerometerDirectionYplus         = 0x04;
00103 const TUint8 KSensrvAccelerometerDirectionYminus        = 0x08;
00104 const TUint8 KSensrvAccelerometerDirectionZplus         = 0x10;
00105 const TUint8 KSensrvAccelerometerDirectionZminus        = 0x20;
00106 
00110 class TSensrvTappingData 
00111     {
00112 public:
00116     static const TSensrvChannelDataTypeId KDataTypeId = 0x1020507F;
00117 
00121         enum TSensrvAccelerometerAxisDataIndexes
00122           {
00123           ETimeStamp = 0,
00124           EDirection
00125           };
00126 
00127 public:
00134     TTime iTimeStamp;    
00135     
00143     TUint32 iDirection;  
00144     };
00145 
00146 #endif //SENSRVTAPPINGSENSOR_H
00147 
00148 // End of File

Copyright © Nokia Corporation 2001-2007
Back to top