charger17 2.1.0.0
|
This file contains API for Charger 17 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 | charger17_t |
Charger 17 Click context object. More... | |
struct | charger17_cfg_t |
Charger 17 Click configuration object. More... | |
Enumerations | |
enum | charger17_return_value_t { CHARGER17_OK = 0 , CHARGER17_ERROR = -1 } |
Charger 17 Click return value data. More... | |
Functions | |
void | charger17_cfg_setup (charger17_cfg_t *cfg) |
Charger 17 configuration object setup function. | |
err_t | charger17_init (charger17_t *ctx, charger17_cfg_t *cfg) |
Charger 17 initialization function. | |
err_t | charger17_default_cfg (charger17_t *ctx) |
Charger 17 default configuration function. | |
err_t | charger17_generic_write (charger17_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Charger 17 I2C writing function. | |
err_t | charger17_generic_read (charger17_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Charger 17 I2C reading function. | |
err_t | charger17_write_register (charger17_t *ctx, uint8_t reg, uint8_t data_in) |
Charger 17 write register function. | |
err_t | charger17_read_register (charger17_t *ctx, uint8_t reg, uint8_t *data_out) |
Charger 17 read register function. | |
err_t | charger17_check_communication (charger17_t *ctx) |
Charger 17 check communication function. | |
void | charger17_set_qon_pin (charger17_t *ctx, uint8_t state) |
Charger 17 set qon pin function. | |
void | charger17_enable_charging (charger17_t *ctx) |
Charger 17 enable charging function. | |
void | charger17_disable_charging (charger17_t *ctx) |
Charger 17 disable charging function. | |
void | charger17_set_psel_500mA (charger17_t *ctx) |
Charger 17 set psel 500mA function. | |
void | charger17_set_psel_2400mA (charger17_t *ctx) |
Charger 17 set psel 2400mA function. | |
uint8_t | charger17_get_int_pin (charger17_t *ctx) |
Charger 17 get int pin function. | |
This file contains API for Charger 17 Click Driver.