tas5706a.c File Reference
TAS5706A Power DAC i2c driver. More...
#include "tas5706a.h"#include <cfg/compiler.h>#include <cfg/module.h>#include <drv/i2c.h>#include <drv/timer.h>#include "hw/hw_tas5706a.h"#include "cfg/cfg_tas5706a.h"Go to the source code of this file.
Functions | |
| void | tas5706a_init (void) |
| Initialize the TAS chip. | |
| void | tas5706a_setVolume (Tas5706aCh ch, tas5706a_vol_t vol) |
| Set the volume for the specified channel. | |
| void | tas5706a_setLowPower (bool val) |
| Set TAS chip to low power mode. | |
Detailed Description
TAS5706A Power DAC i2c driver.
- Version:
- Id
- tas5706a.c 2737 2009-07-03 15:51:31Z lottaviano
Definition in file tas5706a.c.
Function Documentation
| void tas5706a_setLowPower | ( | 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:
-
val True if you want to enable low power mode, false otherwise.
Definition at line 141 of file tas5706a.c.
| void tas5706a_setVolume | ( | 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:
-
ch The channel to be controlled. vol The volume you want to set.
Definition at line 113 of file tas5706a.c.
