#[repr(C)]
pub struct RegisterBlock { pub moder: MODER, pub otyper: OTYPER, pub ospeedr: OSPEEDR, pub pupdr: PUPDR, pub idr: IDR, pub odr: ODR, pub bsrr: BSRR, pub lckr: LCKR, pub afrl: AFRL, pub afrh: AFRH, }
Expand description

Register block

Fields§

§moder: MODER

0x00 - GPIO port mode register

§otyper: OTYPER

0x04 - GPIO port output type register

§ospeedr: OSPEEDR

0x08 - GPIO port output speed register

§pupdr: PUPDR

0x0c - GPIO port pull-up/pull-down register

§idr: IDR

0x10 - GPIO port input data register

§odr: ODR

0x14 - GPIO port output data register

§bsrr: BSRR

0x18 - GPIO port bit set/reset register

§lckr: LCKR

0x1c - GPIO port configuration lock register

§afrl: AFRL

0x20 - GPIO alternate function low register

§afrh: AFRH

0x24 - GPIO alternate function high register

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.