audioamp5 2.0.0.0
|
Functions | |
void | audioamp5_cfg_setup (audioamp5_cfg_t *cfg) |
Config Object Initialization function. | |
AUDIOAMP5_RETVAL | audioamp5_init (audioamp5_t *ctx, audioamp5_cfg_t *cfg) |
Initialization function. | |
void | audioamp5_default_cfg (audioamp5_t *ctx) |
Click Default Configuration function. | |
void | audioamp5_set_device_state (audioamp5_t *ctx, uint8_t state) |
Default Configuration function. | |
void | audioamp5_mode_select (audioamp5_t *ctx, uint8_t state) |
Mode Selection function. | |
void | audioamp5_gain_select (audioamp5_t *ctx, uint8_t state) |
Gain Selection function. | |
void | audioamp5_config_update (audioamp5_t *ctx) |
Configuration Update function. | |
void audioamp5_cfg_setup | ( | audioamp5_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void audioamp5_config_update | ( | audioamp5_t * | ctx | ) |
Configuration Update function.
ctx | Click object. |
@description Function makes that desired configuration be updated.
void audioamp5_default_cfg | ( | audioamp5_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Audio Amp 5 click.
void audioamp5_gain_select | ( | audioamp5_t * | ctx, |
uint8_t | state ) |
Gain Selection function.
ctx | Click object. |
state | 0 - 20dB, 1 - 26dB |
@description Function performs a desired gain selection.
AUDIOAMP5_RETVAL audioamp5_init | ( | audioamp5_t * | ctx, |
audioamp5_cfg_t * | cfg ) |
Initialization function.
audioamp5 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void audioamp5_mode_select | ( | audioamp5_t * | ctx, |
uint8_t | state ) |
Mode Selection function.
ctx | Click object. |
state | 0 - BD Mode, 1 - 1SPW Mode |
@description Function puts a device to the desired mode.
void audioamp5_set_device_state | ( | audioamp5_t * | ctx, |
uint8_t | state ) |
Default Configuration function.
ctx | Click object. |
@description Function sets a default configuration parameters to the module.
Mode select : BD Mode - AUDIOAMP5_BD_MODE Gain select : 20DB Gain - AUDIOAMP5_GAIN_20DB