Struct embassy_stm32::i2s::I2S
source · pub struct I2S<'d> { /* private fields */ }
Expand description
I2S driver.
Implementations§
source§impl<'d> I2S<'d>
impl<'d> I2S<'d>
sourcepub fn new_txonly<T: Instance>(
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,
freq: Hertz,
config: Config,
) -> Self
pub fn new_txonly<T: Instance>( 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, freq: Hertz, config: Config, ) -> Self
Create a transmitter driver
sourcepub fn new_rxonly<T: Instance>(
peri: impl Peripheral<P = T> + 'd,
sd: impl Peripheral<P = impl MisoPin<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,
rxdma: impl Peripheral<P = impl RxDma<T>> + 'd,
freq: Hertz,
config: Config,
) -> Self
pub fn new_rxonly<T: Instance>( peri: impl Peripheral<P = T> + 'd, sd: impl Peripheral<P = impl MisoPin<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, rxdma: impl Peripheral<P = impl RxDma<T>> + 'd, freq: Hertz, config: Config, ) -> Self
Create a receiver driver
sourcepub fn new_full_duplex<T: Instance>(
peri: impl Peripheral<P = T> + 'd,
txsd: impl Peripheral<P = impl MosiPin<T>> + 'd,
rxsd: impl Peripheral<P = impl MisoPin<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_full_duplex<T: Instance>( peri: impl Peripheral<P = T> + 'd, txsd: impl Peripheral<P = impl MosiPin<T>> + 'd, rxsd: impl Peripheral<P = impl MisoPin<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
Create a full duplex transmitter driver
Trait Implementations§
Auto Trait Implementations§
impl<'d> Freeze for I2S<'d>
impl<'d> RefUnwindSafe for I2S<'d>
impl<'d> Send for I2S<'d>
impl<'d> Sync for I2S<'d>
impl<'d> Unpin for I2S<'d>
impl<'d> !UnwindSafe for I2S<'d>
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