Struct Peripherals

Source
pub struct Peripherals {
Show 43 fields pub ADC: ADC, pub COMP1: COMP1, pub COMP2: COMP2, pub COMP3: COMP3, pub CRC: CRC, pub CTC: CTC, pub DAC: DAC, pub DBGMCU: DBGMCU, pub DMA: DMA, pub EXTI: EXTI, pub FLASH: FLASH, pub GPIOA: GPIOA, pub GPIOB: GPIOB, pub GPIOC: GPIOC, pub GPIOF: GPIOF, pub DIV: DIV, pub I2C1: I2C1, pub I2C2: I2C2, pub IWDG: IWDG, pub LCD: LCD, pub LPTIM1: LPTIM1, pub OPA: OPA, pub PWR: PWR, pub RCC: RCC, pub RTC: RTC, pub SPI1: SPI1, pub SPI2: SPI2, pub SYSCFG: SYSCFG, pub TIM1: TIM1, pub TIM2: TIM2, pub TIM3: TIM3, pub TIM6: TIM6, pub TIM7: TIM7, pub TIM14: TIM14, pub TIM15: TIM15, pub TIM16: TIM16, pub TIM17: TIM17, pub USART1: USART1, pub USART2: USART2, pub USART3: USART3, pub USART4: USART4, pub USB: USB, pub WWDG: WWDG,
}
Expand description

All the peripherals

Fields§

§ADC: ADC

ADC

§COMP1: COMP1

COMP1

§COMP2: COMP2

COMP2

§COMP3: COMP3

COMP3

§CRC: CRC

CRC

§CTC: CTC

CTC

§DAC: DAC

DAC

§DBGMCU: DBGMCU

DBGMCU

§DMA: DMA

DMA

§EXTI: EXTI

EXTI

§FLASH: FLASH

FLASH

§GPIOA: GPIOA

GPIOA

§GPIOB: GPIOB

GPIOB

§GPIOC: GPIOC

GPIOC

§GPIOF: GPIOF

GPIOF

§DIV: DIV

DIV

§I2C1: I2C1

I2C1

§I2C2: I2C2

I2C2

§IWDG: IWDG

IWDG

§LCD: LCD

LCD

§LPTIM1: LPTIM1

LPTIM1

§OPA: OPA

OPA

§PWR: PWR

PWR

§RCC: RCC

RCC

§RTC: RTC

RTC

§SPI1: SPI1

SPI1

§SPI2: SPI2

SPI2

§SYSCFG: SYSCFG

SYSCFG

§TIM1: TIM1

TIM1

§TIM2: TIM2

TIM2

§TIM3: TIM3

TIM3

§TIM6: TIM6

TIM6

§TIM7: TIM7

TIM7

§TIM14: TIM14

TIM14

§TIM15: TIM15

TIM15

§TIM16: TIM16

TIM16

§TIM17: TIM17

TIM17

§USART1: USART1

USART1

§USART2: USART2

USART2

§USART3: USART3

USART3

§USART4: USART4

USART4

§USB: USB

USB

§WWDG: WWDG

WWDG

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

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.