ISVP-SDK
3.12.0
Ingenic Smart Video Platform SDK
|
电池管理 More...
Enumerations | |
enum | SUBatStatus { Unknown = -1, Charging, Discharging, Full } |
电池状态. More... | |
enum | SUBatEvent { AC_ONLINE, AC_OFFLINE, USB_ONLINE, USB_OFFLINE } |
电池事件. More... | |
Functions | |
int | SU_Battery_GetStatus (SUBatStatus *status) |
获取电池状态. More... | |
int | SU_Battery_GetEvent (SUBatEvent *event) |
获取电池事件. More... | |
int | SU_Battery_GetCapacity (void) |
获取电池电量百分比. More... | |
int | SU_Battery_GetVoltageUV (void) |
获取电池当前电压. More... | |
电池管理
enum SUBatEvent |
enum SUBatStatus |
int SU_Battery_GetCapacity | ( | void | ) |
获取电池电量百分比.
无. |
>=0 | 电池电量百分比. |
非0 | 失败. |
int SU_Battery_GetEvent | ( | SUBatEvent * | event | ) |
获取电池事件.
[out] | event | 电池事件指针. |
0 | 成功. |
非0 | 失败. |
int SU_Battery_GetStatus | ( | SUBatStatus * | status | ) |
获取电池状态.
[in] | status | 电池状态指针. |
0 | 成功. |
非0 | 失败. |
int SU_Battery_GetVoltageUV | ( | void | ) |
获取电池当前电压.
无. |
>=0 | 电池电压,单位uV. |
非0 | 失败. |