stereoamp 2.0.0.0
|
This file contains API for StereoAmp Click driver. More...
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | stereoamp_t |
Click ctx object definition. More... | |
struct | stereoamp_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | stereoamp_cfg_setup (stereoamp_cfg_t *cfg) |
Config Object Initialization function. | |
STEREOAMP_RETVAL | stereoamp_init (stereoamp_t *ctx, stereoamp_cfg_t *cfg) |
Initialization function. | |
void | stereoamp_default_cfg (stereoamp_t *ctx) |
Click Default Configuration function. | |
void | stereoamp_generic_write (stereoamp_t *ctx, uint8_t ch_addr, uint8_t reg_addr, uint8_t tx_data) |
Generic write function. | |
void | stereoamp_set_volume (stereoamp_t *ctx, uint8_t volume) |
Set the volume function. | |
void | stereoamp_mute (stereoamp_t *ctx) |
Set the mute mode function. | |
void | stereoamp_soft_reset (stereoamp_t *ctx) |
Soft reset function. | |
void | stereoamp_enable_diagnostic (stereoamp_t *ctx) |
Enable the diagnostic function. | |
void | stereoamp_set_power_on (stereoamp_t *ctx) |
Set the power On by channel function. | |
void | stereoamp_enable_fault (stereoamp_t *ctx) |
Enable the fault function. | |
uint8_t | stereoamp_check_fault_left (stereoamp_t *ctx) |
Check the fault of the left speaker function. | |
uint8_t | stereoamp_check_fault_right (stereoamp_t *ctx) |
Check the fault of the right speaker function. | |
This file contains API for StereoAmp Click driver.