[][src]Type Definition lpc55s6x_pac::hashcrypt::lock::W

type W = W<u32, LOCK>;

Writer for register LOCK

Methods

impl W[src]

pub fn seclock(&mut self) -> SECLOCK_W[src]

Bits 0:1 - Write 1 to secure-lock this block (if running in a security state). Write 0 to unlock. If locked already, may only write if at same or higher security level as lock. Reads as: 0 if unlocked, else 1, 2, 3 to indicate security level it is locked at. NOTE: this and ID are the only readable registers if locked and current state is lower than lock level.

pub fn pattern(&mut self) -> PATTERN_W[src]

Bits 4:15 - Must write 0xA75 to change lock state. A75:Pattern needed to change bits 1:0