Module stm32h7xx_hal::stm32::gpioa::lckr[][src]

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

Structs

LCK0_W

Write proxy for field LCK0

LCK1_W

Write proxy for field LCK1

LCK2_W

Write proxy for field LCK2

LCK3_W

Write proxy for field LCK3

LCK4_W

Write proxy for field LCK4

LCK5_W

Write proxy for field LCK5

LCK6_W

Write proxy for field LCK6

LCK7_W

Write proxy for field LCK7

LCK8_W

Write proxy for field LCK8

LCK9_W

Write proxy for field LCK9

LCK10_W

Write proxy for field LCK10

LCK11_W

Write proxy for field LCK11

LCK12_W

Write proxy for field LCK12

LCK13_W

Write proxy for field LCK13

LCK14_W

Write proxy for field LCK14

LCK15_W

Write proxy for field LCK15

LCKK_W

Write proxy for field LCKK

Enums

LCK0_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK10_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCKK_A

Lock key This bit can be read any time. It can only be modified using the lock key write sequence. LOCK key write sequence: WR LCKR[16] = 1 + LCKR[15:0] WR LCKR[16] = 0 + LCKR[15:0] WR LCKR[16] = 1 + LCKR[15:0] RD LCKR RD LCKR[16] = 1 (this read operation is optional but it confirms that the lock is active) Note: During the LOCK key write sequence, the value of LCK[15:0] must not change. Any error in the lock sequence aborts the lock. After the first lock sequence on any bit of the port, any read access on the LCKK bit will return 1 until the next MCU reset or peripheral reset.

Type Definitions

LCK0_R

Reader of field LCK0

LCK1_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK1_R

Reader of field LCK1

LCK2_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK2_R

Reader of field LCK2

LCK3_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK3_R

Reader of field LCK3

LCK4_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK4_R

Reader of field LCK4

LCK5_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK5_R

Reader of field LCK5

LCK6_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK6_R

Reader of field LCK6

LCK7_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK7_R

Reader of field LCK7

LCK8_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK8_R

Reader of field LCK8

LCK9_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK9_R

Reader of field LCK9

LCK10_R

Reader of field LCK10

LCK11_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK11_R

Reader of field LCK11

LCK12_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK12_R

Reader of field LCK12

LCK13_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK13_R

Reader of field LCK13

LCK14_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK14_R

Reader of field LCK14

LCK15_A

Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.

LCK15_R

Reader of field LCK15

LCKK_R

Reader of field LCKK

R

Reader of register LCKR

W

Writer for register LCKR