battman2 2.0.0.0
|
This file contains API for BATT-MAN 2 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 | battman2_t |
BATT-MAN 2 Click context object. More... | |
struct | battman2_cfg_t |
BATT-MAN 2 Click configuration object. More... | |
struct | battman2_chg_cnfg_t |
BATT-MAN 2 Click charger configuration object. More... | |
struct | battman2_stat_chg_t |
BATT-MAN 2 Click charger status object. More... | |
struct | battman2_sbb_cnfg_t |
BATT-MAN 2 Click Buck and boost configuration object. More... | |
struct | battman2_ldo_cnfg_t |
BATT-MAN 2 Click LDO configuration object. More... | |
Enumerations | |
enum | battman2_return_value_t { BATTMAN2_OK = 0 , BATTMAN2_ERROR = -1 } |
BATT-MAN 2 Click return value data. More... | |
Functions | |
void | battman2_cfg_setup (battman2_cfg_t *cfg) |
BATT-MAN 2 configuration object setup function. | |
err_t | battman2_init (battman2_t *ctx, battman2_cfg_t *cfg) |
BATT-MAN 2 initialization function. | |
err_t | battman2_default_cfg (battman2_t *ctx) |
BATT-MAN 2 default configuration function. | |
err_t | battman2_generic_write (battman2_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
BATT-MAN 2 I2C writing function. | |
err_t | battman2_generic_read (battman2_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
BATT-MAN 2 I2C reading function. | |
err_t | battman2_hw_reset (battman2_t *ctx) |
BATT-MAN 2 hw reset function. | |
err_t | battman2_check_int_glbl (battman2_t *ctx, uint8_t *int_glbl0, uint8_t *int_glbl1) |
BATT-MAN 2 check global interrupts function. | |
err_t | battman2_check_faults_occurred (battman2_t *ctx, uint8_t *faults) |
BATT-MAN 2 check faults occurred function. | |
err_t | battman2_check_stat (battman2_t *ctx, uint8_t *stat) |
BATT-MAN 2 check states function. | |
err_t | battman2_set_gpio_output (battman2_t *ctx, uint8_t gpio_sel, uint8_t led_state) |
BATT-MAN 2 set gpio output state function. | |
err_t | battman2_get_id (battman2_t *ctx, uint8_t *cid) |
BATT-MAN 2 get device ID function. | |
err_t | battman2_set_charger_enable (battman2_t *ctx, uint8_t en_chg) |
BATT-MAN 2 set charger enable function. | |
err_t | battman2_set_charger_cfg (battman2_t *ctx, battman2_chg_cnfg_t chg_cnfg) |
BATT-MAN 2 set charger configuration function. | |
err_t | battman2_get_charger_cfg (battman2_t *ctx, battman2_chg_cnfg_t *chg_cnfg) |
BATT-MAN 2 get charger configuration function. | |
err_t | battman2_get_chg_status (battman2_t *ctx, battman2_stat_chg_t *chg_stat) |
BATT-MAN 2 get charger status function. | |
err_t | battman2_set_sbb_config (battman2_t *ctx, uint8_t sbb_sel, battman2_sbb_cnfg_t sbb_cfg) |
BATT-MAN 2 set SBB configuration function. | |
err_t | battman2_get_sbb_config (battman2_t *ctx, uint8_t sbb_sel, battman2_sbb_cnfg_t *sbb_cfg) |
BATT-MAN 2 get SBB configuration function. | |
err_t | battman2_set_ldo_config (battman2_t *ctx, battman2_ldo_cnfg_t ldo_cfg) |
BATT-MAN 2 set LDO configuration function. | |
err_t | battman2_get_ldo_config (battman2_t *ctx, battman2_ldo_cnfg_t *ldo_cfg) |
BATT-MAN 2 get LDO configuration function. | |
uint8_t | battman2_check_interrupt (battman2_t *ctx) |
BATT-MAN 2 check interrupt function. | |
void | battman2_led_intro (battman2_t *ctx) |
BATT-MAN 2 LED intro function. | |
This file contains API for BATT-MAN 2 Click Driver.