stm32-metapac

Crates

5.0.0

Versions

stm32h503kb

Flavors

Struct Flash

pub struct Flash(pub *mut u8);
Expand description

FLASH address block description

Tuple Fields§

§0: *mut u8

Implementations§

§

impl Flash

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

FLASH access control register

pub fn nskeyr(self) -> Reg<Nskeyr, RW>

FLASH key register

pub fn optkeyr(self) -> Reg<Optkeyr, RW>

FLASH option key register

pub fn opsr(self) -> Reg<Opsr, RW>

FLASH operation status register

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

FLASH option control register

pub fn nssr(self) -> Reg<Nssr, RW>

FLASH non-secure status register

pub fn secsr(self) -> Reg<Secsr, RW>

FLASH secure status register

pub fn nscr(self) -> Reg<Nscr, RW>

FLASH Non Secure control register

pub fn nsccr(self) -> Reg<Nsccr, RW>

FLASH non-secure clear control register

pub fn privcfgr(self) -> Reg<Privcfgr, RW>

FLASH privilege configuration register

pub fn hdpextr(self) -> Reg<Hdpextr, RW>

FLASH HDP extension register

pub fn optsr_cur(self) -> Reg<Optsr, RW>

FLASH option status register

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

FLASH option status register

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

FLASH option status register 2

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

FLASH option status register 2

pub fn nsbootr_cur(self) -> Reg<Nsbootr, RW>

FLASH non-secure unique boot entry register

pub fn nsbootr_prg(self) -> Reg<Nsbootr, RW>

FLASH non-secure unique boot entry address

pub fn otpblr_cur(self) -> Reg<Otpblr, RW>

FLASH non-secure OTP block lock

pub fn otpblr_prg(self) -> Reg<Otpblr, RW>

FLASH non-secure OTP block lock

pub fn privbb1r(self) -> Reg<Privbb, RW>

FLASH privilege register for bank 1

pub fn wrpsgn1r_cur(self) -> Reg<Wrp, RW>

FLASH write sector protection for Bank1

pub fn wrpsgn1r_prg(self) -> Reg<Wrp, RW>

FLASH write sector protection for Bank1

pub fn hdp1r_cur(self) -> Reg<Hdp1r, RW>

FLASH HDP Bank1 register

pub fn hdp1r_prg(self) -> Reg<Hdp1r, RW>

FLASH HDP Bank1 register

pub fn ecccorr(self) -> Reg<Ecccorr, RW>

FLASH Flash ECC correction register

pub fn eccdetr(self) -> Reg<Eccdetr, RW>

FLASH ECC detection register

pub fn eccdr(self) -> Reg<Eccdr, RW>

FLASH ECC data

pub fn wrpsgn2r_cur(self) -> Reg<Wrp, RW>

FLASH write sector protection for Bank2

pub fn wrpsgn2r_prg(self) -> Reg<Wrp, RW>

FLASH write sector protection for Bank2

pub fn hdp2r_cur(self) -> Reg<Hdp2r, RW>

FLASH HDP Bank2 register

pub fn hdp2r_prg(self) -> Reg<Hdp2r, RW>

FLASH HDP Bank2 register

Trait Implementations§

§

impl Clone for Flash

§

fn clone(&self) -> Flash

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl PartialEq for Flash

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Flash

§

impl Eq for Flash

§

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

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.