Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 35 fields pub hpsys_rcc: HpsysRcc, pub atim1: Atim1, pub i2s1: I2s1, pub hpsys_cfg: HpsysCfg, pub mpi1: Mpi1, pub mpi2: Mpi2, pub crc1: Crc1, pub dmac1: Dmac1, pub usart1: Usart1, pub usart2: Usart2, pub usart3: Usart3, pub btim1: Btim1, pub wdt1: Wdt1, pub spi1: Spi1, pub spi2: Spi2, pub pdm1: Pdm1, pub i2c1: I2c1, pub i2c2: I2c2, pub i2c3: I2c3, pub i2c4: I2c4, pub hpsys_gpio: HpsysGpio, pub btim2: Btim2, pub hpsys_aon: HpsysAon, pub lptim1: Lptim1, pub lptim2: Lptim2, pub rtc: Rtc, pub iwdt: Iwdt, pub dmac2: Dmac2, pub usart4: Usart4, pub usart5: Usart5, pub btim3: Btim3, pub btim4: Btim4, pub wdt2: Wdt2, pub lptim3: Lptim3, pub crc2: Crc2,
}
Expand description

All the peripherals.

Fields§

§hpsys_rcc: HpsysRcc

HPSYS_RCC

§atim1: Atim1

ATIM1

§i2s1: I2s1

I2S1

§hpsys_cfg: HpsysCfg

HPSYS_CFG

§mpi1: Mpi1

MPI1

§mpi2: Mpi2

MPI2

§crc1: Crc1

CRC1

§dmac1: Dmac1

DMAC1

§usart1: Usart1

USART1

§usart2: Usart2

USART2

§usart3: Usart3

USART3

§btim1: Btim1

BTIM1

§wdt1: Wdt1

WDT1

§spi1: Spi1

SPI1

§spi2: Spi2

SPI2

§pdm1: Pdm1

PDM1

§i2c1: I2c1

I2C1

§i2c2: I2c2

I2C2

§i2c3: I2c3

I2C3

§i2c4: I2c4

I2C4

§hpsys_gpio: HpsysGpio

HPSYS_GPIO

§btim2: Btim2

BTIM2

§hpsys_aon: HpsysAon

HPSYS_AON

§lptim1: Lptim1

LPTIM1

§lptim2: Lptim2

LPTIM2

§rtc: Rtc

RTC

§iwdt: Iwdt

IWDT

§dmac2: Dmac2

DMAC2

§usart4: Usart4

USART4

§usart5: Usart5

USART5

§btim3: Btim3

BTIM3

§btim4: Btim4

BTIM4

§wdt2: Wdt2

WDT2

§lptim3: Lptim3

LPTIM3

§crc2: Crc2

CRC2

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.