Macros
EXFLASH Private Macros
Peripheral Driver » HAL Driver » EXFLASH » Defines

## Macros
#define | IS_EXFLASH_ERASE_TYPE(__TYPE__)
| Check if exFlash erase type is valid. More...
#define | IS_EXFLASH_LOCK_AREA(__AREA__)
| Check if exFlash lock area type is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_EXFLASH_ERASE_TYPE

#define IS_EXFLASH_ERASE_TYPE | ( |  | __TYPE__ | ) |

Value:
(((__TYPE__) == EXFLASH_ERASE_SECTOR) || \
((__TYPE__) == EXFLASH_ERASE_CHIP))

Check if exFlash erase type is valid.

Parameters

  <strong>TYPE</strong> | exFlash erase type.

Return values

  SET | (TYPE is valid) or RESET (TYPE is invalid)

Definition at line 277 of file gr55xx_hal_exflash.h.

## ◆ IS_EXFLASH_LOCK_AREA

#define IS_EXFLASH_LOCK_AREA | ( |  | __AREA__ | ) |

Value:
(((__AREA__) == EXFLASH_LOCK_AREA_NONE) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_1_8) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_1_4) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_1_2) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_1_8) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_1_4) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_1_2) || \
((__AREA__) == EXFLASH_LOCK_AREA_ALL) || \
((__AREA__) == EXFLASH_LOCK_AREA_TOP_4K) || \
((__AREA__) == EXFLASH_LOCK_AREA_TOP_8K) || \
((__AREA__) == EXFLASH_LOCK_AREA_TOP_16K) || \
((__AREA__) == EXFLASH_LOCK_AREA_TOP_32K) || \
((__AREA__) == EXFLASH_LOCK_AREA_BOTTOM_4K) || \
((__AREA__) == EXFLASH_LOCK_AREA_BOTTOM_8K) || \
((__AREA__) == EXFLASH_LOCK_AREA_BOTTOM_16K) || \
((__AREA__) == EXFLASH_LOCK_AREA_BOTTOM_32K) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_7_8) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_3_4) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_7_8) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_3_4) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_127_128) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_63_64) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_31_32) || \
((__AREA__) == EXFLASH_LOCK_AREA_LOWER_15_16) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_127_128) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_63_64) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_31_32) || \
((__AREA__) == EXFLASH_LOCK_AREA_UPPER_15_16))

Check if exFlash lock area type is valid.

Parameters

  <strong>AREA</strong> | exFlash lock area type.

Return values

  SET | (AREA is valid) or RESET (AREA is invalid)

Definition at line 285 of file gr55xx_hal_exflash.h.

EXFLASH_LOCK_AREA_UPPER_1_8
#define EXFLASH_LOCK_AREA_UPPER_1_8
Offset 0x070000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:207
EXFLASH_LOCK_AREA_LOWER_7_8
#define EXFLASH_LOCK_AREA_LOWER_7_8
Offset 0x070000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:222
EXFLASH_LOCK_AREA_LOWER_15_16
#define EXFLASH_LOCK_AREA_LOWER_15_16
Offset 0x000000 - 0x077FFF.
Definition: gr55xx_hal_exflash.h:229
EXFLASH_LOCK_AREA_LOWER_3_4
#define EXFLASH_LOCK_AREA_LOWER_3_4
Offset 0x060000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:223
EXFLASH_LOCK_AREA_LOWER_1_4
#define EXFLASH_LOCK_AREA_LOWER_1_4
Offset 0x000000 - 0x01FFFF.
Definition: gr55xx_hal_exflash.h:211
EXFLASH_LOCK_AREA_UPPER_1_2
#define EXFLASH_LOCK_AREA_UPPER_1_2
Offset 0x040000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:209
EXFLASH_LOCK_AREA_BOTTOM_32K
#define EXFLASH_LOCK_AREA_BOTTOM_32K
Offset 0x000000 - 0x007FFF.
Definition: gr55xx_hal_exflash.h:221
EXFLASH_LOCK_AREA_TOP_32K
#define EXFLASH_LOCK_AREA_TOP_32K
Offset 0x078000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:217
EXFLASH_LOCK_AREA_LOWER_31_32
#define EXFLASH_LOCK_AREA_LOWER_31_32
Offset 0x000000 - 0x07BFFF.
Definition: gr55xx_hal_exflash.h:228
EXFLASH_LOCK_AREA_UPPER_1_4
#define EXFLASH_LOCK_AREA_UPPER_1_4
Offset 0x060000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:208
EXFLASH_LOCK_AREA_ALL
#define EXFLASH_LOCK_AREA_ALL
Offset 0x000000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:213
EXFLASH_LOCK_AREA_TOP_4K
#define EXFLASH_LOCK_AREA_TOP_4K
Offset 0x07F000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:214
EXFLASH_ERASE_CHIP
#define EXFLASH_ERASE_CHIP
Chip erase
Definition: gr55xx_hal_exflash.h:187
EXFLASH_LOCK_AREA_NONE
#define EXFLASH_LOCK_AREA_NONE
Offset NONE
Definition: gr55xx_hal_exflash.h:206
EXFLASH_LOCK_AREA_UPPER_3_4
#define EXFLASH_LOCK_AREA_UPPER_3_4
Offset 0x000000 - 0x01FFFF.
Definition: gr55xx_hal_exflash.h:225
EXFLASH_LOCK_AREA_LOWER_1_2
#define EXFLASH_LOCK_AREA_LOWER_1_2
Offset 0x000000 - 0x03FFFF.
Definition: gr55xx_hal_exflash.h:212
EXFLASH_LOCK_AREA_LOWER_127_128
#define EXFLASH_LOCK_AREA_LOWER_127_128
Offset 0x000000 - 0x07EFFF.
Definition: gr55xx_hal_exflash.h:226
EXFLASH_LOCK_AREA_BOTTOM_4K
#define EXFLASH_LOCK_AREA_BOTTOM_4K
Offset 0x000000 - 0x000FFF.
Definition: gr55xx_hal_exflash.h:218
EXFLASH_LOCK_AREA_BOTTOM_16K
#define EXFLASH_LOCK_AREA_BOTTOM_16K
Offset 0x000000 - 0x003FFF.
Definition: gr55xx_hal_exflash.h:220
EXFLASH_LOCK_AREA_BOTTOM_8K
#define EXFLASH_LOCK_AREA_BOTTOM_8K
Offset 0x000000 - 0x001FFF.
Definition: gr55xx_hal_exflash.h:219
EXFLASH_LOCK_AREA_UPPER_31_32
#define EXFLASH_LOCK_AREA_UPPER_31_32
Offset 0x004000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:232
EXFLASH_LOCK_AREA_LOWER_1_8
#define EXFLASH_LOCK_AREA_LOWER_1_8
Offset 0x000000 - 0x00FFFF.
Definition: gr55xx_hal_exflash.h:210
EXFLASH_LOCK_AREA_TOP_16K
#define EXFLASH_LOCK_AREA_TOP_16K
Offset 0x07C000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:216
EXFLASH_ERASE_SECTOR
#define EXFLASH_ERASE_SECTOR
Sector erase.
Definition: gr55xx_hal_exflash.h:186
EXFLASH_LOCK_AREA_UPPER_127_128
#define EXFLASH_LOCK_AREA_UPPER_127_128
Offset 0x001000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:230
EXFLASH_LOCK_AREA_LOWER_63_64
#define EXFLASH_LOCK_AREA_LOWER_63_64
Offset 0x000000 - 0x07DFFF.
Definition: gr55xx_hal_exflash.h:227
EXFLASH_LOCK_AREA_TOP_8K
#define EXFLASH_LOCK_AREA_TOP_8K
Offset 0x07E000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:215
EXFLASH_LOCK_AREA_UPPER_63_64
#define EXFLASH_LOCK_AREA_UPPER_63_64
Offset 0x002000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:231
EXFLASH_LOCK_AREA_UPPER_15_16
#define EXFLASH_LOCK_AREA_UPPER_15_16
Offset 0x008000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:233
EXFLASH_LOCK_AREA_UPPER_7_8
#define EXFLASH_LOCK_AREA_UPPER_7_8
Offset 0x000000 - 0x00FFFF.
Definition: gr55xx_hal_exflash.h:224