42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
64#define AUDIOAMP6_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.mds= MIKROBUS( mikrobus, MIKROBUS_RST ); \
66 cfg.en= MIKROBUS( mikrobus, MIKROBUS_CS ); \
67 cfg.gs= MIKROBUS( mikrobus, MIKROBUS_PWM );
74#define AUDIOAMP6_RETVAL uint8_t
76#define AUDIOAMP6_OK 0x00
77#define AUDIOAMP6_INIT_ERROR 0xFF
84#define AUDIOAMP6_GAIN_20dB 0x00
85#define AUDIOAMP6_GAIN_26dB 0x01
92#define AUDIOAMP6_OUTPUT_ENABLE 0x01
93#define AUDIOAMP6_OUTPUT_DISABLE 0x00
100#define AUDIOAMP6_MODE_BD 0x00
101#define AUDIOAMP6_MODE_1SPW 0x01
#define AUDIOAMP6_RETVAL
Definition audioamp6.h:74
void audioamp6_cfg_setup(audioamp6_cfg_t *cfg)
Config Object Initialization function.
void audioamp6_set_output(audioamp6_t *ctx, uint8_t out)
Enable or Disable output.
void audioamp6_set_gain(audioamp6_t *ctx, uint8_t gain)
Sets Gain.
AUDIOAMP6_RETVAL audioamp6_init(audioamp6_t *ctx, audioamp6_cfg_t *cfg)
Initialization function.
void audioamp6_set_mode(audioamp6_t *ctx, uint8_t mode)
Sets mode.
Click configuration structure definition.
Definition audioamp6.h:128
pin_name_t gs
Definition audioamp6.h:133
pin_name_t en
Definition audioamp6.h:132
pin_name_t mds
Definition audioamp6.h:131
Click ctx object definition.
Definition audioamp6.h:115
digital_out_t gs
Definition audioamp6.h:120
digital_out_t mds
Definition audioamp6.h:118
digital_out_t en
Definition audioamp6.h:119