Struct stm32ral::stm32h7::peripherals::gpio::RegisterBlock[][src]

#[repr(C)]
pub struct RegisterBlock { pub MODER: RWRegister<u32>, pub OTYPER: RWRegister<u32>, pub OSPEEDR: RWRegister<u32>, pub PUPDR: RWRegister<u32>, pub IDR: RORegister<u32>, pub ODR: RWRegister<u32>, pub BSRR: WORegister<u32>, pub LCKR: RWRegister<u32>, pub AFRL: RWRegister<u32>, pub AFRH: RWRegister<u32>, }

Fields

MODER: RWRegister<u32>

GPIO port mode register

OTYPER: RWRegister<u32>

GPIO port output type register

OSPEEDR: RWRegister<u32>

GPIO port output speed register

PUPDR: RWRegister<u32>

GPIO port pull-up/pull-down register

IDR: RORegister<u32>

GPIO port input data register

ODR: RWRegister<u32>

GPIO port output data register

BSRR: WORegister<u32>

GPIO port bit set/reset register

LCKR: RWRegister<u32>

This register is used to lock the configuration of the port bits when a correct write sequence is applied to bit 16 (LCKK). The value of bits [15:0] is used to lock the configuration of the GPIO. During the write sequence, the value of LCKR[15:0] must not change. When the LOCK sequence has been applied on a port bit, the value of this port bit can no longer be modified until the next MCU reset or peripheral reset.A specific write sequence is used to write to the GPIOx_LCKR register. Only word access (32-bit long) is allowed during this locking sequence.Each lock bit freezes a specific configuration register (control and alternate function registers).

AFRL: RWRegister<u32>

GPIO alternate function low register

AFRH: RWRegister<u32>

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

Performs the conversion.

Performs the conversion.

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.