Struct R

Source
pub struct R { /* private fields */ }
Expand description

Value read from the register

Implementations§

Source§

impl R

Source

pub fn bits(&self) -> u32

Value of the register as raw bits

Source

pub fn ts(&self) -> TSR

Bit 0 - Transmit status

Source

pub fn tpss(&self) -> TPSSR

Bit 1 - Transmit process stopped status

Source

pub fn tbus(&self) -> TBUSR

Bit 2 - Transmit buffer unavailable status

Source

pub fn tjts(&self) -> TJTSR

Bit 3 - Transmit jabber timeout status

Source

pub fn ros(&self) -> ROSR

Bit 4 - Receive overflow status

Source

pub fn tus(&self) -> TUSR

Bit 5 - Transmit underflow status

Source

pub fn rs(&self) -> RSR

Bit 6 - Receive status

Source

pub fn rbus(&self) -> RBUSR

Bit 7 - Receive buffer unavailable status

Source

pub fn rpss(&self) -> RPSSR

Bit 8 - Receive process stopped status

Source

pub fn pwts(&self) -> PWTSR

Bit 9 - PWTS

Source

pub fn ets(&self) -> ETSR

Bit 10 - Early transmit status

Source

pub fn fbes(&self) -> FBESR

Bit 13 - Fatal bus error status

Source

pub fn ers(&self) -> ERSR

Bit 14 - Early receive status

Source

pub fn ais(&self) -> AISR

Bit 15 - Abnormal interrupt summary

Source

pub fn nis(&self) -> NISR

Bit 16 - Normal interrupt summary

Source

pub fn rps(&self) -> RPSR

Bits 17:19 - Receive process state

Source

pub fn tps(&self) -> TPSR

Bits 20:22 - Transmit process state

Source

pub fn ebs(&self) -> EBSR

Bits 23:25 - Error bits status

Source

pub fn mmcs(&self) -> MMCSR

Bit 27 - MMC status

Source

pub fn pmts(&self) -> PMTSR

Bit 28 - PMT status

Source

pub fn tsts(&self) -> TSTSR

Bit 29 - Time stamp trigger status

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<T> Same for T

Source§

type Output = T

Should always be Self
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.