battman3 2.0.0.0
|
This file contains API for BATT-MAN 3 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 | battman3_t |
BATT-MAN 3 Click context object. More... | |
struct | battman3_cfg_t |
BATT-MAN 3 Click configuration object. More... | |
Enumerations | |
enum | battman3_return_value_t { BATTMAN3_OK = 0 , BATTMAN3_ERROR = -1 } |
BATT-MAN 3 Click return value data. More... | |
enum | battman3_ldo_vout_t { BATTMAN3_LDO_4p20V = 0 , BATTMAN3_LDO_3p60V , BATTMAN3_LDO_3p30V , BATTMAN3_LDO_3p15V , BATTMAN3_LDO_3p00V , BATTMAN3_LDO_2p85V , BATTMAN3_LDO_2p50V , BATTMAN3_LDO_2p30V , BATTMAN3_LDO_2p10V , BATTMAN3_LDO_1p80V , BATTMAN3_LDO_1p50V , BATTMAN3_LDO_1p40V , BATTMAN3_LDO_1p30V , BATTMAN3_LDO_1p20V , BATTMAN3_LDO_1p10V , BATTMAN3_LDO_1p00V } |
BATT-MAN 3 Click LDO voltage output. More... | |
enum | battman3_ldo_t { BATTMAN3_LDO1 , BATTMAN3_LDO2 , BATTMAN3_LDO3 } |
BATT-MAN 3 Click LDO. More... | |
enum | battman3_vtrk_dead_t { BATTMAN3_VTRK_DEAD_2p4V , BATTMAN3_VTRK_DEAD_2p5V , BATTMAN3_VTRK_DEAD_2p6V , BATTMAN3_VTRK_DEAD_3p3V } |
BATT-MAN 3 Click dead battery voltage. More... | |
Functions | |
void | battman3_cfg_setup (battman3_cfg_t *cfg) |
BATT-MAN 3 configuration object setup function. | |
err_t | battman3_init (battman3_t *ctx, battman3_cfg_t *cfg) |
BATT-MAN 3 initialization function. | |
err_t | battman3_default_cfg (battman3_t *ctx) |
BATT-MAN 3 default configuration function. | |
err_t | battman3_generic_write (battman3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
BATT-MAN 3 I2C writing function. | |
err_t | battman3_reg_write (battman3_t *ctx, uint8_t reg, uint8_t tx_data) |
Register writing function. | |
err_t | battman3_generic_read (battman3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
BATT-MAN 3 I2C reading function. | |
err_t | battman3_reg_read (battman3_t *ctx, uint8_t reg, uint8_t *rx_data) |
Register reading function. | |
uint8_t | battman3_get_battery_ok (battman3_t *ctx) |
Get battery OK. | |
uint8_t | battman3_get_power_good (battman3_t *ctx) |
Get power good. | |
uint8_t | battman3_get_interrupt (battman3_t *ctx) |
Get interrupt. | |
err_t | battman3_set_charge_state (battman3_t *ctx, uint8_t enable) |
Enable/Disable charging. | |
err_t | battman3_set_charge_termination_voltage (battman3_t *ctx, float voltage) |
Set charge termination voltage. | |
err_t | battman3_set_charge_voltage_threshold (battman3_t *ctx, battman3_vtrk_dead_t vtrk_dead, float vweak) |
Set charge termination voltage. | |
err_t | battman3_set_charge_vbus_current_limit (battman3_t *ctx, uint16_t current) |
Set charge current limit. | |
err_t | battman3_set_ldo_state (battman3_t *ctx, battman3_ldo_t ldo, uint8_t enable) |
Enable/Disable LDO. | |
err_t | battman3_set_ldo_vout (battman3_t *ctx, battman3_ldo_t ldo, battman3_ldo_vout_t vout) |
Set voltage output on LDO. | |
err_t | battman3_get_battery_voltage (battman3_t *ctx, float *vout) |
Read battery voltage level. | |
This file contains API for BATT-MAN 3 Click Driver.
enum battman3_ldo_t |
enum battman3_ldo_vout_t |
BATT-MAN 3 Click LDO voltage output.
Predefined enum values for driver LDO voltage output.
enum battman3_vtrk_dead_t |