Struct avr_device::generic::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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

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

§

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

§

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.