c2x20wamp 2.0.0.0
|
This file contains API for c2x20W Amp Click driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | c2x20wamp_t |
Click ctx object definition. More... | |
struct | c2x20wamp_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | C2X20WAMP_MAP_MIKROBUS(cfg, mikrobus) |
#define | C2X20WAMP_RETVAL int8_t |
#define | C2X20WAMP_OK 0 |
#define | C2X20WAMP_INIT_ERROR (-1) |
#define | C2X20WAMP_I2C_ADDRESS 0x48 |
#define | C2X20WAMP_ADDRESS_1 0x01 |
#define | C2X20WAMP_ADDRESS_2 0x02 |
#define | C2X20WAMP_6_BIT_VALUE 0x3F |
#define | C2X20WAMP_CMD_VOLUME_UP 0xC4 |
#define | C2X20WAMP_CMD_VOLUME_DOWN 0xC5 |
#define | C2X20WAMP_CMD_FILTERLESS_MODULATION 0x40 |
#define | C2X20WAMP_CMD_CLASSIC_PWM_MODULATION 0x41 |
#define | C2X20WAMP_6_BIT_VALUE 0x3F |
Functions | |
void | c2x20wamp_cfg_setup (c2x20wamp_cfg_t *cfg) |
Config Object Initialization function. | |
C2X20WAMP_RETVAL | c2x20wamp_init (c2x20wamp_t *ctx, c2x20wamp_cfg_t *cfg) |
Initialization function. | |
void | c2x20wamp_generic_write (c2x20wamp_t *ctx, uint8_t data_buf) |
Generic write function. | |
void | c2x20wamp_mode_play (c2x20wamp_t *ctx) |
Set Play mode of the amplifier function. | |
void | c2x20wamp_mode_mute (c2x20wamp_t *ctx) |
Set Mute mode of the amplifier function. | |
void | c2x20wamp_disable (c2x20wamp_t *ctx) |
Disable the amplifier function. | |
void | c2x20wamp_enable (c2x20wamp_t *ctx) |
Enable the amplifier function. | |
void | c2x20wamp_set_volume (c2x20wamp_t *ctx, uint8_t volume) |
Set volume of the amplifier function. | |
void | c2x20wamp_volume_up (c2x20wamp_t *ctx) |
Increase the volume by one level function. | |
void | c2x20wamp_volume_down (c2x20wamp_t *ctx) |
Decrease the volume by one level function. | |
void | c2x20wamp_filterless_modulation (c2x20wamp_t *ctx) |
Set filterless output modulation function. | |
void | c2x20wamp_classic_pwm_modulation (c2x20wamp_t *ctx) |
Set classic PWM output modulation function. | |
This file contains API for c2x20W Amp Click driver.