pub struct C2 { /* private fields */ }
Expand description
Singleton that represents a DMA channel
Trait Implementations§
Source§impl Channel for C2
impl Channel for C2
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 Freeze for C2
impl RefUnwindSafe for C2
impl Send for C2
impl Sync for C2
impl Unpin for C2
impl UnwindSafe for C2
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