Macros
Collaboration diagram for NOR Private Macros:

Macros

#define NOR_ADDR_SHIFT(__NOR_ADDRESS, __NOR_MEMORY_WIDTH_, __ADDRESS__)
 NOR memory address shifting. More...
 
#define NOR_WRITE(__ADDRESS__, __DATA__)
 NOR memory write data to specified address. More...
 

Detailed Description

Macro Definition Documentation

◆ NOR_ADDR_SHIFT

#define NOR_ADDR_SHIFT (   __NOR_ADDRESS,
  __NOR_MEMORY_WIDTH_,
  __ADDRESS__ 
)
Value:
((uint32_t)(((__NOR_MEMORY_WIDTH_) == NOR_MEMORY_16B)? \
((uint32_t)((__NOR_ADDRESS) + (2 * (__ADDRESS__)))): \
((uint32_t)((__NOR_ADDRESS) + (__ADDRESS__)))))

NOR memory address shifting.

Parameters
__NOR_ADDRESSNOR base address
__NOR_MEMORY_WIDTH_NOR memory width
<strong>ADDRESS</strong>NOR memory address
Return values
NORshifted address value

Definition at line 286 of file stm32f7xx_hal_nor.h.

◆ NOR_WRITE

#define NOR_WRITE (   __ADDRESS__,
  __DATA__ 
)
Value:
do{ \
(*(__IO uint16_t *)((uint32_t)(__ADDRESS__)) = (__DATA__)); \
__DSB(); \
} while(0)

NOR memory write data to specified address.

Parameters
<strong>ADDRESS</strong>NOR memory address
<strong>DATA</strong>Data to write
Return values
None

Definition at line 297 of file stm32f7xx_hal_nor.h.

__IO
#define __IO
Definition: imxrt1050/imxrt1050-evkb/CMSIS/core_cm7.h:237
NOR_MEMORY_16B
#define NOR_MEMORY_16B
Definition: stm32f7xx_hal_nor.h:264


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:08