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 C2X30WAMP_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.rst= MIKROBUS( mikrobus, MIKROBUS_RST ); \
67 cfg.mt= MIKROBUS( mikrobus, MIKROBUS_CS ); \
68 cfg.flt= MIKROBUS( mikrobus, MIKROBUS_INT );
75#define C2X30WAMP_RETVAL int8_t
78#define C2X30WAMP_INIT_ERROR (-1)
85#define C2X30WAMP_ENABLE 1
86#define C2X30WAMP_DISABLE 0
87#define C2X30WAMP_MUTE 1
88#define C2X30WAMP_UNMUTE 0
195 // End click Driver group
#define C2X30WAMP_RETVAL
Definition c2x30wamp.h:75
void c2x30wamp_cfg_setup(c2x30wamp_cfg_t *cfg)
Config Object Initialization function.
uint8_t c2x30wamp_check_diagnostic(c2x30wamp_t *ctx)
Diagnostic Check function.
C2X30WAMP_RETVAL c2x30wamp_init(c2x30wamp_t *ctx, c2x30wamp_cfg_t *cfg)
Initialization function.
void c2x30wamp_mute(c2x30wamp_t *ctx, uint8_t state)
Device Mute function.
void c2x30wamp_enable(c2x30wamp_t *ctx, uint8_t state)
Device Enable function.
Click configuration structure definition.
Definition c2x30wamp.h:118
pin_name_t flt
Definition c2x30wamp.h:123
pin_name_t rst
Definition c2x30wamp.h:121
pin_name_t mt
Definition c2x30wamp.h:122
Click ctx object definition.
Definition c2x30wamp.h:102
digital_in_t flt
Definition c2x30wamp.h:110
digital_out_t mt
Definition c2x30wamp.h:106
digital_out_t rst
Definition c2x30wamp.h:105