Struct stm32f3xx_hal::dma::dma2::C1
source · pub struct C1 { /* private fields */ }
Expand description
Singleton that represents a DMA channel
Trait Implementations§
source§impl Channel for C1
impl Channel for C1
source§fn is_event_triggered(&self, event: Event) -> bool
fn is_event_triggered(&self, event: Event) -> bool
Is the interrupt flag for the given event set?
source§fn clear_event(&mut self, event: Event)
fn clear_event(&mut self, event: Event)
Clear the interrupt flag for the given event. Read more
source§fn clear_events(&mut self)
fn clear_events(&mut self)
Clear all interrupt event flags
source§fn reset(&mut self)
fn reset(&mut self)
Reset the control registers of this channel.
This stops any ongoing transfers.
source§unsafe fn set_peripheral_address(&mut self, address: u32, inc: Increment)
unsafe fn set_peripheral_address(&mut self, address: u32, inc: Increment)
Set the base address of the peripheral data register from/to which the
data will be read/written. Read more
source§unsafe fn set_memory_address(&mut self, address: u32, inc: Increment)
unsafe fn set_memory_address(&mut self, address: u32, inc: Increment)
Set the base address of the memory area from/to which
the data will be read/written. Read more
source§fn set_transfer_length(&mut self, len: u16)
fn set_transfer_length(&mut self, len: u16)
Set the number of words to transfer. Read more
source§fn set_word_size<W>(&mut self)
fn set_word_size<W>(&mut self)
Set the word size. Read more
source§fn set_priority_level(&mut self, priority: Priority)
fn set_priority_level(&mut self, priority: Priority)
Set the priority level of this channel
source§fn set_direction(&mut self, direction: Direction)
fn set_direction(&mut self, direction: Direction)
Set the transfer direction
source§fn configure_intterupt(&mut self, event: Event, enable: bool)
fn configure_intterupt(&mut self, event: Event, enable: bool)
Enable or disable the interrupt for the specified
Event
.source§fn enable_interrupt(&mut self, event: Event)
fn enable_interrupt(&mut self, event: Event)
Enable the interrupt for the given
Event
.source§fn disable_interrupt(&mut self, event: Event)
fn disable_interrupt(&mut self, event: Event)
Disable the interrupt for the given
Event
.source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Is there a transfer in progress on this channel?
Auto Trait Implementations§
impl RefUnwindSafe for C1
impl Send for C1
impl Sync for C1
impl Unpin for C1
impl UnwindSafe for C1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more