FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/include/condat/light.h @ 794:b380a85d77d5
aci/cmh_mmq.c: RTC function interface reverted to the classic TCS211 way
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 16 Mar 2015 03:31:35 +0000 |
parents | a712c95b60c1 |
children |
rev | line source |
---|---|
662
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 +----------------------------------------------------------------------------- |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 | Project : GSM (6301) |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 | Modul : |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 +----------------------------------------------------------------------------- |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 | Copyright 2002 Texas Instruments Berlin, AG |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 | All rights reserved. |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 | |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 | This file is confidential and a trade secret of Texas |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 | Instruments Berlin, AG |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 | The receipt of or possession of this file does not convey |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 | any rights to reproduce or disclose its contents or to |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 | manufacture, use, or sell anything it may describe, in |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 | whole, or in part, without the specific written consent of |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 | Texas Instruments Berlin, AG. |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 +----------------------------------------------------------------------------- |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 | Purpose : Types definitions for the light emitting driver |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 | . |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 +----------------------------------------------------------------------------- |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 */ |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 #ifndef LIGHT_H |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 #define LIGHT_H |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 /* |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 * devices |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 */ |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 #define LIGHT_DEVICE_BACKLIGHT 0 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 #define LIGHT_DEVICE_INSERVICELED 1 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 /* |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 * device status |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
33 */ |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
34 #define LIGHT_STATUS_OFF 0 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
35 #define LIGHT_STATUS_ON 1 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
36 #define LIGHT_STATUS_DIMMED 2 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
37 #define LIGHT_STATUS_INTERMEDIATE 3 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
38 #define LIGHT_STATUS_BRIGHT 4 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
39 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
40 #define LIGHT_STATUS_GREEN 5 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
41 #define LIGHT_STATUS_ORANGE 6 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
42 #define LIGHT_STATUS_RED 7 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
44 #if defined (NEW_FRAME) |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
45 /* |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
46 * to achieve backward compatibility with older definitions |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
47 */ |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 #define drv_SignalCB_Type T_DRV_CB_FUNC |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
49 #define drv_SignalID_Type T_DRV_SIGNAL |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
50 #define T_VSI_THANDLE USHORT |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 #endif |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
52 /* |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
53 * Prototypes |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 */ |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
55 EXTERN UBYTE light_Init (void); |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
56 EXTERN void light_Exit (void); |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
57 EXTERN UBYTE light_SetStatus (UBYTE in_DeviceID, UBYTE in_NewStatus); |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
58 EXTERN UBYTE light_GetStatus (UBYTE in_DeviceID, UBYTE * in_StatusPtr); |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
59 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
60 void light_setBacklightOn( void ); |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
61 void light_setBacklightIdle( void ); |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
62 void light_setBacklightOff( void ); |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
63 |
a712c95b60c1
gsm-fw/include/condat: import of TI's g23m/condat/com/include
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
64 #endif |