battboost 2.1.0.0
|
This file contains API for BATT Boost Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | battboost_t |
BATT Boost Click context object. More... | |
struct | battboost_cfg_t |
BATT Boost Click configuration object. More... | |
Enumerations | |
enum | battboost_return_value_t { BATTBOOST_OK = 0 , BATTBOOST_ERROR = -1 } |
BATT Boost Click return value data. More... | |
enum | battboost_vfix_t { BATTBOOST_VFIX_2_60V = 3 , BATTBOOST_VFIX_2_95V , BATTBOOST_VFIX_3_27V , BATTBOOST_VFIX_3_57V , BATTBOOST_VFIX_3_84V , BATTBOOST_VFIX_4_10V , BATTBOOST_VFIX_4_33V , BATTBOOST_VFIX_4_55V , BATTBOOST_VFIX_4_76V , BATTBOOST_VFIX_4_95V , BATTBOOST_VFIX_5_16V , BATTBOOST_VFIX_5_34V , BATTBOOST_VFIX_5_54V } |
BATT Boost Click capacitor end-of-charge voltage. More... | |
enum | battboost_ich_t { BATTBOOST_ICH_2_MA = 0 , BATTBOOST_ICH_4_MA , BATTBOOST_ICH_8_MA , BATTBOOST_ICH_16_MA , BATTBOOST_ICH_50_MA } |
BATT Boost Click capacitor charge current. More... | |
Functions | |
void | battboost_cfg_setup (battboost_cfg_t *cfg) |
BATT Boost configuration object setup function. | |
err_t | battboost_init (battboost_t *ctx, battboost_cfg_t *cfg) |
BATT Boost initialization function. | |
err_t | battboost_default_cfg (battboost_t *ctx) |
BATT Boost default configuration function. | |
err_t | battboost_generic_write (battboost_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
BATT Boost I2C writing function. | |
err_t | battboost_generic_read (battboost_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
BATT Boost I2C reading function. | |
err_t | battboost_get_status (battboost_t *ctx, uint8_t *status) |
BATT Boost gets the status function. | |
err_t | battboost_get_chenergy (battboost_t *ctx, uint32_t *chenergy) |
BATT Boost gets the charge cycle count function. | |
err_t | battboost_get_vcap (battboost_t *ctx, float *vcap) |
BATT Boost gets the storage capacitor voltage status function. | |
err_t | battboost_get_vchend (battboost_t *ctx, uint8_t *vchend) |
BATT Boost gets the target charge voltage function. | |
err_t | battboost_set_prof (battboost_t *ctx, uint8_t prof) |
BATT Boost sets optimizer profile number function. | |
err_t | battboost_get_prof (battboost_t *ctx, uint8_t *prof) |
BATT Boost gets optimizer profile number function. | |
err_t | battboost_set_op_mode (battboost_t *ctx, uint8_t op_mode) |
BATT Boost sets the operating mode function. | |
err_t | battboost_reset_optimizer (battboost_t *ctx) |
BATT Boost reset optimizer result function. | |
err_t | battboost_set_automode (battboost_t *ctx) |
BATT Boost sets the auto mode function. | |
err_t | battboost_set_vset (battboost_t *ctx, float vset) |
BATT Boost sets the output voltage function. | |
err_t | battboost_set_vfix (battboost_t *ctx, battboost_vfix_t vfix) |
BATT Boost sets the end-of-charge voltage function. | |
err_t | battboost_set_vmin (battboost_t *ctx, float vmin) |
BATT Boost sets the input threshold voltage function. | |
err_t | battboost_set_ich (battboost_t *ctx, battboost_ich_t ich) |
BATT Boost sets the charge current function. | |
err_t | battboost_high_impedance_mode (battboost_t *ctx) |
BATT Boost sets the high-impedance mode function. | |
err_t | battboost_vdh_vbt_mode (battboost_t *ctx) |
BATT Boost sets the Vvdh Vvbt mode function. | |
err_t | battboost_set_vew (battboost_t *ctx, uint8_t vew, uint8_t eew) |
BATT Boost sets the early warning voltage function. | |
err_t | battboost_set_vcapmax (battboost_t *ctx, uint8_t vcapmax) |
BATT Boost sets the capacitor maximum storage voltage function. | |
err_t | battboost_set_opt_marg (battboost_t *ctx, uint8_t opt_marg) |
BATT Boost sets the optimization margin voltage function. | |
void | battboost_set_on_pin_state (battboost_t *ctx, uint8_t start) |
BATT Boost sets the ON pin state function. | |
uint8_t | battboost_get_ready (battboost_t *ctx) |
BATT Boost gets ready state function. | |
This file contains API for BATT Boost Click Driver.
enum battboost_ich_t |
enum battboost_vfix_t |
BATT Boost Click capacitor end-of-charge voltage.
Predefined enum values for capacitor end-of-charge voltage.