__HAL_FLASH_GET_FLAG macro
Get the specified FLASH flag status.
Syntax
#define __HAL_FLASH_GET_FLAG(__FLAG__) ((FLASH->SR & (__FLAG__))) Arguments
__FLAG__
specifies the FLASH flags to check. This parameter can be any combination of the following values: @arg FLASH_FLAG_EOP : FLASH End of Operation flag @arg FLASH_FLAG_OPERR : FLASH operation Error flag @arg FLASH_FLAG_WRPERR: FLASH Write protected error flag @arg FLASH_FLAG_PGAERR: FLASH Programming Alignment error flag @arg FLASH_FLAG_PGPERR: FLASH Programming Parallelism error flag @arg FLASH_FLAG_PGSERR: FLASH Programming Sequence error flag @arg FLASH_FLAG_RDERR : FLASH Read Protection error flag (PCROP) (*) @arg FLASH_FLAG_BSY : FLASH Busy flag (*) FLASH_FLAG_RDERR is not available for STM32F405xx/407xx/415xx/417xx devices
Return value
The new state of __FLAG__ (SET or RESET).