STM8L15x Standard Peripherals Drivers: FLASH_Exported_Macros

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

FLASH_Exported_Macros

Defines

#define IS_FLASH_ADDRESS(Address)
 Macro used by the assert function in order to check the different sensitivity values for the data eeprom and flash program Address.
#define IS_FLASH_DATA_EEPROM_ADDRESS(Address)
 Macro used by the assert function in order to check the different sensitivity values for the data Eeprom Address.
#define IS_FLASH_DATA_EEPROM_BLOCK_NUMBER(BlockNum)   ((BlockNum) < FLASH_DATA_EEPROM_BLOCKS_NUMBER)
 Macro used by the assert function in order to check the different sensitivity values for the data eeprom Block number.
#define IS_FLASH_FLAGS(FLAG)
 Macro used by the assert function in order to check the different flags values.
#define IS_FLASH_MEMORY_TYPE(MemType)
 Macro used by the assert function in order to check the different sensitivity values for the flash memory type.
#define IS_FLASH_POWER(Power)
 Macro used by the assert function in order to check the power mode.
#define IS_FLASH_POWERSTATUS(PowerStatus)
 Macro used by the assert function in order to check the power status during wait and run modes.
#define IS_FLASH_PROGRAM_ADDRESS(Address)
 Macro used by the assert function in order to check the different sensitivity values for the flash Address.
#define IS_FLASH_PROGRAM_BLOCK_NUMBER(BlockNum)   ((BlockNum) < FLASH_PROGRAM_BLOCKS_NUMBER)
 Macro used by the assert function in order to check the different sensitivity values for the flash Block number.
#define IS_FLASH_PROGRAM_MODE(Mode)
 Macro used by the assert function in order to check the different sensitivity values for the flash program block mode.
#define IS_FLASH_PROGRAM_TIME(Time)
 Macro used by the assert function in order to check the program time mode.
#define IS_OPTION_BYTE_ADDRESS(ADDRESS)
 Macro used by the assert function in order to check the different sensitivity values for the option bytes Address.

Define Documentation

#define IS_FLASH_ADDRESS (   Address)
Value:
((((Address) >= FLASH_PROGRAM_START_PHYSICAL_ADDRESS) && ((Address) <= FLASH_PROGRAM_END_PHYSICAL_ADDRESS)) || \
                                  (((Address) >= FLASH_DATA_EEPROM_START_PHYSICAL_ADDRESS) && ((Address) <= FLASH_DATA_EEPROM_END_PHYSICAL_ADDRESS)))

Macro used by the assert function in order to check the different sensitivity values for the data eeprom and flash program Address.

Definition at line 222 of file stm8l15x_flash.h.

Referenced by FLASH_EraseByte(), FLASH_ProgramByte(), and FLASH_ProgramWord().

#define IS_FLASH_DATA_EEPROM_ADDRESS (   Address)
Value:
(((Address) >= FLASH_DATA_EEPROM_START_PHYSICAL_ADDRESS) && \
    ((Address) <= FLASH_DATA_EEPROM_END_PHYSICAL_ADDRESS))

Macro used by the assert function in order to check the different sensitivity values for the data Eeprom Address.

Definition at line 215 of file stm8l15x_flash.h.

#define IS_FLASH_DATA_EEPROM_BLOCK_NUMBER (   BlockNum)    ((BlockNum) < FLASH_DATA_EEPROM_BLOCKS_NUMBER)

Macro used by the assert function in order to check the different sensitivity values for the data eeprom Block number.

Definition at line 242 of file stm8l15x_flash.h.

#define IS_FLASH_FLAGS (   FLAG)
Value:
(((FLAG) == FLASH_FLAG_HVOFF) || \
                              ((FLAG) == FLASH_FLAG_DUL) || \
                              ((FLAG) == FLASH_FLAG_EOP) || \
                              ((FLAG) == FLASH_FLAG_PUL) || \
                              ((FLAG) == FLASH_FLAG_WR_PG_DIS))

Macro used by the assert function in order to check the different flags values.

Definition at line 281 of file stm8l15x_flash.h.

Referenced by FLASH_GetFlagStatus().

#define IS_FLASH_MEMORY_TYPE (   MemType)
Value:
(((MemType) == FLASH_MemType_Program) || \
                                       ((MemType) == FLASH_MemType_Data))

Macro used by the assert function in order to check the different sensitivity values for the flash memory type.

Definition at line 248 of file stm8l15x_flash.h.

Referenced by FLASH_Lock(), and FLASH_Unlock().

#define IS_FLASH_POWER (   Power)
Value:
(((Power) == FLASH_Power_IDDQ) || \
                               ((Power) == FLASH_Power_On))

Macro used by the assert function in order to check the power mode.

Definition at line 267 of file stm8l15x_flash.h.

Referenced by FLASH_PowerWaitModeConfig().

#define IS_FLASH_POWERSTATUS (   PowerStatus)
Value:
(((PowerStatus) == FLASH_PowerStatus_IDDQDuringWaitMode) || \
    ((PowerStatus) == FLASH_PowerStatus_IDDQDuringRunMode ) || \
    ((PowerStatus) == FLASH_PowerStatus_IDDQDuringWaitAndRunModes) || \
    ((PowerStatus) == FLASH_Power_On))

Macro used by the assert function in order to check the power status during wait and run modes.

Definition at line 273 of file stm8l15x_flash.h.

#define IS_FLASH_PROGRAM_ADDRESS (   Address)
Value:
(((Address) >= FLASH_PROGRAM_START_PHYSICAL_ADDRESS) && \
    ((Address) <= FLASH_PROGRAM_END_PHYSICAL_ADDRESS))

Macro used by the assert function in order to check the different sensitivity values for the flash Address.

Definition at line 206 of file stm8l15x_flash.h.

#define IS_FLASH_PROGRAM_BLOCK_NUMBER (   BlockNum)    ((BlockNum) < FLASH_PROGRAM_BLOCKS_NUMBER)

Macro used by the assert function in order to check the different sensitivity values for the flash Block number.

Definition at line 236 of file stm8l15x_flash.h.

#define IS_FLASH_PROGRAM_MODE (   Mode)
Value:
(((Mode) == FLASH_ProgramMode_Standard) || \
                                     ((Mode) == FLASH_ProgramMode_Fast))

Macro used by the assert function in order to check the different sensitivity values for the flash program block mode.

Definition at line 255 of file stm8l15x_flash.h.

#define IS_FLASH_PROGRAM_TIME (   Time)
Value:
(((Time) == FLASH_ProgramTime_Standard) || \
                                     ((Time) == FLASH_ProgramTime_TProg))

Macro used by the assert function in order to check the program time mode.

Definition at line 261 of file stm8l15x_flash.h.

Referenced by FLASH_SetProgrammingTime().

#define IS_OPTION_BYTE_ADDRESS (   ADDRESS)
Value:

Macro used by the assert function in order to check the different sensitivity values for the option bytes Address.

Definition at line 229 of file stm8l15x_flash.h.

Referenced by FLASH_EraseOptionByte(), and FLASH_ProgramOptionByte().

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com