Struct stm32_hal2::pac::FLASH

source ·
pub struct FLASH { /* private fields */ }
Expand description

Flash

Implementations§

source§

impl FLASH

source

pub const PTR: *const RegisterBlock = {0x52002000 as *const stm32h7::stm32h735::flash::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn bank1(&self) -> &BANK

0x04..0x64 - Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R

source

pub fn optkeyr(&self) -> &Reg<OPTKEYR_SPEC>

0x08 - FLASH option key register

source

pub fn optcr(&self) -> &Reg<OPTCR_SPEC>

0x18 - FLASH option control register

source

pub fn optsr_cur(&self) -> &Reg<OPTSR_CUR_SPEC>

0x1c - FLASH option status register

source

pub fn optsr_prg(&self) -> &Reg<OPTSR_PRG_SPEC>

0x20 - FLASH option status register

source

pub fn optccr(&self) -> &Reg<OPTCCR_SPEC>

0x24 - FLASH option clear control register

source

pub fn boot_curr(&self) -> &Reg<BOOT_CURR_SPEC>

0x40 - FLASH register with boot address

source

pub fn boot_prgr(&self) -> &Reg<BOOT_PRGR_SPEC>

0x44 - FLASH register with boot address

source

pub fn crcdatar(&self) -> &Reg<CRCDATAR_SPEC>

0x5c - FLASH CRC data register

source

pub fn bank2(&self) -> &BANK

0x104..0x164 - Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R

source

pub fn optkeyr_(&self) -> &Reg<OPTKEYR__SPEC>

0x108 - FLASH option key register

source

pub fn optcr_(&self) -> &Reg<OPTCR__SPEC>

0x118 - FLASH option control register

source

pub fn optsr_cur_(&self) -> &Reg<OPTSR_CUR__SPEC>

0x11c - FLASH option status register

source

pub fn optsr_prg_(&self) -> &Reg<OPTSR_PRG__SPEC>

0x120 - FLASH option status register

source

pub fn optccr_(&self) -> &Reg<OPTCCR__SPEC>

0x124 - FLASH option clear control register

Trait Implementations§

source§

impl Debug for FLASH

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for FLASH

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &<FLASH as Deref>::Target

Dereferences the value.
source§

impl Send for FLASH

Auto Trait Implementations§

§

impl Freeze for FLASH

§

impl RefUnwindSafe for FLASH

§

impl !Sync for FLASH

§

impl Unpin for FLASH

§

impl UnwindSafe for FLASH

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.