39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
62#define AUDIOAMP9_GAIN_LEVEL1 0x01
63#define AUDIOAMP9_GAIN_LEVEL2 0x02
64#define AUDIOAMP9_GAIN_LEVEL3 0x03
65#define AUDIOAMP9_GAIN_LEVEL4 0x04
83#define AUDIOAMP9_MAP_MIKROBUS( cfg, mikrobus ) \
84 cfg.mut = MIKROBUS( mikrobus, MIKROBUS_AN ); \
85 cfg.shd = MIKROBUS( mikrobus, MIKROBUS_RST ); \
86 cfg.g0 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
87 cfg.g1 = MIKROBUS( mikrobus, MIKROBUS_INT )
audioamp9_return_value_t
AudioAmp 9 Click return value data.
Definition audioamp9.h:123
@ AUDIOAMP9_ERROR
Definition audioamp9.h:125
@ AUDIOAMP9_OK
Definition audioamp9.h:124
void audioamp9_shutdown_off(audioamp9_t *ctx)
AudioAmp 9 shutdown off function.
void audioamp9_set_gain2(audioamp9_t *ctx)
AudioAmp 9 set gain level 2 function.
void audioamp9_set_gain1(audioamp9_t *ctx)
AudioAmp 9 set gain level 1 function.
void audioamp9_set_gain4(audioamp9_t *ctx)
AudioAmp 9 set gain level 4 function.
err_t audioamp9_set_gain_level(audioamp9_t *ctx, uint8_t gain_level)
AudioAmp 9 set gain function.
void audioamp9_cfg_setup(audioamp9_cfg_t *cfg)
AudioAmp 9 configuration object setup function.
void audioamp9_shutdown_on(audioamp9_t *ctx)
AudioAmp 9 shutdown on function.
void audioamp9_mute_on(audioamp9_t *ctx)
AudioAmp 9 mute on function.
void audioamp9_default_cfg(audioamp9_t *ctx)
AudioAmp 9 default configuration function.
void audioamp9_set_gain3(audioamp9_t *ctx)
AudioAmp 9 set gain level 3 function.
err_t audioamp9_init(audioamp9_t *ctx, audioamp9_cfg_t *cfg)
AudioAmp 9 initialization function.
void audioamp9_mute_off(audioamp9_t *ctx)
AudioAmp 9 mute off function.
AudioAmp 9 Click configuration object.
Definition audioamp9.h:110
pin_name_t mut
Definition audioamp9.h:111
pin_name_t g0
Definition audioamp9.h:113
pin_name_t shd
Definition audioamp9.h:112
pin_name_t g1
Definition audioamp9.h:114
AudioAmp 9 Click context object.
Definition audioamp9.h:97
digital_out_t g1
Definition audioamp9.h:101
digital_out_t mut
Definition audioamp9.h:98
digital_out_t shd
Definition audioamp9.h:99
digital_out_t g0
Definition audioamp9.h:100