Struct stm32f4_staging::stm32f407::ETHERNET_DMA
source · pub struct ETHERNET_DMA { /* private fields */ }Expand description
Ethernet: DMA controller operation
Implementations§
source§impl ETHERNET_DMA
impl ETHERNET_DMA
sourcepub const PTR: *const RegisterBlock = {0x40029000 as *const stm32f407::ethernet_dma::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40029000 as *const stm32f407::ethernet_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 dmardlar(&self) -> &DMARDLAR
pub fn dmardlar(&self) -> &DMARDLAR
0x0c - Ethernet DMA receive descriptor list address register
sourcepub fn dmatdlar(&self) -> &DMATDLAR
pub fn dmatdlar(&self) -> &DMATDLAR
0x10 - Ethernet DMA transmit descriptor list address register
sourcepub fn dmamfbocr(&self) -> &DMAMFBOCR
pub fn dmamfbocr(&self) -> &DMAMFBOCR
0x20 - Ethernet DMA missed frame and buffer overflow counter register
sourcepub fn dmachtdr(&self) -> &DMACHTDR
pub fn dmachtdr(&self) -> &DMACHTDR
0x48 - Ethernet DMA current host transmit descriptor register
sourcepub fn dmachrdr(&self) -> &DMACHRDR
pub fn dmachrdr(&self) -> &DMACHRDR
0x4c - Ethernet DMA current host receive descriptor register