c2x5wamp 2.0.0.0
c2x5wamp.h File Reference

This file contains API for 2x5W AMP Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  c2x5wamp_t
 Click ctx object definition. More...
 
struct  c2x5wamp_cfg_t
 Click configuration structure definition. More...
 

Macros

#define C2X5WAMP_MAP_MIKROBUS(cfg, mikrobus)
 
#define C2X5WAMP_RETVAL   uint8_t
 
#define C2X5WAMP_OK   0x00
 
#define C2X5WAMP_INIT_ERROR   0xFF
 
#define C2X5WAMP_MODE_STANDBY   0x00
 
#define C2X5WAMP_MODE_MUTE   0x01
 
#define C2X5WAMP_MODE_PLAY   0x02
 
#define C2X5WAMP_GAIN_20DB   0x00
 
#define C2X5WAMP_GAIN_26DB   0x01
 
#define C2X5WAMP_GAIN_30DB   0x02
 
#define C2X5WAMP_GAIN_32DB   0x03
 
#define C2X5WAMP_RESULT_ERROR   0x00
 
#define C2X5WAMP_RESULT_OK   0x01
 

Functions

void c2x5wamp_cfg_setup (c2x5wamp_cfg_t *cfg)
 Config Object Initialization function.
 
C2X5WAMP_RETVAL c2x5wamp_init (c2x5wamp_t *ctx, c2x5wamp_cfg_t *cfg)
 Initialization function.
 
void c2x5wamp_default_cfg (c2x5wamp_t *ctx)
 Click Default Configuration function.
 
uint8_t c2x5wamp_set_mode (c2x5wamp_t *ctx, uint8_t select_mode)
 Set mode selection of the amplifier function.
 
uint8_t c2x5wamp_set_gain (c2x5wamp_t *ctx, uint8_t select_gain)
 Set gain resistors of the amplifier function.
 
uint8_t c2x5wamp_check_input (c2x5wamp_t *ctx)
 Check input impedance function.
 

Detailed Description

This file contains API for 2x5W AMP Click driver.