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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Channel data types definitions
20 #ifndef SENSRVILLUMINATIONSENSOR_H
21 #define SENSRVILLUMINATIONSENSOR_H
25 #include <sensrvtypes.h>
28 // ILLUMINATION RELATED CHANNELS
31 * - Name: Ambient light event channel type
33 * - Datatype: TSensrvAmbientLightData
34 * - Description: Ambient light events
36 const TSensrvChannelTypeId KSensrvChannelTypeIdAmbientLightData = 0x2000BF16;
39 // ILLUMINATION RELATED DATATYPES
41 class TSensrvAmbientLightData
46 * Brighness constants for ambien light sensor data channel.
48 static const TUint8 KAmbientLightVeryDark = 0;
49 static const TUint8 KAmbientLightDark = 20;
50 static const TUint8 KAmbientLightTwilight = 40;
51 static const TUint8 KAmbientLightLight = 60;
52 static const TUint8 KAmbientLightBright = 80;
53 static const TUint8 KAmbientLightSunny = 100;
56 * Channel data type Id number
58 static const TSensrvChannelDataTypeId KDataTypeId = 0x2000BF16;
61 * Channel data type index numbers
63 enum TSensrvAmbientLightDataIndexes
72 * - Item name: Sampling time
74 * - Description: Timestamp for a sample
79 * - Item name: Ambient light
81 * - Description: Percentage value (0..100) of Ambient light sensor's brightness.
87 #endif //SENSRVILLUMINATIONSENSOR_H