Skip to main content

FLASH_TypeDef

Struct FLASH_TypeDef 

Source
#[repr(C)]
pub struct FLASH_TypeDef {
Show 23 fields pub ACR: u32, pub RESERVED1: u32, pub KEYR: u32, pub OPTKEYR: u32, pub SR: u32, pub CR: u32, pub RESERVED2: [u32; 2], pub OPTR: u32, pub SDKR: u32, pub RESERVED3: u32, pub WRPR: u32, pub RESERVED4: [u32; 24], pub STCR: u32, pub RESERVED5: [u32; 27], pub TS0: u32, pub TS1: u32, pub TS2P: u32, pub TPS3: u32, pub TS3: u32, pub PERTPE: u32, pub SMERTPE: u32, pub PRGTPE: u32, pub PRETPE: u32,
}
Expand description

@brief FLASH Registers

Fields§

§ACR: u32

< FLASH Access Control register, Address offset: 0x00

§RESERVED1: u32

< Reserved1, Address offset: 0x04

§KEYR: u32

< FLASH Key register, Address offset: 0x08

§OPTKEYR: u32

< FLASH Option Key register, Address offset: 0x0C

§SR: u32

< FLASH Status register, Address offset: 0x10

§CR: u32

< FLASH Control register, Address offset: 0x14

§RESERVED2: [u32; 2]

< Reserved2, Address offset: 0x18-0x1C

§OPTR: u32

< FLASH Option register, Address offset: 0x20

§SDKR: u32

< FLASH SDK address register, Address offset: 0x24

§RESERVED3: u32

< Reserved2, Address offset: 0x28

§WRPR: u32

< FLASH WRP address register, Address offset: 0x2C

§RESERVED4: [u32; 24]§STCR: u32

< FLASH sleep time config register, Address offset: 0x90

§RESERVED5: [u32; 27]§TS0: u32

< FLASH TS0 register, Address offset: 0x100

§TS1: u32

< FLASH TS1 register, Address offset: 0x104

§TS2P: u32

< FLASH TS2P register, Address offset: 0x108

§TPS3: u32

< FLASH TPS3 register, Address offset: 0x10C

§TS3: u32

< FLASH TS3 register, Address offset: 0x110

§PERTPE: u32

< FLASH PERTPE register, Address offset: 0x114

§SMERTPE: u32

< FLASH SMERTPE register, Address offset: 0x118

§PRGTPE: u32

< FLASH PRGTPE register, Address offset: 0x11C

§PRETPE: u32

< FLASH PRETPE register, Address offset: 0x120

Trait Implementations§

Source§

impl Clone for FLASH_TypeDef

Source§

fn clone(&self) -> FLASH_TypeDef

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
Source§

impl Copy for FLASH_TypeDef

Source§

impl Debug for FLASH_TypeDef

Source§

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

Formats the value using the given formatter. Read more

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.