DIY Logging Volt/Ampmeter
stm32f1xx_hal_flash.h File Reference

Header file of Flash HAL module. More...

Go to the source code of this file.

Data Structures

struct  FLASH_ProcessTypeDef
 FLASH handle Structure definition
More...
 

Macros

#define FLASH_TIMEOUT_VALUE   50000U /* 50 s */
 
#define IS_FLASH_TYPEPROGRAM(VALUE)
 
#define IS_FLASH_LATENCY(__LATENCY__)   ((__LATENCY__) == FLASH_LATENCY_0)
 
#define HAL_FLASH_ERROR_NONE   0x00U
 
#define HAL_FLASH_ERROR_PROG   0x01U
 
#define HAL_FLASH_ERROR_WRP   0x02U
 
#define HAL_FLASH_ERROR_OPTV   0x04U
 
#define FLASH_TYPEPROGRAM_HALFWORD   0x01U
 
#define FLASH_TYPEPROGRAM_WORD   0x02U
 
#define FLASH_TYPEPROGRAM_DOUBLEWORD   0x03U
 
#define FLASH_LATENCY_0   0x00000000U
 
#define __HAL_FLASH_HALF_CYCLE_ACCESS_ENABLE()   (FLASH->ACR |= FLASH_ACR_HLFCYA)
 Enable the FLASH half cycle access. More...
 
#define __HAL_FLASH_HALF_CYCLE_ACCESS_DISABLE()   (FLASH->ACR &= (~FLASH_ACR_HLFCYA))
 Disable the FLASH half cycle access. More...
 
#define __HAL_FLASH_PREFETCH_BUFFER_ENABLE()   (FLASH->ACR |= FLASH_ACR_PRFTBE)
 Enable the FLASH prefetch buffer. More...
 
#define __HAL_FLASH_PREFETCH_BUFFER_DISABLE()   (FLASH->ACR &= (~FLASH_ACR_PRFTBE))
 Disable the FLASH prefetch buffer. More...
 

Enumerations

enum  FLASH_ProcedureTypeDef {
  FLASH_PROC_NONE = 0U, FLASH_PROC_PAGEERASE = 1U, FLASH_PROC_MASSERASE = 2U, FLASH_PROC_PROGRAMHALFWORD = 3U,
  FLASH_PROC_PROGRAMWORD = 4U, FLASH_PROC_PROGRAMDOUBLEWORD = 5U
}
 FLASH Procedure structure definition. More...
 

Functions

HAL_StatusTypeDef HAL_FLASH_Program (uint32_t TypeProgram, uint32_t Address, uint64_t Data)
 
HAL_StatusTypeDef HAL_FLASH_Program_IT (uint32_t TypeProgram, uint32_t Address, uint64_t Data)
 
void HAL_FLASH_IRQHandler (void)
 
void HAL_FLASH_EndOfOperationCallback (uint32_t ReturnValue)
 
void HAL_FLASH_OperationErrorCallback (uint32_t ReturnValue)
 
HAL_StatusTypeDef HAL_FLASH_Unlock (void)
 
HAL_StatusTypeDef HAL_FLASH_Lock (void)
 
HAL_StatusTypeDef HAL_FLASH_OB_Unlock (void)
 
HAL_StatusTypeDef HAL_FLASH_OB_Lock (void)
 
void HAL_FLASH_OB_Launch (void)
 
uint32_t HAL_FLASH_GetError (void)
 
HAL_StatusTypeDef FLASH_WaitForLastOperation (uint32_t Timeout)
 

Detailed Description

Header file of Flash HAL module.

Author
MCD Application Team
Attention

© Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32f1xx_hal_flash.h.