pub struct ChannelDma1 { /* private fields */ }Expand description
N DMA1 channel. CH_SBR resets to 7. Descriptor reset contents are undefined except TCD_CSR, whose reset is known zero; other zero descriptor defaults construct software values only.
Implementations§
Source§impl ChannelDma1
impl ChannelDma1
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn ch_csr(self) -> Reg<ChCsr, RW>
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.
Sourcepub const fn ch_es(self) -> Reg<ChEs, RW>
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.
Sourcepub const fn ch_int(self) -> Reg<ChInt, RW>
pub const fn ch_int(self) -> Reg<ChInt, RW>
Channel Interrupt Status. INT is W1C to acknowledge the interrupt.
Sourcepub const fn ch_sbr(self) -> Reg<ChSbrDma1, RW>
pub const fn ch_sbr(self) -> Reg<ChSbrDma1, RW>
Channel System Bus. Read-only captured MID; EMI requires GMRC. SEC and PAL cannot exceed the writing master’s protection level.
Sourcepub const fn ch_pri(self) -> Reg<ChPri, RW>
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).
Sourcepub const fn ch_mux(self) -> Reg<ChMux, RW>
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.
Sourcepub const fn tcd_soff(self) -> Reg<TcdSoff, RW>
pub const fn tcd_soff(self) -> Reg<TcdSoff, RW>
TCD signed source offset, exposed as raw 16-bit two’s-complement bits.
Sourcepub const fn tcd_attr(self) -> Reg<TcdAttr, RW>
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.
Sourcepub const fn tcd_nbytes_mloffno(self) -> Reg<TcdNbytesMloffno, RW>
pub const fn tcd_nbytes_mloffno(self) -> Reg<TcdNbytesMloffno, RW>
TCD Transfer Size Without Minor Loop Offsets.
Sourcepub const fn tcd_nbytes_mloffyes(self) -> Reg<TcdNbytesMloffyes, RW>
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.
Sourcepub const fn tcd_slast_sda(self) -> Reg<TcdSlastSda, RW>
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.
Sourcepub const fn tcd_doff(self) -> Reg<TcdDoff, RW>
pub const fn tcd_doff(self) -> Reg<TcdDoff, RW>
TCD signed destination offset, exposed as raw 16-bit two’s-complement bits.
Sourcepub const fn tcd_citer_elinkno(self) -> Reg<TcdCiterElinkno, RW>
pub const fn tcd_citer_elinkno(self) -> Reg<TcdCiterElinkno, RW>
TCD Current Major Loop Count (Minor Loop Channel Linking Disabled).
Sourcepub const fn tcd_citer_elinkyes(self) -> Reg<TcdCiterElinkyes, RW>
pub const fn tcd_citer_elinkyes(self) -> Reg<TcdCiterElinkyes, RW>
TCD Current Major Loop Count (Minor Loop Channel Linking Enabled).
Sourcepub const fn tcd_dlast_sga(self) -> Reg<TcdDlastSga, RW>
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.
Sourcepub const fn tcd_csr(self) -> Reg<TcdCsr, RW>
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.
Sourcepub const fn tcd_biter_elinkno(self) -> Reg<TcdBiterElinkno, RW>
pub const fn tcd_biter_elinkno(self) -> Reg<TcdBiterElinkno, RW>
TCD Beginning Major Loop Count (Minor Loop Channel Linking Disabled).
Sourcepub const fn tcd_biter_elinkyes(self) -> Reg<TcdBiterElinkyes, RW>
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 ChannelDma1
impl Clone for ChannelDma1
Source§fn clone(&self) -> ChannelDma1
fn clone(&self) -> ChannelDma1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more