charger19 2.1.0.0
|
This file contains API for Charger 19 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | charger19_t |
Charger 19 Click context object. More... | |
struct | charger19_cfg_t |
Charger 19 Click configuration object. More... | |
Macros | |
#define | CHARGER19_VOUT_1V8 0x00 |
Charger 19 description setting. | |
#define | CHARGER19_VOUT_2V1 0x01 |
#define | CHARGER19_VOUT_2V7 0x02 |
#define | CHARGER19_VOUT_3V0 0x03 |
#define | CHARGER19_SHIP_MODE_ON 0x01 |
Charger 19 ship mode setting. | |
#define | CHARGER19_SHIP_MODE_OFF 0x00 |
#define | CHARGER19_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | charger19_return_value_t { CHARGER19_OK = 0 , CHARGER19_ERROR = -1 } |
Charger 19 Click return value data. More... | |
Functions | |
void | charger19_cfg_setup (charger19_cfg_t *cfg) |
Charger 19 configuration object setup function. | |
err_t | charger19_init (charger19_t *ctx, charger19_cfg_t *cfg) |
Charger 19 initialization function. | |
err_t | charger19_default_cfg (charger19_t *ctx) |
Charger 19 default configuration function. | |
err_t | charger19_read_an_pin_value (charger19_t *ctx, uint16_t *data_out) |
Charger 19 read AN pin value function. | |
err_t | charger19_read_an_pin_voltage (charger19_t *ctx, float *data_out) |
Charger 19 read AN pin voltage level function. | |
err_t | charger19_set_vout (charger19_t *ctx, uint8_t vout_sel) |
Charger 19 set output voltage function. | |
void | charger19_set_ship_mode (charger19_t *ctx, uint8_t ship_sel) |
Charger 19 set Ship mode function. | |
err_t | charger19_get_vbat (charger19_t *ctx, float *vbat) |
Charger 19 get battery voltage function. | |
This file contains API for Charger 19 Click Driver.