ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
su_battery.h
Go to the documentation of this file.
1 /*
2  * Battery utils header file.
3  *
4  * Copyright (C) 2014 Ingenic Semiconductor Co.,Ltd
5  */
6 
7 #ifndef __SU_BATTERY_H__
8 #define __SU_BATTERY_H__
9 
10 #ifdef __cplusplus
11 #if __cplusplus
12 extern "C"
13 {
14 #endif
15 #endif /* __cplusplus */
16 
32 typedef enum {
33  Unknown = -1,
36  Full,
37 } SUBatStatus;
38 
42 typedef enum {
47 } SUBatEvent;
48 
64 
80 
95 int SU_Battery_GetCapacity(void);
96 
111 int SU_Battery_GetVoltageUV(void);
112 
117 #ifdef __cplusplus
118 #if __cplusplus
119 }
120 #endif
121 #endif /* __cplusplus */
122 
123 #endif /* __SU_BATTERY_H__ */
AC Adapter插入
Definition: su_battery.h:43
未知状态或者没有电池
Definition: su_battery.h:33
充满电
Definition: su_battery.h:36
SUBatStatus
电池状态.
Definition: su_battery.h:32
AC Adapter拔出
Definition: su_battery.h:44
USB插入
Definition: su_battery.h:45
int SU_Battery_GetVoltageUV(void)
获取电池当前电压.
int SU_Battery_GetStatus(SUBatStatus *status)
获取电池状态.
未充电
Definition: su_battery.h:35
USB拔出
Definition: su_battery.h:46
SUBatEvent
电池事件.
Definition: su_battery.h:42
int SU_Battery_GetCapacity(void)
获取电池电量百分比.
充电中
Definition: su_battery.h:34
int SU_Battery_GetEvent(SUBatEvent *event)
获取电池事件.