FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/lcc/lcc_api.h @ 0:4e78acac3d88
src/{condat,cs,gpf,nucleus}: import from Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:23:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4e78acac3d88 |
---|---|
1 /****************************************************************************** | |
2 * Power Task (pwr) | |
3 * Design and coding by Svend Kristian Lindholm, skl@ti.com | |
4 * | |
5 * PWR MMI Interface | |
6 * | |
7 * $Id: pwr_api.h 1.1 Wed, 20 Aug 2003 10:22:37 +0200 skl $ | |
8 * | |
9 ******************************************************************************/ | |
10 | |
11 #ifndef __LCC_API_H__ | |
12 #define __LCC_API_H__ | |
13 | |
14 #include "rv/rv_general.h" | |
15 | |
16 #ifndef BASIC_TYPES | |
17 #define BASIC_TYPES | |
18 typedef signed char int8; | |
19 typedef unsigned char uint8; | |
20 typedef signed short int16; | |
21 typedef unsigned short uint16; | |
22 typedef signed int int32; | |
23 typedef unsigned int uint32; | |
24 #endif | |
25 | |
26 | |
27 // INFO Indication mail SENT to the MMI | |
28 struct mmi_info_ind_s { | |
29 T_RV_HDR header; | |
30 int Vbat; // Battery Voltage | |
31 int Tbat; // Battery Temperature | |
32 int Cbat; // Battery Capacity | |
33 int cause; // Reason for the charge fail | |
34 }; | |
35 | |
36 typedef struct mmi_info_ind_s T_PWR_MMI_INFO_IND_EVENT; | |
37 | |
38 // Corresponds to /mmi/pwr/bsie.cfg | |
39 typedef struct | |
40 { | |
41 uint16 repetition; // The repetition interval for sending MMI info events | |
42 } T_PWR_MMI_CFG_BLOCK; | |
43 | |
44 | |
45 // Events send from the PWR module | |
46 // See RIV461 | |
47 typedef enum PWR_MMI_MESSAGES { | |
48 MMI_CHG_PLUG_IND = 1, | |
49 MMI_CHG_UNPLUG_IND = 2, | |
50 MMI_CHG_START_IND = 3, | |
51 MMI_CHG_STOP_IND = 4, | |
52 MMI_CHG_UNKNOWN_IND = 5, | |
53 MMI_BAT_UNKNOWN_IND = 6, | |
54 MMI_CHG_FAILED_IND = 7, | |
55 MMI_BAT_SUPERVISION_INFO_IND = 10 | |
56 }; | |
57 | |
58 // Only one instance (e.g. the MMI) can register | |
59 void pwr_register (T_RV_RETURN_PATH *return_path, void *ptr); | |
60 | |
61 #endif | |
62 | |
63 |