Struct microbit::Peripherals[]

pub struct Peripherals {
Show fields pub POWER: POWER, pub CLOCK: CLOCK, pub RADIO: RADIO, pub UART0: UART0, pub SPI0: SPI0, pub TWI0: TWI0, pub SPI1: SPI1, pub TWI1: TWI1, pub SPIS1: SPIS1, pub GPIOTE: GPIOTE, pub ADC: ADC, pub TIMER0: TIMER0, pub TIMER1: TIMER1, pub TIMER2: TIMER2, pub RTC0: RTC0, pub TEMP: TEMP, pub RNG: RNG, pub ECB: ECB, pub AAR: AAR, pub CCM: CCM, pub WDT: WDT, pub RTC1: RTC1, pub QDEC: QDEC, pub LPCOMP: LPCOMP, pub SWI: SWI, pub NVMC: NVMC, pub PPI: PPI, pub FICR: FICR, pub UICR: UICR, pub GPIO: GPIO,
}

All the peripherals

Fields

POWER: POWER

POWER

CLOCK: CLOCK

CLOCK

RADIO: RADIO

RADIO

UART0: UART0

UART0

SPI0: SPI0

SPI0

TWI0: TWI0

TWI0

SPI1: SPI1

SPI1

TWI1: TWI1

TWI1

SPIS1: SPIS1

SPIS1

GPIOTE: GPIOTE

GPIOTE

ADC: ADC

ADC

TIMER0: TIMER0

TIMER0

TIMER1: TIMER1

TIMER1

TIMER2: TIMER2

TIMER2

RTC0: RTC0

RTC0

TEMP: TEMP

TEMP

RNG: RNG

RNG

ECB: ECB

ECB

AAR: AAR

AAR

CCM: CCM

CCM

WDT: WDT

WDT

RTC1: RTC1

RTC1

QDEC: QDEC

QDEC

LPCOMP: LPCOMP

LPCOMP

SWI: SWI

SWI

NVMC: NVMC

NVMC

PPI: PPI

PPI

FICR: FICR

FICR

UICR: UICR

UICR

GPIO: GPIO

GPIO

Implementations

impl Peripherals

pub fn take() -> Option<Peripherals>

Returns all the peripherals once

pub unsafe fn steal() -> Peripherals

Unchecked version of Peripherals::take

Auto Trait Implementations

impl Send for Peripherals

impl !Sync for Peripherals

impl Unpin for Peripherals

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]