RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros

Macros

#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_MONITOR_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR |= ((__INTERRUPT__) & ~RAMECC_IT_MONITOR_ID))
 
#define __HAL_RAMECC_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the specified RAMECC interrupts.
 
#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_MONITOR_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)->Instance->CR &= ~((__INTERRUPT__) & ~RAMECC_IT_MONITOR_ID))
 
#define __HAL_RAMECC_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the specified RAMECC interrupts.
 
#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_MONITOR_IT_SOURCE(__HANDLE__, __INTERRUPT__)   ((((__HANDLE__)->Instance->CR) & ((__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.
 
#define __HAL_RAMECC_GET_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR &= (__FLAG__))
 Get the RAMECC pending flags.
 
#define __HAL_RAMECC_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->SR &= ~(__FLAG__))
 Clear the RAMECC pending flags.
 
#define __HAL_RAMECC_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_RAMECC_STATE_RESET)
 Reset the RAMECC handle state.
 

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
__HANDLE__: RAMECC handle.
__FLAG__: specifies the flag to clear. This parameter can be any combination of the following values:
  • RAMECC_FLAG_SINGLEERR_R : RAMECC instance ECC single error detected and corrected flag.
  • RAMECC_FLAG_DOUBLEERR_R : RAMECC instance ECC double error detected flag.
  • RAMECC_FLAG_DOUBLEERR_W : RAMECC instance ECC double error on byte write (BW) detected flag.
  • RAMECC_FLAGS_ALL : RAMECC instance all flag.
Return values
None.

◆ __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
__HANDLE__: RAMECC handle.
__INTERRUPT__specifies the RAMECC interrupt sources to be enabled or disabled. This parameter can be one of the following values:
  • RAMECC_IT_GLOBAL_ENABLE : Global interrupt enable mask.
  • RAMECC_IT_GLOBAL_SINGLEERR_R : Global ECC single error interrupt enable.
  • RAMECC_IT_GLOBAL_DOUBLEERR_R : Global ECC double error interrupt enable.
  • RAMECC_IT_GLOBAL_DOUBLEERR_W : Global ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_GLOBAL_ALL : All Global ECC interrupts enable mask.
  • RAMECC_IT_MONITOR_SINGLEERR_R : Monitor ECC single error interrupt enable.
  • RAMECC_IT_MONITOR_DOUBLEERR_R : Monitor ECC double error interrupt enable.
  • RAMECC_IT_MONITOR_DOUBLEERR_W : Monitor ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_MONITOR_ALL : All Monitor ECC interrupts enable mask.
Return values
None

◆ __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
__HANDLE__: RAMECC handle.
__INTERRUPT__specifies the RAMECC interrupt sources to be enabled or disabled. This parameter can be one of the following values:
  • RAMECC_IT_GLOBAL_ENABLE : Global interrupt enable mask.
  • RAMECC_IT_GLOBAL_SINGLEERR_R : Global ECC single error interrupt enable.
  • RAMECC_IT_GLOBAL_DOUBLEERR_R : Global ECC double error interrupt enable.
  • RAMECC_IT_GLOBAL_DOUBLEERR_W : Global ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_GLOBAL_ALL : All Global ECC interrupts enable mask.
  • RAMECC_IT_MONITOR_SINGLEERR_R : Monitor ECC single error interrupt enable.
  • RAMECC_IT_MONITOR_DOUBLEERR_R : Monitor ECC double error interrupt enable.
  • RAMECC_IT_MONITOR_DOUBLEERR_W : Monitor ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_MONITOR_ALL : All Monitor ECC interrupts enable mask.
Return values
None

◆ __HAL_RAMECC_GET_FLAG

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

Get the RAMECC pending flags.

Parameters
__HANDLE__: RAMECC handle.
__FLAG__: specifies the flag to clear. This parameter can be any combination of the following values:
  • RAMECC_FLAG_SINGLEERR_R : RAMECC instance ECC single error detected and corrected flag.
  • RAMECC_FLAG_DOUBLEERR_R : RAMECC instance ECC double error detected flag.
  • RAMECC_FLAG_DOUBLEERR_W : 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).

◆ __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
__HANDLE__: Specifies the RAMECC Handle.
__INTERRUPT__: Specifies the RAMECC interrupt source to check. This parameter can be one of the following values:
  • RAMECC_IT_GLOBAL_ENABLE : Global interrupt enable mask.
  • RAMECC_IT_GLOBAL_SINGLEERR_R : Global ECC single error interrupt enable.
  • RAMECC_IT_GLOBAL_DOUBLEERR_R : Global ECC double error interrupt enable.
  • RAMECC_IT_GLOBAL_DOUBLEERR_W : Global ECC double error on byte write (BW) interrupt enable.
  • RAMECC_IT_GLOBAL_ALL : All Global ECC interrupts enable mask.
  • RAMECC_IT_MONITOR_SINGLEERR_R : Monitor ECC single error interrupt enable.
  • RAMECC_IT_MONITOR_DOUBLEERR_R : Monitor ECC double error interrupt enable.
  • RAMECC_IT_MONITOR_DOUBLEERR_W : 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).

◆ __HAL_RAMECC_RESET_HANDLE_STATE

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

Reset the RAMECC handle state.

Parameters
__HANDLE__: Specifies the RAMECC Handle.
Return values
None.