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 BUCKBOOST2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.an= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.en= MIKROBUS( mikrobus, MIKROBUS_RST ); \
68 cfg.mod= MIKROBUS( mikrobus, MIKROBUS_PWM )
75#define BUCKBOOST2_RETVAL uint8_t
77#define BUCKBOOST2_OK 0x00
78#define BUCKBOOST2_INIT_ERROR 0xFF
85#define BUCKBOOST2_WITH_IMPROVEMENT 0x01
86#define BUCKBOOST2_WITHOUT_IMPROVEMENT 0x00
#define BUCKBOOST2_RETVAL
Definition buckboost2.h:75
BUCKBOOST2_RETVAL buckboost2_init(buckboost2_t *ctx, buckboost2_cfg_t *cfg)
Initialization function.
void buckboost2_power_off(buckboost2_t *ctx)
Power off function.
void buckboost2_set_mode(buckboost2_t *ctx, uint8_t mode)
Mode setting functon.
void buckboost2_power_on(buckboost2_t *ctx)
Power on function.
void buckboost2_cfg_setup(buckboost2_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition buckboost2.h:116
pin_name_t mod
Definition buckboost2.h:121
pin_name_t en
Definition buckboost2.h:120
pin_name_t an
Definition buckboost2.h:119
Click ctx object definition.
Definition buckboost2.h:100
digital_out_t mod
Definition buckboost2.h:104
digital_in_t an
Definition buckboost2.h:108
digital_out_t en
Definition buckboost2.h:103