charger3 2.0.0.0
|
Charger3 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Charger3 Click example.
This example demonstrates the utilization of Charger 3 click.
The demo application is composed of two sections :
The application init sets up the UART LOG and I2C communication drivers. The default configuration disables write protection and sets the operation mode to charging.
Task consists of two operations. First, the desired battery charging current is set by the user. Since setting the current doesn't implicitly reveals the resistance, the value of AD5175 digipot is directly read from the RDAC register, calculated and displayed on the uart log.
note: While the resistance of the AD5175 can be directly set and read, the total resistance value on the PROG pin should be accounted for ( this means an additional 1kohm in series ) setting of the battery charging current.
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 | ) |