embassy-nrf

Crates

git

Versions

nrf51

Flavors

Struct embassy_nrf::Peripherals

source ·
pub struct Peripherals {
Show 70 fields pub RTC0: RTC0, pub RTC1: RTC1, pub WDT: WDT, pub NVMC: NVMC, pub RNG: RNG, pub UART0: UART0, pub TWI0: TWI0, pub SPI0: SPI0, pub ADC: ADC, pub TIMER0: TIMER0, pub TIMER1: TIMER1, pub TIMER2: TIMER2, pub GPIOTE_CH0: GPIOTE_CH0, pub GPIOTE_CH1: GPIOTE_CH1, pub GPIOTE_CH2: GPIOTE_CH2, pub GPIOTE_CH3: GPIOTE_CH3, pub PPI_CH0: PPI_CH0, pub PPI_CH1: PPI_CH1, pub PPI_CH2: PPI_CH2, pub PPI_CH3: PPI_CH3, pub PPI_CH4: PPI_CH4, pub PPI_CH5: PPI_CH5, pub PPI_CH6: PPI_CH6, pub PPI_CH7: PPI_CH7, pub PPI_CH8: PPI_CH8, pub PPI_CH9: PPI_CH9, pub PPI_CH10: PPI_CH10, pub PPI_CH11: PPI_CH11, pub PPI_CH12: PPI_CH12, pub PPI_CH13: PPI_CH13, pub PPI_CH14: PPI_CH14, pub PPI_CH15: PPI_CH15, pub PPI_GROUP0: PPI_GROUP0, pub PPI_GROUP1: PPI_GROUP1, pub PPI_GROUP2: PPI_GROUP2, pub PPI_GROUP3: PPI_GROUP3, pub P0_00: P0_00, pub P0_01: P0_01, pub P0_02: P0_02, pub P0_03: P0_03, pub P0_04: P0_04, pub P0_05: P0_05, pub P0_06: P0_06, pub P0_07: P0_07, pub P0_08: P0_08, pub P0_09: P0_09, pub P0_10: P0_10, pub P0_11: P0_11, pub P0_12: P0_12, pub P0_13: P0_13, pub P0_14: P0_14, pub P0_15: P0_15, pub P0_16: P0_16, pub P0_17: P0_17, pub P0_18: P0_18, pub P0_19: P0_19, pub P0_20: P0_20, pub P0_21: P0_21, pub P0_22: P0_22, pub P0_23: P0_23, pub P0_24: P0_24, pub P0_25: P0_25, pub P0_26: P0_26, pub P0_27: P0_27, pub P0_28: P0_28, pub P0_29: P0_29, pub P0_30: P0_30, pub P0_31: P0_31, pub TEMP: TEMP, pub RADIO: RADIO,
}
Expand description

Struct containing all the peripheral singletons.

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

Fields§

§RTC0: RTC0

RTC0 peripheral

§RTC1: RTC1

RTC1 peripheral

§WDT: WDT

WDT peripheral

§NVMC: NVMC

NVMC peripheral

§RNG: RNG

RNG peripheral

§UART0: UART0

UART0 peripheral

§TWI0: TWI0

TWI0 peripheral

§SPI0: SPI0

SPI0 peripheral

§ADC: ADC

ADC peripheral

§TIMER0: TIMER0

TIMER0 peripheral

§TIMER1: TIMER1

TIMER1 peripheral

§TIMER2: TIMER2

TIMER2 peripheral

§GPIOTE_CH0: GPIOTE_CH0

GPIOTE_CH0 peripheral

§GPIOTE_CH1: GPIOTE_CH1

GPIOTE_CH1 peripheral

§GPIOTE_CH2: GPIOTE_CH2

GPIOTE_CH2 peripheral

§GPIOTE_CH3: GPIOTE_CH3

GPIOTE_CH3 peripheral

§PPI_CH0: PPI_CH0

PPI_CH0 peripheral

§PPI_CH1: PPI_CH1

PPI_CH1 peripheral

§PPI_CH2: PPI_CH2

PPI_CH2 peripheral

§PPI_CH3: PPI_CH3

PPI_CH3 peripheral

§PPI_CH4: PPI_CH4

PPI_CH4 peripheral

§PPI_CH5: PPI_CH5

PPI_CH5 peripheral

§PPI_CH6: PPI_CH6

PPI_CH6 peripheral

§PPI_CH7: PPI_CH7

PPI_CH7 peripheral

§PPI_CH8: PPI_CH8

PPI_CH8 peripheral

§PPI_CH9: PPI_CH9

PPI_CH9 peripheral

§PPI_CH10: PPI_CH10

PPI_CH10 peripheral

§PPI_CH11: PPI_CH11

PPI_CH11 peripheral

§PPI_CH12: PPI_CH12

PPI_CH12 peripheral

§PPI_CH13: PPI_CH13

PPI_CH13 peripheral

§PPI_CH14: PPI_CH14

PPI_CH14 peripheral

§PPI_CH15: PPI_CH15

PPI_CH15 peripheral

§PPI_GROUP0: PPI_GROUP0

PPI_GROUP0 peripheral

§PPI_GROUP1: PPI_GROUP1

PPI_GROUP1 peripheral

§PPI_GROUP2: PPI_GROUP2

PPI_GROUP2 peripheral

§PPI_GROUP3: PPI_GROUP3

PPI_GROUP3 peripheral

§P0_00: P0_00

P0_00 peripheral

§P0_01: P0_01

P0_01 peripheral

§P0_02: P0_02

P0_02 peripheral

§P0_03: P0_03

P0_03 peripheral

§P0_04: P0_04

P0_04 peripheral

§P0_05: P0_05

P0_05 peripheral

§P0_06: P0_06

P0_06 peripheral

§P0_07: P0_07

P0_07 peripheral

§P0_08: P0_08

P0_08 peripheral

§P0_09: P0_09

P0_09 peripheral

§P0_10: P0_10

P0_10 peripheral

§P0_11: P0_11

P0_11 peripheral

§P0_12: P0_12

P0_12 peripheral

§P0_13: P0_13

P0_13 peripheral

§P0_14: P0_14

P0_14 peripheral

§P0_15: P0_15

P0_15 peripheral

§P0_16: P0_16

P0_16 peripheral

§P0_17: P0_17

P0_17 peripheral

§P0_18: P0_18

P0_18 peripheral

§P0_19: P0_19

P0_19 peripheral

§P0_20: P0_20

P0_20 peripheral

§P0_21: P0_21

P0_21 peripheral

§P0_22: P0_22

P0_22 peripheral

§P0_23: P0_23

P0_23 peripheral

§P0_24: P0_24

P0_24 peripheral

§P0_25: P0_25

P0_25 peripheral

§P0_26: P0_26

P0_26 peripheral

§P0_27: P0_27

P0_27 peripheral

§P0_28: P0_28

P0_28 peripheral

§P0_29: P0_29

P0_29 peripheral

§P0_30: P0_30

P0_30 peripheral

§P0_31: P0_31

P0_31 peripheral

§TEMP: TEMP

TEMP peripheral

§RADIO: RADIO

RADIO 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> Az for T

source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

source§

fn lossy_into(self) -> Dst

Performs the conversion.
source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.