Embassy
rp-pac

Crates

git

Versions

default

Flavors

Struct rp_pac::dma::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 copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl PartialEq<Dma> for Dma

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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 StructuralEq for Dma

source§

impl StructuralPartialEq for Dma

source§

impl Sync for Dma

Auto Trait Implementations§

§

impl RefUnwindSafe for Dma

§

impl Unpin for Dma

§

impl UnwindSafe for Dma

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.