pub fn unlock(flash: &'a mut pac::FLASH) -> Self {
        flash.keyr.write(|w| w.key().bits(0x4567_0123));
        flash.keyr.write(|w| w.key().bits(0xCDEF_89AB));
        Self { flash }
    }
/// Unlock the flash memory for program or erase operations.
///
/// The flash memory will be locked when this struct is dropped.
///
/// # Example
///
/// ```no_run
/// use stm32wlxx_hal::{flash::Flash, pac};
///
/// let mut dp: pac::Peripherals = pac::Peripherals::take().unwrap();
///
/// let mut flash: Flash = Flash::unlock(&mut dp.FLASH);
/// ```
Unlock the flash memory for program or erase operations.
The flash memory will be locked when this struct is dropped.
Unlock the flash memory for program or erase operations . The flash memory will be locked when this struct is dropped .
pub fn unlock(flash: &'a mut pac::FLASH) -> Self {
        flash.keyr.write(|w| w.key().bits(0x4567_0123));
        flash.keyr.write(|w| w.key().bits(0xCDEF_89AB));
        Self { flash }
    }
pub fn unlock ( flash : & ' a mut pac :: FLASH ) -> Self { flash . keyr . write ( | w | w . key ( ) . bits ( 0x4567_0123 ) ) ; flash . keyr . write ( | w | w . key ( ) . bits ( 0xCDEF_89AB ) ) ; Self { flash } }
Unlock the flash memory for program or erase operations.
Unlock the flash memory for program or erase operations .
flash
&'a mut pac::FLASH
example
```no_run
use stm32wlxx_hal::{flash::Flash, pac}.

let mut dp: pac::Peripherals = pac::Peripherals::take().unwrap().

let mut flash: Flash = Flash::unlock(&mut dp.FLASH);
```
` ` ` no_run use stm32wlxx_hal :: { flash :: Flash pac } . let mut dp : pac :: Peripherals = pac :: Peripherals :: take () . unwrap () . let mut flash : Flash = Flash :: unlock ( &mut dp . FLASH ) ; ` ` `