battboost2 2.1.0.0
|
This file contains API for BATT Boost 2 Click Driver. More...
#include "mikrosdk_version.h"
#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 | battboost2_t |
BATT Boost 2 Click context object. More... | |
struct | battboost2_cfg_t |
BATT Boost 2 Click configuration object. More... | |
Enumerations | |
enum | battboost2_return_value_t { BATTBOOST2_OK = 0 , BATTBOOST2_ERROR = -1 } |
BATT Boost 2 Click return value data. More... | |
enum | battboost2_vfix_t { BATTBOOST2_VFIX_2_60V = 3 , BATTBOOST2_VFIX_2_95V , BATTBOOST2_VFIX_3_27V , BATTBOOST2_VFIX_3_57V , BATTBOOST2_VFIX_3_84V , BATTBOOST2_VFIX_4_10V , BATTBOOST2_VFIX_4_33V , BATTBOOST2_VFIX_4_55V , BATTBOOST2_VFIX_4_76V , BATTBOOST2_VFIX_4_95V , BATTBOOST2_VFIX_5_16V , BATTBOOST2_VFIX_5_34V , BATTBOOST2_VFIX_5_54V } |
BATT Boost 2 Click capacitor end-of-charge voltage. More... | |
enum | battboost2_ich_t { BATTBOOST2_ICH_2_MA = 0 , BATTBOOST2_ICH_4_MA , BATTBOOST2_ICH_8_MA , BATTBOOST2_ICH_16_MA , BATTBOOST2_ICH_50_MA } |
BATT Boost 2 Click capacitor charge current. More... | |
Functions | |
void | battboost2_cfg_setup (battboost2_cfg_t *cfg) |
BATT Boost 2 configuration object setup function. More... | |
err_t | battboost2_init (battboost2_t *ctx, battboost2_cfg_t *cfg) |
BATT Boost 2 initialization function. More... | |
err_t | battboost2_default_cfg (battboost2_t *ctx) |
BATT Boost 2 default configuration function. More... | |
err_t | battboost2_generic_write (battboost2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
BATT Boost 2 I2C writing function. More... | |
err_t | battboost2_generic_read (battboost2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
BATT Boost 2 I2C reading function. More... | |
err_t | battboost2_get_status (battboost2_t *ctx, uint8_t *status) |
BATT Boost 2 gets the status function. More... | |
err_t | battboost2_get_chenergy (battboost2_t *ctx, uint32_t *chenergy) |
BATT Boost 2 gets the charge cycle count function. More... | |
err_t | battboost2_get_vcap (battboost2_t *ctx, float *vcap) |
BATT Boost 2 gets the storage capacitor voltage status function. More... | |
err_t | battboost2_get_vchend (battboost2_t *ctx, uint8_t *vchend) |
BATT Boost 2 gets the target charge voltage function. More... | |
err_t | battboost2_set_prof (battboost2_t *ctx, uint8_t prof) |
BATT Boost 2 sets optimizer profile number function. More... | |
err_t | battboost2_get_prof (battboost2_t *ctx, uint8_t *prof) |
BATT Boost 2 gets optimizer profile number function. More... | |
err_t | battboost2_set_op_mode (battboost2_t *ctx, uint8_t op_mode) |
BATT Boost 2 sets the operating mode function. More... | |
err_t | battboost2_reset_optimizer (battboost2_t *ctx) |
BATT Boost 2 reset optimizer result function. More... | |
err_t | battboost2_set_automode (battboost2_t *ctx) |
BATT Boost 2 sets the auto mode function. More... | |
err_t | battboost2_set_vset (battboost2_t *ctx, float vset) |
BATT Boost 2 sets the output voltage function. More... | |
err_t | battboost2_set_vfix (battboost2_t *ctx, battboost2_vfix_t vfix) |
BATT Boost 2 sets the end-of-charge voltage function. More... | |
err_t | battboost2_set_vmin (battboost2_t *ctx, float vmin) |
BATT Boost 2 sets the input threshold voltage function. More... | |
err_t | battboost2_set_ich (battboost2_t *ctx, battboost2_ich_t ich) |
BATT Boost 2 sets the charge current function. More... | |
err_t | battboost2_high_impedance_mode (battboost2_t *ctx) |
BATT Boost 2 sets the high-impedance mode function. More... | |
err_t | battboost2_vdh_vbt_mode (battboost2_t *ctx) |
BATT Boost 2 sets the Vvdh Vvbt mode function. More... | |
err_t | battboost2_set_vew (battboost2_t *ctx, uint8_t vew, uint8_t eew) |
BATT Boost 2 sets the early warning voltage function. More... | |
err_t | battboost2_set_vcapmax (battboost2_t *ctx, uint8_t vcapmax) |
BATT Boost 2 sets the capacitor maximum storage voltage function. More... | |
err_t | battboost2_set_opt_marg (battboost2_t *ctx, uint8_t opt_marg) |
BATT Boost 2 sets the optimization margin voltage function. More... | |
void | battboost2_set_on_pin_state (battboost2_t *ctx, uint8_t start) |
BATT Boost 2 sets the ON pin state function. More... | |
uint8_t | battboost2_get_ready (battboost2_t *ctx) |
BATT Boost 2 gets ready state function. More... | |
This file contains API for BATT Boost 2 Click Driver.
enum battboost2_ich_t |
enum battboost2_vfix_t |
BATT Boost 2 Click capacitor end-of-charge voltage.
Predefined enum values for capacitor end-of-charge voltage.