Module stm32_hal2::pac::gpioa::lckr

source ·
Expand description

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§

  • 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).
  • Register LCKR reader
  • Register LCKR writer

Enums§

  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • 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 Aliases§

  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 reader - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCK0 writer - Port x lock bit y (y= 0..15) These bits are read/write but can only be written when the LCKK bit is 0.
  • Field LCKK reader - 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.
  • Field LCKK writer - 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.