Struct mcxn947_pac::EDMA_0_TCD
source · pub struct EDMA_0_TCD { /* private fields */ }
Expand description
DMA TCD
Implementations§
source§impl EDMA_0_TCD
impl EDMA_0_TCD
sourcepub const PTR: *const RegisterBlock = {0x40081000 as *const edma_0_tcd::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40081000 as *const edma_0_tcd::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn ch(&self, n: usize) -> &CH
pub fn ch(&self, n: usize) -> &CH
0x00..0x180 - Cluster CH%s, containing CH?_CSR,CH??_CSR, CH?_ES,CH??_ES, CH?_INT,CH??_INT, CH?_SBR,CH??_SBR, CH?_PRI,CH??_PRI, CH?_MUX,CH??_MUX
sourcepub fn ch_iter(&self) -> impl Iterator<Item = &CH>
pub fn ch_iter(&self) -> impl Iterator<Item = &CH>
Iterator for array of: 0x00..0x180 - Cluster CH%s, containing CH?_CSR,CH??_CSR, CH?_ES,CH??_ES, CH?_INT,CH??_INT, CH?_SBR,CH??_SBR, CH?_PRI,CH??_PRI, CH?_MUX,CH??_MUX
sourcepub fn tcd(&self, n: usize) -> &TCD
pub fn tcd(&self, n: usize) -> &TCD
0x20..0x220 - Cluster TCD%s, containing TCD?_SADDR,TCD??_SADDR, TCD?_SOFF,TCD??_SOFF, TCD?_ATTR,TCD??_ATTR, TCD?_NBYTES_MLOFFNO,TCD??_NBYTES_MLOFFNO, TCD?_SLAST_SDA,TCD??_SLAST_SDA, TCD?_DADDR,TCD??_DADDR, TCD?_DOFF,TCD??_DOFF, TCD?_CITER_ELINKNO,TCD??_CITER_ELINKNO, TCD?_DLAST_SGA,TCD??_DLAST_SGA, TCD?_CSR,TCD??_CSR, TCD?_BITER_ELINKNO,TCD??_BITER_ELINKNO
sourcepub fn tcd_iter(&self) -> impl Iterator<Item = &TCD>
pub fn tcd_iter(&self) -> impl Iterator<Item = &TCD>
Iterator for array of: 0x20..0x220 - Cluster TCD%s, containing TCD?_SADDR,TCD??_SADDR, TCD?_SOFF,TCD??_SOFF, TCD?_ATTR,TCD??_ATTR, TCD?_NBYTES_MLOFFNO,TCD??_NBYTES_MLOFFNO, TCD?_SLAST_SDA,TCD??_SLAST_SDA, TCD?_DADDR,TCD??_DADDR, TCD?_DOFF,TCD??_DOFF, TCD?_CITER_ELINKNO,TCD??_CITER_ELINKNO, TCD?_DLAST_SGA,TCD??_DLAST_SGA, TCD?_CSR,TCD??_CSR, TCD?_BITER_ELINKNO,TCD??_BITER_ELINKNO