stm32-metapac

Crates

git

Versions

stm32h745xg-cm7

Flavors

Skip to main content

Flash

Struct Flash 

pub struct Flash { /* private fields */ }
Expand description

Flash

Implementations§

§

impl Flash

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

pub const fn as_ptr(&self) -> *mut ()

pub const fn acr(self) -> Reg<Acr, RW>

Access control register

pub const fn bank(self, n: usize) -> Bank

Per-bank registers (bank 1, bank 2). Bank 2 is not present on STM32H72x/H73x (RM0468).

pub const fn optkeyr(self) -> Reg<u32, W>

FLASH option key register

pub const fn optcr(self) -> Reg<Optcr, RW>

FLASH option control register

pub const fn optsr_cur(self) -> Reg<OptsrCur, R>

FLASH option status register

pub const fn optsr_prg(self) -> Reg<OptsrPrg, RW>

FLASH option status register

pub const fn optccr(self) -> Reg<Optccr, W>

FLASH option clear control register

pub const fn boot_cur(self) -> Reg<Boot, R>

FLASH register with boot address

pub const fn boot_prg(self) -> Reg<Boot, RW>

FLASH register with boot address

pub const fn boot4_cur(self) -> Reg<Boot, R>

FLASH register with boot address. Cortex-M4 boot addresses, only on dual-core devices (RM0399).

pub const fn boot4_prg(self) -> Reg<Boot, RW>

FLASH register with boot address. Cortex-M4 boot addresses, only on dual-core devices (RM0399).

pub const fn crcdatar(self) -> Reg<Crcdatar, RW>

FLASH CRC data register

pub const fn optsr2_cur(self) -> Reg<Optsr2, R>

FLASH option status register 2. Only on STM32H72x/H73x (RM0468).

pub const fn optsr2_prg(self) -> Reg<Optsr2, RW>

FLASH option status register 2. Only on STM32H72x/H73x (RM0468).

Trait Implementations§

§

impl Clone for Flash

§

fn clone(&self) -> Flash

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Flash

§

impl Eq for Flash

§

impl PartialEq for Flash

§

fn eq(&self, other: &Flash) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl Send for Flash

§

impl StructuralPartialEq for Flash

§

impl Sync for Flash

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

type Error = !

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>,

Source§

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.