BeRTOS
Functions
tas5706a.c File Reference

TAS5706A Power DAC i2c driver. More...

#include "tas5706a.h"
#include "hw/hw_tas5706a.h"
#include "cfg/cfg_tas5706a.h"
#include "cfg/cfg_i2c.h"
#include <cfg/module.h>
#include <drv/i2c.h>
#include <drv/timer.h>

Go to the source code of this file.

Functions

void tas5706a_setVolume_3 (I2c *i2c, Tas5706aCh ch, tas5706a_vol_t vol)
 Set the volume for the specified channel.
void tas5706a_setLowPower_2 (I2c *i2c, bool val)
 Set TAS chip to low power mode.
void tas5706a_init_1 (I2c *i2c)
 Initialize the TAS chip.

Detailed Description

TAS5706A Power DAC i2c driver.

Author:
Francesco Sacchi <batt@develer.com>
Daniele Basile <asterix@develer.com>

Definition in file tas5706a.c.


Function Documentation

void tas5706a_init_1 ( I2c *  i2c)

Initialize the TAS chip.

Parameters:
i2cThe i2c context.

Definition at line 133 of file tas5706a.c.

void tas5706a_setLowPower_2 ( I2c *  i2c,
bool  val 
)

Set TAS chip to low power mode.

When in low power mode, the TAS will not play any sound. You should put the TAS chip in low power whenever possible to prevent overheating and to save power.

Parameters:
i2cThe i2c context.
valTrue if you want to enable low power mode, false otherwise.

Definition at line 124 of file tas5706a.c.

void tas5706a_setVolume_3 ( I2c *  i2c,
Tas5706aCh  ch,
tas5706a_vol_t  vol 
)

Set the volume for the specified channel.

The volume must be expressed in % and will be at maximum CONFIG_TAS_MAX_VOL.

Parameters:
i2cThe i2c context.
chThe channel to be controlled.
volThe volume you want to set.

Definition at line 96 of file tas5706a.c.