Struct esp32c3_hal::i2s::I2s

source ·
pub struct I2s<'d, I, P, CH>where
    I: Instance,
    P: I2sMclkPin,
    CH: ChannelTypes,{
    pub i2s_tx: TxCreator<'d, <I as Instance>::Peripheral, CH>,
    pub i2s_rx: RxCreator<'d, <I as Instance>::Peripheral, CH>,
    /* private fields */
}
Expand description

Instance of the I2S peripheral driver

Fields§

§i2s_tx: TxCreator<'d, <I as Instance>::Peripheral, CH>§i2s_rx: RxCreator<'d, <I as Instance>::Peripheral, CH>

Trait Implementations§

source§

impl<'d, I, P, CH> I2s0New<'d, I, P, CH> for I2s<'d, I, P, CH>where I: Instance + I2s0Instance, P: I2sMclkPin, CH: ChannelTypes, <CH as ChannelTypes>::P: I2sPeripheral + I2s0Peripheral,

source§

fn new( i2s: impl Peripheral<P = I> + 'd, pins: P, standard: Standard, data_format: DataFormat, sample_rate: impl Into<Rate<u32, 1, 1>>, channel: Channel<'d, CH>, peripheral_clock_control: &mut PeripheralClockControl, clocks: &Clocks<'_> ) -> I2s<'d, I, P, CH>

Auto Trait Implementations§

§

impl<'d, I, P, CH> RefUnwindSafe for I2s<'d, I, P, CH>where I: RefUnwindSafe, P: RefUnwindSafe, <I as Instance>::Peripheral: RefUnwindSafe, <CH as ChannelTypes>::Rx<'d>: RefUnwindSafe, <CH as ChannelTypes>::Tx<'d>: RefUnwindSafe,

§

impl<'d, I, P, CH> Send for I2s<'d, I, P, CH>where I: Send, P: Send, <I as Instance>::Peripheral: Send, <CH as ChannelTypes>::Rx<'d>: Send, <CH as ChannelTypes>::Tx<'d>: Send,

§

impl<'d, I, P, CH> Sync for I2s<'d, I, P, CH>where I: Sync, P: Sync, <I as Instance>::Peripheral: Sync, <CH as ChannelTypes>::Rx<'d>: Sync, <CH as ChannelTypes>::Tx<'d>: Sync,

§

impl<'d, I, P, CH> Unpin for I2s<'d, I, P, CH>where I: Unpin, P: Unpin, <I as Instance>::Peripheral: Unpin, <CH as ChannelTypes>::Rx<'d>: Unpin, <CH as ChannelTypes>::Tx<'d>: Unpin,

§

impl<'d, I, P, CH> !UnwindSafe for I2s<'d, I, P, CH>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.