Struct esp32c3_hal::i2s::I2s
source · pub struct I2s<I, T, P, TX, RX>where
I: Instance<T>,
T: RegisterAccess + Clone,
P: I2sMclkPin,
TX: Tx,
RX: Rx,{
pub i2s_tx: TxCreator<T, TX>,
pub i2s_rx: RxCreator<T, RX>,
/* private fields */
}
Fields
i2s_tx: TxCreator<T, TX>
i2s_rx: RxCreator<T, RX>
Trait Implementations
sourceimpl<I, T, P, TX, RX, IP> I2s0New<I, T, P, TX, RX, IP> for I2s<I, T, P, TX, RX>where
I: Instance<T> + I2s0Instance,
T: RegisterAccess + Clone,
P: I2sMclkPin,
TX: Tx,
RX: Rx,
IP: I2sPeripheral + I2s0Peripheral,
impl<I, T, P, TX, RX, IP> I2s0New<I, T, P, TX, RX, IP> for I2s<I, T, P, TX, RX>where
I: Instance<T> + I2s0Instance,
T: RegisterAccess + Clone,
P: I2sMclkPin,
TX: Tx,
RX: Rx,
IP: I2sPeripheral + I2s0Peripheral,
fn new(
i2s: I,
pins: P,
standard: Standard,
data_format: DataFormat,
sample_rate: impl Into<Rate<u32, 1, 1>>,
channel: Channel<TX, RX, IP>,
peripheral_clock_control: &mut PeripheralClockControl,
clocks: &Clocks
) -> I2s<I, T, P, TX, RX>
Auto Trait Implementations
impl<I, T, P, TX, RX> RefUnwindSafe for I2s<I, T, P, TX, RX>where
I: RefUnwindSafe,
P: RefUnwindSafe,
RX: RefUnwindSafe,
T: RefUnwindSafe,
TX: RefUnwindSafe,
impl<I, T, P, TX, RX> Send for I2s<I, T, P, TX, RX>where
I: Send,
P: Send,
RX: Send,
T: Send,
TX: Send,
impl<I, T, P, TX, RX> Sync for I2s<I, T, P, TX, RX>where
I: Sync,
P: Sync,
RX: Sync,
T: Sync,
TX: Sync,
impl<I, T, P, TX, RX> Unpin for I2s<I, T, P, TX, RX>where
I: Unpin,
P: Unpin,
RX: Unpin,
T: Unpin,
TX: Unpin,
impl<I, T, P, TX, RX> UnwindSafe for I2s<I, T, P, TX, RX>where
I: UnwindSafe,
P: UnwindSafe,
RX: UnwindSafe,
T: UnwindSafe,
TX: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more