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 BUCKBOOST_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.vs2= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.run= MIKROBUS( mikrobus, MIKROBUS_CS ); \
68 cfg.vs3= MIKROBUS( mikrobus, MIKROBUS_RST ); \
69 cfg.pwm= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
70 cfg.vs1= MIKROBUS( mikrobus, MIKROBUS_INT )
77#define BUCKBOOST_RETVAL uint8_t
79#define BUCKBOOST_OK 0x00
80#define BUCKBOOST_INIT_ERROR 0xFF
#define BUCKBOOST_RETVAL
Definition buckboost.h:77
void buckboost_set_5000mv(buckboost_t *ctx)
Set the output voltage of 5000 mV function.
void buckboost_set_2500mv(buckboost_t *ctx)
Set the output voltage of 2500 mV function.
void buckboost_enables_auto_burst_mode(buckboost_t *ctx)
Enables automatic burst mode operation.
void buckboost_set_mode_fixed_freq(buckboost_t *ctx)
Set fixed frequency PWM operation function.
void buckboost_set_6900mv(buckboost_t *ctx)
Set the output voltage of 6900 mV function.
void buckboost_default_cfg(buckboost_t *ctx)
Click Default Configuration function.
void buckboost_set_8200mv(buckboost_t *ctx)
Set the output voltage of 8200 mV function.
void buckboost_set_4100mv(buckboost_t *ctx)
Set the output voltage of 4100 mV function.
BUCKBOOST_RETVAL buckboost_init(buckboost_t *ctx, buckboost_cfg_t *cfg)
Initialization function.
void buckboost_cfg_setup(buckboost_cfg_t *cfg)
Config Object Initialization function.
void buckboost_set_12000mv(buckboost_t *ctx)
Set the output voltage of 12000 mV function.
void buckboost_set_15000mv(buckboost_t *ctx)
Set the output voltage of 15000 mV function.
void buckboost_set_3300mv(buckboost_t *ctx)
Set the output voltage of 3000 mV function.
void buckboost_disable(buckboost_t *ctx)
Disable the converter function.
void buckboost_enable(buckboost_t *ctx)
Enable the converter function.
Click configuration structure definition.
Definition buckboost.h:109
pin_name_t run
Definition buckboost.h:113
pin_name_t vs3
Definition buckboost.h:114
pin_name_t vs2
Definition buckboost.h:112
pin_name_t pwm
Definition buckboost.h:115
pin_name_t vs1
Definition buckboost.h:116
Click ctx object definition.
Definition buckboost.h:94
digital_out_t vs1
Definition buckboost.h:101
digital_out_t pwm
Definition buckboost.h:100
digital_out_t vs3
Definition buckboost.h:99
digital_out_t run
Definition buckboost.h:98
digital_out_t vs2
Definition buckboost.h:97