[][src]Struct stm32g0::stm32g0x0::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 Self[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 mer(&mut self) -> _MERW[src]

Bit 2 - Mass erase

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

Bits 3:8 - Page number

pub fn strt(&mut self) -> _STRTW[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 sec_prot(&mut self) -> _SEC_PROTW[src]

Bit 28 - Securable memory area protection enable

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, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> From<T> for T[src]

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self