stm32-metapac

Crates

git

Versions

stm32wb06cc

Flavors

Flash

Struct Flash 

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

4kb addressable space.

Implementations§

§

impl Flash

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

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

pub const fn command(self) -> Reg<Command, RW>

COMMAND register.

pub const fn config(self) -> Reg<Config, RW>

CONFIG register.

pub const fn irqstat(self) -> Reg<Irqstat, RW>

IRQSTAT register.

pub const fn irqmask(self) -> Reg<Irqmask, RW>

IRQMASK register.

pub const fn irqraw(self) -> Reg<Irqraw, RW>

IRQRAW register.

pub const fn size(self) -> Reg<Size, R>

SIZE register.

pub const fn address(self) -> Reg<Address, RW>

ADDRESS register.

pub const fn lfsrval(self) -> Reg<Lfsrval, R>

LFSRVAL register.

pub const fn pageprot0(self) -> Reg<Pageprot0, RW>

PAGEPROT0 register.

pub const fn pageprot1(self) -> Reg<Pageprot1, RW>

PAGEPROT1 register.

pub const fn data0(self) -> Reg<Data0, RW>

DATA0 register.

pub const fn data1(self) -> Reg<Data1, RW>

DATA1 register.

pub const fn data2(self) -> Reg<Data2, RW>

DATA2 register.

pub const fn data3(self) -> Reg<Data3, RW>

DATA3 register.

Trait Implementations§

§

impl Clone for Flash

§

fn clone(&self) -> Flash

Returns a duplicate 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

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

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.