Skip to main content

DmaChannel

Struct DmaChannel 

Source
pub struct DmaChannel<D> { /* private fields */ }

Implementations§

Source§

impl DmaChannel<DMAC0>

Source

pub fn channel0(ch: DMAC0) -> Self

Source§

impl DmaChannel<DMAC1>

Source

pub fn channel1(ch: DMAC1) -> Self

Source§

impl DmaChannel<DMAC2>

Source

pub fn channel2(ch: DMAC2) -> Self

Source§

impl DmaChannel<DMAC3>

Source

pub fn channel3(ch: DMAC3) -> Self

Trait Implementations§

Source§

impl Ops for DmaChannel<DMAC0>

Source§

fn set_source(&mut self, addr: PhysicalAddress, size: usize)

Set source address and size of source block in bytes
Source§

fn set_dest(&mut self, addr: PhysicalAddress, size: usize)

Set destination address and size of destination block in bytes
Source§

fn set_cell_size(&mut self, size: usize)

Set cell size, i.e. number of bytes transferred per triggering event
Source§

fn set_start_event(&mut self, event: Option<InterruptSource>)

Set start event source for triggering a cell transfer
Source§

fn set_abort_event(&mut self, event: Option<InterruptSource>)

Set event for aborting a transfer
Source§

fn set_abort_pattern(&mut self, pattern: Option<u8>)

Set data pattern that aborts a transfer
Source§

fn source_pointer(&self) -> PhysicalAddress

Get source pointer
Source§

fn destination_pointer(&self) -> PhysicalAddress

Get destination pointer
Source§

fn irq_enable(&mut self, irq: BitFlags<DmaIrq>)

Enable/disable individual interrupt sources Read more
Source§

fn irq_flags(&self) -> BitFlags<DmaIrq>

Get interrupt flags
Source§

fn set_irq_flags(&mut self, flags: BitFlags<DmaIrq>)

Set interrupt flags
Source§

unsafe fn enable(&mut self, mode: XferMode)

Enable DMA channel Read more
Source§

fn is_enabled(&self) -> bool

Check if a DMA channel is enabled Read more
Source§

fn disable(&mut self)

Disable a DMA channel
Source§

fn force(&mut self)

Force a cell transfer
Source§

fn clear_all_irq_flags(&mut self)

Clear all interrupt flags
Source§

impl Ops for DmaChannel<DMAC1>

Source§

fn set_source(&mut self, addr: PhysicalAddress, size: usize)

Set source address and size of source block in bytes
Source§

fn set_dest(&mut self, addr: PhysicalAddress, size: usize)

Set destination address and size of destination block in bytes
Source§

fn set_cell_size(&mut self, size: usize)

Set cell size, i.e. number of bytes transferred per triggering event
Source§

fn set_start_event(&mut self, event: Option<InterruptSource>)

Set start event source for triggering a cell transfer
Source§

fn set_abort_event(&mut self, event: Option<InterruptSource>)

Set event for aborting a transfer
Source§

fn set_abort_pattern(&mut self, pattern: Option<u8>)

Set data pattern that aborts a transfer
Source§

fn source_pointer(&self) -> PhysicalAddress

Get source pointer
Source§

fn destination_pointer(&self) -> PhysicalAddress

Get destination pointer
Source§

fn irq_enable(&mut self, irq: BitFlags<DmaIrq>)

Enable/disable individual interrupt sources Read more
Source§

fn irq_flags(&self) -> BitFlags<DmaIrq>

Get interrupt flags
Source§

fn set_irq_flags(&mut self, flags: BitFlags<DmaIrq>)

Set interrupt flags
Source§

unsafe fn enable(&mut self, mode: XferMode)

Enable DMA channel Read more
Source§

fn is_enabled(&self) -> bool

Check if a DMA channel is enabled Read more
Source§

fn disable(&mut self)

Disable a DMA channel
Source§

fn force(&mut self)

Force a cell transfer
Source§

fn clear_all_irq_flags(&mut self)

Clear all interrupt flags
Source§

impl Ops for DmaChannel<DMAC2>

Source§

fn set_source(&mut self, addr: PhysicalAddress, size: usize)

Set source address and size of source block in bytes
Source§

fn set_dest(&mut self, addr: PhysicalAddress, size: usize)

Set destination address and size of destination block in bytes
Source§

fn set_cell_size(&mut self, size: usize)

Set cell size, i.e. number of bytes transferred per triggering event
Source§

fn set_start_event(&mut self, event: Option<InterruptSource>)

Set start event source for triggering a cell transfer
Source§

fn set_abort_event(&mut self, event: Option<InterruptSource>)

Set event for aborting a transfer
Source§

fn set_abort_pattern(&mut self, pattern: Option<u8>)

Set data pattern that aborts a transfer
Source§

fn source_pointer(&self) -> PhysicalAddress

Get source pointer
Source§

fn destination_pointer(&self) -> PhysicalAddress

Get destination pointer
Source§

fn irq_enable(&mut self, irq: BitFlags<DmaIrq>)

Enable/disable individual interrupt sources Read more
Source§

fn irq_flags(&self) -> BitFlags<DmaIrq>

Get interrupt flags
Source§

fn set_irq_flags(&mut self, flags: BitFlags<DmaIrq>)

Set interrupt flags
Source§

unsafe fn enable(&mut self, mode: XferMode)

Enable DMA channel Read more
Source§

fn is_enabled(&self) -> bool

Check if a DMA channel is enabled Read more
Source§

fn disable(&mut self)

Disable a DMA channel
Source§

fn force(&mut self)

Force a cell transfer
Source§

fn clear_all_irq_flags(&mut self)

Clear all interrupt flags
Source§

impl Ops for DmaChannel<DMAC3>

Source§

fn set_source(&mut self, addr: PhysicalAddress, size: usize)

Set source address and size of source block in bytes
Source§

fn set_dest(&mut self, addr: PhysicalAddress, size: usize)

Set destination address and size of destination block in bytes
Source§

fn set_cell_size(&mut self, size: usize)

Set cell size, i.e. number of bytes transferred per triggering event
Source§

fn set_start_event(&mut self, event: Option<InterruptSource>)

Set start event source for triggering a cell transfer
Source§

fn set_abort_event(&mut self, event: Option<InterruptSource>)

Set event for aborting a transfer
Source§

fn set_abort_pattern(&mut self, pattern: Option<u8>)

Set data pattern that aborts a transfer
Source§

fn source_pointer(&self) -> PhysicalAddress

Get source pointer
Source§

fn destination_pointer(&self) -> PhysicalAddress

Get destination pointer
Source§

fn irq_enable(&mut self, irq: BitFlags<DmaIrq>)

Enable/disable individual interrupt sources Read more
Source§

fn irq_flags(&self) -> BitFlags<DmaIrq>

Get interrupt flags
Source§

fn set_irq_flags(&mut self, flags: BitFlags<DmaIrq>)

Set interrupt flags
Source§

unsafe fn enable(&mut self, mode: XferMode)

Enable DMA channel Read more
Source§

fn is_enabled(&self) -> bool

Check if a DMA channel is enabled Read more
Source§

fn disable(&mut self)

Disable a DMA channel
Source§

fn force(&mut self)

Force a cell transfer
Source§

fn clear_all_irq_flags(&mut self)

Clear all interrupt flags

Auto Trait Implementations§

§

impl<D> Freeze for DmaChannel<D>
where D: Freeze,

§

impl<D> RefUnwindSafe for DmaChannel<D>
where D: RefUnwindSafe,

§

impl<D> Send for DmaChannel<D>
where D: Send,

§

impl<D> Sync for DmaChannel<D>
where D: Sync,

§

impl<D> Unpin for DmaChannel<D>
where D: Unpin,

§

impl<D> UnsafeUnpin for DmaChannel<D>
where D: UnsafeUnpin,

§

impl<D> UnwindSafe for DmaChannel<D>
where D: UnwindSafe,

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.