Trait Resettable

Source
pub trait Resettable: RegisterSpec {
    const RESET_VALUE: Self::Ux = <Self::Ux>::ZERO;

    // Provided method
    fn reset_value() -> Self::Ux { ... }
}
Expand description

Reset value of the register.

This value is the initial value for the write method. It can also be directly written to the register by using the reset method.

Provided Associated Constants§

Source

const RESET_VALUE: Self::Ux = <Self::Ux>::ZERO

Reset value of the register.

Provided Methods§

Source

fn reset_value() -> Self::Ux

Reset value of the register.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Resettable for ACSR_SPEC

reset() method sets ACSR to value 0

Source§

impl Resettable for avr_device::attiny85::ac::adcsrb::ADCSRB_SPEC

reset() method sets ADCSRB to value 0

Source§

impl Resettable for avr_device::attiny85::ac::didr0::DIDR0_SPEC

reset() method sets DIDR0 to value 0

Source§

impl Resettable for ADC_SPEC

reset() method sets ADC to value 0

Source§

impl Resettable for ADCSRA_SPEC

reset() method sets ADCSRA to value 0

Source§

impl Resettable for avr_device::attiny85::adc::adcsrb::ADCSRB_SPEC

reset() method sets ADCSRB to value 0

Source§

impl Resettable for ADMUX_SPEC

reset() method sets ADMUX to value 0

Source§

impl Resettable for avr_device::attiny85::adc::didr0::DIDR0_SPEC

reset() method sets DIDR0 to value 0

Source§

impl Resettable for SPMCSR_SPEC

reset() method sets SPMCSR to value 0

Source§

impl Resettable for CLKPR_SPEC

reset() method sets CLKPR to value 0

Source§

impl Resettable for DWDR_SPEC

reset() method sets DWDR to value 0

Source§

impl Resettable for GPIOR0_SPEC

reset() method sets GPIOR0 to value 0

Source§

impl Resettable for GPIOR1_SPEC

reset() method sets GPIOR1 to value 0

Source§

impl Resettable for GPIOR2_SPEC

reset() method sets GPIOR2 to value 0

Source§

impl Resettable for avr_device::attiny85::cpu::mcucr::MCUCR_SPEC

reset() method sets MCUCR to value 0

Source§

impl Resettable for MCUSR_SPEC

reset() method sets MCUSR to value 0

Source§

impl Resettable for OSCCAL_SPEC

reset() method sets OSCCAL to value 0

Source§

impl Resettable for PLLCSR_SPEC

reset() method sets PLLCSR to value 0

Source§

impl Resettable for PRR_SPEC

reset() method sets PRR to value 0

Source§

impl Resettable for EEAR_SPEC

reset() method sets EEAR to value 0

Source§

impl Resettable for EECR_SPEC

reset() method sets EECR to value 0

Source§

impl Resettable for EEDR_SPEC

reset() method sets EEDR to value 0

Source§

impl Resettable for GIFR_SPEC

reset() method sets GIFR to value 0

Source§

impl Resettable for GIMSK_SPEC

reset() method sets GIMSK to value 0

Source§

impl Resettable for avr_device::attiny85::exint::mcucr::MCUCR_SPEC

reset() method sets MCUCR to value 0

Source§

impl Resettable for PCMSK_SPEC

reset() method sets PCMSK to value 0

Source§

impl Resettable for EXTENDED_SPEC

reset() method sets EXTENDED to value 0

Source§

impl Resettable for HIGH_SPEC

reset() method sets HIGH to value 0

Source§

impl Resettable for LOW_SPEC

reset() method sets LOW to value 0

Source§

impl Resettable for LOCKBIT_SPEC

reset() method sets LOCKBIT to value 0

Source§

impl Resettable for DDRB_SPEC

reset() method sets DDRB to value 0

Source§

impl Resettable for PINB_SPEC

reset() method sets PINB to value 0

Source§

impl Resettable for PORTB_SPEC

reset() method sets PORTB to value 0

Source§

impl Resettable for avr_device::attiny85::tc0::gtccr::GTCCR_SPEC

reset() method sets GTCCR to value 0

Source§

impl Resettable for OCR0A_SPEC

reset() method sets OCR0A to value 0

Source§

impl Resettable for OCR0B_SPEC

reset() method sets OCR0B to value 0

Source§

impl Resettable for TCCR0A_SPEC

reset() method sets TCCR0A to value 0

Source§

impl Resettable for TCCR0B_SPEC

reset() method sets TCCR0B to value 0

Source§

impl Resettable for TCNT0_SPEC

reset() method sets TCNT0 to value 0

Source§

impl Resettable for avr_device::attiny85::tc0::tifr::TIFR_SPEC

reset() method sets TIFR to value 0

Source§

impl Resettable for avr_device::attiny85::tc0::timsk::TIMSK_SPEC

reset() method sets TIMSK to value 0

Source§

impl Resettable for DT1A_SPEC

reset() method sets DT1A to value 0

Source§

impl Resettable for DT1B_SPEC

reset() method sets DT1B to value 0

Source§

impl Resettable for DTPS_SPEC

reset() method sets DTPS to value 0

Source§

impl Resettable for avr_device::attiny85::tc1::gtccr::GTCCR_SPEC

reset() method sets GTCCR to value 0

Source§

impl Resettable for OCR1A_SPEC

reset() method sets OCR1A to value 0

Source§

impl Resettable for OCR1B_SPEC

reset() method sets OCR1B to value 0

Source§

impl Resettable for OCR1C_SPEC

reset() method sets OCR1C to value 0

Source§

impl Resettable for TCCR1_SPEC

reset() method sets TCCR1 to value 0

Source§

impl Resettable for TCNT1_SPEC

reset() method sets TCNT1 to value 0

Source§

impl Resettable for avr_device::attiny85::tc1::tifr::TIFR_SPEC

reset() method sets TIFR to value 0

Source§

impl Resettable for avr_device::attiny85::tc1::timsk::TIMSK_SPEC

reset() method sets TIMSK to value 0

Source§

impl Resettable for USIBR_SPEC

reset() method sets USIBR to value 0

Source§

impl Resettable for USICR_SPEC

reset() method sets USICR to value 0

Source§

impl Resettable for USIDR_SPEC

reset() method sets USIDR to value 0

Source§

impl Resettable for USISR_SPEC

reset() method sets USISR to value 0

Source§

impl Resettable for WDTCR_SPEC

reset() method sets WDTCR to value 0