Struct esp32_hal::i2s::I2sRx

source ·
pub struct I2sRx<T, P, RX>where
    T: RegisterAccess,
    P: I2sRxPins,
    RX: Rx,{ /* private fields */ }
Expand description

I2S RX channel

Trait Implementations§

source§

impl<'d, T, P, RX, BUFFER> DmaTransfer<BUFFER, I2sRx<T, P, RX>> for I2sReadDmaTransfer<T, P, RX, BUFFER>where T: RegisterAccess, P: I2sRxPins, RX: Rx,

source§

fn wait(self) -> (BUFFER, I2sRx<T, P, RX>)

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

source§

impl<W, T, P, RX> I2sRead<W> for I2sRx<T, P, RX>where T: RegisterAccess, P: I2sRxPins, RX: Rx, W: AcceptedWord,

source§

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

source§

impl<'d, T, P, RX, RXBUF> I2sReadDma<'d, T, P, RX, RXBUF> for I2sRx<T, P, RX>where T: RegisterAccess, P: I2sRxPins, RX: Rx,

source§

fn read_dma( self, words: RXBUF ) -> Result<I2sReadDmaTransfer<T, P, RX, RXBUF>, Error>where RXBUF: WriteBuffer<Word = u8>,

Read I2S. Returns I2sReadDmaTransfer which represents the in-ptrogress DMA transfer
source§

fn read_dma_circular( self, words: RXBUF ) -> Result<I2sReadDmaTransfer<T, P, RX, RXBUF>, Error>where RXBUF: WriteBuffer<Word = u8>,

Continously read from I2S. Returns I2sReadDmaTransfer which represents the in-ptrogress DMA transfer

Auto Trait Implementations§

§

impl<T, P, RX> RefUnwindSafe for I2sRx<T, P, RX>where P: RefUnwindSafe, RX: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, P, RX> Send for I2sRx<T, P, RX>where P: Send, RX: Send, T: Send,

§

impl<T, P, RX> Sync for I2sRx<T, P, RX>where P: Sync, RX: Sync, T: Sync,

§

impl<T, P, RX> Unpin for I2sRx<T, P, RX>where P: Unpin, RX: Unpin, T: Unpin,

§

impl<T, P, RX> UnwindSafe for I2sRx<T, P, RX>where P: UnwindSafe, RX: UnwindSafe, T: 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.