audioamp12 2.1.0.0
|
API for configuring and manipulating AudioAMP 12 Click driver. More...
Topics | |
AudioAMP 12 MikroBUS Map | |
MikroBUS pin mapping of AudioAMP 12 Click driver. | |
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. | |
API for configuring and manipulating AudioAMP 12 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void audioamp12_cfg_setup | ( | audioamp12_cfg_t * | cfg | ) |
AudioAMP 12 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See audioamp12_cfg_t object definition for detailed explanation. |
void audioamp12_change_gain | ( | audioamp12_t * | ctx | ) |
AudioAMP 12 changes the gain function.
This function switch between two gain settings, 6 dB or 12 dB, of the TS2007EIJT, 3 W, filter-free, class-D audio power amplifier with 6 or 12 dB fixed gain select on the AudioAMP 12 click board™.
[in] | ctx | : Click context object. See audioamp12_t object definition for detailed explanation. |
void audioamp12_default_cfg | ( | audioamp12_t * | ctx | ) |
AudioAMP 12 default configuration function.
This function executes a default configuration of AudioAMP 12 click board.
[in] | ctx | : Click context object. See audioamp12_t object definition for detailed explanation. |
void audioamp12_gain_select | ( | audioamp12_t * | ctx, |
audioamp12_gain_select_t | sel_gain ) |
AudioAMP 12 select gain level function.
This function selects the gain level of the TS2007EIJT, 3 W, filter-free, class-D audio power amplifier with 6 or 12 dB fixed gain select on the AudioAMP 12 click board™.
[in] | ctx | : Click context object. See audioamp12_t object definition for detailed explanation. |
[in] | sel_gain | : Gain selection value. See audioamp12_gain_select_t definition for detailed explanation. |
err_t audioamp12_init | ( | audioamp12_t * | ctx, |
audioamp12_cfg_t * | cfg ) |
AudioAMP 12 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See audioamp12_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See audioamp12_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. void audioamp12_set_mode_operation | ( | audioamp12_t * | ctx | ) |
AudioAMP 12 set operation mode function.
This function sets the device operation mode of the TS2007EIJT, 3 W, filter-free, class-D audio power amplifier with 6 or 12 dB fixed gain select on the AudioAMP 12 click board™.
[in] | ctx | : Click context object. See audioamp12_t object definition for detailed explanation. |
void audioamp12_set_mode_standby | ( | audioamp12_t * | ctx | ) |
AudioAMP 12 set standby mode function.
This function sets the standby mode of the TS2007EIJT, 3 W, filter-free, class-D audio power amplifier with 6 or 12 dB fixed gain select on the AudioAMP 12 click board™.
[in] | ctx | : Click context object. See audioamp12_t object definition for detailed explanation. |