Charger Application Functions
APP_CHARGER API Brief
Application |
Brief |
|---|---|
initialise charger application |
|
deinit charger application. |
|
get current state tick |
APP_CHARGER API Reference
Header File
Functions
-
int32_t app_charger_init(void)
initialise charger application.
The behavior of charging after the user calls it is continued to be controlled by it according to , without calling other api operations
- 返回值:
0 – success [BK_RET_OK]
other – fail
- 返回:
result
-
int32_t app_charger_deinit(void)
deinit charger application.
include unregister charger callback and disable charger
- 返回值:
0 – success [BK_RET_OK]
other – fail
- 返回:
result
-
uint32_t app_charger_get_state_tick(void)
get current state tick.
- 返回:
state tick
-
bool app_charger_get_charger_status(void)
get current charger status.
- 返回值:
0 – no charger
1 – chargering
- 返回:
charger’status