charger27 2.1.0.0
|
This file contains API for Charger 27 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | charger27_t |
Charger 27 Click context object. More... | |
struct | charger27_cfg_t |
Charger 27 Click configuration object. More... | |
Macros | |
#define | CHARGER27_MODE_CHARGE 0 |
Charger 27 charge or discharge mode selection. | |
#define | CHARGER27_MODE_DISCHARGE 1 |
#define | CHARGER27_AOK_ERROR 0 |
Charger 27 valid input supply indicator. | |
#define | CHARGER27_AOK_GOOD_SOURCE 1 |
#define | CHARGER27_CHG_CHARGE 0 |
Charger 27 charging completion indicator. | |
#define | CHARGER27_CHG_COMPL_OR_SUS 1 |
#define | CHARGER27_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | charger27_return_value_t { CHARGER27_OK = 0 , CHARGER27_ERROR = -1 } |
Charger 27 Click return value data. More... | |
Functions | |
void | charger27_cfg_setup (charger27_cfg_t *cfg) |
Charger 27 configuration object setup function. | |
err_t | charger27_init (charger27_t *ctx, charger27_cfg_t *cfg) |
Charger 27 initialization function. | |
uint8_t | charger27_check_input_supply (charger27_t *ctx) |
Charger 27 checks valid input supply indicator function. | |
err_t | charger27_set_mode (charger27_t *ctx, uint8_t mode) |
Charger 27 sets the operating mode function. | |
uint8_t | charger27_check_chg_completion (charger27_t *ctx) |
Charger 27 checks charging completion indicator function. | |
This file contains API for Charger 27 Click Driver.