Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 23 fields pub LEDS: LEDS, pub GPIO0: GPIO0, pub GPIO1: GPIO1, pub UART0: UART0, pub UART1: UART1, pub TIMER0: TIMER0, pub TIMER1: TIMER1, pub SPI0: SPI0, pub USB0: USB0, pub USB0_EP_CONTROL: USB0_EP_CONTROL, pub USB0_EP_IN: USB0_EP_IN, pub USB0_EP_OUT: USB0_EP_OUT, pub USB1: USB1, pub USB1_EP_CONTROL: USB1_EP_CONTROL, pub USB1_EP_IN: USB1_EP_IN, pub USB1_EP_OUT: USB1_EP_OUT, pub USB2: USB2, pub USB2_EP_CONTROL: USB2_EP_CONTROL, pub USB2_EP_IN: USB2_EP_IN, pub USB2_EP_OUT: USB2_EP_OUT, pub ADVERTISER: ADVERTISER, pub INFO: INFO, pub USER0: USER0,
}
Expand description

All the peripherals.

Fields§

§LEDS: LEDS

leds

§GPIO0: GPIO0

gpio0

§GPIO1: GPIO1

gpio1

§UART0: UART0

uart0

§UART1: UART1

uart1

§TIMER0: TIMER0

timer0

§TIMER1: TIMER1

timer1

§SPI0: SPI0

spi0

§USB0: USB0

usb0

§USB0_EP_CONTROL: USB0_EP_CONTROL

usb0_ep_control

§USB0_EP_IN: USB0_EP_IN

usb0_ep_in

§USB0_EP_OUT: USB0_EP_OUT

usb0_ep_out

§USB1: USB1

usb1

§USB1_EP_CONTROL: USB1_EP_CONTROL

usb1_ep_control

§USB1_EP_IN: USB1_EP_IN

usb1_ep_in

§USB1_EP_OUT: USB1_EP_OUT

usb1_ep_out

§USB2: USB2

usb2

§USB2_EP_CONTROL: USB2_EP_CONTROL

usb2_ep_control

§USB2_EP_IN: USB2_EP_IN

usb2_ep_in

§USB2_EP_OUT: USB2_EP_OUT

usb2_ep_out

§ADVERTISER: ADVERTISER

advertiser

§INFO: INFO

info

§USER0: USER0

user0

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.