audioamp2 2.0.0.0
|
This file contains API for Audio Amp 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | audioamp2_t |
Click ctx object definition. More... | |
struct | audioamp2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | AUDIOAMP2_MAP_MIKROBUS(cfg, mikrobus) |
#define | AUDIOAMP2_RETVAL uint8_t |
#define | AUDIOAMP2_OK 0x00 |
#define | AUDIOAMP2_INIT_ERROR 0xFF |
#define | AUDIOAMP2_STANDBY_MODE 0x00 |
#define | AUDIOAMP2_MUTE_MODE 0x01 |
#define | AUDIOAMP2_PLAY_MODE 0x02 |
#define | AUDIOAMP2_20DB_GAIN 0x00 |
#define | AUDIOAMP2_26DB_GAIN 0x01 |
#define | AUDIOAMP2_30DB_GAIN 0x02 |
#define | AUDIOAMP2_32DB_GAIN 0x03 |
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. | |
This file contains API for Audio Amp 2 Click driver.