charger25 2.1.0.0
|
This file contains API for Charger 25 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 | charger25_t |
Charger 25 Click context object. More... | |
struct | charger25_cfg_t |
Charger 25 Click configuration object. More... | |
struct | charger25_status_t |
Charger 25 Click status object. More... | |
struct | charger25_adc_ctrl_t |
Charger 25 Click ADC control object. More... | |
struct | charger25_adc_func_t |
Charger 25 Click ADC function object. More... | |
Enumerations | |
enum | charger25_return_value_t { CHARGER25_OK = 0 , CHARGER25_ERROR = -1 } |
Charger 25 Click return value data. More... | |
Functions | |
void | charger25_cfg_setup (charger25_cfg_t *cfg) |
Charger 25 configuration object setup function. | |
err_t | charger25_init (charger25_t *ctx, charger25_cfg_t *cfg) |
Charger 25 initialization function. | |
err_t | charger25_default_cfg (charger25_t *ctx) |
Charger 25 default configuration function. | |
err_t | charger25_generic_write (charger25_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Charger 25 I2C writing function. | |
err_t | charger25_generic_read (charger25_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Charger 25 I2C reading function. | |
void | charger25_set_qon_pin (charger25_t *ctx, uint8_t state) |
Charger 25 set QON pin state function. | |
void | charger25_enable (charger25_t *ctx) |
Charger 25 charge enable function. | |
void | charger25_disable (charger25_t *ctx) |
Charger 25 charge disable function. | |
uint8_t | charger25_get_interrupt (charger25_t *ctx) |
Charger 25 get interrupt function. | |
err_t | charger25_sw_reset (charger25_t *ctx) |
Charger 25 software reset function. | |
err_t | charger25_get_vbat (charger25_t *ctx, uint16_t *vbat) |
Charger 25 get VBAT function. | |
err_t | charger25_get_vsys_min (charger25_t *ctx, uint16_t *vsys_min) |
Charger 25 get VSYS function. | |
err_t | charger25_set_adc_control (charger25_t *ctx, charger25_adc_ctrl_t adc_ctrl) |
Charger 25 set ADC control function. | |
err_t | charger25_set_adc_function (charger25_t *ctx, charger25_adc_func_t adc_func) |
Charger 25 set ADC function function. | |
err_t | charger25_get_vbat_lim (charger25_t *ctx, uint16_t *vtg_lim) |
Charger 25 get battery voltage limit function. | |
err_t | charger25_set_vbat_lim (charger25_t *ctx, uint16_t vtg_lim) |
Charger 25 set battery voltage limit function. | |
err_t | charger25_get_cell_count (charger25_t *ctx, uint8_t *cell_count) |
Charger 25 get battery cell count function. | |
err_t | charger25_set_cell_count (charger25_t *ctx, uint8_t cell_count) |
Charger 25 set battery cell count function. | |
err_t | charger25_get_current_limit (charger25_t *ctx, uint16_t *current_lim) |
Charger 25 get charge current limit function. | |
err_t | charger25_set_current_limit (charger25_t *ctx, uint16_t current_lim) |
Charger 25 set charge current limit function. | |
err_t | charger25_get_input_vtg_limit (charger25_t *ctx, uint16_t *input_vtg_limit) |
Charger 25 get input voltage limit function. | |
err_t | charger25_set_input_vtg_limit (charger25_t *ctx, uint16_t input_vtg_limit) |
Charger 25 set input voltage limit function. | |
err_t | charger25_get_input_curr_limit (charger25_t *ctx, uint16_t *input_curr_limit) |
Charger 25 get input current limit function. | |
err_t | charger25_set_input_curr_limit (charger25_t *ctx, uint16_t input_curr_limit) |
Charger 25 set input current limit function. | |
err_t | charger25_get_status (charger25_t *ctx, charger25_status_t *status) |
Charger 25 get charging status function. | |
This file contains API for Charger 25 Click Driver.