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 BOOST2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS ); \
67 cfg.pg= MIKROBUS( mikrobus, MIKROBUS_INT )
74#define BOOST2_RETVAL uint8_t
77#define BOOST2_INIT_ERROR 0xFF
#define BOOST2_RETVAL
Definition boost2.h:74
BOOST2_RETVAL boost2_init(boost2_t *ctx, boost2_cfg_t *cfg)
Initialization function.
void boost2_cfg_setup(boost2_cfg_t *cfg)
Config Object Initialization function.
void boost2_set_en_pin(boost2_t *ctx, uint8_t new_state)
Set enable pin.
uint8_t boost2_get_pg_pin(boost2_t *ctx)
Get PG pin state.
Click configuration structure definition.
Definition boost2.h:106
pin_name_t en
Definition boost2.h:109
pin_name_t pg
Definition boost2.h:111
Click ctx object definition.
Definition boost2.h:91
digital_out_t en
Definition boost2.h:94
digital_in_t pg
Definition boost2.h:98