[][src]Struct stm32l4xx_hal::stm32::flash::cr::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W[src]

pub fn reset_value() -> W[src]

Reset value of the register

pub unsafe fn bits(&mut self, bits: u32) -> &mut W[src]

Writes raw bits to the register

pub fn pg(&mut self) -> _PGW[src]

Bit 0 - Programming

pub fn per(&mut self) -> _PERW[src]

Bit 1 - Page erase

pub fn mer1(&mut self) -> _MER1W[src]

Bit 2 - Bank 1 Mass erase

pub fn pnb(&mut self) -> _PNBW[src]

Bits 3:10 - Page number

pub fn bker(&mut self) -> _BKERW[src]

Bit 11 - Bank erase

pub fn mer2(&mut self) -> _MER2W[src]

Bit 15 - Bank 2 Mass erase

pub fn start(&mut self) -> _STARTW[src]

Bit 16 - Start

pub fn optstrt(&mut self) -> _OPTSTRTW[src]

Bit 17 - Options modification start

pub fn fstpg(&mut self) -> _FSTPGW[src]

Bit 18 - Fast programming

pub fn eopie(&mut self) -> _EOPIEW[src]

Bit 24 - End of operation interrupt enable

pub fn errie(&mut self) -> _ERRIEW[src]

Bit 25 - Error interrupt enable

pub fn rderrie(&mut self) -> _RDERRIEW[src]

Bit 26 - PCROP read error interrupt enable

pub fn obl_launch(&mut self) -> _OBL_LAUNCHW[src]

Bit 27 - Force the option byte loading

pub fn optlock(&mut self) -> _OPTLOCKW[src]

Bit 30 - Options Lock

pub fn lock(&mut self) -> _LOCKW[src]

Bit 31 - FLASH_CR Lock

Auto Trait Implementations

impl Send for W

impl Sync for W

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self