#[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
impl Clone for FLASH_OBProgramInitTypeDef
Source§fn clone(&self) -> FLASH_OBProgramInitTypeDef
fn clone(&self) -> FLASH_OBProgramInitTypeDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more