42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
65#define BALANCER3_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS ); \
67 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
75#define BALANCER3_ERROR -1
82#define BALANCER3_CELL_BALANCE_EN 0
83#define BALANCER3_CELL_BALANCE_DIS 1
90#define BALANCER3_OV_COND_DETECTED 1
91#define BALANCER3_OV_COND_NOT_DETECTED 0
void balancer3_enable_cell_balance(balancer3_t *ctx, uint8_t state)
Cell Balance Enable function.
err_t balancer3_init(balancer3_t *ctx, balancer3_cfg_t *cfg)
Initialization function.
void balancer3_cfg_setup(balancer3_cfg_t *cfg)
Config Object Initialization function.
uint8_t balancer3_check_overvoltage(balancer3_t *ctx)
Overvoltage Condition Check function.
Click configuration structure definition.
Definition balancer3.h:118
pin_name_t en
Definition balancer3.h:120
pin_name_t int_pin
Definition balancer3.h:121
Click ctx object definition.
Definition balancer3.h:105
digital_in_t int_pin
Definition balancer3.h:110
digital_out_t en
Definition balancer3.h:107