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