stm32-metapac

Crates

git

Versions

stm32f767zg

Flavors

Struct stm32_metapac::eth::regs::Maccr

#[repr(transparent)]
pub struct Maccr(pub u32);
Expand description

Ethernet MAC configuration register

Tuple Fields§

§0: u32

Implementations§

§

impl Maccr

pub const fn re(&self) -> bool

Receiver enable

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

Receiver enable

pub const fn te(&self) -> bool

Transmitter enable

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

Transmitter enable

pub const fn dc(&self) -> bool

Deferral check

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

Deferral check

pub const fn bl(&self) -> Bl

Back-off limit

pub fn set_bl(&mut self, val: Bl)

Back-off limit

pub const fn apcs(&self) -> Apcs

Automatic pad/CRC stripping

pub fn set_apcs(&mut self, val: Apcs)

Automatic pad/CRC stripping

pub const fn rd(&self) -> Rd

Retry disable

pub fn set_rd(&mut self, val: Rd)

Retry disable

pub const fn ipco(&self) -> Ipco

IPv4 checksum offload

pub fn set_ipco(&mut self, val: Ipco)

IPv4 checksum offload

pub const fn dm(&self) -> Dm

Duplex mode

pub fn set_dm(&mut self, val: Dm)

Duplex mode

pub const fn lm(&self) -> Lm

Loopback mode

pub fn set_lm(&mut self, val: Lm)

Loopback mode

pub const fn rod(&self) -> Rod

Receive own disable

pub fn set_rod(&mut self, val: Rod)

Receive own disable

pub const fn fes(&self) -> Fes

Fast Ethernet speed

pub fn set_fes(&mut self, val: Fes)

Fast Ethernet speed

pub const fn csd(&self) -> Csd

Carrier sense disable

pub fn set_csd(&mut self, val: Csd)

Carrier sense disable

pub const fn ifg(&self) -> Ifg

Interframe gap

pub fn set_ifg(&mut self, val: Ifg)

Interframe gap

pub const fn jd(&self) -> Jd

Jabber disable

pub fn set_jd(&mut self, val: Jd)

Jabber disable

pub const fn wd(&self) -> Wd

Watchdog disable

pub fn set_wd(&mut self, val: Wd)

Watchdog disable

pub const fn cstf(&self) -> bool

CRC stripping for type frames

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

CRC stripping for type frames

Trait Implementations§

§

impl Clone for Maccr

§

fn clone(&self) -> Maccr

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 Maccr

§

fn default() -> Maccr

Returns the “default value” for a type. Read more
§

impl PartialEq for Maccr

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Maccr

§

impl Eq for Maccr

§

impl StructuralPartialEq for Maccr

Auto Trait Implementations§

§

impl Freeze for Maccr

§

impl RefUnwindSafe for Maccr

§

impl Send for Maccr

§

impl Sync for Maccr

§

impl Unpin for Maccr

§

impl UnwindSafe for Maccr

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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>,

source§

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

source§

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.