nxp-pac

Crates

git

Versions

mcxn236

Flavors

ChannelDma0

Struct ChannelDma0 

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

N DMA0 channel. Do not modify an active descriptor except for documented dynamic scatter/gather or linking. Descriptor reset contents are undefined except TCD_CSR, whose reset is known zero; other zero descriptor defaults are construction values, not hardware reset guarantees.

Implementations§

Source§

impl ChannelDma0

Source

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

Source

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

Source

pub const fn ch_csr(self) -> Reg<ChCsr, RW>

Channel Control and Status. ACTIVE is read-only. DONE is W1C and must be cleared before writing MAJORELINK or ESG. Disable the channel’s hardware service request at the source before clearing ERQ.

Source

pub const fn ch_es(self) -> Reg<ChEs, RW>

Channel Error Status. Error-cause bits are read-only; ERR is W1C to acknowledge the channel error. Do not use read-modify-write to acknowledge unrelated status.

Source

pub const fn ch_int(self) -> Reg<ChInt, RW>

Channel Interrupt Status. INT is W1C to acknowledge the interrupt.

Source

pub const fn ch_sbr(self) -> Reg<ChSbrDma0, RW>

Channel System Bus. MID is read-only captured identity, not a configurable master number. EMI is writable only when GMRC is set. SEC and PAL cannot exceed the writing master’s protection level.

Source

pub const fn ch_pri(self) -> Reg<ChPri, RW>

Channel Priority. APL is 0 through 7 within the assigned group; APL zero uses ERCA arbitration (round-robin or channel-number order).

Source

pub const fn ch_mux(self) -> Reg<ChMux, RW>

Channel Multiplexor Configuration. Raw 7-bit selector; 0 disables requests. Implemented and reserved requests depend on chip and controller; the bit range is not a route-availability guarantee. Disable peripheral service requests before configuring. Nonzero sources must be unique within the controller; selecting an already consumed source writes zero instead.

Source

pub const fn tcd_saddr(self) -> Reg<TcdSaddr, RW>

TCD Source Address.

Source

pub const fn tcd_soff(self) -> Reg<TcdSoff, RW>

TCD signed source offset, exposed as raw 16-bit two’s-complement bits.

Source

pub const fn tcd_attr(self) -> Reg<TcdAttr, RW>

TCD Transfer Attributes. SSIZE and DSIZE encodings 0 through 5 mean 1, 2, 4, 8, 16, 32 bytes; 6 and 7 are reserved. Modulo 0 disables; 1 through 31 specify the number of changing low address bits.

Source

pub const fn tcd_nbytes_mloffno(self) -> Reg<TcdNbytesMloffno, RW>

TCD Transfer Size Without Minor Loop Offsets.

Source

pub const fn tcd_nbytes_mloffyes(self) -> Reg<TcdNbytesMloffyes, RW>

TCD minor-loop-offset alias at 0x28. MLOFF is raw signed 20-bit two’s-complement; align offsets to the associated transfer size. NBYTES must be nonzero.

Source

pub const fn tcd_slast_sda(self) -> Reg<TcdSlastSda, RW>

Raw 32-bit signed last-source adjustment, or destination-address-store pointer when ESDA is enabled.

Source

pub const fn tcd_daddr(self) -> Reg<TcdDaddr, RW>

TCD Destination Address.

Source

pub const fn tcd_doff(self) -> Reg<TcdDoff, RW>

TCD signed destination offset, exposed as raw 16-bit two’s-complement bits.

Source

pub const fn tcd_citer_elinkno(self) -> Reg<TcdCiterElinkno, RW>

TCD Current Major Loop Count (Minor Loop Channel Linking Disabled).

Source

pub const fn tcd_citer_elinkyes(self) -> Reg<TcdCiterElinkyes, RW>

TCD Current Major Loop Count (Minor Loop Channel Linking Enabled).

Source

pub const fn tcd_dlast_sga(self) -> Reg<TcdDlastSga, RW>

Raw 32-bit signed last-destination adjustment, or scatter/gather pointer when ESG is enabled. Scatter/gather descriptors must be 32-byte aligned.

Source

pub const fn tcd_csr(self) -> Reg<TcdCsr, RW>

TCD Control and Status. START requests service. Clear CH_CSR.DONE before setting ESG or MAJORELINK; GCLC must enable linking. BWC encoding 1 is reserved.

Source

pub const fn tcd_biter_elinkno(self) -> Reg<TcdBiterElinkno, RW>

TCD Beginning Major Loop Count (Minor Loop Channel Linking Disabled).

Source

pub const fn tcd_biter_elinkyes(self) -> Reg<TcdBiterElinkyes, RW>

TCD Beginning Major Loop Count (Minor Loop Channel Linking Enabled).

Trait Implementations§

Source§

impl Clone for ChannelDma0

Source§

fn clone(&self) -> ChannelDma0

Returns a duplicate 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 for ChannelDma0

Source§

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

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

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 ChannelDma0

Source§

impl Eq for ChannelDma0

Source§

impl Send for ChannelDma0

Source§

impl StructuralPartialEq for ChannelDma0

Source§

impl Sync for ChannelDma0

Auto Trait Implementations§

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.