39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
67#define CHARGER27_MODE_CHARGE 0
68#define CHARGER27_MODE_DISCHARGE 1
74#define CHARGER27_AOK_ERROR 0
75#define CHARGER27_AOK_GOOD_SOURCE 1
81#define CHARGER27_CHG_CHARGE 0
82#define CHARGER27_CHG_COMPL_OR_SUS 1
100#define CHARGER27_MAP_MIKROBUS( cfg, mikrobus ) \
101 cfg.aok = MIKROBUS( mikrobus, MIKROBUS_AN ); \
102 cfg.md = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
103 cfg.chg = MIKROBUS( mikrobus, MIKROBUS_INT )
charger27_return_value_t
Charger 27 Click return value data.
Definition charger27.h:138
@ CHARGER27_ERROR
Definition charger27.h:140
@ CHARGER27_OK
Definition charger27.h:139
err_t charger27_set_mode(charger27_t *ctx, uint8_t mode)
Charger 27 sets the operating mode function.
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.
uint8_t charger27_check_chg_completion(charger27_t *ctx)
Charger 27 checks charging completion indicator function.
Charger 27 Click configuration object.
Definition charger27.h:126
pin_name_t md
Definition charger27.h:128
pin_name_t aok
Definition charger27.h:127
pin_name_t chg
Definition charger27.h:129
Charger 27 Click context object.
Definition charger27.h:113
digital_in_t chg
Definition charger27.h:117
digital_out_t md
Definition charger27.h:114
digital_in_t aok
Definition charger27.h:116