Struct esp32c3_hal::i2s::I2sTx

source ·
pub struct I2sTx<'d, T, P, CH>where
    T: RegisterAccess,
    CH: ChannelTypes,
    P: I2sTxPins,{ /* private fields */ }
Expand description

I2S TX channel

Trait Implementations§

source§

impl<'d, T, P, CH, BUFFER> DmaTransfer<BUFFER, I2sTx<'d, T, P, CH>> for I2sWriteDmaTransfer<'d, T, P, CH, BUFFER>where T: RegisterAccess, CH: ChannelTypes, P: I2sTxPins,

source§

fn wait(self) -> (BUFFER, I2sTx<'d, T, P, CH>)

Wait for the DMA transfer to complete and return the buffers and the I2sTx instance.

source§

fn is_done(&self) -> bool

Check if the DMA transfer is complete

source§

impl<'d, T, P, W, CH> I2sWrite<W> for I2sTx<'d, T, P, CH>where T: RegisterAccess, CH: ChannelTypes, P: I2sTxPins, W: AcceptedWord,

source§

fn write(&mut self, words: &[W]) -> Result<(), Error>

source§

impl<'d, T, P, CH, TXBUF> I2sWriteDma<'d, T, P, CH, TXBUF> for I2sTx<'d, T, P, CH>where T: RegisterAccess, CH: ChannelTypes, P: I2sTxPins,

source§

fn write_dma( self, words: TXBUF ) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>where TXBUF: ReadBuffer<Word = u8>,

Write I2S. Returns I2sWriteDmaTransfer which represents the in-progress DMA transfer
source§

fn write_dma_circular( self, words: TXBUF ) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>where TXBUF: ReadBuffer<Word = u8>,

Continuously write to I2S. Returns I2sWriteDmaTransfer which represents the in-progress DMA transfer

Auto Trait Implementations§

§

impl<'d, T, P, CH> RefUnwindSafe for I2sTx<'d, T, P, CH>where P: RefUnwindSafe, T: RefUnwindSafe, <CH as ChannelTypes>::Tx<'d>: RefUnwindSafe,

§

impl<'d, T, P, CH> Send for I2sTx<'d, T, P, CH>where P: Send, T: Send, <CH as ChannelTypes>::Tx<'d>: Send,

§

impl<'d, T, P, CH> Sync for I2sTx<'d, T, P, CH>where P: Sync, T: Sync, <CH as ChannelTypes>::Tx<'d>: Sync,

§

impl<'d, T, P, CH> Unpin for I2sTx<'d, T, P, CH>where P: Unpin, T: Unpin, <CH as ChannelTypes>::Tx<'d>: Unpin,

§

impl<'d, T, P, CH> UnwindSafe for I2sTx<'d, T, P, CH>where P: UnwindSafe, T: UnwindSafe, <CH as ChannelTypes>::Tx<'d>: UnwindSafe,

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.