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 BUCK8_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.rst= MIKROBUS( mikrobus, MIKROBUS_RST ); \
67 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS ); \
68 cfg.syn= MIKROBUS( mikrobus, MIKROBUS_PWM );
75#define BUCK8_RETVAL uint8_t
78#define BUCK8_INIT_ERROR 0xFF
85#define BUCK8_MODE_ACTIVE 0x01
86#define BUCK8_MODE_SLEEP 0x00
#define BUCK8_RETVAL
Definition buck8.h:75
BUCK8_RETVAL buck8_init(buck8_t *ctx, buck8_cfg_t *cfg)
Initialization function.
void buck8_set_power_mode(buck8_t *ctx, uint8_t mode)
Function settings mode.
void buck8_default_cfg(buck8_t *ctx)
Click Default Configuration function.
void buck8_cfg_setup(buck8_cfg_t *cfg)
Config Object Initialization function.
uint8_t buck8_get_state(buck8_t *ctx)
Function reads state of pin.
Click configuration structure definition.
Definition buck8.h:113
pin_name_t en
Definition buck8.h:117
pin_name_t rst
Definition buck8.h:116
pin_name_t syn
Definition buck8.h:118
Click ctx object definition.
Definition buck8.h:100
digital_out_t syn
Definition buck8.h:105
digital_in_t en
Definition buck8.h:104
digital_out_t rst
Definition buck8.h:103