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 STEPDOWN2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.err = MIKROBUS( mikrobus, MIKROBUS_RST ); \
67 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS )
74#define STEPDOWN2_RETVAL uint8_t
76#define STEPDOWN2_OK 0x00
77#define STEPDOWN2_INIT_ERROR 0xFF
#define STEPDOWN2_RETVAL
Definition stepdown2.h:74
STEPDOWN2_RETVAL stepdown2_init(stepdown2_t *ctx, stepdown2_cfg_t *cfg)
Initialization function.
void stepdown2_digital_write_cs(stepdown2_t *ctx, uint8_t signal)
Digital write chip select function.
uint8_t stepdown2_digital_read_rst(stepdown2_t *ctx)
Digital read reset function.
void stepdown2_cfg_setup(stepdown2_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition stepdown2.h:106
pin_name_t err
Definition stepdown2.h:109
pin_name_t en
Definition stepdown2.h:110
Click ctx object definition.
Definition stepdown2.h:91
digital_out_t en
Definition stepdown2.h:94
digital_in_t err
Definition stepdown2.h:98