This library controls a ST TDA7419 audio control IC. This is part of a project to implement an mbed controlled car stereo. The TDA7419 will take in stereo and output four channels of audio plus a subwoofer channel.
PreampTDA7419 Class Reference
TDA7419 PreAmp library. More...
#include <PreampTDA7419.h>
Public Member Functions | |
| PreampTDA7419 (PinName sda, PinName scl) | |
| Create a new TDA7419 communication interface. | |
| void | setVolume (int volume) |
| Directly set the TDA7419 Master volume (0->11) | |
| int | readVolume () |
| Read the the TDA7419 Master volume (0->11) | |
| int | increaseVolume () |
| Increase the current volume (if below 11) | |
| int | decreaseVolume () |
| Decrease the current volume (if more than 0) | |
| void | setInput (int input) |
| Select the input (1->4) Stereo inputs are 1->3. | |
| int | readInput () |
| Read currently selected input. | |
| int | increaseTreble () |
| Increase treble level (-5 -> 5) | |
| int | decreaseTreble () |
| Decrease treble level (-5 -> 5) | |
| int | readTreble () |
| Read currently set treble level. | |
| int | increaseMiddle () |
| Increase middle level (-5 -> 5) | |
| int | decreaseMiddle () |
| Decrease middle level (-5 -> 5) | |
| int | readMiddle () |
| Read currently set middle level. | |
| int | increaseBass () |
| Increase Bass level (-5 -> 5) | |
| int | decreaseBass () |
| Decrease bass level (-5 -> 5) | |
| int | readBass () |
| Read currently set middle level. | |
| int | increaseSpeaker (int speakerNumber) |
| Adjust the volume of each channel attenuator. | |
| int | decreaseSpeaker (int speakerNumber) |
| Adjust the volume of each channel attenuator. | |
| int | readSpeaker (int speakerNumber) |
| Read the value that is currently set for each attenuator. | |
| int | toggleMix () |
| Enable the mix input (by default this mixes to the front two channels. | |
| int | readMix () |
| Read if Mix is enabled or not. | |
Detailed Description
TDA7419 PreAmp library.
Includes the commands for volume, fader, subwoofer and tone controls
Definition at line 22 of file PreampTDA7419.h.
Constructor & Destructor Documentation
| PreampTDA7419 | ( | PinName | sda, |
| PinName | scl | ||
| ) |
Create a new TDA7419 communication interface.
PreampTDA7419 Library.
- Parameters:
-
sda is the pin for I2C SDA scl is the pin for I2C SCL
: Dan Cohen
Definition at line 12 of file PreampTDA7419.cpp.
Member Function Documentation
| int decreaseBass | ( | ) |
Decrease bass level (-5 -> 5)
Definition at line 275 of file PreampTDA7419.cpp.
| int decreaseMiddle | ( | ) |
Decrease middle level (-5 -> 5)
Definition at line 252 of file PreampTDA7419.cpp.
| int decreaseSpeaker | ( | int | speakerNumber ) |
Adjust the volume of each channel attenuator.
- Parameters:
-
speakerNumber 1 - left front, 2 - right front, 3 - back left, 4 - back right, 5 - subwoofer, 6 - volume of mix channel
Definition at line 301 of file PreampTDA7419.cpp.
| int decreaseTreble | ( | ) |
Decrease treble level (-5 -> 5)
Definition at line 229 of file PreampTDA7419.cpp.
| int decreaseVolume | ( | ) |
Decrease the current volume (if more than 0)
Definition at line 196 of file PreampTDA7419.cpp.
| int increaseBass | ( | ) |
Increase Bass level (-5 -> 5)
Definition at line 266 of file PreampTDA7419.cpp.
| int increaseMiddle | ( | ) |
Increase middle level (-5 -> 5)
Definition at line 243 of file PreampTDA7419.cpp.
| int increaseSpeaker | ( | int | speakerNumber ) |
Adjust the volume of each channel attenuator.
- Parameters:
-
speakerNumber 1 - left front, 2 - right front, 3 - back left, 4 - back right, 5 - subwoofer, 6 - volume of mix channel
Definition at line 289 of file PreampTDA7419.cpp.
| int increaseTreble | ( | ) |
Increase treble level (-5 -> 5)
Definition at line 220 of file PreampTDA7419.cpp.
| int increaseVolume | ( | ) |
Increase the current volume (if below 11)
Definition at line 189 of file PreampTDA7419.cpp.
| int readBass | ( | ) |
Read currently set middle level.
Definition at line 284 of file PreampTDA7419.cpp.
| int readInput | ( | ) |
Read currently selected input.
Definition at line 215 of file PreampTDA7419.cpp.
| int readMiddle | ( | ) |
Read currently set middle level.
Definition at line 261 of file PreampTDA7419.cpp.
| int readMix | ( | ) |
Read if Mix is enabled or not.
- Returns:
- The return is the state of the mix (1 = on, 0 = 0ff) after this call
Definition at line 331 of file PreampTDA7419.cpp.
| int readSpeaker | ( | int | speakerNumber ) |
Read the value that is currently set for each attenuator.
- Parameters:
-
speakerNumber match the increase and decrease parameter values
Definition at line 313 of file PreampTDA7419.cpp.
| int readTreble | ( | ) |
Read currently set treble level.
Definition at line 238 of file PreampTDA7419.cpp.
| int readVolume | ( | ) |
Read the the TDA7419 Master volume (0->11)
Definition at line 184 of file PreampTDA7419.cpp.
| void setInput | ( | int | input ) |
Select the input (1->4) Stereo inputs are 1->3.
Definition at line 203 of file PreampTDA7419.cpp.
| void setVolume | ( | int | volume ) |
Directly set the TDA7419 Master volume (0->11)
Definition at line 171 of file PreampTDA7419.cpp.
| int toggleMix | ( | ) |
Enable the mix input (by default this mixes to the front two channels.
- Returns:
- The return is the state of the mix (1 = on, 0 = 0ff) after this call
Definition at line 325 of file PreampTDA7419.cpp.
Generated on Thu Jul 14 2022 04:32:30 by
1.7.2