rp-pac

Crates

5.0.0

Versions

default

Flavors

Struct Dma

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

DMA with separate read and write masters

Implementations§

Source§

impl Dma

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn ch(self, n: usize) -> Channel

Source

pub const fn intr(self) -> Reg<Intr, RW>

Interrupt Status (raw)

Source

pub const fn inte0(self) -> Reg<Inte0, RW>

Interrupt Enables for IRQ 0

Source

pub const fn intf0(self) -> Reg<Intf0, RW>

Force Interrupts

Source

pub const fn ints0(self) -> Reg<Ints0, RW>

Interrupt Status for IRQ 0

Source

pub const fn inte1(self) -> Reg<Inte1, RW>

Interrupt Enables for IRQ 1

Source

pub const fn intf1(self) -> Reg<Intf1, RW>

Force Interrupts for IRQ 1

Source

pub const fn ints1(self) -> Reg<Ints1, RW>

Interrupt Status (masked) for IRQ 1

Source

pub const fn timer(self, n: usize) -> Reg<Timer, RW>

Pacing (X/Y) Fractional Timer The pacing timer produces TREQ assertions at a rate set by ((X/Y) * sys_clk). This equation is evaluated every sys_clk cycles and therefore can only generate TREQs at a rate of 1 per sys_clk (i.e. permanent TREQ) or less.

Source

pub const fn multi_chan_trigger(self) -> Reg<MultiChanTrigger, RW>

Trigger one or more channels simultaneously

Source

pub const fn sniff_ctrl(self) -> Reg<SniffCtrl, RW>

Sniffer Control

Source

pub const fn sniff_data(self) -> Reg<u32, RW>

Data accumulator for sniff hardware Write an initial seed value here before starting a DMA transfer on the channel indicated by SNIFF_CTRL_DMACH. The hardware will update this register each time it observes a read from the indicated channel. Once the channel completes, the final result can be read from this register.

Source

pub const fn fifo_levels(self) -> Reg<FifoLevels, RW>

Debug RAF, WAF, TDF levels

Source

pub const fn chan_abort(self) -> Reg<ChanAbort, RW>

Abort an in-progress transfer sequence on one or more channels

Source

pub const fn n_channels(self) -> Reg<Nchannels, RW>

The number of channels this DMA instance is equipped with. This DMA supports up to 16 hardware channels, but can be configured with as few as one, to minimise silicon area.

Trait Implementations§

Source§

impl Clone for Dma

Source§

fn clone(&self) -> Dma

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Dma

Source§

fn eq(&self, other: &Dma) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Dma

Source§

impl Eq for Dma

Source§

impl Send for Dma

Source§

impl StructuralPartialEq for Dma

Source§

impl Sync for Dma

Auto Trait Implementations§

§

impl Freeze for Dma

§

impl RefUnwindSafe for Dma

§

impl Unpin for Dma

§

impl UnwindSafe for Dma

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.