Go to the documentation of this file.
38 #include "mikrosdk_version.h"
41 #if mikroSDK_GET_VERSION < 20800ul
42 #include "rcu_delays.h"
48 #include "drv_digital_out.h"
49 #include "drv_digital_in.h"
61 #define BUCKBOOST_MAP_MIKROBUS( cfg, mikrobus ) \
62 cfg.vs2= MIKROBUS( mikrobus, MIKROBUS_AN ); \
63 cfg.run= MIKROBUS( mikrobus, MIKROBUS_CS ); \
64 cfg.vs3= MIKROBUS( mikrobus, MIKROBUS_RST ); \
65 cfg.pwm= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
66 cfg.vs1= MIKROBUS( mikrobus, MIKROBUS_INT )
73 #define BUCKBOOST_RETVAL uint8_t
75 #define BUCKBOOST_OK 0x00
76 #define BUCKBOOST_INIT_ERROR 0xFF
313 #endif // _BUCKBOOST_H_
void buckboost_set_12000mv(buckboost_t *ctx)
Set the output voltage of 12000 mV function.
pin_name_t pwm
Definition: buckboost.h:111
void buckboost_set_6900mv(buckboost_t *ctx)
Set the output voltage of 6900 mV function.
pin_name_t vs3
Definition: buckboost.h:110
digital_out_t vs2
Definition: buckboost.h:93
pin_name_t vs2
Definition: buckboost.h:108
BUCKBOOST_RETVAL buckboost_init(buckboost_t *ctx, buckboost_cfg_t *cfg)
Initialization function.
void buckboost_set_2500mv(buckboost_t *ctx)
Set the output voltage of 2500 mV function.
Click ctx object definition.
Definition: buckboost.h:90
pin_name_t run
Definition: buckboost.h:109
#define BUCKBOOST_RETVAL
Definition: buckboost.h:73
void buckboost_set_4100mv(buckboost_t *ctx)
Set the output voltage of 4100 mV function.
void buckboost_enable(buckboost_t *ctx)
Enable the converter function.
digital_out_t vs1
Definition: buckboost.h:97
digital_out_t vs3
Definition: buckboost.h:95
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_set_5000mv(buckboost_t *ctx)
Set the output voltage of 5000 mV function.
void buckboost_disable(buckboost_t *ctx)
Disable the converter function.
void buckboost_set_mode_fixed_freq(buckboost_t *ctx)
Set fixed frequency PWM operation function.
digital_out_t run
Definition: buckboost.h:94
void buckboost_default_cfg(buckboost_t *ctx)
Click Default Configuration function.
pin_name_t vs1
Definition: buckboost.h:112
void buckboost_enables_auto_burst_mode(buckboost_t *ctx)
Enables automatic burst mode operation.
Click configuration structure definition.
Definition: buckboost.h:105
void buckboost_cfg_setup(buckboost_cfg_t *cfg)
Config Object Initialization function.
void buckboost_set_8200mv(buckboost_t *ctx)
Set the output voltage of 8200 mV function.
digital_out_t pwm
Definition: buckboost.h:96