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<ACSR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<ADCSRA_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<ADCSRB_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<ADCSRB_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<ADC_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<ADMUX_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<CLKPR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<DDRB_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<DIDR0_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<DIDR0_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<DT1A_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<DT1B_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<DTPS_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<DWDR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<EEAR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<EECR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<EEDR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<EXTENDED_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<GIFR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<GIMSK_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<GPIOR0_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<GPIOR1_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<GPIOR2_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<GTCCR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<GTCCR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<HIGH_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<LOCKBIT_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<LOW_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<MCUCR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<MCUCR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<MCUSR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<OCR0A_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<OCR0B_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<OCR1A_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<OCR1B_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<OCR1C_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<OSCCAL_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<PCMSK_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<PINB_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<PLLCSR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<PORTB_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<PRR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<SPMCSR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TCCR0A_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TCCR0B_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TCCR1_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TCNT0_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TCNT1_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TIFR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TIFR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TIMSK_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<TIMSK_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<USIBR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<USICR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<USIDR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<USISR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

impl From<R<WDTCR_SPEC>> for R

Source§

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

Converts to this type from the input type.
Source§

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

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.