battmon3 2.0.0.0
|
This file contains API for BATT-MON 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 | battmon3_t |
BATT-MON 3 Click context object. More... | |
struct | battmon3_cfg_t |
BATT-MON 3 Click configuration object. More... | |
Enumerations | |
enum | battmon3_return_value_t { BATTMON3_OK = 0 , BATTMON3_ERROR = -1 } |
BATT-MON 3 Click return value data. More... | |
enum | battmon3_security_mode_t { BATTMON3_SECURITY_MODE_UNKNOWN = 0x00 , BATTMON3_SECURITY_MODE_FULL_ACCESS = 0x01 , BATTMON3_SECURITY_MODE_UNSEALED = 0x02 , BATTMON3_SECURITY_MODE_SEALED = 0x03 } |
BATT-MON 3 the security mode of the BQ35100 chip. More... | |
enum | battmon3_gauge_mode_t { BATTMON3_GAUGE_MODE_ACCUMULATOR = 0x00 , BATTMON3_GAUGE_MODE_SOH = 0x01 , BATTMON3_GAUGE_MODE_EOS = 0x02 , BATTMON3_GAUGE_MODE_UNKNOWN = 0x03 } |
BATT-MON 3 the gauge mode of the BQ35100 chip. More... | |
Functions | |
void | battmon3_cfg_setup (battmon3_cfg_t *cfg) |
BATT-MON 3 configuration object setup function. | |
err_t | battmon3_init (battmon3_t *ctx, battmon3_cfg_t *cfg) |
BATT-MON 3 initialization function. | |
err_t | battmon3_default_cfg (battmon3_t *ctx) |
BATT-MON 3 default configuration function. | |
err_t | battmon3_generic_write (battmon3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
BATT-MON 3 I2C writing function. | |
err_t | battmon3_generic_read (battmon3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
BATT-MON 3 I2C reading function. | |
err_t | battmon3_write_two_bytes (battmon3_t *ctx, uint8_t reg, uint16_t data_in) |
BATT-MON 3 write two bytes function. | |
err_t | battmon3_read_two_bytes (battmon3_t *ctx, uint8_t reg, uint16_t *data_out) |
BATT-MON 3 read two bytes function. | |
err_t | battmon3_write_control (battmon3_t *ctx, uint16_t control) |
BATT-MON 3 write control function. | |
err_t | battmon3_read_control (battmon3_t *ctx, uint16_t control, uint16_t *data_out) |
BATT-MON 3 read control function. | |
err_t | battmon3_write_data_flash (battmon3_t *ctx, uint16_t address, uint8_t *tx_buf, uint8_t tx_len) |
BATT-MON 3 write data flash function. | |
err_t | battmon3_read_data_flash (battmon3_t *ctx, uint16_t address, uint8_t *rx_buf, uint8_t rx_len) |
BATT-MON 3 read data flash function. | |
err_t | battmon3_check_communication (battmon3_t *ctx) |
BATT-MON 3 check communication function. | |
err_t | battmon3_read_status (battmon3_t *ctx, uint16_t *status) |
BATT-MON 3 read status function. | |
err_t | battmon3_wait_for_status (battmon3_t *ctx, uint16_t mask, uint16_t status) |
BATT-MON 3 wait for status function. | |
void | battmon3_set_en_pin_high (battmon3_t *ctx) |
BATT-MON 3 set en pin high function. | |
void | battmon3_set_en_pin_low (battmon3_t *ctx) |
BATT-MON 3 set en pin low function. | |
uint8_t | battmon3_get_alert_pin (battmon3_t *ctx) |
BATT-MON 3 get alert pin function. | |
err_t | battmon3_start_gauge (battmon3_t *ctx) |
BATT-MON 3 start gauge function. | |
err_t | battmon3_stop_gauge (battmon3_t *ctx) |
BATT-MON 3 stop gauge function. | |
err_t | battmon3_disable_gauge (battmon3_t *ctx) |
BATT-MON 3 disable gauge function. | |
err_t | battmon3_set_gauge_mode (battmon3_t *ctx, uint8_t gauge_mode) |
BATT-MON 3 set gauge mode function. | |
err_t | battmon3_reset (battmon3_t *ctx) |
BATT-MON 3 reset function. | |
err_t | battmon3_read_security_mode (battmon3_t *ctx) |
BATT-MON 3 read security mode function. | |
err_t | battmon3_set_security_mode (battmon3_t *ctx, uint8_t security_mode) |
BATT-MON 3 set security mode function. | |
err_t | battmon3_new_battery (battmon3_t *ctx, uint16_t des_capacity) |
BATT-MON 3 new battery function. | |
err_t | battmon3_set_design_capacity (battmon3_t *ctx, uint16_t des_capacity) |
BATT-MON 3 set design capacity function. | |
err_t | battmon3_read_design_capacity (battmon3_t *ctx, uint16_t *des_capacity) |
BATT-MON 3 read design capacity function. | |
err_t | battmon3_read_used_capacity (battmon3_t *ctx, float *used_capacity) |
BATT-MON 3 read used capacity function. | |
err_t | battmon3_read_remaining_capacity (battmon3_t *ctx, float *rem_capacity) |
BATT-MON 3 read remaining capacity function. | |
err_t | battmon3_read_remaining_percentage (battmon3_t *ctx, float *rem_percentage) |
BATT-MON 3 read remaining percentage function. | |
err_t | battmon3_use_internal_temperature (battmon3_t *ctx) |
BATT-MON 3 use internal temperature function. | |
err_t | battmon3_use_external_temperature (battmon3_t *ctx) |
BATT-MON 3 use external temperature function. | |
err_t | battmon3_read_temperature (battmon3_t *ctx, float *temperature) |
BATT-MON 3 read temperature function. | |
err_t | battmon3_read_internal_temperature (battmon3_t *ctx, float *temperature) |
BATT-MON 3 read internal temperature function. | |
err_t | battmon3_read_voltage (battmon3_t *ctx, uint16_t *voltage) |
BATT-MON 3 read voltage function. | |
err_t | battmon3_read_current (battmon3_t *ctx, int16_t *current) |
BATT-MON 3 read current function. | |
err_t | battmon3_read_scaled_r (battmon3_t *ctx, uint16_t *scaled_r) |
BATT-MON 3 read scaled R function. | |
err_t | battmon3_read_measured_z (battmon3_t *ctx, uint16_t *measured_z) |
BATT-MON 3 read measured Z function. | |
err_t | battmon3_read_state_of_health (battmon3_t *ctx, uint8_t *state_of_health) |
BATT-MON 3 read state of health function. | |
err_t | battmon3_read_battery_status (battmon3_t *ctx, uint8_t *batt_status) |
BATT-MON 3 read battery status function. | |
err_t | battmon3_read_battery_alert (battmon3_t *ctx, uint8_t *batt_alert) |
BATT-MON 3 read battery alert function. | |
err_t | battmon3_enter_calibration_mode (battmon3_t *ctx) |
BATT-MON 3 enter calibration mode function. | |
err_t | battmon3_exit_calibration_mode (battmon3_t *ctx) |
BATT-MON 3 exit calibration mode function. | |
err_t | battmon3_read_raw_calibration_data (battmon3_t *ctx, uint8_t reg, uint16_t *cal_data) |
BATT-MON 3 read raw calibration data function. | |
err_t | battmon3_perform_cc_offset (battmon3_t *ctx) |
BATT-MON 3 perform CC offset function. | |
err_t | battmon3_perform_board_offset (battmon3_t *ctx) |
BATT-MON 3 perform board offset function. | |
err_t | battmon3_calibrate_voltage (battmon3_t *ctx, uint16_t voltage) |
BATT-MON 3 calibrate voltage function. | |
err_t | battmon3_calibrate_current (battmon3_t *ctx, int16_t current) |
BATT-MON 3 calibrate current function. | |
err_t | battmon3_calibrate_temperature (battmon3_t *ctx, float temperature) |
BATT-MON 3 calibrate temperature function. | |
This file contains API for BATT-MON 3 Click Driver.
BATT-MON 3 the security mode of the BQ35100 chip.
Predefined enum values the security mode of the BQ35100 chip.