Struct embassy_stm32::i2s::I2S
source · pub struct I2S<'d, T: Instance> { /* private fields */ }
Expand description
I2S driver.
Implementations§
source§impl<'d, T: Instance> I2S<'d, T>
impl<'d, T: Instance> I2S<'d, T>
sourcepub fn new(
peri: impl Peripheral<P = T> + 'd,
sd: impl Peripheral<P = impl MosiPin<T>> + 'd,
ws: impl Peripheral<P = impl WsPin<T>> + 'd,
ck: impl Peripheral<P = impl CkPin<T>> + 'd,
mck: impl Peripheral<P = impl MckPin<T>> + 'd,
txdma: impl Peripheral<P = impl TxDma<T>> + 'd,
rxdma: impl Peripheral<P = impl RxDma<T>> + 'd,
freq: Hertz,
config: Config
) -> Self
pub fn new( peri: impl Peripheral<P = T> + 'd, sd: impl Peripheral<P = impl MosiPin<T>> + 'd, ws: impl Peripheral<P = impl WsPin<T>> + 'd, ck: impl Peripheral<P = impl CkPin<T>> + 'd, mck: impl Peripheral<P = impl MckPin<T>> + 'd, txdma: impl Peripheral<P = impl TxDma<T>> + 'd, rxdma: impl Peripheral<P = impl RxDma<T>> + 'd, freq: Hertz, config: Config ) -> Self
Note: Full-Duplex modes are not supported at this time
Trait Implementations§
Auto Trait Implementations§
impl<'d, T> Freeze for I2S<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for I2S<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for I2S<'d, T>where
T: Send,
impl<'d, T> Sync for I2S<'d, T>where
T: Sync,
impl<'d, T> Unpin for I2S<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for I2S<'d, T>
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