|
STM32F479xx HAL User Manual
|
Programming operation functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_FLASH_Program (uint32_t TypeProgram, uint32_t Address, uint64_t Data) |
| Program byte, halfword, word or double word at a specified address. | |
| HAL_StatusTypeDef | HAL_FLASH_Program_IT (uint32_t TypeProgram, uint32_t Address, uint64_t Data) |
| Program byte, halfword, word or double word at a specified address with interrupt enabled. | |
| void | HAL_FLASH_IRQHandler (void) |
| This function handles FLASH interrupt request. | |
| __weak void | HAL_FLASH_EndOfOperationCallback (uint32_t ReturnValue) |
| FLASH end of operation interrupt callback. | |
| __weak void | HAL_FLASH_OperationErrorCallback (uint32_t ReturnValue) |
| FLASH operation error interrupt callback. | |
Programming operation functions.
===============================================================================
##### Programming operation functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to manage the FLASH
program operations.
| void HAL_FLASH_EndOfOperationCallback | ( | uint32_t | ReturnValue | ) |
FLASH end of operation interrupt callback.
| ReturnValue | The value saved in this parameter depends on the ongoing procedure Mass Erase: Bank number which has been requested to erase Sectors Erase: Sector which has been erased (if 0xFFFFFFFFU, it means that all the selected sectors have been erased) Program: Address which was selected for data program |
| None |
Definition at line 384 of file stm32f4xx_hal_flash.c.
Referenced by HAL_FLASH_IRQHandler().
| void HAL_FLASH_IRQHandler | ( | void | ) |
This function handles FLASH interrupt request.
| None |
Definition at line 261 of file stm32f4xx_hal_flash.c.
References __HAL_FLASH_CLEAR_FLAG, __HAL_FLASH_DISABLE_IT, __HAL_FLASH_GET_FLAG, FLASH_ProcessTypeDef::Address, FLASH_ProcessTypeDef::Bank, FLASH_Erase_Sector(), FLASH_FLAG_EOP, FLASH_FLAG_OPERR, FLASH_FLAG_PGAERR, FLASH_FLAG_PGPERR, FLASH_FLAG_PGSERR, FLASH_FLAG_RDERR, FLASH_FLAG_WRPERR, FLASH_FlushCaches(), FLASH_IT_EOP, FLASH_IT_ERR, FLASH_MER_BIT, FLASH_PROC_MASSERASE, FLASH_PROC_NONE, FLASH_PROC_SECTERASE, FLASH_SetErrorCode(), HAL_FLASH_EndOfOperationCallback(), HAL_FLASH_OperationErrorCallback(), FLASH_ProcessTypeDef::NbSectorsToErase, FLASH_ProcessTypeDef::ProcedureOnGoing, FLASH_ProcessTypeDef::Sector, and FLASH_ProcessTypeDef::VoltageForErase.
| void HAL_FLASH_OperationErrorCallback | ( | uint32_t | ReturnValue | ) |
FLASH operation error interrupt callback.
| ReturnValue | The value saved in this parameter depends on the ongoing procedure Mass Erase: Bank number which has been requested to erase Sectors Erase: Sector number which returned an error Program: Address which was selected for data program |
| None |
Definition at line 401 of file stm32f4xx_hal_flash.c.
Referenced by HAL_FLASH_IRQHandler().
| HAL_StatusTypeDef HAL_FLASH_Program | ( | uint32_t | TypeProgram, |
| uint32_t | Address, | ||
| uint64_t | Data | ||
| ) |
Program byte, halfword, word or double word at a specified address.
| TypeProgram | Indicate the way to program at a specified address. This parameter can be a value of FLASH Type Program |
| Address | specifies the address to be programmed. |
| Data | specifies the data to be programmed |
| HAL_StatusTypeDef | HAL Status |
Definition at line 156 of file stm32f4xx_hal_flash.c.
References assert_param, FLASH_Program_Byte(), FLASH_Program_DoubleWord(), FLASH_Program_HalfWord(), FLASH_Program_Word(), FLASH_TIMEOUT_VALUE, FLASH_TYPEPROGRAM_BYTE, FLASH_TYPEPROGRAM_HALFWORD, FLASH_TYPEPROGRAM_WORD, FLASH_WaitForLastOperation(), and IS_FLASH_TYPEPROGRAM.
| HAL_StatusTypeDef HAL_FLASH_Program_IT | ( | uint32_t | TypeProgram, |
| uint32_t | Address, | ||
| uint64_t | Data | ||
| ) |
Program byte, halfword, word or double word at a specified address with interrupt enabled.
| TypeProgram | Indicate the way to program at a specified address. This parameter can be a value of FLASH Type Program |
| Address | specifies the address to be programmed. |
| Data | specifies the data to be programmed |
| HAL | Status |
Definition at line 214 of file stm32f4xx_hal_flash.c.
References __HAL_FLASH_ENABLE_IT, FLASH_ProcessTypeDef::Address, assert_param, FLASH_IT_EOP, FLASH_IT_ERR, FLASH_PROC_PROGRAM, FLASH_Program_Byte(), FLASH_Program_DoubleWord(), FLASH_Program_HalfWord(), FLASH_Program_Word(), FLASH_TYPEPROGRAM_BYTE, FLASH_TYPEPROGRAM_HALFWORD, FLASH_TYPEPROGRAM_WORD, IS_FLASH_TYPEPROGRAM, and FLASH_ProcessTypeDef::ProcedureOnGoing.
1.7.6.1