audioamp5 2.0.0.0
|
This file contains API for Audio Amp 5 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | audioamp5_t |
Click ctx object definition. More... | |
struct | audioamp5_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | AUDIOAMP5_MAP_MIKROBUS(cfg, mikrobus) |
#define | AUDIOAMP5_RETVAL uint8_t |
#define | AUDIOAMP5_OK 0x00 |
#define | AUDIOAMP5_INIT_ERROR 0xFF |
#define | AUDIOAMP5_SHDWN_MUTE_OUTPUTS 0x00 |
#define | AUDIOAMP5_PWRUP_UNMUTE_OUTPUTS 0x01 |
#define | AUDIOAMP5_BD_MODE 0x00 |
#define | AUDIOAMP5_1SPW_MODE 0x01 |
#define | AUDIOAMP5_GAIN_20DB 0x00 |
#define | AUDIOAMP5_GAIN_26DB 0x01 |
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. | |
This file contains API for Audio Amp 5 Click driver.