pub struct DmaConfig { /* private fields */ }
Expand description
Contains the complete set of configuration for a DMA stream.
Implementations
sourceimpl DmaConfig
impl DmaConfig
sourcepub fn memory_increment(self, memory_increment: bool) -> Self
pub fn memory_increment(self, memory_increment: bool) -> Self
Set the memory_increment.
sourcepub fn peripheral_increment(self, peripheral_increment: bool) -> Self
pub fn peripheral_increment(self, peripheral_increment: bool) -> Self
Set the peripheral_increment.
sourcepub fn transfer_complete_interrupt(
self,
transfer_complete_interrupt: bool
) -> Self
pub fn transfer_complete_interrupt(
self,
transfer_complete_interrupt: bool
) -> Self
Set the transfer_complete_interrupt.
sourcepub fn half_transfer_interrupt(self, half_transfer_interrupt: bool) -> Self
pub fn half_transfer_interrupt(self, half_transfer_interrupt: bool) -> Self
Set the half_transfer_interrupt.
sourcepub fn transfer_error_interrupt(self, transfer_error_interrupt: bool) -> Self
pub fn transfer_error_interrupt(self, transfer_error_interrupt: bool) -> Self
Set the transfer_error_interrupt.
sourcepub fn direct_mode_error_interrupt(
self,
direct_mode_error_interrupt: bool
) -> Self
pub fn direct_mode_error_interrupt(
self,
direct_mode_error_interrupt: bool
) -> Self
Set the direct_mode_error_interrupt.
sourcepub fn fifo_error_interrupt(self, fifo_error_interrupt: bool) -> Self
pub fn fifo_error_interrupt(self, fifo_error_interrupt: bool) -> Self
Set the fifo_error_interrupt.
sourcepub fn double_buffer(self, double_buffer: bool) -> Self
pub fn double_buffer(self, double_buffer: bool) -> Self
Set the double_buffer.
sourcepub fn fifo_threshold(self, fifo_threshold: FifoThreshold) -> Self
pub fn fifo_threshold(self, fifo_threshold: FifoThreshold) -> Self
Set the fifo_threshold.
sourcepub fn fifo_enable(self, fifo_enable: bool) -> Self
pub fn fifo_enable(self, fifo_enable: bool) -> Self
Set the fifo_enable.
sourcepub fn memory_burst(self, memory_burst: BurstMode) -> Self
pub fn memory_burst(self, memory_burst: BurstMode) -> Self
Set the memory_burst.
sourcepub fn peripheral_burst(self, peripheral_burst: BurstMode) -> Self
pub fn peripheral_burst(self, peripheral_burst: BurstMode) -> Self
Set the peripheral_burst.
Trait Implementations
impl Copy for DmaConfig
Auto Trait Implementations
impl RefUnwindSafe for DmaConfig
impl Send for DmaConfig
impl Sync for DmaConfig
impl Unpin for DmaConfig
impl UnwindSafe for DmaConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more