charger26 2.1.0.0
|
This file contains API for Charger 26 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | charger26_t |
Charger 26 Click context object. More... | |
struct | charger26_cfg_t |
Charger 26 Click configuration object. More... | |
Macros | |
#define | CHARGER26_PIN_STATE_HIGH 0x01 |
Charger 26 description setting. | |
#define | CHARGER26_PIN_STATE_LOW 0x00 |
#define | CHARGER26_SELV_4V1_REG_POINT 0x00 |
Charger 26 vout selection setting. | |
#define | CHARGER26_SELV_4V2_REG_POINT 0x01 |
#define | CHARGER26_SELI_100_MA_MAX_REG 0x00 |
Charger 26 iout selection setting. | |
#define | CHARGER26_SELI_500_MA_MAX_REG 0x01 |
#define | CHARGER26_ENABLE_OUTPUT 0x01 |
Charger 26 output enable setting. | |
#define | CHARGER26_DISABLE_OUTPUT 0x00 |
#define | CHARGER26_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | charger26_return_value_t { CHARGER26_OK = 0 , CHARGER26_ERROR = -1 } |
Charger 26 Click return value data. More... | |
Functions | |
void | charger26_cfg_setup (charger26_cfg_t *cfg) |
Charger 26 configuration object setup function. | |
err_t | charger26_init (charger26_t *ctx, charger26_cfg_t *cfg) |
Charger 26 initialization function. | |
void | charger26_default_cfg (charger26_t *ctx) |
Charger 26 default configuration function. | |
void | charger26_set_vsel (charger26_t *ctx, uint8_t vout_sel) |
Charger 26 select charger voltage function. | |
void | charger26_set_isel (charger26_t *ctx, uint8_t iout_sel) |
Charger 26 select charger current function. | |
void | charger26_enable_output (charger26_t *ctx, uint8_t output_state) |
Charger 26 enable charger output function. | |
uint8_t | charger26_get_chg_state (charger26_t *ctx) |
Charger 26 chg pin reading function. | |
This file contains API for Charger 26 Click Driver.