audioamp12 2.1.0.0
audioamp12.h File Reference

This file contains API for AudioAMP 12 Click Driver. More...

#include "drv_digital_out.h"

Go to the source code of this file.

Data Structures

struct  audioamp12_t
 AudioAMP 12 Click context object. More...
 
struct  audioamp12_cfg_t
 AudioAMP 12 Click configuration object. More...
 

Macros

#define AUDIOAMP12_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  audioamp12_return_value_t { AUDIOAMP12_OK = 0 , AUDIOAMP12_ERROR = -1 }
 AudioAMP 12 Click return value data. More...
 
enum  audioamp12_gain_select_t { AUDIOAMP12_GAIN_6_DB , AUDIOAMP12_GAIN_12_DB }
 AudioAMP 12 Click gain selection value data. More...
 

Functions

void audioamp12_cfg_setup (audioamp12_cfg_t *cfg)
 AudioAMP 12 configuration object setup function.
 
err_t audioamp12_init (audioamp12_t *ctx, audioamp12_cfg_t *cfg)
 AudioAMP 12 initialization function.
 
void audioamp12_default_cfg (audioamp12_t *ctx)
 AudioAMP 12 default configuration function.
 
void audioamp12_set_mode_standby (audioamp12_t *ctx)
 AudioAMP 12 set standby mode function.
 
void audioamp12_set_mode_operation (audioamp12_t *ctx)
 AudioAMP 12 set operation mode function.
 
void audioamp12_gain_select (audioamp12_t *ctx, audioamp12_gain_select_t sel_gain)
 AudioAMP 12 select gain level function.
 
void audioamp12_change_gain (audioamp12_t *ctx)
 AudioAMP 12 changes the gain function.
 

Detailed Description

This file contains API for AudioAMP 12 Click Driver.

Enumeration Type Documentation

◆ audioamp12_gain_select_t

AudioAMP 12 Click gain selection value data.

Predefined enum values for driver gain selection values.

Enumerator
AUDIOAMP12_GAIN_6_DB 
AUDIOAMP12_GAIN_12_DB 

◆ audioamp12_return_value_t

AudioAMP 12 Click return value data.

Predefined enum values for driver return values.

Enumerator
AUDIOAMP12_OK 
AUDIOAMP12_ERROR