1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XALEDARRAYITF_H |
|
19 #define XALEDARRAYITF_H |
|
20 |
|
21 #include "xaadptbasectx.h" |
|
22 |
|
23 /** MACROS **/ |
|
24 #define LED_COUNT 1 |
|
25 #define PRIMARY_LED 0 |
|
26 #define COLOR_MASK 1 |
|
27 |
|
28 /** TYPES **/ |
|
29 |
|
30 /** ENUMERATIONS **/ |
|
31 |
|
32 /** STRUCTURES **/ |
|
33 /* Definition of XALEDArrayItf implementation */ |
|
34 typedef struct XALEDArrayItfImpl_ |
|
35 { |
|
36 /* parent interface */ |
|
37 struct XALEDArrayItf_ itf; |
|
38 /* pointer to self */ |
|
39 struct XALEDArrayItfImpl_* self; |
|
40 |
|
41 /* variables */ |
|
42 XAuint32 lightMask; |
|
43 XAHSL color; |
|
44 |
|
45 |
|
46 /*Adaptation variables*/ |
|
47 XAAdaptationBaseCtx *adapCtx; |
|
48 |
|
49 } XALEDArrayItfImpl; |
|
50 |
|
51 /** METHODS **/ |
|
52 |
|
53 /* Base interface XALEDArrayItf implementation |
|
54 *See API Specification for method documentation |
|
55 */ |
|
56 XAresult XALEDArrayItfImpl_ActivateLEDArray ( XALEDArrayItf self, XAuint32 lightMask ); |
|
57 XAresult XALEDArrayItfImpl_IsLEDArrayActivated ( XALEDArrayItf self, XAuint32 * pLightMask ); |
|
58 XAresult XALEDArrayItfImpl_SetColor ( XALEDArrayItf self, XAuint8 index, const XAHSL * pColor ); |
|
59 XAresult XALEDArrayItfImpl_GetColor ( XALEDArrayItf self, XAuint8 index, XAHSL * pColor ); |
|
60 /* XALEDArrayItfImpl -specific methods */ |
|
61 |
|
62 XALEDArrayItfImpl* XALEDArrayItfImpl_Create( XAAdaptationBaseCtx *adapCtx ); |
|
63 void XALEDArrayItfImpl_Free(XALEDArrayItfImpl* self); |
|
64 |
|
65 |
|
66 #endif /* XALEDARRAYITF_H */ |
|