Struct avr_device::atmega4809::Peripherals

source ·
pub struct Peripherals {
Show 44 fields pub AC0: AC0, pub ADC0: ADC0, pub BOD: BOD, pub CCL: CCL, pub CLKCTRL: CLKCTRL, pub CPU: CPU, pub CPUINT: CPUINT, pub CRCSCAN: CRCSCAN, pub EVSYS: EVSYS, pub FUSE: FUSE, pub GPIO: GPIO, pub LOCKBIT: LOCKBIT, pub NVMCTRL: NVMCTRL, pub PORTA: PORTA, pub PORTB: PORTB, pub PORTC: PORTC, pub PORTD: PORTD, pub PORTE: PORTE, pub PORTF: PORTF, pub PORTMUX: PORTMUX, pub RSTCTRL: RSTCTRL, pub RTC: RTC, pub SIGROW: SIGROW, pub SLPCTRL: SLPCTRL, pub SPI0: SPI0, pub SYSCFG: SYSCFG, pub TCB0: TCB0, pub TCB1: TCB1, pub TCB2: TCB2, pub TCB3: TCB3, pub TWI0: TWI0, pub USART0: USART0, pub USART1: USART1, pub USART2: USART2, pub USART3: USART3, pub USERROW: USERROW, pub VPORTA: VPORTA, pub VPORTB: VPORTB, pub VPORTC: VPORTC, pub VPORTD: VPORTD, pub VPORTE: VPORTE, pub VPORTF: VPORTF, pub VREF: VREF, pub WDT: WDT,
}
Expand description

All the peripherals.

Fields§

§AC0: AC0

AC0

§ADC0: ADC0

ADC0

§BOD: BOD

BOD

§CCL: CCL

CCL

§CLKCTRL: CLKCTRL

CLKCTRL

§CPU: CPU

CPU

§CPUINT: CPUINT

CPUINT

§CRCSCAN: CRCSCAN

CRCSCAN

§EVSYS: EVSYS

EVSYS

§FUSE: FUSE

FUSE

§GPIO: GPIO

GPIO

§LOCKBIT: LOCKBIT

LOCKBIT

§NVMCTRL: NVMCTRL

NVMCTRL

§PORTA: PORTA

PORTA

§PORTB: PORTB

PORTB

§PORTC: PORTC

PORTC

§PORTD: PORTD

PORTD

§PORTE: PORTE

PORTE

§PORTF: PORTF

PORTF

§PORTMUX: PORTMUX

PORTMUX

§RSTCTRL: RSTCTRL

RSTCTRL

§RTC: RTC

RTC

§SIGROW: SIGROW

SIGROW

§SLPCTRL: SLPCTRL

SLPCTRL

§SPI0: SPI0

SPI0

§SYSCFG: SYSCFG

SYSCFG

§TCB0: TCB0

TCB0

§TCB1: TCB1

TCB1

§TCB2: TCB2

TCB2

§TCB3: TCB3

TCB3

§TWI0: TWI0

TWI0

§USART0: USART0

USART0

§USART1: USART1

USART1

§USART2: USART2

USART2

§USART3: USART3

USART3

§USERROW: USERROW

USERROW

§VPORTA: VPORTA

VPORTA

§VPORTB: VPORTB

VPORTB

§VPORTC: VPORTC

VPORTC

§VPORTD: VPORTD

VPORTD

§VPORTE: VPORTE

VPORTE

§VPORTF: VPORTF

VPORTF

§VREF: VREF

VREF

§WDT: WDT

WDT

Implementations§

source§

impl Peripherals

source

pub fn take() -> Option<Self>

Returns all the peripherals once.

source

pub unsafe fn steal() -> Self

Unchecked version of Peripherals::take.

§Safety

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

Auto Trait Implementations§

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.