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 MUX2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.a0= MIKROBUS( mikrobus, MIKROBUS_RST ); \
67 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS ); \
68 cfg.a1= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
69 cfg.a2= MIKROBUS( mikrobus, MIKROBUS_INT );
76#define MUX2_RETVAL uint8_t
79#define MUX2_INIT_ERROR 0xFF
86#define MUX2_CHANNEL_S1 0x01
87#define MUX2_CHANNEL_S2 0x02
88#define MUX2_CHANNEL_S3 0x03
89#define MUX2_CHANNEL_S4 0x04
90#define MUX2_CHANNEL_S5 0x05
91#define MUX2_CHANNEL_S6 0x06
92#define MUX2_CHANNEL_S7 0x07
93#define MUX2_CHANNEL_S8 0x08
94#define MUX2_CHANNEL_END 0x09
#define MUX2_RETVAL
Definition mux2.h:76
void mux2_cfg_setup(mux2_cfg_t *cfg)
Config Object Initialization function.
void mux2_active_mux_channel(mux2_t *ctx, uint8_t sel_ch)
Seelect active MUX channel.
void mux2_device_disable(mux2_t *ctx)
Disable MUX device function.
void mux2_device_enable(mux2_t *ctx)
Enable MUX device function.
MUX2_RETVAL mux2_init(mux2_t *ctx, mux2_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition mux2.h:122
pin_name_t a0
Definition mux2.h:126
pin_name_t a2
Definition mux2.h:129
pin_name_t en
Definition mux2.h:127
pin_name_t a1
Definition mux2.h:128
Click ctx object definition.
Definition mux2.h:108
digital_out_t a0
Definition mux2.h:111
digital_out_t a1
Definition mux2.h:113
digital_out_t en
Definition mux2.h:112
digital_out_t a2
Definition mux2.h:114