pub struct Peripherals {
Show 48 fields pub ADC: ADC, pub AES: AES, pub COMP: COMP, pub CRC: CRC, pub DAC: DAC, pub DBGMCU: DBGMCU, pub DMA1: DMA1, pub DMA2: DMA2, pub DMAMUX: DMAMUX, pub EXTI: EXTI, pub FLASH: FLASH, pub GPIOA: GPIOA, pub GPIOB: GPIOB, pub GPIOC: GPIOC, pub GPIOH: GPIOH, pub HSEM: HSEM, pub I2C1: I2C1, pub I2C2: I2C2, pub I2C3: I2C3, pub IPCC: IPCC, pub IWDG: IWDG, pub LPTIM1: LPTIM1, pub LPTIM2: LPTIM2, pub LPTIM3: LPTIM3, pub LPUART: LPUART, pub NVIC_STIR: NVIC_STIR, pub PKA: PKA, pub PWR: PWR, pub RCC: RCC, pub RNG: RNG, pub RTC: RTC, pub SCB_ACTRL: SCB_ACTRL, pub SPI1: SPI1, pub SPI2: SPI2, pub SPI3: SPI3, pub STK: STK, pub SYSCFG: SYSCFG, pub TAMP: TAMP, pub TIM1: TIM1, pub TIM2: TIM2, pub TIM16: TIM16, pub TIM17: TIM17, pub TZIC: TZIC, pub TZSC: TZSC, pub USART1: USART1, pub USART2: USART2, pub VREFBUF: VREFBUF, pub WWDG: WWDG,
}
Available on crate feature stm32wl5x_cm4 only.
Expand description

All the peripherals

Fields§

§ADC: ADC

ADC

§AES: AES

AES

§COMP: COMP

COMP

§CRC: CRC

CRC

§DAC: DAC

DAC

§DBGMCU: DBGMCU

DBGMCU

§DMA1: DMA1

DMA1

§DMA2: DMA2

DMA2

§DMAMUX: DMAMUX

DMAMUX

§EXTI: EXTI

EXTI

§FLASH: FLASH

FLASH

§GPIOA: GPIOA

GPIOA

§GPIOB: GPIOB

GPIOB

§GPIOC: GPIOC

GPIOC

§GPIOH: GPIOH

GPIOH

§HSEM: HSEM

HSEM

§I2C1: I2C1

I2C1

§I2C2: I2C2

I2C2

§I2C3: I2C3

I2C3

§IPCC: IPCC

IPCC

§IWDG: IWDG

IWDG

§LPTIM1: LPTIM1

LPTIM1

§LPTIM2: LPTIM2

LPTIM2

§LPTIM3: LPTIM3

LPTIM3

§LPUART: LPUART

LPUART

§NVIC_STIR: NVIC_STIR

NVIC_STIR

§PKA: PKA

PKA

§PWR: PWR

PWR

§RCC: RCC

RCC

§RNG: RNG

RNG

§RTC: RTC

RTC

§SCB_ACTRL: SCB_ACTRL

SCB_ACTRL

§SPI1: SPI1

SPI1

§SPI2: SPI2

SPI2

§SPI3: SPI3

SPI3

§STK: STK

STK

§SYSCFG: SYSCFG

SYSCFG

§TAMP: TAMP

TAMP

§TIM1: TIM1

TIM1

§TIM2: TIM2

TIM2

§TIM16: TIM16

TIM16

§TIM17: TIM17

TIM17

§TZIC: TZIC

TZIC

§TZSC: TZSC

TZSC

§USART1: USART1

USART1

§USART2: USART2

USART2

§VREFBUF: VREFBUF

VREFBUF

§WWDG: WWDG

WWDG

Implementations§

§

impl Peripherals

pub fn take() -> Option<Peripherals>

Returns all the peripherals once

pub unsafe fn steal() -> Peripherals

Unchecked version of Peripherals::take

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.