Struct i2c_tpa2016::I2CTPA2016[][src]

pub struct I2CTPA2016<T: I2CDevice + Sized> { /* fields omitted */ }

This object communicates with a PA2016 audio amplifier.

Methods

impl<T> I2CTPA2016<T> where
    T: I2CDevice + Sized
[src]

Constructs a new I2CTPA2016<T>.

Set the gain from -28 and 30

Returns the gain value.

Set the automatic gain control compression.

Values: 0 = 1:1 1 = 1:2 2 = 1:4 3 = 1:8

Set the release time in steps from 0 to 63 where each step is 0.0137s.

Set the attack time in steps from 0 to 63 where each step is 0.1067ms.

Set the hold time in steps from 0 to 63 where each step is 0.0137s.

Enable level limiting.

Disable level limiting.

Set the level limit from 0 and 31.

Set the amx gain from 0 and 12.

Trait Implementations

impl<T: Debug + I2CDevice + Sized> Debug for I2CTPA2016<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for I2CTPA2016<T> where
    T: Send

impl<T> Sync for I2CTPA2016<T> where
    T: Sync