39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
72#define STEPDOWN3_OUT_VOLTAGE_1V6 0x00
73#define STEPDOWN3_OUT_VOLTAGE_1V8 0x01
74#define STEPDOWN3_OUT_VOLTAGE_2V1 0x02
75#define STEPDOWN3_OUT_VOLTAGE_2V5 0x03
76#define STEPDOWN3_OUT_VOLTAGE_2V7 0x04
77#define STEPDOWN3_OUT_VOLTAGE_2V8 0x05
78#define STEPDOWN3_OUT_VOLTAGE_3V0 0x06
79#define STEPDOWN3_OUT_VOLTAGE_3V3 0x07
97#define STEPDOWN3_MAP_MIKROBUS( cfg, mikrobus ) \
98 cfg.d2 = MIKROBUS( mikrobus, MIKROBUS_AN ); \
99 cfg.en = MIKROBUS( mikrobus, MIKROBUS_RST ); \
100 cfg.aux = MIKROBUS( mikrobus, MIKROBUS_CS ); \
101 cfg.d1 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
102 cfg.d0 = MIKROBUS( mikrobus, MIKROBUS_INT )
void stepdown3_enable_aux_output(stepdown3_t *ctx)
Step Down 3 enable aux output function.
void stepdown3_enable_device(stepdown3_t *ctx)
Step Down 3 enable device function.
void stepdown3_cfg_setup(stepdown3_cfg_t *cfg)
Step Down 3 configuration object setup function.
err_t stepdown3_init(stepdown3_t *ctx, stepdown3_cfg_t *cfg)
Step Down 3 initialization function.
void stepdown3_set_output_voltage(stepdown3_t *ctx, uint8_t vout)
Step Down 3 set output voltage function.
void stepdown3_disable_aux_output(stepdown3_t *ctx)
Step Down 3 disable aux output function.
void stepdown3_disable_device(stepdown3_t *ctx)
Step Down 3 disable device function.
stepdown3_return_value_t
Step Down 3 Click return value data.
Definition stepdown3.h:140
@ STEPDOWN3_OK
Definition stepdown3.h:141
@ STEPDOWN3_ERROR
Definition stepdown3.h:142
Step Down 3 Click configuration object.
Definition stepdown3.h:126
pin_name_t aux
Definition stepdown3.h:129
pin_name_t d0
Definition stepdown3.h:131
pin_name_t d1
Definition stepdown3.h:130
pin_name_t d2
Definition stepdown3.h:127
pin_name_t en
Definition stepdown3.h:128
Step Down 3 Click context object.
Definition stepdown3.h:112
digital_out_t d1
Definition stepdown3.h:116
digital_out_t aux
Definition stepdown3.h:115
digital_out_t d2
Definition stepdown3.h:113
digital_out_t d0
Definition stepdown3.h:117
digital_out_t en
Definition stepdown3.h:114