Struct stm32f4_staging::stm32f407::ETHERNET_DMA

source ·
pub struct ETHERNET_DMA { /* private fields */ }
Expand description

Ethernet: DMA controller operation

Implementations§

source§

impl ETHERNET_DMA

source

pub const PTR: *const RegisterBlock = {0x40029000 as *const stm32f407::ethernet_dma::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

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>§

source

pub fn dmabmr(&self) -> &DMABMR

0x00 - Ethernet DMA bus mode register

source

pub fn dmatpdr(&self) -> &DMATPDR

0x04 - Ethernet DMA transmit poll demand register

source

pub fn dmarpdr(&self) -> &DMARPDR

0x08 - EHERNET DMA receive poll demand register

source

pub fn dmardlar(&self) -> &DMARDLAR

0x0c - Ethernet DMA receive descriptor list address register

source

pub fn dmatdlar(&self) -> &DMATDLAR

0x10 - Ethernet DMA transmit descriptor list address register

source

pub fn dmasr(&self) -> &DMASR

0x14 - Ethernet DMA status register

source

pub fn dmaomr(&self) -> &DMAOMR

0x18 - Ethernet DMA operation mode register

source

pub fn dmaier(&self) -> &DMAIER

0x1c - Ethernet DMA interrupt enable register

source

pub fn dmamfbocr(&self) -> &DMAMFBOCR

0x20 - Ethernet DMA missed frame and buffer overflow counter register

source

pub fn dmarswtr(&self) -> &DMARSWTR

0x24 - Ethernet DMA receive status watchdog timer register

source

pub fn dmachtdr(&self) -> &DMACHTDR

0x48 - Ethernet DMA current host transmit descriptor register

source

pub fn dmachrdr(&self) -> &DMACHRDR

0x4c - Ethernet DMA current host receive descriptor register

source

pub fn dmachtbar(&self) -> &DMACHTBAR

0x50 - Ethernet DMA current host transmit buffer address register

source

pub fn dmachrbar(&self) -> &DMACHRBAR

0x54 - Ethernet DMA current host receive buffer address register

Trait Implementations§

source§

impl Debug for ETHERNET_DMA

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for ETHERNET_DMA

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for ETHERNET_DMA

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.