Struct stm32h743::gpioa::RegisterBlock [] [src]

#[repr(C)]
pub struct RegisterBlock { pub gpioa_moder: GPIOA_MODER, pub gpioa_otyper: GPIOA_OTYPER, pub gpioa_ospeedr: GPIOA_OSPEEDR, pub gpioa_pupdr: GPIOA_PUPDR, pub gpioa_idr: GPIOA_IDR, pub gpioa_odr: GPIOA_ODR, pub gpioa_bsrr: GPIOA_BSRR, pub gpioa_lckr: GPIOA_LCKR, pub gpioa_afrl: GPIOA_AFRL, pub gpioa_afrh: GPIOA_AFRH, }

Register block

Fields

0x00 - GPIO port mode register

0x04 - GPIO port output type register

0x08 - GPIO port output speed register

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

0x10 - GPIO port input data register

0x14 - GPIO port output data register

0x18 - GPIO port bit set/reset register

0x1c - 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).

0x20 - GPIO alternate function low register

0x24 - GPIO alternate function high register

Trait Implementations

Auto Trait Implementations

impl Send for RegisterBlock

impl !Sync for RegisterBlock