Macros
RAMECC Exported Macros
Collaboration diagram for RAMECC Exported Macros:

Macros

#define __HAL_RAMECC_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR &= ~(__FLAG__))
 Clear the RAMECC pending flags. More...
 
#define __HAL_RAMECC_DISABLE_GLOBAL_IT(__HANDLE__, __INTERRUPT__)   ((((RAMECC_TypeDef *)((uint32_t)(__HANDLE__)->Instance & 0xFFFFFF00U))->IER) &= ~((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID))
 
#define __HAL_RAMECC_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified RAMECC interrupts. More...
 
#define __HAL_RAMECC_DISABLE_MONITOR_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR &= ~((__INTERRUPT__) & ~RAMECC_IT_MONITOR_ID))
 
#define __HAL_RAMECC_ENABLE_GLOBAL_IT(__HANDLE__, __INTERRUPT__)   ((((RAMECC_TypeDef *)((uint32_t)(__HANDLE__)->Instance & 0xFFFFFF00U))->IER) |= ((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID))
 
#define __HAL_RAMECC_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified RAMECC interrupts. More...
 
#define __HAL_RAMECC_ENABLE_MONITOR_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR |= ((__INTERRUPT__) & ~RAMECC_IT_MONITOR_ID))
 
#define __HAL_RAMECC_GET_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR &= (__FLAG__))
 Get the RAMECC pending flags. More...
 
#define __HAL_RAMECC_GET_GLOBAL_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((((RAMECC_TypeDef *)((uint32_t)(__HANDLE__)->Instance & 0xFFFFFF00U))->IER) & ((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID)) ? SET : RESET)
 
#define __HAL_RAMECC_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
 Check whether the specified RAMECC interrupt source is enabled or not. More...
 
#define __HAL_RAMECC_GET_MONITOR_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CR) & ((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID)) ? SET : RESET)
 
#define __HAL_RAMECC_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_RAMECC_STATE_RESET)
 Reset the RAMECC handle state. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_RAMECC_CLEAR_FLAG

#define __HAL_RAMECC_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->SR &= ~(__FLAG__))

Clear the RAMECC pending flags.

Parameters
<strong>HANDLE</strong>: RAMECC handle.
<strong>FLAG</strong>: specifies the flag to clear. This parameter can be any combination of the following values:
  • RAMECC_FLAG_SEDCF : RAMECC instance ECC single error detected and corrected flag.
  • RAMECC_FLAG_DEDF : RAMECC instance ECC double error detected flag.
  • RAMECC_FLAG_DEBWDF : RAMECC instance ECC double error on byte write (BW) detected flag.
  • RAMECC_FLAGS_ALL : RAMECC instance all flag.
Return values
None.

Definition at line 223 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_DISABLE_GLOBAL_IT

#define __HAL_RAMECC_DISABLE_GLOBAL_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((((RAMECC_TypeDef *)((uint32_t)(__HANDLE__)->Instance & 0xFFFFFF00U))->IER) &= ~((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID))

Definition at line 150 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_DISABLE_IT

#define __HAL_RAMECC_DISABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
( \
(IS_RAMECC_GLOBAL_INTERRUPT(__INTERRUPT__)) ? (__HAL_RAMECC_DISABLE_GLOBAL_IT((__HANDLE__), (__INTERRUPT__))) :\
(__HAL_RAMECC_DISABLE_MONITOR_IT((__HANDLE__), (__INTERRUPT__))))

Disable the specified RAMECC interrupts.

Parameters
<strong>HANDLE</strong>: RAMECC handle.
<strong>INTERRUPT</strong>specifies the RAMECC interrupt sources to be enabled or disabled. This parameter can be one of the following values:
  • RAMECC_IT_GLOBAL_E : Global interrupt enable mask.
  • RAMECC_IT_GLOBAL_SEE : Global ECC single error interrupt enable.
  • RAMECC_IT_GLOBAL_DEE : Global ECC double error interrupt enable.
  • RAMECC_IT_GLOBAL_DEBWE : Global ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_GLOBAL_ALL : All Global ECC interrupts enable mask.
  • RAMECC_IT_MONITOR_SEE : Monitor ECC single error interrupt enable.
  • RAMECC_IT_MONITOR_DEE : Monitor ECC double error interrupt enable.
  • RAMECC_IT_MONITOR_DEBWE : Monitor ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_MONITOR_ALL : All Monitor ECC interrupts enable mask.
Return values
None

Definition at line 169 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_DISABLE_MONITOR_IT

#define __HAL_RAMECC_DISABLE_MONITOR_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR &= ~((__INTERRUPT__) & ~RAMECC_IT_MONITOR_ID))

Definition at line 151 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_ENABLE_GLOBAL_IT

#define __HAL_RAMECC_ENABLE_GLOBAL_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((((RAMECC_TypeDef *)((uint32_t)(__HANDLE__)->Instance & 0xFFFFFF00U))->IER) |= ((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID))

Definition at line 126 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_ENABLE_IT

#define __HAL_RAMECC_ENABLE_IT (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
( \
(IS_RAMECC_GLOBAL_INTERRUPT(__INTERRUPT__)) ? (__HAL_RAMECC_ENABLE_GLOBAL_IT((__HANDLE__), (__INTERRUPT__))) :\
(__HAL_RAMECC_ENABLE_MONITOR_IT((__HANDLE__), (__INTERRUPT__))))

Enable the specified RAMECC interrupts.

Parameters
<strong>HANDLE</strong>: RAMECC handle.
<strong>INTERRUPT</strong>specifies the RAMECC interrupt sources to be enabled or disabled. This parameter can be one of the following values:
  • RAMECC_IT_GLOBAL_E : Global interrupt enable mask.
  • RAMECC_IT_GLOBAL_SEE : Global ECC single error interrupt enable.
  • RAMECC_IT_GLOBAL_DEE : Global ECC double error interrupt enable.
  • RAMECC_IT_GLOBAL_DEBWE : Global ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_GLOBAL_ALL : All Global ECC interrupts enable mask.
  • RAMECC_IT_MONITOR_SEE : Monitor ECC single error interrupt enable.
  • RAMECC_IT_MONITOR_DEE : Monitor ECC double error interrupt enable.
  • RAMECC_IT_MONITOR_DEBWE : Monitor ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_MONITOR_ALL : All Monitor ECC interrupts enable mask.
Return values
None

Definition at line 145 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_ENABLE_MONITOR_IT

#define __HAL_RAMECC_ENABLE_MONITOR_IT (   __HANDLE__,
  __INTERRUPT__ 
)    ((__HANDLE__)->Instance->CR |= ((__INTERRUPT__) & ~RAMECC_IT_MONITOR_ID))

Definition at line 127 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_GET_FLAG

#define __HAL_RAMECC_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->SR &= (__FLAG__))

Get the RAMECC pending flags.

Parameters
<strong>HANDLE</strong>: RAMECC handle.
<strong>FLAG</strong>: specifies the flag to clear. This parameter can be any combination of the following values:
  • RAMECC_FLAG_SEDCF : RAMECC instance ECC single error detected and corrected flag.
  • RAMECC_FLAG_DEDF : RAMECC instance ECC double error detected flag.
  • RAMECC_FLAG_DEBWDF : RAMECC instance ECC double error on byte write (BW) detected flag.
  • RAMECC_FLAGS_ALL : RAMECC instance all flag.
Return values
Thestate of FLAG (SET or RESET).

Definition at line 209 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_GET_GLOBAL_IT_SOURCE

#define __HAL_RAMECC_GET_GLOBAL_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    (((((RAMECC_TypeDef *)((uint32_t)(__HANDLE__)->Instance & 0xFFFFFF00U))->IER) & ((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID)) ? SET : RESET)

Definition at line 174 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_GET_IT_SOURCE

#define __HAL_RAMECC_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)
Value:
( \
(IS_RAMECC_GLOBAL_INTERRUPT(__INTERRUPT__)) ? (__HAL_RAMECC_GET_GLOBAL_IT_SOURCE((__HANDLE__), (__INTERRUPT__))) :\
(__HAL_RAMECC_GET_MONITOR_IT_SOURCE((__HANDLE__), (__INTERRUPT__))))

Check whether the specified RAMECC interrupt source is enabled or not.

Parameters
<strong>HANDLE</strong>: Specifies the RAMECC Handle.
<strong>INTERRUPT</strong>: Specifies the RAMECC interrupt source to check. This parameter can be one of the following values:
  • RAMECC_IT_GLOBAL_E : Global interrupt enable mask.
  • RAMECC_IT_GLOBAL_SEE : Global ECC single error interrupt enable.
  • RAMECC_IT_GLOBAL_DEE : Global ECC double error interrupt enable.
  • RAMECC_IT_GLOBAL_DEBWE : Global ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_GLOBAL_ALL : All Global ECC interrupts enable mask.
  • RAMECC_IT_MONITOR_SEE : Monitor ECC single error interrupt enable.
  • RAMECC_IT_MONITOR_DEE : Monitor ECC double error interrupt enable.
  • RAMECC_IT_MONITOR_DEBWE : Monitor ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_MONITOR_ALL : All Monitor ECC interrupts enable mask.
Return values
Thenew state of INTERRUPT (SET or RESET).

Definition at line 193 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_GET_MONITOR_IT_SOURCE

#define __HAL_RAMECC_GET_MONITOR_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    ((((__HANDLE__)->Instance->CR) & ((__INTERRUPT__) & ~RAMECC_IT_GLOBAL_ID)) ? SET : RESET)

Definition at line 175 of file stm32h7xx_hal_ramecc.h.

◆ __HAL_RAMECC_RESET_HANDLE_STATE

#define __HAL_RAMECC_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_RAMECC_STATE_RESET)

Reset the RAMECC handle state.

Parameters
<strong>HANDLE</strong>: Specifies the RAMECC Handle.
Return values
None.

Definition at line 230 of file stm32h7xx_hal_ramecc.h.

__HAL_RAMECC_DISABLE_MONITOR_IT
#define __HAL_RAMECC_DISABLE_MONITOR_IT(__HANDLE__, __INTERRUPT__)
Definition: stm32h7xx_hal_ramecc.h:151
__HAL_RAMECC_GET_GLOBAL_IT_SOURCE
#define __HAL_RAMECC_GET_GLOBAL_IT_SOURCE(__HANDLE__, __INTERRUPT__)
Definition: stm32h7xx_hal_ramecc.h:174
__HAL_RAMECC_ENABLE_MONITOR_IT
#define __HAL_RAMECC_ENABLE_MONITOR_IT(__HANDLE__, __INTERRUPT__)
Definition: stm32h7xx_hal_ramecc.h:127
IS_RAMECC_GLOBAL_INTERRUPT
#define IS_RAMECC_GLOBAL_INTERRUPT(INTERRUPT)
Definition: stm32h7xx_hal_ramecc.h:309
__HAL_RAMECC_DISABLE_GLOBAL_IT
#define __HAL_RAMECC_DISABLE_GLOBAL_IT(__HANDLE__, __INTERRUPT__)
Definition: stm32h7xx_hal_ramecc.h:150
__HAL_RAMECC_GET_MONITOR_IT_SOURCE
#define __HAL_RAMECC_GET_MONITOR_IT_SOURCE(__HANDLE__, __INTERRUPT__)
Definition: stm32h7xx_hal_ramecc.h:175
__HAL_RAMECC_ENABLE_GLOBAL_IT
#define __HAL_RAMECC_ENABLE_GLOBAL_IT(__HANDLE__, __INTERRUPT__)
Definition: stm32h7xx_hal_ramecc.h:126


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