pmic
2.1.0.0
|
PMIC Click example. More...
Functions | |
void | pmic_display_charger_status (pmic_t *ctx) |
PMIC display charger status function. More... | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
PMIC Click example.
This example demonstrates the use of PMIC Click board by enabling battery charging and displaying the charging status.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration which enables charging.
Reads and displays the VBAT, VBUS, and VSYS voltage and the battery charging status on the USB UART approximately once per second.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |