pub struct I2S<'d, T: Instance, Tx, Rx> { /* private fields */ }
Expand description
I2S driver.
Implementations§
Source§impl<'d, T: Instance, Tx, Rx> I2S<'d, T, Tx, Rx>
impl<'d, T: Instance, Tx, Rx> I2S<'d, T, Tx, Rx>
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 = Tx> + 'd,
rxdma: impl Peripheral<P = Rx> + '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 = Tx> + 'd, rxdma: impl Peripheral<P = Rx> + 'd, freq: Hertz, config: Config, ) -> Self
Note: Full-Duplex modes are not supported at this time
Trait Implementations§
Auto Trait Implementations§
impl<'d, T, Tx, Rx> Freeze for I2S<'d, T, Tx, Rx>
impl<'d, T, Tx, Rx> RefUnwindSafe for I2S<'d, T, Tx, Rx>
impl<'d, T, Tx, Rx> Send for I2S<'d, T, Tx, Rx>
impl<'d, T, Tx, Rx> Sync for I2S<'d, T, Tx, Rx>
impl<'d, T, Tx, Rx> Unpin for I2S<'d, T, Tx, Rx>
impl<'d, T, Tx, Rx> !UnwindSafe for I2S<'d, T, Tx, Rx>
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