STM32F4xx HAL Driver master
STM32CubeF4 HAL / LL Drivers API Reference
Loading...
Searching...
No Matches
FLASH Private macros to check input parameters
Collaboration diagram for FLASH Private macros to check input parameters:

Macros

#define IS_FLASH_TYPEERASE(VALUE)
#define IS_VOLTAGERANGE(RANGE)
#define IS_WRPSTATE(VALUE)
#define IS_OPTIONBYTE(VALUE)
#define IS_OB_RDP_LEVEL(LEVEL)
#define IS_OB_IWDG_SOURCE(SOURCE)
#define IS_OB_STOP_SOURCE(SOURCE)
#define IS_OB_STDBY_SOURCE(SOURCE)
#define IS_OB_BOR_LEVEL(LEVEL)
#define IS_FLASH_ADDRESS(ADDRESS)
#define IS_FLASH_NBSECTORS(NBSECTORS)

Detailed Description

Macro Definition Documentation

◆ IS_FLASH_ADDRESS

#define IS_FLASH_ADDRESS ( ADDRESS)
Value:
((((ADDRESS) >= FLASH_BASE) && ((ADDRESS) <= FLASH_END)) || \
(((ADDRESS) >= FLASH_OTP_BASE) && ((ADDRESS) <= FLASH_OTP_END)))

Definition at line 967 of file stm32f4xx_hal_flash_ex.h.

◆ IS_FLASH_NBSECTORS

#define IS_FLASH_NBSECTORS ( NBSECTORS)
Value:
(((NBSECTORS) != 0) && ((NBSECTORS) <= FLASH_SECTOR_TOTAL))

Definition at line 970 of file stm32f4xx_hal_flash_ex.h.

◆ IS_FLASH_TYPEERASE

#define IS_FLASH_TYPEERASE ( VALUE)
Value:
(((VALUE) == FLASH_TYPEERASE_SECTORS) || \
#define FLASH_TYPEERASE_MASSERASE
#define FLASH_TYPEERASE_SECTORS

Definition at line 811 of file stm32f4xx_hal_flash_ex.h.

◆ IS_OB_BOR_LEVEL

#define IS_OB_BOR_LEVEL ( LEVEL)
Value:
(((LEVEL) == OB_BOR_LEVEL1) || ((LEVEL) == OB_BOR_LEVEL2) ||\
((LEVEL) == OB_BOR_LEVEL3) || ((LEVEL) == OB_BOR_OFF))
#define OB_BOR_LEVEL3
#define OB_BOR_LEVEL1
#define OB_BOR_OFF
#define OB_BOR_LEVEL2

Definition at line 834 of file stm32f4xx_hal_flash_ex.h.

◆ IS_OB_IWDG_SOURCE

#define IS_OB_IWDG_SOURCE ( SOURCE)
Value:
(((SOURCE) == OB_IWDG_SW) || ((SOURCE) == OB_IWDG_HW))
#define OB_IWDG_SW
#define OB_IWDG_HW

Definition at line 828 of file stm32f4xx_hal_flash_ex.h.

◆ IS_OB_RDP_LEVEL

#define IS_OB_RDP_LEVEL ( LEVEL)
Value:
(((LEVEL) == OB_RDP_LEVEL_0) ||\
((LEVEL) == OB_RDP_LEVEL_1) ||\
((LEVEL) == OB_RDP_LEVEL_2))
#define OB_RDP_LEVEL_2
#define OB_RDP_LEVEL_0
#define OB_RDP_LEVEL_1

Definition at line 824 of file stm32f4xx_hal_flash_ex.h.

◆ IS_OB_STDBY_SOURCE

#define IS_OB_STDBY_SOURCE ( SOURCE)
Value:
(((SOURCE) == OB_STDBY_NO_RST) || ((SOURCE) == OB_STDBY_RST))
#define OB_STDBY_RST
#define OB_STDBY_NO_RST

Definition at line 832 of file stm32f4xx_hal_flash_ex.h.

◆ IS_OB_STOP_SOURCE

#define IS_OB_STOP_SOURCE ( SOURCE)
Value:
(((SOURCE) == OB_STOP_NO_RST) || ((SOURCE) == OB_STOP_RST))
#define OB_STOP_NO_RST
#define OB_STOP_RST

Definition at line 830 of file stm32f4xx_hal_flash_ex.h.

◆ IS_OPTIONBYTE

#define IS_OPTIONBYTE ( VALUE)
Value:
#define OPTIONBYTE_WRP
#define OPTIONBYTE_RDP
#define OPTIONBYTE_USER
#define OPTIONBYTE_BOR

Definition at line 822 of file stm32f4xx_hal_flash_ex.h.

◆ IS_VOLTAGERANGE

#define IS_VOLTAGERANGE ( RANGE)
Value:
(((RANGE) == FLASH_VOLTAGE_RANGE_1) || \
((RANGE) == FLASH_VOLTAGE_RANGE_2) || \
((RANGE) == FLASH_VOLTAGE_RANGE_3) || \
((RANGE) == FLASH_VOLTAGE_RANGE_4))
#define FLASH_VOLTAGE_RANGE_3
#define FLASH_VOLTAGE_RANGE_1
#define FLASH_VOLTAGE_RANGE_4
#define FLASH_VOLTAGE_RANGE_2

Definition at line 814 of file stm32f4xx_hal_flash_ex.h.

◆ IS_WRPSTATE

#define IS_WRPSTATE ( VALUE)
Value:
(((VALUE) == OB_WRPSTATE_DISABLE) || \
((VALUE) == OB_WRPSTATE_ENABLE))
#define OB_WRPSTATE_ENABLE
#define OB_WRPSTATE_DISABLE

Definition at line 819 of file stm32f4xx_hal_flash_ex.h.