STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
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_PCROPSTATE(VALUE)
 
#define IS_OBEX(VALUE)
 
#define IS_FLASH_LATENCY(LATENCY)
 
#define IS_FLASH_BANK(BANK)
 
#define IS_FLASH_SECTOR(SECTOR)
 
#define IS_FLASH_ADDRESS(ADDRESS)
 
#define IS_FLASH_NBSECTORS(NBSECTORS)
 
#define IS_OB_WRP_SECTOR(SECTOR)
 
#define IS_OB_PCROP(SECTOR)
 
#define IS_OB_PCROP_SELECT(PCROP)
 

Detailed Description

Macro Definition Documentation

◆ IS_FLASH_TYPEERASE

#define IS_FLASH_TYPEERASE ( VALUE)

#include <stm32f4xx_hal_flash_ex.h>

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

Definition at line 811 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().

◆ IS_VOLTAGERANGE

#define IS_VOLTAGERANGE ( RANGE)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by FLASH_Erase_Sector(), and FLASH_MassErase().

◆ IS_WRPSTATE

#define IS_WRPSTATE ( VALUE)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by HAL_FLASHEx_OBProgram().

◆ IS_OPTIONBYTE

#define IS_OPTIONBYTE ( VALUE)

#include <stm32f4xx_hal_flash_ex.h>

Value:
#define OPTIONBYTE_WRP
#define OPTIONBYTE_RDP
#define OPTIONBYTE_USER
#define OPTIONBYTE_BOR

Definition at line 822 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_OBProgram().

◆ IS_OB_RDP_LEVEL

#define IS_OB_RDP_LEVEL ( LEVEL)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by FLASH_OB_RDP_LevelConfig().

◆ IS_OB_IWDG_SOURCE

#define IS_OB_IWDG_SOURCE ( SOURCE)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by FLASH_OB_UserConfig().

◆ IS_OB_STOP_SOURCE

#define IS_OB_STOP_SOURCE ( SOURCE)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by FLASH_OB_UserConfig().

◆ IS_OB_STDBY_SOURCE

#define IS_OB_STDBY_SOURCE ( SOURCE)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by FLASH_OB_UserConfig().

◆ IS_OB_BOR_LEVEL

#define IS_OB_BOR_LEVEL ( LEVEL)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by FLASH_OB_BOR_LevelConfig().

◆ IS_PCROPSTATE

#define IS_PCROPSTATE ( VALUE)

#include <stm32f4xx_hal_flash_ex.h>

Value:
(((VALUE) == OB_PCROP_STATE_DISABLE) || \
((VALUE) == OB_PCROP_STATE_ENABLE))
#define OB_PCROP_STATE_ENABLE
#define OB_PCROP_STATE_DISABLE

Definition at line 842 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_AdvOBProgram().

◆ IS_OBEX

#define IS_OBEX ( VALUE)

#include <stm32f4xx_hal_flash_ex.h>

Value:
(((VALUE) == OPTIONBYTE_PCROP))
#define OPTIONBYTE_PCROP

Definition at line 858 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_AdvOBProgram().

◆ IS_FLASH_LATENCY

#define IS_FLASH_LATENCY ( LATENCY)

#include <stm32f4xx_hal_flash_ex.h>

Value:
(((LATENCY) == FLASH_LATENCY_0) || \
((LATENCY) == FLASH_LATENCY_1) || \
((LATENCY) == FLASH_LATENCY_2) || \
((LATENCY) == FLASH_LATENCY_3) || \
((LATENCY) == FLASH_LATENCY_4) || \
((LATENCY) == FLASH_LATENCY_5) || \
((LATENCY) == FLASH_LATENCY_6) || \
((LATENCY) == FLASH_LATENCY_7) || \
((LATENCY) == FLASH_LATENCY_8) || \
((LATENCY) == FLASH_LATENCY_9) || \
((LATENCY) == FLASH_LATENCY_10) || \
((LATENCY) == FLASH_LATENCY_11) || \
((LATENCY) == FLASH_LATENCY_12) || \
((LATENCY) == FLASH_LATENCY_13) || \
((LATENCY) == FLASH_LATENCY_14) || \
((LATENCY) == FLASH_LATENCY_15))
#define FLASH_LATENCY_7
#define FLASH_LATENCY_0
#define FLASH_LATENCY_15
#define FLASH_LATENCY_12
#define FLASH_LATENCY_11
#define FLASH_LATENCY_5
#define FLASH_LATENCY_1
#define FLASH_LATENCY_3
#define FLASH_LATENCY_13
#define FLASH_LATENCY_8
#define FLASH_LATENCY_4
#define FLASH_LATENCY_2
#define FLASH_LATENCY_10
#define FLASH_LATENCY_9
#define FLASH_LATENCY_6
#define FLASH_LATENCY_14

Definition at line 864 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_RCC_ClockConfig().

◆ IS_FLASH_BANK

#define IS_FLASH_BANK ( BANK)

#include <stm32f4xx_hal_flash_ex.h>

Value:
(((BANK) == FLASH_BANK_1))
#define FLASH_BANK_1

Definition at line 908 of file stm32f4xx_hal_flash_ex.h.

Referenced by FLASH_MassErase(), FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().

◆ IS_FLASH_SECTOR

#define IS_FLASH_SECTOR ( SECTOR)

#include <stm32f4xx_hal_flash_ex.h>

Value:
(((SECTOR) == FLASH_SECTOR_0) || ((SECTOR) == FLASH_SECTOR_1) ||\
((SECTOR) == FLASH_SECTOR_2) || ((SECTOR) == FLASH_SECTOR_3) ||\
((SECTOR) == FLASH_SECTOR_4) || ((SECTOR) == FLASH_SECTOR_5) ||\
((SECTOR) == FLASH_SECTOR_6) || ((SECTOR) == FLASH_SECTOR_7))
#define FLASH_SECTOR_0
#define FLASH_SECTOR_1
#define FLASH_SECTOR_2
#define FLASH_SECTOR_7
#define FLASH_SECTOR_6
#define FLASH_SECTOR_3
#define FLASH_SECTOR_4
#define FLASH_SECTOR_5

Definition at line 961 of file stm32f4xx_hal_flash_ex.h.

Referenced by FLASH_Erase_Sector().

◆ IS_FLASH_ADDRESS

#define IS_FLASH_ADDRESS ( ADDRESS)

#include <stm32f4xx_hal_flash_ex.h>

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.

Referenced by FLASH_Program_Byte(), FLASH_Program_DoubleWord(), FLASH_Program_HalfWord(), and FLASH_Program_Word().

◆ IS_FLASH_NBSECTORS

#define IS_FLASH_NBSECTORS ( NBSECTORS)

#include <stm32f4xx_hal_flash_ex.h>

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

Definition at line 970 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().

◆ IS_OB_WRP_SECTOR

#define IS_OB_WRP_SECTOR ( SECTOR)

#include <stm32f4xx_hal_flash_ex.h>

Value:
((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U))

Definition at line 994 of file stm32f4xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisableWRP(), and FLASH_OB_EnableWRP().

◆ IS_OB_PCROP

#define IS_OB_PCROP ( SECTOR)

#include <stm32f4xx_hal_flash_ex.h>

Value:
((((SECTOR) & 0xFFFFF000U) == 0x00000000U) && ((SECTOR) != 0x00000000U))

Definition at line 1015 of file stm32f4xx_hal_flash_ex.h.

Referenced by FLASH_OB_DisablePCROP(), and FLASH_OB_EnablePCROP().

◆ IS_OB_PCROP_SELECT

#define IS_OB_PCROP_SELECT ( PCROP)

#include <stm32f4xx_hal_flash_ex.h>

Value:
(((PCROP) == OB_PCROP_SELECTED) || ((PCROP) == OB_PCROP_DESELECTED))
#define OB_PCROP_SELECTED
#define OB_PCROP_DESELECTED

Definition at line 1028 of file stm32f4xx_hal_flash_ex.h.