Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 38 fields pub dma: Dma, pub pm: Pm, pub epic: Epic, pub timer32_0: Timer32_0, pub pvd_vcc: PvdVcc, pub pad_config: PadConfig, pub wdt_bus: WdtBus, pub otp: Otp, pub wake_up: WakeUp, pub rtc: Rtc, pub boot_manager: BootManager, pub spifi_config: SpifiConfig, pub eeprom_regs: EepromRegs, pub crypto: Crypto, pub crc: Crc, pub wdt: Wdt, pub usart_0: Usart0, pub usart_1: Usart1, pub timer16_0: Timer16_0, pub timer16_1: Timer16_1, pub timer16_2: Timer16_2, pub timer32_1: Timer32_1, pub timer32_2: Timer32_2, pub spi_0: Spi0, pub spi_1: Spi1, pub i2c_0: I2c0, pub i2c_1: I2c1, pub gpio16_0: Gpio16_0, pub gpio16_1: Gpio16_1, pub gpio8_2: Gpio8_2, pub gpio_irq: GpioIrq, pub dac0: Dac0, pub dac1: Dac1, pub pvd_avcc: PvdAvcc, pub tsens: Tsens, pub refv_config: RefvConfig, pub adc: Adc, pub scr1_timer: Scr1Timer,
}
Expand description

All the peripherals.

Fields§

§dma: Dma

DMA

§pm: Pm

PM

§epic: Epic

EPIC

§timer32_0: Timer32_0

TIMER32_0

§pvd_vcc: PvdVcc

PVD_VCC

§pad_config: PadConfig

PAD_CONFIG

§wdt_bus: WdtBus

WDT_BUS

§otp: Otp

OTP

§wake_up: WakeUp

WakeUp

§rtc: Rtc

RTC

§boot_manager: BootManager

BOOT_MANAGER

§spifi_config: SpifiConfig

SPIFI_CONFIG

§eeprom_regs: EepromRegs

EEPROM_REGS

§crypto: Crypto

CRYPTO

§crc: Crc

CRC

§wdt: Wdt

WDT

§usart_0: Usart0

USART_0

§usart_1: Usart1

USART_1

§timer16_0: Timer16_0

TIMER16_0

§timer16_1: Timer16_1

TIMER16_1

§timer16_2: Timer16_2

TIMER16_2

§timer32_1: Timer32_1

TIMER32_1

§timer32_2: Timer32_2

TIMER32_2

§spi_0: Spi0

SPI_0

§spi_1: Spi1

SPI_1

§i2c_0: I2c0

I2C_0

§i2c_1: I2c1

I2C_1

§gpio16_0: Gpio16_0

GPIO16_0

§gpio16_1: Gpio16_1

GPIO16_1

§gpio8_2: Gpio8_2

GPIO8_2

§gpio_irq: GpioIrq

GPIO_IRQ

§dac0: Dac0

DAC0

§dac1: Dac1

DAC1

§pvd_avcc: PvdAvcc

PVD_AVCC

§tsens: Tsens

TSENS

§refv_config: RefvConfig

REFV_CONFIG

§adc: Adc

ADC

§scr1_timer: Scr1Timer

SCR1_TIMER

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.