audioamp6 2.0.0.0

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

Function Documentation

◆ audioamp6_cfg_setup()

void audioamp6_cfg_setup ( audioamp6_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ audioamp6_init()

AUDIOAMP6_RETVAL audioamp6_init ( audioamp6_t * ctx,
audioamp6_cfg_t * cfg )

Initialization function.

Parameters
audioamp6Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ audioamp6_set_gain()

void audioamp6_set_gain ( audioamp6_t * ctx,
uint8_t gain )

Sets Gain.

Parameters
ctxClick object.
gainGAIN 20 dB or 26 dB

◆ audioamp6_set_mode()

void audioamp6_set_mode ( audioamp6_t * ctx,
uint8_t mode )

Sets mode.

Parameters
ctxClick object.
mode
    Low = BD Mode/UV Threshold = 7.5 V
    High = Low-Idle-Current 1SPW Mode/UV Threshold = 3.4V

◆ audioamp6_set_output()

void audioamp6_set_output ( audioamp6_t * ctx,
uint8_t out )

Enable or Disable output.

Parameters
ctxClick object.
outOutput enabled or disabled