Go to the documentation of this file.
39 #ifdef PREINIT_SUPPORTED
43 #ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49 #include "drv_digital_out.h"
71 #define SPEAKER_MAP_MIKROBUS( cfg, mikrobus ) \
72 cfg.pwr = MIKROBUS( mikrobus, MIKROBUS_INT ); \
73 cfg.sb = MIKROBUS( mikrobus, MIKROBUS_PWM )
Speaker Click configuration object.
Definition: speaker.h:94
pin_name_t pwr
Definition: speaker.h:95
speaker_return_value_t
Speaker Click return value data.
Definition: speaker.h:105
err_t speaker_enable_slave_amp(speaker_t *ctx)
Speaker enables the slave amplifier function.
err_t speaker_default_cfg(speaker_t *ctx)
Speaker default configuration function.
err_t speaker_normal_operation(speaker_t *ctx)
Speaker normal operation mode function.
digital_out_t sb
Definition: speaker.h:85
err_t speaker_init(speaker_t *ctx, speaker_cfg_t *cfg)
Speaker initialization function.
@ SPEAKER_ERROR
Definition: speaker.h:107
digital_out_t pwr
Definition: speaker.h:84
void speaker_cfg_setup(speaker_cfg_t *cfg)
Speaker configuration object setup function.
err_t speaker_shutdown(speaker_t *ctx)
Speaker shutdown mode function.
err_t speaker_disable_slave_amp(speaker_t *ctx)
Speaker disables the slave amplifier function.
Speaker Click context object.
Definition: speaker.h:83
@ SPEAKER_OK
Definition: speaker.h:106
pin_name_t sb
Definition: speaker.h:96