Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 98 fields pub HPSYS_RCC: HPSYS_RCC, pub EXTDMA: EXTDMA, pub HPSYS_PINMUX: HPSYS_PINMUX, pub ATIM1: ATIM1, pub AUDPRC: AUDPRC, pub EZIP1: EZIP1, pub EPIC: EPIC, pub LCDC1: LCDC1, pub I2S1: I2S1, pub HPSYS_CFG: HPSYS_CFG, pub EFUSEC: EFUSEC, pub AES: AES, pub TRNG: TRNG, pub MPI1: MPI1, pub MPI2: MPI2, pub SDMMC1: SDMMC1, pub CRC1: CRC1, pub PTC1: PTC1, pub DMAC1: DMAC1, pub USART1: USART1, pub USART2: USART2, pub USART3: USART3, pub GPADC: GPADC, pub AUDCODEC: AUDCODEC, pub TSEN: TSEN, pub GPTIM1: GPTIM1, 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: HPSYS_GPIO, pub GPTIM2: GPTIM2, pub BTIM2: BTIM2, pub HPSYS_AON: HPSYS_AON, pub LPTIM1: LPTIM1, pub LPTIM2: LPTIM2, pub PMUC: PMUC, pub IWDT: IWDT, pub ADC_VBAT: ADC_VBAT, pub USBC: USBC, pub PA0: PA0, pub PA1: PA1, pub PA2: PA2, pub PA3: PA3, pub PA4: PA4, pub PA5: PA5, pub PA6: PA6, pub PA7: PA7, pub PA8: PA8, pub PA9: PA9, pub PA10: PA10, pub PA11: PA11, pub PA12: PA12, pub PA13: PA13, pub PA14: PA14, pub PA15: PA15, pub PA16: PA16, pub PA17: PA17, pub PA18: PA18, pub PA19: PA19, pub PA20: PA20, pub PA21: PA21, pub PA22: PA22, pub PA23: PA23, pub PA24: PA24, pub PA25: PA25, pub PA26: PA26, pub PA27: PA27, pub PA28: PA28, pub PA29: PA29, pub PA30: PA30, pub PA31: PA31, pub PA32: PA32, pub PA33: PA33, pub PA34: PA34, pub PA35: PA35, pub PA36: PA36, pub PA37: PA37, pub PA38: PA38, pub PA39: PA39, pub PA40: PA40, pub PA41: PA41, pub PA42: PA42, pub PA43: PA43, pub PA44: PA44, pub DMAC1_CH1: DMAC1_CH1, pub DMAC1_CH2: DMAC1_CH2, pub DMAC1_CH3: DMAC1_CH3, pub DMAC1_CH4: DMAC1_CH4, pub DMAC1_CH5: DMAC1_CH5, pub DMAC1_CH6: DMAC1_CH6, pub DMAC1_CH7: DMAC1_CH7, pub DMAC1_CH8: DMAC1_CH8,
}
Expand description

Struct containing all the peripheral singletons.

To obtain the peripherals, you must initialize the HAL, by calling crate::init.

Fields§

§HPSYS_RCC: HPSYS_RCC

HPSYS_RCC peripheral

§EXTDMA: EXTDMA

EXTDMA peripheral

§HPSYS_PINMUX: HPSYS_PINMUX

HPSYS_PINMUX peripheral

§ATIM1: ATIM1

ATIM1 peripheral

§AUDPRC: AUDPRC

AUDPRC peripheral

§EZIP1: EZIP1

EZIP1 peripheral

§EPIC: EPIC

EPIC peripheral

§LCDC1: LCDC1

LCDC1 peripheral

§I2S1: I2S1

I2S1 peripheral

§HPSYS_CFG: HPSYS_CFG

HPSYS_CFG peripheral

§EFUSEC: EFUSEC

EFUSEC peripheral

§AES: AES

AES peripheral

§TRNG: TRNG

TRNG peripheral

§MPI1: MPI1

MPI1 peripheral

§MPI2: MPI2

MPI2 peripheral

§SDMMC1: SDMMC1

SDMMC1 peripheral

§CRC1: CRC1

CRC1 peripheral

§PTC1: PTC1

PTC1 peripheral

§DMAC1: DMAC1

DMAC1 peripheral

§USART1: USART1

USART1 peripheral

§USART2: USART2

USART2 peripheral

§USART3: USART3

USART3 peripheral

§GPADC: GPADC

GPADC peripheral

§AUDCODEC: AUDCODEC

AUDCODEC peripheral

§TSEN: TSEN

TSEN peripheral

§GPTIM1: GPTIM1

GPTIM1 peripheral

§BTIM1: BTIM1

BTIM1 peripheral

§WDT1: WDT1

WDT1 peripheral

§SPI1: SPI1

SPI1 peripheral

§SPI2: SPI2

SPI2 peripheral

§PDM1: PDM1

PDM1 peripheral

§I2C1: I2C1

I2C1 peripheral

§I2C2: I2C2

I2C2 peripheral

§I2C3: I2C3

I2C3 peripheral

§I2C4: I2C4

I2C4 peripheral

§HPSYS_GPIO: HPSYS_GPIO

HPSYS_GPIO peripheral

§GPTIM2: GPTIM2

GPTIM2 peripheral

§BTIM2: BTIM2

BTIM2 peripheral

§HPSYS_AON: HPSYS_AON

HPSYS_AON peripheral

§LPTIM1: LPTIM1

LPTIM1 peripheral

§LPTIM2: LPTIM2

LPTIM2 peripheral

§PMUC: PMUC

PMUC peripheral

§IWDT: IWDT

IWDT peripheral

§ADC_VBAT: ADC_VBAT

ADC_VBAT peripheral

§USBC: USBC

USBC peripheral

§PA0: PA0

PA0 peripheral

§PA1: PA1

PA1 peripheral

§PA2: PA2

PA2 peripheral

§PA3: PA3

PA3 peripheral

§PA4: PA4

PA4 peripheral

§PA5: PA5

PA5 peripheral

§PA6: PA6

PA6 peripheral

§PA7: PA7

PA7 peripheral

§PA8: PA8

PA8 peripheral

§PA9: PA9

PA9 peripheral

§PA10: PA10

PA10 peripheral

§PA11: PA11

PA11 peripheral

§PA12: PA12

PA12 peripheral

§PA13: PA13

PA13 peripheral

§PA14: PA14

PA14 peripheral

§PA15: PA15

PA15 peripheral

§PA16: PA16

PA16 peripheral

§PA17: PA17

PA17 peripheral

§PA18: PA18

PA18 peripheral

§PA19: PA19

PA19 peripheral

§PA20: PA20

PA20 peripheral

§PA21: PA21

PA21 peripheral

§PA22: PA22

PA22 peripheral

§PA23: PA23

PA23 peripheral

§PA24: PA24

PA24 peripheral

§PA25: PA25

PA25 peripheral

§PA26: PA26

PA26 peripheral

§PA27: PA27

PA27 peripheral

§PA28: PA28

PA28 peripheral

§PA29: PA29

PA29 peripheral

§PA30: PA30

PA30 peripheral

§PA31: PA31

PA31 peripheral

§PA32: PA32

PA32 peripheral

§PA33: PA33

PA33 peripheral

§PA34: PA34

PA34 peripheral

§PA35: PA35

PA35 peripheral

§PA36: PA36

PA36 peripheral

§PA37: PA37

PA37 peripheral

§PA38: PA38

PA38 peripheral

§PA39: PA39

PA39 peripheral

§PA40: PA40

PA40 peripheral

§PA41: PA41

PA41 peripheral

§PA42: PA42

PA42 peripheral

§PA43: PA43

PA43 peripheral

§PA44: PA44

PA44 peripheral

§DMAC1_CH1: DMAC1_CH1

DMAC1_CH1 peripheral

§DMAC1_CH2: DMAC1_CH2

DMAC1_CH2 peripheral

§DMAC1_CH3: DMAC1_CH3

DMAC1_CH3 peripheral

§DMAC1_CH4: DMAC1_CH4

DMAC1_CH4 peripheral

§DMAC1_CH5: DMAC1_CH5

DMAC1_CH5 peripheral

§DMAC1_CH6: DMAC1_CH6

DMAC1_CH6 peripheral

§DMAC1_CH7: DMAC1_CH7

DMAC1_CH7 peripheral

§DMAC1_CH8: DMAC1_CH8

DMAC1_CH8 peripheral

Implementations§

Source§

impl Peripherals

Source

pub unsafe fn steal() -> Self

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

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.