pub struct Peripherals {
Show 17 fields pub AC: AC, pub ADC: ADC, pub CPU: CPU, pub EEPROM: EEPROM, pub EXINT: EXINT, pub FUSE: FUSE, pub LOCKBIT: LOCKBIT, pub PORTB: PORTB, pub PORTC: PORTC, pub PORTD: PORTD, pub SPI: SPI, pub TC0: TC0, pub TC1: TC1, pub TC2: TC2, pub TWI: TWI, pub USART0: USART0, pub WDT: WDT,
}
Expand description

All the peripherals.

Fields§

§AC: AC

AC

§ADC: ADC

ADC

§CPU: CPU

CPU

§EEPROM: EEPROM

EEPROM

§EXINT: EXINT

EXINT

§FUSE: FUSE

FUSE

§LOCKBIT: LOCKBIT

LOCKBIT

§PORTB: PORTB

PORTB

§PORTC: PORTC

PORTC

§PORTD: PORTD

PORTD

§SPI: SPI

SPI

§TC0: TC0

TC0

§TC1: TC1

TC1

§TC2: TC2

TC2

§TWI: TWI

TWI

§USART0: USART0

USART0

§WDT: WDT

WDT

Implementations§

Returns all the peripherals once.

Unchecked version of Peripherals::take.

Safety

Each of the returned peripherals must be used at most once.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.