#[repr(C)]
pub struct RegisterBlock { pub moder: Reg<MODER_SPEC>, pub otyper: Reg<OTYPER_SPEC>, pub ospeedr: Reg<OSPEEDR_SPEC>, pub pupdr: Reg<PUPDR_SPEC>, pub idr: Reg<IDR_SPEC>, pub odr: Reg<ODR_SPEC>, pub bsrr: Reg<BSRR_SPEC>, pub lckr: Reg<LCKR_SPEC>, pub afrl: Reg<AFRL_SPEC>, pub afrh: Reg<AFRH_SPEC>, pub brr: Reg<BRR_SPEC>, pub ascr: Reg<ASCR_SPEC>, }
Expand description

Register block

Fields

moder: Reg<MODER_SPEC>

0x00 - GPIO port mode register

otyper: Reg<OTYPER_SPEC>

0x04 - GPIO port output type register

ospeedr: Reg<OSPEEDR_SPEC>

0x08 - GPIO port output speed register

pupdr: Reg<PUPDR_SPEC>

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

idr: Reg<IDR_SPEC>

0x10 - GPIO port input data register

odr: Reg<ODR_SPEC>

0x14 - GPIO port output data register

bsrr: Reg<BSRR_SPEC>

0x18 - GPIO port bit set/reset register

lckr: Reg<LCKR_SPEC>

0x1c - GPIO port configuration lock register

afrl: Reg<AFRL_SPEC>

0x20 - GPIO alternate function low register

afrh: Reg<AFRH_SPEC>

0x24 - GPIO alternate function high register

brr: Reg<BRR_SPEC>

0x28 - GPIO port bit reset register

ascr: Reg<ASCR_SPEC>

0x2c - GPIO port analog switch control 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.

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.