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 MAGNETICNORTHSENSOR_H
21 #define MAGNETICNORTHSENSOR_H
25 #include <sensrvtypes.h>
27 // TILT RELATED CHANNELS
30 * - Name: Magnetic north channel data
32 * - Datatype: TSensrvMagneticNorthData
33 * - Description: The magnetic north data describes the angle between the
34 * device and magnetic north.
36 const TSensrvChannelTypeId KSensrvChannelTypeIdMagneticNorthData = 0x2000BEDF;
39 // TILT RELATED DATATYPES
42 * Tilt angel data type
44 class TSensrvMagneticNorthData
48 * Channel data type Id number
50 static const TSensrvChannelDataTypeId KDataTypeId = 0x2000BEDF;
53 * Channel data type index numbers
55 enum TSensrvMagneticNorthDataIndexes
58 EAngleFromMagneticNorth
64 * - Item name: Sampling time.
67 * - Description: Timestamp for a sample.
72 * - Item name: Tilt angle
74 * - Conditions: Single limit and range
75 * - Description: The angle between the magnetic north and the device heading.
77 TInt iAngleFromMagneticNorth;
80 #endif //MAGNETICNORTHSENSOR_H