Prusa MINI Firmware overview
FLASH_OBProgramInitTypeDef Struct Reference

FLASH Option Bytes Program structure definition. More...

#include <stm32f4xx_hal_flash_ex.h>

Collaboration diagram for FLASH_OBProgramInitTypeDef:

Public Attributes

uint32_t OptionType
 
uint32_t WRPState
 
uint32_t WRPSector
 
uint32_t Banks
 
uint32_t RDPLevel
 
uint32_t BORLevel
 
uint8_t USERConfig
 

Detailed Description

FLASH Option Bytes Program structure definition.

Member Data Documentation

◆ OptionType

uint32_t FLASH_OBProgramInitTypeDef::OptionType

Option byte to be configured. This parameter can be a value of FLASH Option Type

◆ WRPState

uint32_t FLASH_OBProgramInitTypeDef::WRPState

Write protection activation or deactivation. This parameter can be a value of FLASH WRP State

◆ WRPSector

uint32_t FLASH_OBProgramInitTypeDef::WRPSector

Specifies the sector(s) to be write protected. The value of this parameter depend on device used within the same series

◆ Banks

uint32_t FLASH_OBProgramInitTypeDef::Banks

Select banks for WRP activation/deactivation of all sectors. This parameter must be a value of FLASH Banks

◆ RDPLevel

uint32_t FLASH_OBProgramInitTypeDef::RDPLevel

Set the read protection level. This parameter can be a value of FLASH Option Bytes Read Protection

◆ BORLevel

uint32_t FLASH_OBProgramInitTypeDef::BORLevel

Set the BOR Level. This parameter can be a value of FLASH BOR Reset Level

◆ USERConfig

uint8_t FLASH_OBProgramInitTypeDef::USERConfig

Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.