Struct Parts

Source
pub struct Parts {
Show 22 fields pub afrh: AFRH, pub afrl: AFRL, pub moder: MODER, pub ospeedr: OSPEEDR, pub otyper: OTYPER, pub pupdr: PUPDR, pub pb0: PB0<Input>, pub pb1: PB1<Input>, pub pb2: PB2<Input>, pub pb3: PB3<AF0<PushPull>>, pub pb4: PB4<AF0<PushPull>>, pub pb5: PB5<Input>, pub pb6: PB6<Input>, pub pb7: PB7<Input>, pub pb8: PB8<Input>, pub pb9: PB9<Input>, pub pb10: PB10<Input>, pub pb11: PB11<Input>, pub pb12: PB12<Input>, pub pb13: PB13<Input>, pub pb14: PB14<Input>, pub pb15: PB15<Input>,
}
Expand description

GPIO parts

Fields§

§afrh: AFRH

Opaque AFRH register

§afrl: AFRL

Opaque AFRL register

§moder: MODER

Opaque MODER register

§ospeedr: OSPEEDR

Opaque OSPEEDR register

§otyper: OTYPER

Opaque OTYPER register

§pupdr: PUPDR

Opaque PUPDR register

§pb0: PB0<Input>

Pin PB0

§pb1: PB1<Input>

Pin PB1

§pb2: PB2<Input>

Pin PB2

§pb3: PB3<AF0<PushPull>>

Pin PB3

§pb4: PB4<AF0<PushPull>>

Pin PB4

§pb5: PB5<Input>

Pin PB5

§pb6: PB6<Input>

Pin PB6

§pb7: PB7<Input>

Pin PB7

§pb8: PB8<Input>

Pin PB8

§pb9: PB9<Input>

Pin PB9

§pb10: PB10<Input>

Pin PB10

§pb11: PB11<Input>

Pin PB11

§pb12: PB12<Input>

Pin PB12

§pb13: PB13<Input>

Pin PB13

§pb14: PB14<Input>

Pin PB14

§pb15: PB15<Input>

Pin PB15

Auto Trait Implementations§

§

impl Freeze for Parts

§

impl RefUnwindSafe for Parts

§

impl Send for Parts

§

impl Sync for Parts

§

impl Unpin for Parts

§

impl UnwindSafe for Parts

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.