audiomux 2.0.0.0
|
This file contains API for AudioMUX Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | audiomux_t |
Click ctx object definition. More... | |
struct | audiomux_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | audiomux_cfg_setup (audiomux_cfg_t *cfg) |
Config Object Initialization function. | |
AUDIOMUX_RETVAL | audiomux_init (audiomux_t *ctx, audiomux_cfg_t *cfg) |
Initialization function. | |
void | audiomux_default_cfg (audiomux_t *ctx) |
Click Default Configuration function. | |
void | audiomux_generic_write (audiomux_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | audiomux_generic_read (audiomux_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
T_AUDIOMUX_RETVAL | audiomux_write_single_byte (audiomux_t *ctx, uint8_t reg_addr, uint8_t data_in) |
Single Write function. | |
T_AUDIOMUX_RETVAL | audiomux_write_bytes (audiomux_t *ctx, uint8_t start_addr, uint8_t *data_in, uint8_t n_bytes) |
Multiple Write function. | |
T_AUDIOMUX_RETVAL | audiomux_read_single_byte (audiomux_t *ctx, uint8_t reg_addr, uint8_t *data_out) |
Single Read function. | |
T_AUDIOMUX_RETVAL | audiomux_read_bytes (audiomux_t *ctx, uint8_t start_addr, uint8_t *data_out, uint8_t n_bytes) |
Multiple Read function. | |
T_AUDIOMUX_RETVAL | audiomux_select_input (audiomux_t *ctx, uint8_t input_sel, uint8_t mute_in, uint8_t mic_gain, uint8_t mic_state) |
Input Selection function. | |
T_AUDIOMUX_RETVAL | audiomux_set_input_gain (audiomux_t *ctx, uint8_t input_gain) |
Input Gain Control function. | |
T_AUDIOMUX_RETVAL | audiomux_set_volume (audiomux_t *ctx, uint8_t volume1, uint8_t volume2, uint8_t side_sel) |
Volume Control function. | |
T_AUDIOMUX_RETVAL | audiomux_set_treble_bass (audiomux_t *ctx, uint8_t treble, uint8_t bass) |
Treble and Bass Control function. | |
T_AUDIOMUX_RETVAL | audiomux_mute_ouput (audiomux_t *ctx, uint8_t state) |
Output Mute function. | |
This file contains API for AudioMUX Click driver.