pub struct Wm8994<I2c, I2cError, Delay> { /* private fields */ }Implementations§
Source§impl<I2c, I2cError, Delay> Wm8994<I2c, I2cError, Delay>
impl<I2c, I2cError, Delay> Wm8994<I2c, I2cError, Delay>
pub fn new(config: Config, i2c: I2c, delay: Delay) -> Self
pub fn init_headphone(&mut self) -> Result<(), Error<I2cError>>
pub fn aif1_control1_wl(&mut self, value: u16) -> Result<(), Error<I2cError>>
pub fn set_mute(&mut self, mute_on: bool) -> Result<(), Error<I2cError>>
pub fn set_output_volume(&mut self, volume: u8) -> Result<(), Error<I2cError>>
pub fn soft_reset(&mut self) -> Result<(), Error<I2cError>>
pub fn get_family(&mut self) -> Result<u16, Error<I2cError>>
pub fn read_reg(&mut self, reg: u16) -> Result<u16, Error<I2cError>>
pub fn write_reg(&mut self, reg: u16, val: u16) -> Result<(), Error<I2cError>>
Auto Trait Implementations§
impl<I2c, I2cError, Delay> Freeze for Wm8994<I2c, I2cError, Delay>
impl<I2c, I2cError, Delay> RefUnwindSafe for Wm8994<I2c, I2cError, Delay>
impl<I2c, I2cError, Delay> Send for Wm8994<I2c, I2cError, Delay>
impl<I2c, I2cError, Delay> Sync for Wm8994<I2c, I2cError, Delay>
impl<I2c, I2cError, Delay> Unpin for Wm8994<I2c, I2cError, Delay>
impl<I2c, I2cError, Delay> UnwindSafe for Wm8994<I2c, I2cError, Delay>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more