charger6 2.0.0.0
|
This file contains API for Charger 6 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 | charger6_t |
Charger 6 Click context object. More... | |
struct | charger6_cfg_t |
Charger 6 Click configuration object. More... | |
struct | charger6_status_t |
Charger 6 Click data status structure definition. More... | |
Enumerations | |
enum | charger6_return_value_t { CHARGER6_OK = 0 , CHARGER6_ERROR = -1 } |
Charger 6 Click return value data. More... | |
Functions | |
void | charger6_cfg_setup (charger6_cfg_t *cfg) |
Charger 6 configuration object setup function. | |
err_t | charger6_init (charger6_t *ctx, charger6_cfg_t *cfg) |
Charger 6 initialization function. | |
err_t | charger6_default_cfg (charger6_t *ctx) |
Charger 6 default configuration function. | |
err_t | charger6_generic_write (charger6_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Charger 6 I2C writing function. | |
err_t | charger6_generic_read (charger6_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Charger 6 I2C reading function. | |
void | charger6_enable_battery_charging (charger6_t *ctx) |
Charger 6 charge enable function. | |
void | charger6_disable_battery_charging (charger6_t *ctx) |
Charger 6 charge disable function. | |
void | charger6_power_source_selection (charger6_t *ctx, uint8_t pwr_sel) |
Charger 6 power source selection function. | |
err_t | charger6_set_input_current_limit (charger6_t *ctx, uint16_t current_limit) |
Charger 6 set input current limit function. | |
err_t | charger6_set_system_minimum_voltage (charger6_t *ctx, uint16_t sys_min_voltage) |
Charger 6 set system minimum voltage function. | |
err_t | charger6_get_status (charger6_t *ctx, charger6_status_t *chg_status) |
Charger 6 get status function. | |
err_t | charger6_set_fast_charge_current (charger6_t *ctx, uint16_t fast_chg_current) |
Charger 6 set fast charge current function. | |
uint16_t | charger6_get_fast_charge_current (charger6_t *ctx) |
Charger 6 get fast charge current function. | |
err_t | charger6_set_precharge_current (charger6_t *ctx, uint16_t precharge_current) |
Charger 6 set precharge current function. | |
err_t | charger6_set_termination_current (charger6_t *ctx, uint16_t termination_current) |
Charger 6 set termination current function. | |
err_t | charger6_set_charge_voltage (charger6_t *ctx, uint16_t charge_voltage) |
Charger 6 set charge voltage function. | |
err_t | charger6_set_top_off_timer (charger6_t *ctx, uint8_t top_off_time) |
Charger 6 set top OFF timer function. | |
uint8_t | charger6_check_interrupt (charger6_t *ctx) |
Charger 6 check interrupt function. | |
void | charger6_hw_reset (charger6_t *ctx) |
Charger 6 hw reset function. | |
This file contains API for Charger 6 Click Driver.