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
gpioa_moder: GPIOA_MODER
0x00 - GPIO port mode register
gpioa_otyper: GPIOA_OTYPER
0x04 - GPIO port output type register
gpioa_ospeedr: GPIOA_OSPEEDR
0x08 - GPIO port output speed register
gpioa_pupdr: GPIOA_PUPDR
0x0c - GPIO port pull-up/pull-down register
gpioa_idr: GPIOA_IDR
0x10 - GPIO port input data register
gpioa_odr: GPIOA_ODR
0x14 - GPIO port output data register
gpioa_bsrr: GPIOA_BSRR
0x18 - GPIO port bit set/reset register
gpioa_lckr: GPIOA_LCKR
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).
gpioa_afrl: GPIOA_AFRL
0x20 - GPIO alternate function low register
gpioa_afrh: GPIOA_AFRH
0x24 - GPIO alternate function high register