audioamp6 2.0.0.0
audioamp6.h File Reference

This file contains API for AudioAmp 6 Click driver. More...

#include "drv_digital_out.h"

Go to the source code of this file.

Data Structures

struct  audioamp6_t
 Click ctx object definition. More...
 
struct  audioamp6_cfg_t
 Click configuration structure definition. More...
 

Macros

#define AUDIOAMP6_MAP_MIKROBUS(cfg, mikrobus)
 
#define AUDIOAMP6_RETVAL   uint8_t
 
#define AUDIOAMP6_OK   0x00
 
#define AUDIOAMP6_INIT_ERROR   0xFF
 
#define AUDIOAMP6_GAIN_20dB   0x00
 
#define AUDIOAMP6_GAIN_26dB   0x01
 
#define AUDIOAMP6_OUTPUT_ENABLE   0x01
 
#define AUDIOAMP6_OUTPUT_DISABLE   0x00
 
#define AUDIOAMP6_MODE_BD   0x00
 
#define AUDIOAMP6_MODE_1SPW   0x01
 

Functions

void audioamp6_cfg_setup (audioamp6_cfg_t *cfg)
 Config Object Initialization function.
 
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.
 
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.
 

Detailed Description

This file contains API for AudioAmp 6 Click driver.