R

Struct R 

Source
pub struct R<REG: RegisterSpec + ?Sized> { /* private fields */ }
Expand description

Register reader.

Result of the read methods of registers. Also used as a closure argument in the modify method.

Implementations§

Source§

impl<REG: RegisterSpec> R<REG>

Source

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

Reads raw bits from register.

Trait Implementations§

Source§

impl From<R<DBG_DLH_SPEC>> for R

Source§

fn from(reader: R<DBG_DLH_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<DBG_DLL_SPEC>> for R

Source§

fn from(reader: R<DBG_DLL_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<DLH_SPEC>> for R

Source§

fn from(reader: R<DLH_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<DLL_SPEC>> for R

Source§

fn from(reader: R<DLL_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<DMA_REQ_EN_SPEC>> for R

Source§

fn from(reader: R<DMA_REQ_EN_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<FCC_SPEC>> for R

Source§

fn from(reader: R<FCC_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<HALT_SPEC>> for R

Source§

fn from(reader: R<HALT_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<HSK_SPEC>> for R

Source§

fn from(reader: R<HSK_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<IER_SPEC>> for R

Source§

fn from(reader: R<IER_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<IIR_SPEC>> for R

Source§

fn from(reader: R<IIR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<LCR_SPEC>> for R

Source§

fn from(reader: R<LCR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<LSR_SPEC>> for R

Source§

fn from(reader: R<LSR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<MCR_SPEC>> for R

Source§

fn from(reader: R<MCR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<MSR_SPEC>> for R

Source§

fn from(reader: R<MSR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<RBR_SPEC>> for R

Source§

fn from(reader: R<RBR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<RFL_SPEC>> for R

Source§

fn from(reader: R<RFL_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<SCH_SPEC>> for R

Source§

fn from(reader: R<SCH_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<TFL_SPEC>> for R

Source§

fn from(reader: R<TFL_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl From<R<USR_SPEC>> for R

Source§

fn from(reader: R<USR_SPEC>) -> Self

Converts to this type from the input type.
Source§

impl<REG: RegisterSpec, FI> PartialEq<FI> for R<REG>
where REG::Ux: PartialEq, FI: Copy + Into<REG::Ux>,

Source§

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

Auto Trait Implementations§

§

impl<REG> Freeze for R<REG>
where <REG as RegisterSpec>::Ux: Freeze, REG: ?Sized,

§

impl<REG> RefUnwindSafe for R<REG>
where <REG as RegisterSpec>::Ux: RefUnwindSafe, REG: RefUnwindSafe + ?Sized,

§

impl<REG> Send for R<REG>
where <REG as RegisterSpec>::Ux: Send, REG: Send + ?Sized,

§

impl<REG> Sync for R<REG>
where <REG as RegisterSpec>::Ux: Sync, REG: Sync + ?Sized,

§

impl<REG> Unpin for R<REG>
where <REG as RegisterSpec>::Ux: Unpin, REG: Unpin + ?Sized,

§

impl<REG> UnwindSafe for R<REG>
where <REG as RegisterSpec>::Ux: UnwindSafe, REG: UnwindSafe + ?Sized,

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

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.