Macros
EXFLASH Private Macros
Peripheral Driver » HAL Driver » EXFLASH » Defines
Collaboration diagram for EXFLASH Private Macros:

## 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)
  RESET | (TYPE is invalid)

Definition at line 329 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)
  RESET | (AREA is invalid)

Definition at line 338 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:253
EXFLASH_LOCK_AREA_LOWER_7_8
#define EXFLASH_LOCK_AREA_LOWER_7_8
Offset 0x070000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:268
EXFLASH_LOCK_AREA_LOWER_15_16
#define EXFLASH_LOCK_AREA_LOWER_15_16
Offset 0x000000 - 0x077FFF.
Definition: gr55xx_hal_exflash.h:275
EXFLASH_LOCK_AREA_LOWER_3_4
#define EXFLASH_LOCK_AREA_LOWER_3_4
Offset 0x060000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:269
EXFLASH_LOCK_AREA_LOWER_1_4
#define EXFLASH_LOCK_AREA_LOWER_1_4
Offset 0x000000 - 0x01FFFF.
Definition: gr55xx_hal_exflash.h:257
EXFLASH_LOCK_AREA_UPPER_1_2
#define EXFLASH_LOCK_AREA_UPPER_1_2
Offset 0x040000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:255
EXFLASH_LOCK_AREA_BOTTOM_32K
#define EXFLASH_LOCK_AREA_BOTTOM_32K
Offset 0x000000 - 0x007FFF.
Definition: gr55xx_hal_exflash.h:267
EXFLASH_LOCK_AREA_TOP_32K
#define EXFLASH_LOCK_AREA_TOP_32K
Offset 0x078000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:263
EXFLASH_LOCK_AREA_LOWER_31_32
#define EXFLASH_LOCK_AREA_LOWER_31_32
Offset 0x000000 - 0x07BFFF.
Definition: gr55xx_hal_exflash.h:274
EXFLASH_LOCK_AREA_UPPER_1_4
#define EXFLASH_LOCK_AREA_UPPER_1_4
Offset 0x060000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:254
EXFLASH_LOCK_AREA_ALL
#define EXFLASH_LOCK_AREA_ALL
Offset 0x000000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:259
EXFLASH_LOCK_AREA_TOP_4K
#define EXFLASH_LOCK_AREA_TOP_4K
Offset 0x07F000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:260
EXFLASH_ERASE_CHIP
#define EXFLASH_ERASE_CHIP
Chip erase
Definition: gr55xx_hal_exflash.h:224
EXFLASH_LOCK_AREA_NONE
#define EXFLASH_LOCK_AREA_NONE
Offset NONE
Definition: gr55xx_hal_exflash.h:252
EXFLASH_LOCK_AREA_UPPER_3_4
#define EXFLASH_LOCK_AREA_UPPER_3_4
Offset 0x000000 - 0x01FFFF.
Definition: gr55xx_hal_exflash.h:271
EXFLASH_LOCK_AREA_LOWER_1_2
#define EXFLASH_LOCK_AREA_LOWER_1_2
Offset 0x000000 - 0x03FFFF.
Definition: gr55xx_hal_exflash.h:258
EXFLASH_LOCK_AREA_LOWER_127_128
#define EXFLASH_LOCK_AREA_LOWER_127_128
Offset 0x000000 - 0x07EFFF.
Definition: gr55xx_hal_exflash.h:272
EXFLASH_LOCK_AREA_BOTTOM_4K
#define EXFLASH_LOCK_AREA_BOTTOM_4K
Offset 0x000000 - 0x000FFF.
Definition: gr55xx_hal_exflash.h:264
EXFLASH_LOCK_AREA_BOTTOM_16K
#define EXFLASH_LOCK_AREA_BOTTOM_16K
Offset 0x000000 - 0x003FFF.
Definition: gr55xx_hal_exflash.h:266
EXFLASH_LOCK_AREA_BOTTOM_8K
#define EXFLASH_LOCK_AREA_BOTTOM_8K
Offset 0x000000 - 0x001FFF.
Definition: gr55xx_hal_exflash.h:265
EXFLASH_LOCK_AREA_UPPER_31_32
#define EXFLASH_LOCK_AREA_UPPER_31_32
Offset 0x004000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:278
EXFLASH_LOCK_AREA_LOWER_1_8
#define EXFLASH_LOCK_AREA_LOWER_1_8
Offset 0x000000 - 0x00FFFF.
Definition: gr55xx_hal_exflash.h:256
EXFLASH_LOCK_AREA_TOP_16K
#define EXFLASH_LOCK_AREA_TOP_16K
Offset 0x07C000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:262
EXFLASH_ERASE_SECTOR
#define EXFLASH_ERASE_SECTOR
Sector erase.
Definition: gr55xx_hal_exflash.h:223
EXFLASH_LOCK_AREA_UPPER_127_128
#define EXFLASH_LOCK_AREA_UPPER_127_128
Offset 0x001000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:276
EXFLASH_LOCK_AREA_LOWER_63_64
#define EXFLASH_LOCK_AREA_LOWER_63_64
Offset 0x000000 - 0x07DFFF.
Definition: gr55xx_hal_exflash.h:273
EXFLASH_LOCK_AREA_TOP_8K
#define EXFLASH_LOCK_AREA_TOP_8K
Offset 0x07E000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:261
EXFLASH_LOCK_AREA_UPPER_63_64
#define EXFLASH_LOCK_AREA_UPPER_63_64
Offset 0x002000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:277
EXFLASH_LOCK_AREA_UPPER_15_16
#define EXFLASH_LOCK_AREA_UPPER_15_16
Offset 0x008000 - 0x07FFFF.
Definition: gr55xx_hal_exflash.h:279
EXFLASH_LOCK_AREA_UPPER_7_8
#define EXFLASH_LOCK_AREA_UPPER_7_8
Offset 0x000000 - 0x00FFFF.
Definition: gr55xx_hal_exflash.h:270