Struct C4

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

Singleton that represents a DMA channel

Trait Implementations§

Source§

impl Channel for C4

Source§

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)

Clear the interrupt flag for the given event. Read more
Source§

fn clear_events(&mut self)

Clear all interrupt event flags
Source§

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)

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)

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)

Set the number of words to transfer. Read more
Source§

fn set_word_size<W>(&mut self)

Set the word size. Read more
Source§

fn set_priority_level(&mut self, priority: Priority)

Set the priority level of this channel
Source§

fn set_direction(&mut self, direction: Direction)

Set the transfer direction
Source§

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)

Enable the interrupt for the given Event.
Source§

fn disable_interrupt(&mut self, event: Event)

Disable the interrupt for the given Event.
Source§

fn enable(&mut self)

Start a transfer
Source§

fn disable(&mut self)

Stop the current transfer
Source§

fn is_enabled(&self) -> bool

Is there a transfer in progress on this channel?
Source§

impl Debug for C4

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for C4

§

impl RefUnwindSafe for C4

§

impl Send for C4

§

impl Sync for C4

§

impl Unpin for C4

§

impl UnwindSafe for C4

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>,

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.