pub struct COPY_DMA { /* private fields */ }
Expand description
Copy DMA Controller
Implementations§
Source§impl COPY_DMA
impl COPY_DMA
Sourcepub const PTR: *const RegisterBlock = {0x3f4c3000 as *const copy_dma::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f4c3000 as *const copy_dma::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 out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
pub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
0x18 - Transmit descriptor address when EOF occurs
Sourcepub fn in_eof_des_addr(&self) -> &IN_EOF_DES_ADDR
pub fn in_eof_des_addr(&self) -> &IN_EOF_DES_ADDR
0x1c - Receive descriptor address when EOF occurs
Sourcepub fn out_eof_bfr_des_addr(&self) -> &OUT_EOF_BFR_DES_ADDR
pub fn out_eof_bfr_des_addr(&self) -> &OUT_EOF_BFR_DES_ADDR
0x20 - Transmit descriptor address before the last transmit descriptor
Sourcepub fn inlink_dscr(&self) -> &INLINK_DSCR
pub fn inlink_dscr(&self) -> &INLINK_DSCR
0x24 - Address of current receive descriptor
Sourcepub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
pub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
0x28 - Address of last receive descriptor
Sourcepub fn outlink_dscr(&self) -> &OUTLINK_DSCR
pub fn outlink_dscr(&self) -> &OUTLINK_DSCR
0x30 - Address of current transmit descriptor
Sourcepub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
pub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
0x34 - Address of last transmit descriptor