pub struct GPDMA0 { /* private fields */ }
Expand description
General Purpose DMA Unit 0
Implementations§
source§impl GPDMA0
impl GPDMA0
sourcepub const PTR: *const RegisterBlock = {0x500142c0 as *const gpdma0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x500142c0 as *const gpdma0::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 rawsrctran(&self) -> &RAWSRCTRAN
pub fn rawsrctran(&self) -> &RAWSRCTRAN
0x10 - Raw IntSrcTran Status
sourcepub fn rawdsttran(&self) -> &RAWDSTTRAN
pub fn rawdsttran(&self) -> &RAWDSTTRAN
0x18 - Raw IntBlock Status
sourcepub fn statusblock(&self) -> &STATUSBLOCK
pub fn statusblock(&self) -> &STATUSBLOCK
0x30 - IntBlock Status
sourcepub fn statussrctran(&self) -> &STATUSSRCTRAN
pub fn statussrctran(&self) -> &STATUSSRCTRAN
0x38 - IntSrcTran Status
sourcepub fn statusdsttran(&self) -> &STATUSDSTTRAN
pub fn statusdsttran(&self) -> &STATUSDSTTRAN
0x40 - IntBlock Status
sourcepub fn masksrctran(&self) -> &MASKSRCTRAN
pub fn masksrctran(&self) -> &MASKSRCTRAN
0x60 - Mask for Raw IntSrcTran Status
sourcepub fn maskdsttran(&self) -> &MASKDSTTRAN
pub fn maskdsttran(&self) -> &MASKDSTTRAN
0x68 - Mask for Raw IntBlock Status
sourcepub fn clearblock(&self) -> &CLEARBLOCK
pub fn clearblock(&self) -> &CLEARBLOCK
0x80 - IntBlock Status
sourcepub fn clearsrctran(&self) -> &CLEARSRCTRAN
pub fn clearsrctran(&self) -> &CLEARSRCTRAN
0x88 - IntSrcTran Status
sourcepub fn cleardsttran(&self) -> &CLEARDSTTRAN
pub fn cleardsttran(&self) -> &CLEARDSTTRAN
0x90 - IntBlock Status
sourcepub fn sglreqsrcreg(&self) -> &SGLREQSRCREG
pub fn sglreqsrcreg(&self) -> &SGLREQSRCREG
0xb8 - Single Source Transaction Request Register
sourcepub fn sglreqdstreg(&self) -> &SGLREQDSTREG
pub fn sglreqdstreg(&self) -> &SGLREQDSTREG
0xc0 - Single Destination Transaction Request Register