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 CHARGER13_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.en= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
67 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
74#define CHARGER13_RETVAL uint8_t
76#define CHARGER13_OK 0x00
77#define CHARGER13_INIT_ERROR 0xFF
#define CHARGER13_RETVAL
Definition charger13.h:74
void charger13_enable(charger13_t *ctx)
Enabled charging function.
void charger13_disable(charger13_t *ctx)
Disabled charging function.
CHARGER13_RETVAL charger13_init(charger13_t *ctx, charger13_cfg_t *cfg)
Initialization function.
void charger13_cfg_setup(charger13_cfg_t *cfg)
Config Object Initialization function.
uint8_t charger13_check(charger13_t *ctx)
Check battery charging function.
Click configuration structure definition.
Definition charger13.h:106
pin_name_t en
Definition charger13.h:109
pin_name_t int_pin
Definition charger13.h:110
Click ctx object definition.
Definition charger13.h:91
digital_in_t int_pin
Definition charger13.h:98
digital_out_t en
Definition charger13.h:94