Struct FLASH_OBProgramInitTypeDef

Source
#[repr(C)]
pub struct FLASH_OBProgramInitTypeDef { pub OptionType: u32, pub WRPSector: u32, pub SDKStartAddr: u32, pub SDKEndAddr: u32, pub RDPLevel: u32, pub USERType: u32, pub USERConfig: u32, }
Expand description

@brief FLASH Option Bytes PROGRAM structure definition

Fields§

§OptionType: u32

< OptionType: Option byte to be configured. This parameter can be a value of @ref FLASH_Option_Type

§WRPSector: u32

< WRPSector: This bitfield specifies the sector (s) which are write protected. This parameter can be a combination of @ref FLASH_Option_Bytes_Write_Protection

§SDKStartAddr: u32

< SDK Start address (used for FLASH_SDKR). It represents first address of start block to protect. Make sure this parameter is multiple of SDK granularity: 2048 Bytes.

§SDKEndAddr: u32

< SDK End address (used for FLASH_SDKR). It represents first address of end block to protect. Make sure this parameter is multiple of SDK granularity: 2048 Bytes.

§RDPLevel: u32

< RDPLevel: Set the read protection level. This parameter can be a value of @ref FLASH_OB_Read_Protection

§USERType: u32

< User option byte(s) to be configured (used for OPTIONBYTE_USER). This parameter can be a combination of @ref FLASH_OB_USER_Type

§USERConfig: u32

< Value of the user option byte (used for OPTIONBYTE_USER). This parameter can be a combination of @ref FLASH_OB_USER_BOR_ENABLE, @ref FLASH_OB_USER_BOR_LEVEL, @ref FLASH_OB_USER_RESET_CONFIG, @ref FLASH_OB_USER_IWDG_SW, @ref FLASH_OB_USER_WWDG_SW, @ref FLASH_OB_USER_nBOOT1

Trait Implementations§

Source§

impl Clone for FLASH_OBProgramInitTypeDef

Source§

fn clone(&self) -> FLASH_OBProgramInitTypeDef

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

impl Debug for FLASH_OBProgramInitTypeDef

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for FLASH_OBProgramInitTypeDef

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.