Skip to main content

set_program_writable

Function set_program_writable 

Source
pub fn set_program_writable(rcv_index: u16, writable: bool) -> Vec<u8> 
Expand description

Unlock or relock the write-protected program region.

Erases and page writes silently do nothing while locked. The vendor negates the flag, so enable is 0xff (unlock_uses_the_negated_flag). Relock on every exit path.