My Project
Loading...
Searching...
No Matches
stm32f3xx_hal_flash_ex.h File Reference

Header file of Flash HAL Extended module. More...

Go to the source code of this file.

Classes

struct  FLASH_EraseInitTypeDef
 FLASH Erase structure definition. More...
 
struct  FLASH_OBProgramInitTypeDef
 FLASH Options bytes program structure definition. More...
 

Macros

#define FLASH_SIZE_DATA_REGISTER   (0x1FFFF7CCU)
 
#define IS_FLASH_TYPEERASE(VALUE)
 
#define IS_OPTIONBYTE(VALUE)   ((VALUE) <= (OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER | OPTIONBYTE_DATA))
 
#define IS_WRPSTATE(VALUE)
 
#define IS_OB_DATA_ADDRESS(ADDRESS)   (((ADDRESS) == OB_DATA_ADDRESS_DATA0) || ((ADDRESS) == OB_DATA_ADDRESS_DATA1))
 
#define IS_OB_RDP_LEVEL(LEVEL)
 
#define IS_OB_IWDG_SOURCE(SOURCE)   (((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW))
 
#define IS_OB_STOP_SOURCE(SOURCE)   (((SOURCE) == OB_STOP_NO_RST) || ((SOURCE) == OB_STOP_RST))
 
#define IS_OB_STDBY_SOURCE(SOURCE)   (((SOURCE) == OB_STDBY_NO_RST) || ((SOURCE) == OB_STDBY_RST))
 
#define IS_OB_BOOT1(BOOT1)   (((BOOT1) == OB_BOOT1_RESET) || ((BOOT1) == OB_BOOT1_SET))
 
#define IS_OB_VDDA_ANALOG(ANALOG)   (((ANALOG) == OB_VDDA_ANALOG_ON) || ((ANALOG) == OB_VDDA_ANALOG_OFF))
 
#define IS_OB_SRAM_PARITY(PARITY)   (((PARITY) == OB_SRAM_PARITY_SET) || ((PARITY) == OB_SRAM_PARITY_RESET))
 
#define IS_OB_WRP(PAGE)   (((PAGE) != 0x0000000U))
 
#define FLASH_PAGE_SIZE   0x800
 
#define FLASH_TYPEERASE_PAGES   (0x00U)
 
#define FLASH_TYPEERASE_MASSERASE   (0x01U)
 
#define OPTIONBYTE_WRP   (0x01U)
 
#define OPTIONBYTE_RDP   (0x02U)
 
#define OPTIONBYTE_USER   (0x04U)
 
#define OPTIONBYTE_DATA   (0x08U)
 
#define OB_WRPSTATE_DISABLE   (0x00U)
 
#define OB_WRPSTATE_ENABLE   (0x01U)
 
#define OB_WRP_PAGES0TO1   (0x00000001U) /* Write protection of page 0 to 1 */
 
#define OB_WRP_PAGES2TO3   (0x00000002U) /* Write protection of page 2 to 3 */
 
#define OB_WRP_PAGES4TO5   (0x00000004U) /* Write protection of page 4 to 5 */
 
#define OB_WRP_PAGES6TO7   (0x00000008U) /* Write protection of page 6 to 7 */
 
#define OB_WRP_PAGES8TO9   (0x00000010U) /* Write protection of page 8 to 9 */
 
#define OB_WRP_PAGES10TO11   (0x00000020U) /* Write protection of page 10 to 11 */
 
#define OB_WRP_PAGES12TO13   (0x00000040U) /* Write protection of page 12 to 13 */
 
#define OB_WRP_PAGES14TO15   (0x00000080U) /* Write protection of page 14 to 15 */
 
#define OB_WRP_PAGES16TO17   (0x00000100U) /* Write protection of page 16 to 17 */
 
#define OB_WRP_PAGES18TO19   (0x00000200U) /* Write protection of page 18 to 19 */
 
#define OB_WRP_PAGES20TO21   (0x00000400U) /* Write protection of page 20 to 21 */
 
#define OB_WRP_PAGES22TO23   (0x00000800U) /* Write protection of page 22 to 23 */
 
#define OB_WRP_PAGES24TO25   (0x00001000U) /* Write protection of page 24 to 25 */
 
#define OB_WRP_PAGES26TO27   (0x00002000U) /* Write protection of page 26 to 27 */
 
#define OB_WRP_PAGES28TO29   (0x00004000U) /* Write protection of page 28 to 29 */
 
#define OB_WRP_PAGES30TO31   (0x00008000U) /* Write protection of page 30 to 31 */
 
#define OB_WRP_PAGES0TO15MASK   (0x000000FFU)
 
#define OB_WRP_PAGES16TO31MASK   (0x0000FF00U)
 
#define OB_RDP_LEVEL_0   ((uint8_t)0xAAU)
 
#define OB_RDP_LEVEL_1   ((uint8_t)0xBBU)
 
#define OB_RDP_LEVEL_2   ((uint8_t)0xCCU)
 
#define OB_IWDG_SW   ((uint8_t)0x01U)
 
#define OB_IWDG_HW   ((uint8_t)0x00U)
 
#define OB_STOP_NO_RST   ((uint8_t)0x02U)
 
#define OB_STOP_RST   ((uint8_t)0x00U)
 
#define OB_STDBY_NO_RST   ((uint8_t)0x04U)
 
#define OB_STDBY_RST   ((uint8_t)0x00U)
 
#define OB_BOOT1_RESET   ((uint8_t)0x00U)
 
#define OB_BOOT1_SET   ((uint8_t)0x10U)
 
#define OB_VDDA_ANALOG_ON   ((uint8_t)0x20U)
 
#define OB_VDDA_ANALOG_OFF   ((uint8_t)0x00U)
 
#define OB_SRAM_PARITY_SET   ((uint8_t)0x00U)
 
#define OB_SRAM_PARITY_RESET   ((uint8_t)0x40U)
 
#define OB_DATA_ADDRESS_DATA0   (0x1FFFF804U)
 
#define OB_DATA_ADDRESS_DATA1   (0x1FFFF806U)
 

Functions

HAL_StatusTypeDef HAL_FLASHEx_Erase (FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError)
 
HAL_StatusTypeDef HAL_FLASHEx_Erase_IT (FLASH_EraseInitTypeDef *pEraseInit)
 
HAL_StatusTypeDef HAL_FLASHEx_OBErase (void)
 
HAL_StatusTypeDef HAL_FLASHEx_OBProgram (FLASH_OBProgramInitTypeDef *pOBInit)
 
void HAL_FLASHEx_OBGetConfig (FLASH_OBProgramInitTypeDef *pOBInit)
 
uint32_t HAL_FLASHEx_OBGetUserData (uint32_t DATAAdress)
 

Detailed Description

Header file of Flash HAL Extended module.

Author
MCD Application Team
Attention

Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.