S0

Struct S0 

Source
pub struct S0 { /* private fields */ }
Expand description

A handle to the $SX DMA peripheral

Trait Implementations§

Source§

impl Debug for S0

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DmaStream for S0

Source§

fn listen(&mut self, event: Event)

Enable interrupt
Source§

fn unlisten(&mut self, event: Event)

Disable interrupt
Source§

fn is_complete(&self) -> bool

Transfer is complete?
Source§

fn has_error(&self) -> bool

Transfer has error?
Source§

fn reset(&mut self)

Reset after a transfer
Source§

impl<'s, S> DmaStreamTransfer<(&'s [S], &'s [S]), S, DoubleBufferedTransfer<S>> for S0

Source§

fn start_transfer<CHANNEL: DmaChannel>( self, (source0, source1): (&'s [S], &'s [S]), target: &mut S, ) -> DoubleBufferedTransfer<S>

Configure, enable, and return a double-buffered DMA transfer.

Source§

impl<T, S: AsRef<[T]>> DmaStreamTransfer<S, T, OneShotTransfer<S>> for S0

Source§

fn start_transfer<CHANNEL: DmaChannel>( self, source: S, target: &mut T, ) -> OneShotTransfer<S>

Configure, enable, and return a double-buffered DMA transfer.

Source§

impl<S> Transfer<S0> for DoubleBufferedTransfer<S>

Source§

fn is_complete(&self) -> bool

Transfer is complete?
Source§

fn has_error(&self) -> bool

Transfer has error?
Source§

fn reset(self) -> S0

Reset after a transfer Read more
Source§

fn wait(self) -> Result<STREAM, STREAM>

Wait until transfer is either complete or has error.
Source§

impl<S> Transfer<S0> for OneShotTransfer<S>

Source§

fn is_complete(&self) -> bool

Transfer is complete?
Source§

fn has_error(&self) -> bool

Transfer has error?
Source§

fn reset(self) -> S0

Reset after a transfer Read more
Source§

fn wait(self) -> Result<STREAM, STREAM>

Wait until transfer is either complete or has error.
Source§

impl I2sDmaStream<SPI3, C0, DmaRx> for S0

Source§

impl SpiDmaStream<SPI3, C0, DmaRx> for S0

Auto Trait Implementations§

§

impl Freeze for S0

§

impl RefUnwindSafe for S0

§

impl Send for S0

§

impl Sync for S0

§

impl Unpin for S0

§

impl UnwindSafe for S0

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.