audioamp2 2.0.0.0
|
Functions | |
void | audioamp2_cfg_setup (audioamp2_cfg_t *cfg) |
Config Object Initialization function. | |
AUDIOAMP2_RETVAL | audioamp2_init (audioamp2_t *ctx, audioamp2_cfg_t *cfg) |
Initialization function. | |
uint8_t | audioamp2_set_mode (audioamp2_t *ctx, uint8_t sel_mode) |
Mode Set function. | |
uint8_t | audioamp2_set_gain (audioamp2_t *ctx, uint8_t sel_gain) |
Gain Set function. | |
uint8_t | audioamp2_check_diagnostic (audioamp2_t *ctx) |
Diagnostic Check function. | |
void audioamp2_cfg_setup | ( | audioamp2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t audioamp2_check_diagnostic | ( | audioamp2_t * | ctx | ) |
Diagnostic Check function.
ctx | Click object. |
@description Function checks is undervoltage, overcurrent or thermal protection activated.
AUDIOAMP2_RETVAL audioamp2_init | ( | audioamp2_t * | ctx, |
audioamp2_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 audioamp2_set_gain | ( | audioamp2_t * | ctx, |
uint8_t | sel_gain ) |
Gain Set function.
ctx | Click object. |
sel_gain | 0 - 20dB, 1 - 26dB, 2 - 30dB, 3 - 32dB |
@description Function performs the gain selection.
uint8_t audioamp2_set_mode | ( | audioamp2_t * | ctx, |
uint8_t | sel_mode ) |
Mode Set function.
ctx | Click object. |
sel_mode | 0 - Standby Mode, 1 - Mute Mode, 2 - Play Mode |
@description Function puts device in desired mode.