I2sExt

Trait I2sExt 

Source
pub trait I2sExt: Sized + Instance {
    const NoMck: Option<Self::Mck> = None;

    // Required method
    fn i2s(
        self,
        pins: (impl Into<Self::Ws>, impl Into<Self::Ck>, Option<impl Into<Self::Mck>>, impl Into<Self::Sd>),
        rcc: &mut Rcc,
    ) -> I2s<Self>;
}
Expand description

Trait to build an I2s object from SPI peripheral, pins and clocks

Provided Associated Constants§

Source

const NoMck: Option<Self::Mck> = None

Required Methods§

Source

fn i2s( self, pins: (impl Into<Self::Ws>, impl Into<Self::Ck>, Option<impl Into<Self::Mck>>, impl Into<Self::Sd>), rcc: &mut Rcc, ) -> I2s<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<SPI: Instance> I2sExt for SPI