solarenergy 2.0.0.0
|
Functions | |
void | solarenergy_cfg_setup (solarenergy_cfg_t *cfg) |
Config Object Initialization function. | |
SOLARENERGY_RETVAL | solarenergy_init (solarenergy_t *ctx, solarenergy_cfg_t *cfg) |
Initialization function. | |
void | solarenergy_charge_enable (solarenergy_t *ctx) |
Charge enable function. | |
void | solarenergy_charge_disable (solarenergy_t *ctx) |
Charge disable functions. | |
uint8_t | solarenergy_check_indicator (solarenergy_t *ctx) |
Battery good indicator functions. | |
void solarenergy_cfg_setup | ( | solarenergy_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void solarenergy_charge_disable | ( | solarenergy_t * | ctx | ) |
Charge disable functions.
ctx | Click object. |
@description Function disable charging by clear CS ( EN ) pin, disable BQ25570 Nano Power Boost Charger on Solar Energy click board.
void solarenergy_charge_enable | ( | solarenergy_t * | ctx | ) |
Charge enable function.
ctx | Click object. |
@description Function enable charging by set CS ( EN ) pin, enable BQ25570 Nano Power Boost Charger on Solar Energy click board.
uint8_t solarenergy_check_indicator | ( | solarenergy_t * | ctx | ) |
Battery good indicator functions.
ctx | Click object. |
@description Function get state of INT pin by check battery good indicator from BQ25570 Nano Power Boost Charger on Solar Energy click board.
SOLARENERGY_RETVAL solarenergy_init | ( | solarenergy_t * | ctx, |
solarenergy_cfg_t * | cfg ) |
Initialization function.
solarenergy | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.