stm32-metapac

Crates

git

Versions

stm32f765vg

Flavors

Struct stm32_metapac::eth::regs::Ptptscr

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

Ethernet PTP time stamp control register

Tuple Fields§

§0: u32

Implementations§

§

impl Ptptscr

pub const fn tse(&self) -> bool

TSE

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

TSE

pub const fn tsfcu(&self) -> bool

TSFCU

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

TSFCU

pub const fn tssti(&self) -> bool

TSSTI

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

TSSTI

pub const fn tsstu(&self) -> bool

TSSTU

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

TSSTU

pub const fn tsite(&self) -> bool

TSITE

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

TSITE

pub const fn ttsaru(&self) -> bool

TTSARU

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

TTSARU

pub const fn tssarfe(&self) -> bool

TSSARFE

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

TSSARFE

pub const fn tsssr(&self) -> bool

TSSSR

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

TSSSR

pub const fn tsptppsv2e(&self) -> bool

TSPTPPSV2E

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

TSPTPPSV2E

pub const fn tssptpoefe(&self) -> bool

TSSPTPOEFE

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

TSSPTPOEFE

pub const fn tssipv6fe(&self) -> bool

TSSIPV6FE

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

TSSIPV6FE

pub const fn tssipv4fe(&self) -> bool

TSSIPV4FE

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

TSSIPV4FE

pub const fn tsseme(&self) -> bool

TSSEME

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

TSSEME

pub const fn tssmrme(&self) -> bool

TSSMRME

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

TSSMRME

pub const fn tscnt(&self) -> u8

TSCNT

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

TSCNT

pub const fn tspffmae(&self) -> bool

TSPFFMAE

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

TSPFFMAE

Trait Implementations§

§

impl Clone for Ptptscr

§

fn clone(&self) -> Ptptscr

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 Ptptscr

§

fn default() -> Ptptscr

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

impl PartialEq for Ptptscr

§

fn eq(&self, other: &Ptptscr) -> 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 Ptptscr

§

impl Eq for Ptptscr

§

impl StructuralPartialEq for Ptptscr

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