stm32-metapac

Crates

git

Versions

stm32h7s7l8

Flavors

📣 We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

Struct stm32_metapac::flash::Flash

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

Embedded Flash memory.

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 keyr(self) -> Reg<Keyr, RW>

FLASH control key register.

pub const fn cr(self) -> Reg<Cr, RW>

FLASH control register.

pub const fn sr(self) -> Reg<Sr, RW>

FLASH status register.

pub const fn fcr(self) -> Reg<Fcr, RW>

FLASH status register.

pub const fn ier(self) -> Reg<Ier, RW>

FLASH interrupt enable register.

pub const fn isr(self) -> Reg<Isr, RW>

FLASH interrupt status register.

pub const fn icr(self) -> Reg<Icr, RW>

FLASH interrupt clear register.

pub const fn crccr(self) -> Reg<Crccr, RW>

FLASH CRC control register.

pub const fn crcsaddr(self) -> Reg<Crcsaddr, RW>

FLASH CRC start address register.

pub const fn crceaddr(self) -> Reg<Crceaddr, RW>

FLASH CRC end address register.

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

FLASH CRC data register.

pub const fn eccsfaddr(self) -> Reg<Eccsfaddr, RW>

FLASH ECC single error fail address.

pub const fn eccdfaddr(self) -> Reg<Eccdfaddr, RW>

FLASH ECC double error fail address.

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

FLASH options key register.

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

FLASH options control register.

pub const fn optisr(self) -> Reg<Optisr, RW>

FLASH options interrupt status register.

pub const fn opticr(self) -> Reg<Opticr, RW>

FLASH options interrupt clear register.

pub const fn obkcr(self) -> Reg<Obkcr, RW>

FLASH option byte key control register.

pub const fn obkdr(self, n: usize) -> Reg<u32, RW>

FLASH option bytes key data register 0.

pub const fn nvsr(self) -> Reg<Nvsr, RW>

FLASH non-volatile status register.

pub const fn nvsrp(self) -> Reg<Nvsrp, RW>

FLASH security status register programming.

pub const fn rotsr(self) -> Reg<Rotsr, RW>

FLASH RoT status register.

pub const fn rotsrp(self) -> Reg<Rotsrp, RW>

FLASH RoT status register programming.

pub const fn otplsr(self) -> Reg<Otplsr, RW>

FLASH OTP lock status register.

pub const fn otplsrp(self) -> Reg<Otplsrp, RW>

FLASH OTP lock status register programming.

pub const fn wrpsr(self) -> Reg<Wrpsr, RW>

FLASH write protection status register.

pub const fn wrpsrp(self) -> Reg<Wrpsrp, RW>

FLASH write protection status register programming.

pub const fn hdpsr(self) -> Reg<Hdpsr, RW>

FLASH hide protection status register.

pub const fn hdpsrp(self) -> Reg<Hdpsrp, RW>

FLASH hide protection status register programming.

pub const fn epochsr(self) -> Reg<Epochsr, RW>

FLASH epoch status register.

pub const fn epochsrp(self) -> Reg<Epochsrp, RW>

FLASH RoT status register programming.

pub const fn obw1sr(self) -> Reg<Obw1sr, RW>

FLASH option byte word 1 status register.

pub const fn obw1srp(self) -> Reg<Obw1srp, RW>

FLASH option byte word 1 status register programming.

pub const fn obw2sr(self) -> Reg<Obw2sr, RW>

FLASH option byte word 2 status register.

pub const fn obw2srp(self) -> Reg<Obw2srp, RW>

FLASH option byte word 2 status register programming.

Trait Implementations§

§

impl Clone for Flash

§

fn clone(&self) -> Flash

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl PartialEq for Flash

§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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 StructuralEq 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> 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.