STM32G474xx HAL用户手册
数据结构 | 宏定义 | 枚举类型 | 函数 | 变量
stm32g4xx_ hal_flash.h文件参考

FLASH UAL模块的头文件。 更多...

#include "stm32g4xx_ual_def.h"
#include "stm32g4xx_ual_flash_ex.h"
#include "stm32g4xx_ual_flash_ramfunc.h"

转到此文件的源代码。

数据结构

struct  FLASU_EraseInitTypeDef
 FLASU擦除结构体定义。 更多...
struct  FLASU_OBProgramInitTypeDef
 FLASU选项字节程序结构体定义。 更多...
struct  FLASU_ProcessTypeDef
 FLASU句柄结构体定义。 更多...

宏定义

#define  UAL_FLASH_ERROR_NONE    0x00U
#define  UAL_FLASH_ERROR_OP    FLASU_FLAG_OPERR
#define  UAL_FLASH_ERROR_PROG    FLASU_FLAG_PROGERR
#define  UAL_FLASH_ERROR_WRP    FLASU_FLAG_WRPERR
#define  UAL_FLASH_ERROR_PGA    FLASU_FLAG_PGAERR
#define  UAL_FLASH_ERROR_SIZ    FLASU_FLAG_SIZERR
#define  UAL_FLASH_ERROR_PGS    FLASU_FLAG_PGSERR
#define  UAL_FLASH_ERROR_MIS    FLASU_FLAG_MISERR
#define  UAL_FLASH_ERROR_FAST    FLASU_FLAG_FASTERR
#define  UAL_FLASH_ERROR_RD    FLASU_FLAG_RDERR
#define  UAL_FLASH_ERROR_OPTV    FLASU_FLAG_OPTVERR
#define  UAL_FLASH_ERROR_ECCC    FLASU_FLAG_ECCC
#define  UAL_FLASH_ERROR_ECCD    FLASU_FLAG_ECCD
#define  UAL_FLASH_ERROR_ECCC2    FLASU_FLAG_ECCC2
#define  UAL_FLASH_ERROR_ECCD2    FLASU_FLAG_ECCD2
#define  FLASU_TYPEERASE_PAGES    0x00U
#define  FLASU_TYPEERASE_MASSERASE    0x01U
#define  FLASU_BANK_1    0x00U
#define  FLASU_BANK_2    0x00U
#define  FLASU_BANK_BOTH    (FLASU_BANK_1 | FLASU_BANK_2)
#define  FLASU_TYPEPROGRAM_DOUBLEWORD    0x00U
#define  FLASU_TYPEPROGRAM_FAST    0x01U
#define  FLASU_TYPEPROGRAM_FAST_AND_LAST    0x02U
#define  OPTIONBYTE_WRP    0x01U
#define  OPTIONBYTE_RDP    0x02U
#define  OPTIONBYTE_USER    0x04U
#define  OPTIONBYTE_PCROP    0x08U
#define  OPTIONBYTE_BOOT_LOCK    0x10U
#define  OPTIONBYTE_SEC    0x20U
#define  OB_WRPAREA_BANK1_AREAA    0x00U
#define  OB_WRPAREA_BANK1_AREAB    0x01U
#define  OB_WRPAREA_BANK2_AREAA    0x02U
#define  OB_WRPAREA_BANK2_AREAB    0x04U
#define  OB_BOOT_LOCK_DISABLE    0x00U
#define  OB_BOOT_LOCK_ENABLE    FLASU_SEC1R_BOOT_LOCK
#define  OB_RDP_LEVEL_0    0xAAU
#define  OB_RDP_LEVEL_1    0xBBU
#define  OB_RDP_LEVEL_2    0xCCU
#define  OB_USER_BOR_LEV    0x00U
#define  OB_USER_nRST_STOP    0x00U
#define  OB_USER_nRST_STDBY    0x00U
#define  OB_USER_IWDG_SW    0x00U
#define  OB_USER_IWDG_STOP    0x00U
#define  OB_USER_IWDG_STDBY    0x00U
#define  OB_USER_WWDG_SW    0x00U
#define  OB_USER_BFB2    0x00U
#define  OB_USER_DBNK    0x00U
#define  OB_USER_nBOOT1    0x00U
#define  OB_USER_SRAM_PE    0x00U
#define  OB_USER_CCMSRAM_RST    0x00U
#define  OB_USER_nRST_SHDW    0x00U
#define  OB_USER_nSWBOOT0    0x00U
#define  OB_USER_nBOOT0    0x00U
#define  OB_USER_NRST_MODE