FLASH_AdvOBProgramInitTypeDef struct
Syntax
typedef struct
{
uint32_t OptionType;
uint32_t PCROPState;
#if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) ||\
defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
uint16_t Sectors;
#endif
#if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx)
uint32_t Banks;
uint16_t SectorsBank1;
uint16_t SectorsBank2;
uint8_t BootConfig;
#endif
}FLASH_AdvOBProgramInitTypeDef;
Fields
Option byte to be configured for extension. This parameter can be a value of FLASHEx_Advanced_Option_Type.
PCROP activation or deactivation. This parameter can be a value of FLASHEx_PCROP_State.
Select banks for PCROP activation/deactivation of all sectors. This parameter must be a value of FLASHEx_Banks.
Specifies the sector(s) set for PCROP for Bank1. This parameter can be a value of FLASHEx_Option_Bytes_PC_ReadWrite_Protection.
Specifies the sector(s) set for PCROP for Bank2. This parameter can be a value of FLASHEx_Option_Bytes_PC_ReadWrite_Protection.
Specifies Option bytes for boot config. This parameter can be a value of FLASHEx_Dual_Boot.
Examples
FLASH_AdvOBProgramInitTypeDef is referenced by 1 libraries and example projects: