BeRTOS
|
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. |
TAS5706A Power DAC i2c driver.
Definition in file tas5706a.c.
void tas5706a_init_1 | ( | I2c * | i2c | ) |
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.
i2c | The i2c context. |
val | True 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.
i2c | The i2c context. |
ch | The channel to be controlled. |
vol | The volume you want to set. |
Definition at line 96 of file tas5706a.c.