stm32-metapac

Crates

git

Versions

stm32h7s7l8

Flavors

๐Ÿ“ฃ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.
#[repr(transparent)]
pub struct Machwf1r(pub u32);
Expand description

HW feature 1 register

Tuple Fieldsยง

ยง0: u32

Implementationsยง

ยง

impl Machwf1r

pub const fn rxfifosize(&self) -> u8

MTL Receive FIFO Size

pub fn set_rxfifosize(&mut self, val: u8)

MTL Receive FIFO Size

pub const fn txfifosize(&self) -> u8

MTL Transmit FIFO Size

pub fn set_txfifosize(&mut self, val: u8)

MTL Transmit FIFO Size

pub const fn osten(&self) -> bool

One-Step Timestamping Enable

pub fn set_osten(&mut self, val: bool)

One-Step Timestamping Enable

pub const fn ptoen(&self) -> bool

PTP Offload Enable

pub fn set_ptoen(&mut self, val: bool)

PTP Offload Enable

pub const fn advthword(&self) -> bool

IEEE 1588 High Word Register Enable

pub fn set_advthword(&mut self, val: bool)

IEEE 1588 High Word Register Enable

pub const fn addr64(&self) -> u8

Address width

pub fn set_addr64(&mut self, val: u8)

Address width

pub const fn dcben(&self) -> bool

DCB Feature Enable

pub fn set_dcben(&mut self, val: bool)

DCB Feature Enable

pub const fn sphen(&self) -> bool

Split Header Feature Enable

pub fn set_sphen(&mut self, val: bool)

Split Header Feature Enable

pub const fn tsoen(&self) -> bool

TCP Segmentation Offload Enable

pub fn set_tsoen(&mut self, val: bool)

TCP Segmentation Offload Enable

pub const fn dbgmema(&self) -> bool

DMA Debug Registers Enable

pub fn set_dbgmema(&mut self, val: bool)

DMA Debug Registers Enable

pub const fn avsel(&self) -> bool

AV Feature Enable

pub fn set_avsel(&mut self, val: bool)

AV Feature Enable

pub const fn hashtblsz(&self) -> u8

Hash Table Size

pub fn set_hashtblsz(&mut self, val: u8)

Hash Table Size

pub const fn l3l4fnum(&self) -> u8

Total number of L3 or L4 Filters

pub fn set_l3l4fnum(&mut self, val: u8)

Total number of L3 or L4 Filters

Trait Implementationsยง

ยง

impl Clone for Machwf1r

ยง

fn clone(&self) -> Machwf1r

Returns a copy of the value. Read more
1.0.0 ยท sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
ยง

impl Default for Machwf1r

ยง

fn default() -> Machwf1r

Returns the โ€œdefault valueโ€ for a type. Read more
ยง

impl PartialEq for Machwf1r

ยง

fn eq(&self, other: &Machwf1r) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
ยง

impl Copy for Machwf1r

ยง

impl Eq for Machwf1r

ยง

impl StructuralEq for Machwf1r

ยง

impl StructuralPartialEq for Machwf1r

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.