Header-only driver class for the TAS5805M amplifier chip.
More...
#include <TAS5805M.h>
Header-only driver class for the TAS5805M amplifier chip.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ TAS5805M()
◆ configI2S()
Configure TAS5805 codec mode and I2S interface.
◆ ctrlStateActive()
Control TAS5805 codec chip.
◆ deinit()
Deinitialize TAS5805 codec chip.
◆ getMute()
◆ getVolume()
Get voice volume (0~100)
FIXME: Got the digit volume is not right.
◆ init()
Initialize TAS5805 codec chip.
◆ setAddress()
| void setAddress |
( |
int |
addr | ) |
|
|
inline |
Defines the I2C device address.
◆ setDampMode()
Set DAMP mode.
- Parameters
-
| value | TAS5805M_DAMP_MODE_BTL or TAS5805M_DAMP_MODE_PBTL |
◆ setMute()
Set TAS5805 mute or not Continuously call should have an interval time determined by setMuteFade()
◆ setMuteFade()
Mute gradually by (value)ms.
- Parameters
-
| value | Time for mute with millisecond. |
◆ setPowerPin()
Defines the GPIO pin used to power on the amplifier.
◆ setVolume()
◆ setWire()
Defines the I2C bus instance to be used.
◆ transmitRegisters()
◆ i2c_addr
◆ i2c_handle
◆ MASTER_VOL_REG_ADDR
| constexpr uint8_t MASTER_VOL_REG_ADDR = 0x4C |
|
staticconstexpr |
◆ MUTE_TIME_REG_ADDR
| constexpr uint8_t MUTE_TIME_REG_ADDR = 0x51 |
|
staticconstexpr |
◆ power_pin
◆ TAS5805M_ADDR
| constexpr int TAS5805M_ADDR = 0x2E |
|
staticconstexpr |
◆ TAS5805M_BOOK_00
| constexpr uint8_t TAS5805M_BOOK_00 = 0x00 |
|
staticconstexpr |
◆ TAS5805M_BOOK_8C
| constexpr uint8_t TAS5805M_BOOK_8C = 0x8c |
|
staticconstexpr |
◆ TAS5805M_DAMP_MODE_BTL
| constexpr uint8_t TAS5805M_DAMP_MODE_BTL = 0x0 |
|
staticconstexpr |
◆ TAS5805M_DAMP_MODE_PBTL
| constexpr uint8_t TAS5805M_DAMP_MODE_PBTL = 0x04 |
|
staticconstexpr |
◆ TAS5805M_PAGE_00
| constexpr uint8_t TAS5805M_PAGE_00 = 0x00 |
|
staticconstexpr |
◆ TAS5805M_PAGE_2A
| constexpr uint8_t TAS5805M_PAGE_2A = 0x2a |
|
staticconstexpr |
◆ TAS5805M_REG_00
| constexpr uint8_t TAS5805M_REG_00 = 0x00 |
|
staticconstexpr |
◆ TAS5805M_REG_02
| constexpr uint8_t TAS5805M_REG_02 = 0x02 |
|
staticconstexpr |
◆ TAS5805M_REG_03
| constexpr uint8_t TAS5805M_REG_03 = 0x03 |
|
staticconstexpr |
◆ TAS5805M_REG_24
| constexpr uint8_t TAS5805M_REG_24 = 0x24 |
|
staticconstexpr |
◆ TAS5805M_REG_25
| constexpr uint8_t TAS5805M_REG_25 = 0x25 |
|
staticconstexpr |
◆ TAS5805M_REG_26
| constexpr uint8_t TAS5805M_REG_26 = 0x26 |
|
staticconstexpr |
◆ TAS5805M_REG_27
| constexpr uint8_t TAS5805M_REG_27 = 0x27 |
|
staticconstexpr |
◆ TAS5805M_REG_28
| constexpr uint8_t TAS5805M_REG_28 = 0x28 |
|
staticconstexpr |
◆ TAS5805M_REG_29
| constexpr uint8_t TAS5805M_REG_29 = 0x29 |
|
staticconstexpr |
◆ TAS5805M_REG_2A
| constexpr uint8_t TAS5805M_REG_2A = 0x2a |
|
staticconstexpr |
◆ TAS5805M_REG_2B
| constexpr uint8_t TAS5805M_REG_2B = 0x2b |
|
staticconstexpr |
◆ TAS5805M_REG_35
| constexpr uint8_t TAS5805M_REG_35 = 0x35 |
|
staticconstexpr |
◆ TAS5805M_REG_7E
| constexpr uint8_t TAS5805M_REG_7E = 0x7e |
|
staticconstexpr |
◆ TAS5805M_REG_7F
| constexpr uint8_t TAS5805M_REG_7F = 0x7f |
|
staticconstexpr |
◆ TAS5805M_VOLUME_MAX
| constexpr int TAS5805M_VOLUME_MAX = 100 |
|
staticconstexpr |
◆ TAS5805M_VOLUME_MIN
| constexpr int TAS5805M_VOLUME_MIN = 0 |
|
staticconstexpr |
The documentation for this class was generated from the following file: