Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 64 fields pub fsmc: Fsmc, pub pwr: Pwr, pub rcc: Rcc, pub gpioa: Gpioa, pub gpiob: Gpiob, pub gpioc: Gpioc, pub gpiod: Gpiod, pub gpioe: Gpioe, pub gpiof: Gpiof, pub gpiog: Gpiog, pub afio: Afio, pub exti: Exti, pub dma1: Dma1, pub dma2: Dma2, pub sdio: Sdio, pub rtc: Rtc, pub bkp: Bkp, pub iwdg: Iwdg, pub wwdg: Wwdg, pub tim1: Tim1, pub tim8: Tim8, pub tim2: Tim2, pub tim3: Tim3, pub tim4: Tim4, pub tim5: Tim5, pub tim9: Tim9, pub tim12: Tim12, pub tim10: Tim10, pub tim11: Tim11, pub tim13: Tim13, pub tim14: Tim14, pub tim6: Tim6, pub tim7: Tim7, pub i2c1: I2c1, pub i2c2: I2c2, pub spi1: Spi1, pub spi2: Spi2, pub spi3: Spi3, pub usart1: Usart1, pub usart2: Usart2, pub usart3: Usart3, pub adc1: Adc1, pub adc2: Adc2, pub adc3: Adc3, pub can1: Can1, pub can2: Can2, pub dac: Dac, pub dbg: Dbg, pub uart4: Uart4, pub uart5: Uart5, pub crc: Crc, pub flash: Flash, pub usb: Usb, pub otg_fs_device: OtgFsDevice, pub otg_fs_global: OtgFsGlobal, pub otg_fs_host: OtgFsHost, pub otg_fs_pwrclk: OtgFsPwrclk, pub ethernet_mmc: EthernetMmc, pub ethernet_mac: EthernetMac, pub ethernet_ptp: EthernetPtp, pub ethernet_dma: EthernetDma, pub scb_actrl: ScbActrl, pub nvic_stir: NvicStir, pub stk: Stk,
}
Expand description

All the peripherals.

Fields§

§fsmc: Fsmc

FSMC

§pwr: Pwr

PWR

§rcc: Rcc

RCC

§gpioa: Gpioa

GPIOA

§gpiob: Gpiob

GPIOB

§gpioc: Gpioc

GPIOC

§gpiod: Gpiod

GPIOD

§gpioe: Gpioe

GPIOE

§gpiof: Gpiof

GPIOF

§gpiog: Gpiog

GPIOG

§afio: Afio

AFIO

§exti: Exti

EXTI

§dma1: Dma1

DMA1

§dma2: Dma2

DMA2

§sdio: Sdio

SDIO

§rtc: Rtc

RTC

§bkp: Bkp

BKP

§iwdg: Iwdg

IWDG

§wwdg: Wwdg

WWDG

§tim1: Tim1

TIM1

§tim8: Tim8

TIM8

§tim2: Tim2

TIM2

§tim3: Tim3

TIM3

§tim4: Tim4

TIM4

§tim5: Tim5

TIM5

§tim9: Tim9

TIM9

§tim12: Tim12

TIM12

§tim10: Tim10

TIM10

§tim11: Tim11

TIM11

§tim13: Tim13

TIM13

§tim14: Tim14

TIM14

§tim6: Tim6

TIM6

§tim7: Tim7

TIM7

§i2c1: I2c1

I2C1

§i2c2: I2c2

I2C2

§spi1: Spi1

SPI1

§spi2: Spi2

SPI2

§spi3: Spi3

SPI3

§usart1: Usart1

USART1

§usart2: Usart2

USART2

§usart3: Usart3

USART3

§adc1: Adc1

ADC1

§adc2: Adc2

ADC2

§adc3: Adc3

ADC3

§can1: Can1

CAN1

§can2: Can2

CAN2

§dac: Dac

DAC

§dbg: Dbg

DBG

§uart4: Uart4

UART4

§uart5: Uart5

UART5

§crc: Crc

CRC

§flash: Flash

FLASH

§usb: Usb

USB

§otg_fs_device: OtgFsDevice

OTG_FS_DEVICE

§otg_fs_global: OtgFsGlobal

OTG_FS_GLOBAL

§otg_fs_host: OtgFsHost

OTG_FS_HOST

§otg_fs_pwrclk: OtgFsPwrclk

OTG_FS_PWRCLK

§ethernet_mmc: EthernetMmc

ETHERNET_MMC

§ethernet_mac: EthernetMac

ETHERNET_MAC

§ethernet_ptp: EthernetPtp

ETHERNET_PTP

§ethernet_dma: EthernetDma

ETHERNET_DMA

§scb_actrl: ScbActrl

SCB_ACTRL

§nvic_stir: NvicStir

NVIC_STIR

§stk: Stk

STK

Implementations§

Source§

impl Peripherals

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.