charger3 2.0.0.0
|
This file contains API for Charger 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 | charger3_t |
Charger 3 Click context object. More... | |
struct | charger3_cfg_t |
Charger 3 Click configuration object. More... | |
Functions | |
void | charger3_cfg_setup (charger3_cfg_t *cfg) |
Charger 3 configuration object setup function. | |
err_t | charger3_init (charger3_t *ctx, charger3_cfg_t *cfg) |
Charger 3 initialization function. | |
void | charger3_default_cfg (charger3_t *ctx) |
Charger 3 default configuration function. | |
err_t | charger3_generic_write (charger3_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Charger 3 I2C writing function. | |
err_t | charger3_generic_read (charger3_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Charger 3 I2C reading function. | |
void | charger3_enable_write (charger3_t *ctx) |
Charger 3 enable write function. | |
void | charger3_operating_mode (charger3_t *ctx, uint8_t mode) |
Charger 3 set operating mode function. | |
void | charger3_write_rdac (charger3_t *ctx, uint16_t rdac_data) |
Charger 3 write to rdac function. | |
uint8_t | charger3_set_digipot_res (charger3_t *ctx, uint16_t res_ohm) |
Charger 3 set digital potentiometer resistance function. | |
uint8_t | charger3_set_current (charger3_t *ctx, float curr_value) |
Charger 3 set current function. | |
uint16_t | charger3_read_rdac (charger3_t *ctx) |
Charger 3 read rdac function. | |
float | charger3_calc_digipot_res (charger3_t *ctx) |
Charger 3 calculate digipot resistance function. | |
This file contains API for Charger 3 Click Driver.