|
void | charger_cfg_setup (charger_cfg_t *cfg) |
| Charger configuration object setup function.
|
|
void | charger_gpio_selection (charger_cfg_t *cfg, charger_gpio_sel_t gpio_sel) |
| Charger driver interface setup function.
|
|
err_t | charger_init (charger_t *ctx, charger_cfg_t *cfg) |
| Charger initialization function.
|
|
err_t | charger_default_cfg (charger_t *ctx) |
| Charger default configuration function.
|
|
err_t | charger_check_communication (charger_t *ctx) |
| Charger check communication function.
|
|
err_t | charger_select_device (charger_t *ctx) |
| Charger select device function.
|
|
err_t | charger_read_scratchpad (charger_t *ctx, uint8_t page, uint8_t *data_out, uint8_t len) |
| Charger read scratchpad function.
|
|
err_t | charger_write_scratchpad (charger_t *ctx, uint8_t page, uint8_t *data_in, uint8_t len) |
| Charger write scratchpad function.
|
|
err_t | charger_copy_scratchpad (charger_t *ctx, uint8_t page) |
| Charger copy scratchpad function.
|
|
err_t | charger_recall_memory (charger_t *ctx, uint8_t page) |
| Charger recall scratchpad function.
|
|
err_t | charger_convert_temperature (charger_t *ctx) |
| Charger convert temperature function.
|
|
err_t | charger_convert_voltage (charger_t *ctx) |
| Charger convert voltage function.
|
|
err_t | charger_read_temperature (charger_t *ctx, float *temperature) |
| Charger read temperature function.
|
|
err_t | charger_read_batt_vdd (charger_t *ctx, float *voltage) |
| Charger read battery VDD function.
|
|
err_t | charger_read_system_vdd (charger_t *ctx, float *voltage) |
| Charger read system VDD function.
|
|
err_t | charger_read_current (charger_t *ctx, float *current) |
| Charger read current function.
|
|
err_t | charger_calibrate_current (charger_t *ctx) |
| Charger calibrate current function.
|
|
err_t | charger_write_elapsed_time (charger_t *ctx, uint32_t seconds) |
| Charger write elapsed time function.
|
|
err_t | charger_read_elapsed_time (charger_t *ctx, uint32_t *seconds) |
| Charger read elapsed time function.
|
|
This file contains API for Charger Click Driver.