FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/com/include/pwr_obsolete.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 power driver | |
18 | . | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef PWR_H | |
23 #define PWR_H | |
24 | |
25 | |
26 /* | |
27 * Power signals | |
28 */ | |
29 #define PWR_SIGTYPE_EXTPOWER 1 | |
30 #define PWR_SIGTYPE_CHARGER 2 | |
31 #define PWR_SIGTYPE_BATLEVEL 3 | |
32 | |
33 /* | |
34 * Power Status | |
35 */ | |
36 #define PWR_EXTPOWER_ON 1 | |
37 #define PWR_CHARGER_ON 2 | |
38 | |
39 /* | |
40 * Status Type | |
41 */ | |
42 typedef struct pwr_Status_Type | |
43 { | |
44 UBYTE Status; | |
45 UBYTE BatteryLevel; | |
46 UBYTE ChargeLevel; | |
47 } pwr_Status_Type; | |
48 | |
49 /* | |
50 * Driver Control Block | |
51 */ | |
52 typedef struct pwr_DCB_Type | |
53 { | |
54 UBYTE RangeMin; | |
55 UBYTE RangeMax; | |
56 UBYTE Steps; | |
57 } pwr_DCB_Type; | |
58 | |
59 #if defined (NEW_FRAME) | |
60 /* | |
61 * to achieve backward compatibility with older definitions | |
62 */ | |
63 #define drv_SignalCB_Type T_DRV_CB_FUNC | |
64 #define drv_SignalID_Type T_DRV_SIGNAL | |
65 #define T_VSI_THANDLE USHORT | |
66 #endif | |
67 /* | |
68 * Prototypes | |
69 */ | |
70 EXTERN UBYTE pwr_Init (drv_SignalCB_Type in_SignalCBPtr); | |
71 EXTERN void pwr_Exit (void); | |
72 EXTERN UBYTE pwr_SetSignal (drv_SignalID_Type * in_SignalIDPtr); | |
73 EXTERN UBYTE pwr_ResetSignal (drv_SignalID_Type * in_SignalIDPtr); | |
74 EXTERN UBYTE pwr_SetConfig (pwr_DCB_Type * in_DCBPtr); | |
75 EXTERN UBYTE pwr_GetConfig (pwr_DCB_Type * out_DCBPtr); | |
76 EXTERN UBYTE pwr_GetStatus (pwr_Status_Type * out_StatusPtr); | |
77 | |
78 EXTERN UBYTE pwr_PowerOffMobile (void); | |
79 | |
80 #endif |