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 )
err_t speaker_default_cfg(speaker_t *ctx)
Speaker default configuration function.
void speaker_cfg_setup(speaker_cfg_t *cfg)
Speaker configuration object setup function.
err_t speaker_enable_slave_amp(speaker_t *ctx)
Speaker enables the slave amplifier function.
err_t speaker_shutdown(speaker_t *ctx)
Speaker shutdown mode function.
err_t speaker_normal_operation(speaker_t *ctx)
Speaker normal operation mode function.
err_t speaker_init(speaker_t *ctx, speaker_cfg_t *cfg)
Speaker initialization function.
err_t speaker_disable_slave_amp(speaker_t *ctx)
Speaker disables the slave amplifier function.
speaker_return_value_t
Speaker Click return value data.
Definition speaker.h:105
@ SPEAKER_OK
Definition speaker.h:106
@ SPEAKER_ERROR
Definition speaker.h:107
Speaker Click configuration object.
Definition speaker.h:94
pin_name_t pwr
Definition speaker.h:95
pin_name_t sb
Definition speaker.h:96
Speaker Click context object.
Definition speaker.h:83
digital_out_t pwr
Definition speaker.h:84
digital_out_t sb
Definition speaker.h:85