pub struct DmaConfig { /* private fields */ }
Expand description

Contains the complete set of configuration for a DMA stream.

Implementations§

source§

impl DmaConfig

source

pub fn priority(self, priority: Priority) -> Self

Set the priority.

source

pub fn memory_increment(self, memory_increment: bool) -> Self

Set the memory_increment.

source

pub fn peripheral_increment(self, peripheral_increment: bool) -> Self

Set the peripheral_increment.

source

pub fn transfer_complete_interrupt( self, transfer_complete_interrupt: bool ) -> Self

Set the transfer_complete_interrupt.

source

pub fn half_transfer_interrupt(self, half_transfer_interrupt: bool) -> Self

Set the half_transfer_interrupt.

source

pub fn transfer_error_interrupt(self, transfer_error_interrupt: bool) -> Self

Set the transfer_error_interrupt.

source

pub fn direct_mode_error_interrupt( self, direct_mode_error_interrupt: bool ) -> Self

Set the direct_mode_error_interrupt.

source

pub fn fifo_error_interrupt(self, fifo_error_interrupt: bool) -> Self

Set the fifo_error_interrupt.

source

pub fn double_buffer(self, double_buffer: bool) -> Self

Set the double_buffer.

source

pub fn fifo_threshold(self, fifo_threshold: FifoThreshold) -> Self

Set the fifo_threshold.

source

pub fn fifo_enable(self, fifo_enable: bool) -> Self

Set the fifo_enable.

source

pub fn memory_burst(self, memory_burst: BurstMode) -> Self

Set the memory_burst.

source

pub fn peripheral_burst(self, peripheral_burst: BurstMode) -> Self

Set the peripheral_burst.

Trait Implementations§

source§

impl Clone for DmaConfig

source§

fn clone(&self) -> DmaConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DmaConfig

source§

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

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

impl Default for DmaConfig

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for DmaConfig

Auto Trait Implementations§

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