audiodac 2.1.0.0
|
This file contains API for Audio DAC Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | audiodac_t |
Audio DAC Click context object. More... | |
struct | audiodac_cfg_t |
Audio DAC Click configuration object. More... | |
Enumerations | |
enum | audiodac_return_value_t { AUDIODAC_OK = 0 , AUDIODAC_ERROR = -1 } |
Audio DAC Click return value data. More... | |
Functions | |
void | audiodac_cfg_setup (audiodac_cfg_t *cfg) |
Audio DAC configuration object setup function. | |
err_t | audiodac_init (audiodac_t *ctx, audiodac_cfg_t *cfg) |
Audio DAC initialization function. | |
err_t | audiodac_default_cfg (audiodac_t *ctx) |
Audio DAC default configuration function. | |
err_t | audiodac_generic_write (audiodac_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Audio DAC I2C writing function. | |
err_t | audiodac_generic_read (audiodac_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Audio DAC I2C reading function. | |
err_t | audiodac_write_register (audiodac_t *ctx, uint8_t reg, uint8_t data_in) |
Audio DAC write register function. | |
err_t | audiodac_read_register (audiodac_t *ctx, uint8_t reg, uint8_t *data_out) |
Audio DAC read register function. | |
void | audiodac_mute_output (audiodac_t *ctx) |
Audio DAC mute output function. | |
void | audiodac_unmute_output (audiodac_t *ctx) |
Audio DAC unmute output function. | |
uint8_t | audiodac_get_gpio4_pin (audiodac_t *ctx) |
Audio DAC get gpio4 pin function. | |
err_t | audiodac_select_page (audiodac_t *ctx, uint8_t page_num) |
Audio DAC select page function. | |
err_t | audiodac_volume_control (audiodac_t *ctx, uint8_t channel, uint8_t volume) |
Audio DAC volume control function. | |
This file contains API for Audio DAC Click Driver.