R

Struct R 

Source
pub struct R(/* private fields */);
Expand description

Register SR reader

Implementations§

Source§

impl R

Source

pub fn txis(&self) -> TXIS_R

Bit 0 - TXIS

Source

pub fn txmsgdisc(&self) -> TXMSGDISC_R

Bit 1 - TXMSGDISC

Source

pub fn txmsgsent(&self) -> TXMSGSENT_R

Bit 2 - TXMSGSENT

Source

pub fn txmsgabt(&self) -> TXMSGABT_R

Bit 3 - TXMSGABT

Source

pub fn hrstdisc(&self) -> HRSTDISC_R

Bit 4 - HRSTDISC

Source

pub fn hrstsent(&self) -> HRSTSENT_R

Bit 5 - HRSTSENT

Source

pub fn txund(&self) -> TXUND_R

Bit 6 - TXUND

Source

pub fn rxne(&self) -> RXNE_R

Bit 8 - RXNE

Source

pub fn rxorddet(&self) -> RXORDDET_R

Bit 9 - RXORDDET

Source

pub fn rxhrstdet(&self) -> RXHRSTDET_R

Bit 10 - RXHRSTDET

Source

pub fn rxovr(&self) -> RXOVR_R

Bit 11 - RXOVR

Source

pub fn rxmsgend(&self) -> RXMSGEND_R

Bit 12 - RXMSGEND

Source

pub fn rxerr(&self) -> RXERR_R

Bit 13 - RXERR

Source

pub fn typecevt1(&self) -> TYPECEVT1_R

Bit 14 - TYPECEVT1

Source

pub fn typecevt2(&self) -> TYPECEVT2_R

Bit 15 - TYPECEVT2

Source

pub fn typec_vstate_cc1(&self) -> TYPEC_VSTATE_CC1_R

Bits 16:17 - TYPEC_VSTATE_CC1

Source

pub fn typec_vstate_cc2(&self) -> TYPEC_VSTATE_CC2_R

Bits 18:19 - TYPEC_VSTATE_CC2

Source

pub fn frsevt(&self) -> FRSEVT_R

Bit 20 - FRSEVT

Methods from Deref<Target = R<SR_SPEC>>§

Source

pub fn bits(&self) -> <REG as RegisterSpec>::Ux

Reads raw bits from register.

Trait Implementations§

Source§

impl Deref for R

Source§

type Target = R<SR_SPEC>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<R as Deref>::Target

Dereferences the value.
Source§

impl From<R<SR_SPEC>> for R

Source§

fn from(reader: R<SR_SPEC>) -> R

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.