39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
72#define CHARGER18_CONTROL_DISABLE 0
73#define CHARGER18_CONTROL_ENABLE 1
91#define CHARGER18_MAP_MIKROBUS( cfg, mikrobus ) \
92 cfg.bon = MIKROBUS( mikrobus, MIKROBUS_AN ); \
93 cfg.on = MIKROBUS( mikrobus, MIKROBUS_RST ); \
94 cfg.ien = MIKROBUS( mikrobus, MIKROBUS_CS ); \
95 cfg.ldo = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
96 cfg.sta = MIKROBUS( mikrobus, MIKROBUS_INT )
charger18_return_value_t
Charger 18 Click return value data.
Definition charger18.h:135
@ CHARGER18_OK
Definition charger18.h:136
@ CHARGER18_ERROR
Definition charger18.h:137
void charger18_cfg_setup(charger18_cfg_t *cfg)
Charger 18 configuration object setup function.
void charger18_suspend_control(charger18_t *ctx, uint8_t state)
Charger 18 suspend control function.
uint8_t charger18_get_sta_pin(charger18_t *ctx)
Charger 18 get STA pin function.
err_t charger18_init(charger18_t *ctx, charger18_cfg_t *cfg)
Charger 18 initialization function.
void charger18_power_control(charger18_t *ctx, uint8_t state)
Charger 18 power control function.
void charger18_ldo_control(charger18_t *ctx, uint8_t state)
Charger 18 ldo control function.
void charger18_buck_control(charger18_t *ctx, uint8_t state)
Charger 18 buck control function.
Charger 18 Click configuration object.
Definition charger18.h:121
pin_name_t sta
Definition charger18.h:126
pin_name_t ldo
Definition charger18.h:125
pin_name_t on
Definition charger18.h:123
pin_name_t bon
Definition charger18.h:122
pin_name_t ien
Definition charger18.h:124
Charger 18 Click context object.
Definition charger18.h:106
digital_in_t sta
Definition charger18.h:112
digital_out_t ldo
Definition charger18.h:110
digital_out_t ien
Definition charger18.h:109
digital_out_t on
Definition charger18.h:108
digital_out_t bon
Definition charger18.h:107