# Peripherals in k210_pac - Rust
All the peripherals
Keywords: rust, rustlang, rust-lang, Peripherals

# Struct k210_pac::Peripherals

source · [−]

    pub struct Peripherals {Show 34 fields
        pub CLINT: CLINT,
        pub PLIC: PLIC,
        pub UARTHS: UARTHS,
        pub GPIOHS: GPIOHS,
        pub KPU: KPU,
        pub FFT: FFT,
        pub DMAC: DMAC,
        pub GPIO: GPIO,
        pub UART1: UART1,
        pub UART2: UART2,
        pub UART3: UART3,
        pub SPI0: SPI0,
        pub SPI1: SPI1,
        pub SPI2: SPI2,
        pub SPI3: SPI3,
        pub I2S0: I2S0,
        pub APU: APU,
        pub I2S1: I2S1,
        pub I2S2: I2S2,
        pub I2C0: I2C0,
        pub I2C1: I2C1,
        pub I2C2: I2C2,
        pub FPIOA: FPIOA,
        pub SHA256: SHA256,
        pub TIMER0: TIMER0,
        pub TIMER1: TIMER1,
        pub TIMER2: TIMER2,
        pub WDT0: WDT0,
        pub WDT1: WDT1,
        pub OTP: OTP,
        pub DVP: DVP,
        pub SYSCTL: SYSCTL,
        pub AES: AES,
        pub RTC: RTC,
    }

Expand description

All the peripherals

## Fields

`CLINT: CLINT`

CLINT

`PLIC: PLIC`

PLIC

`UARTHS: UARTHS`

UARTHS

`GPIOHS: GPIOHS`

GPIOHS

`KPU: KPU`

KPU

`FFT: FFT`

FFT

`DMAC: DMAC`

DMAC

`GPIO: GPIO`

GPIO

`UART1: UART1`

UART1

`UART2: UART2`

UART2

`UART3: UART3`

UART3

`SPI0: SPI0`

SPI0

`SPI1: SPI1`

SPI1

`SPI2: SPI2`

SPI2

`SPI3: SPI3`

SPI3

`I2S0: I2S0`

I2S0

`APU: APU`

APU

`I2S1: I2S1`

I2S1

`I2S2: I2S2`

I2S2

`I2C0: I2C0`

I2C0

`I2C1: I2C1`

I2C1

`I2C2: I2C2`

I2C2

`FPIOA: FPIOA`

FPIOA

`SHA256: SHA256`

SHA256

`TIMER0: TIMER0`

TIMER0

`TIMER1: TIMER1`

TIMER1

`TIMER2: TIMER2`

TIMER2

`WDT0: WDT0`

WDT0

`WDT1: WDT1`

WDT1

`OTP: OTP`

OTP

`DVP: DVP`

DVP

`SYSCTL: SYSCTL`

SYSCTL

`AES: AES`

AES

`RTC: RTC`

RTC

## 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

### impl RefUnwindSafe for Peripherals

### impl Send for Peripherals

### impl !Sync for Peripherals

### impl Unpin for Peripherals

### impl UnwindSafe for Peripherals

## 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,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

### impl<T> BorrowMut<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

### impl<T, U> Into<U> for T where
U: From<T>,

const: unstable · 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>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · 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>,

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.