STM32F439xx HAL User Manual
Defines
NOR Private Macros
NOR

Defines

#define NOR_ADDR_SHIFT(__NOR_ADDRESS__, NOR_MEMORY_WIDTH, ADDRESS)
 NOR memory address shifting.
#define NOR_WRITE(ADDRESS, DATA)   (*(__IO uint16_t *)((uint32_t)(ADDRESS)) = (DATA))
 NOR memory write data to specified address.

Define Documentation

#define NOR_ADDR_SHIFT (   __NOR_ADDRESS__,
  NOR_MEMORY_WIDTH,
  ADDRESS 
)
Value:
(uint32_t)(((NOR_MEMORY_WIDTH) == NOR_MEMORY_16B)? ((uint32_t)((__NOR_ADDRESS__) + (2U * (ADDRESS)))):\
                                                                                 ((uint32_t)((__NOR_ADDRESS__) + (ADDRESS))))

NOR memory address shifting.

Parameters:
__NOR_ADDRESS__NOR base address
NOR_MEMORY_WIDTHNOR memory width
ADDRESSNOR memory address
Return values:
NORshifted address value

Definition at line 271 of file stm32f4xx_hal_nor.h.

Referenced by HAL_NOR_Erase_Block(), HAL_NOR_Erase_Chip(), HAL_NOR_Program(), HAL_NOR_ProgramBuffer(), HAL_NOR_Read(), HAL_NOR_Read_CFI(), HAL_NOR_Read_ID(), and HAL_NOR_ReadBuffer().

#define NOR_WRITE (   ADDRESS,
  DATA 
)    (*(__IO uint16_t *)((uint32_t)(ADDRESS)) = (DATA))

NOR memory write data to specified address.

Parameters:
ADDRESSNOR memory address
DATAData to write
Return values:
None

Definition at line 280 of file stm32f4xx_hal_nor.h.

Referenced by HAL_NOR_Erase_Block(), HAL_NOR_Erase_Chip(), HAL_NOR_Program(), HAL_NOR_ProgramBuffer(), HAL_NOR_Read(), HAL_NOR_Read_CFI(), HAL_NOR_Read_ID(), HAL_NOR_ReadBuffer(), and HAL_NOR_ReturnToReadMode().