c2x5wamp 2.0.0.0
|
Functions | |
void | c2x5wamp_cfg_setup (c2x5wamp_cfg_t *cfg) |
Config Object Initialization function. | |
C2X5WAMP_RETVAL | c2x5wamp_init (c2x5wamp_t *ctx, c2x5wamp_cfg_t *cfg) |
Initialization function. | |
void | c2x5wamp_default_cfg (c2x5wamp_t *ctx) |
Click Default Configuration function. | |
uint8_t | c2x5wamp_set_mode (c2x5wamp_t *ctx, uint8_t select_mode) |
Set mode selection of the amplifier function. | |
uint8_t | c2x5wamp_set_gain (c2x5wamp_t *ctx, uint8_t select_gain) |
Set gain resistors of the amplifier function. | |
uint8_t | c2x5wamp_check_input (c2x5wamp_t *ctx) |
Check input impedance function. | |
void c2x5wamp_cfg_setup | ( | c2x5wamp_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t c2x5wamp_check_input | ( | c2x5wamp_t * | ctx | ) |
Check input impedance function.
ctx | Click object. |
@description Function checks input impedance is undervoltage, or is overcurrent or is thermal protection activated of the TDA7491LP chip on 2x5W Amp Click.
void c2x5wamp_default_cfg | ( | c2x5wamp_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 2x5W AMP click.
Set Standby mode
Set amplifier gain to 20dB
C2X5WAMP_RETVAL c2x5wamp_init | ( | c2x5wamp_t * | ctx, |
c2x5wamp_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t c2x5wamp_set_gain | ( | c2x5wamp_t * | ctx, |
uint8_t | select_gain ) |
Set gain resistors of the amplifier function.
ctx | Click object. |
select_gain |
|
@description Function set amplifier gain resistors of the amplifier by setting the TDA7491LP chip on 2x5W Amp Click.
uint8_t c2x5wamp_set_mode | ( | c2x5wamp_t * | ctx, |
uint8_t | select_mode ) |
Set mode selection of the amplifier function.
ctx | Click object. |
select_mode |
|
@description Function set one of the three operating mode of the amplifier by setting the TDA7491LP chip on 2x5W Amp Click.