STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
HSEM Exported Macros
Collaboration diagram for HSEM Exported Macros:

Macros

#define __HAL_HSEM_SEMID_TO_MASK(__SEMID__)
 SemID to mask helper Macro.
#define __HAL_HSEM_ENABLE_IT(__SEM_MASK__)
 Enables the specified HSEM interrupts.
#define __HAL_HSEM_DISABLE_IT(__SEM_MASK__)
 Disables the specified HSEM interrupts.
#define __HAL_HSEM_GET_IT(__SEM_MASK__)
 Checks whether interrupt has occurred or not for semaphores specified by a mask.
#define __HAL_HSEM_GET_FLAG(__SEM_MASK__)
 Get the semaphores release status flags.
#define __HAL_HSEM_CLEAR_FLAG(__SEM_MASK__)
 Clears the HSEM Interrupt flags.

Detailed Description

Macro Definition Documentation

◆ __HAL_HSEM_CLEAR_FLAG

#define __HAL_HSEM_CLEAR_FLAG ( __SEM_MASK__)
Value:
(HSEM->C1ICR |= (__SEM_MASK__))
#define HSEM

Clears the HSEM Interrupt flags.

Parameters
__SEM_MASK__semaphores Mask
Return values
None.

Definition at line 111 of file stm32h7xx_hal_hsem.h.

◆ __HAL_HSEM_DISABLE_IT

#define __HAL_HSEM_DISABLE_IT ( __SEM_MASK__)
Value:
(HSEM->C1IER &= ~(__SEM_MASK__))

Disables the specified HSEM interrupts.

Parameters
__SEM_MASK__semaphores Mask
Return values
None.

Definition at line 72 of file stm32h7xx_hal_hsem.h.

◆ __HAL_HSEM_ENABLE_IT

#define __HAL_HSEM_ENABLE_IT ( __SEM_MASK__)
Value:
(HSEM->C1IER |= (__SEM_MASK__))

Enables the specified HSEM interrupts.

Parameters
__SEM_MASK__semaphores Mask
Return values
None.

Definition at line 60 of file stm32h7xx_hal_hsem.h.

◆ __HAL_HSEM_GET_FLAG

#define __HAL_HSEM_GET_FLAG ( __SEM_MASK__)
Value:
((__SEM_MASK__) & HSEM->C1ISR)

Get the semaphores release status flags.

Parameters
__SEM_MASK__semaphores Mask
Return values
semaphoresMask : Semaphores where Release flags rise.

Definition at line 98 of file stm32h7xx_hal_hsem.h.

◆ __HAL_HSEM_GET_IT

#define __HAL_HSEM_GET_IT ( __SEM_MASK__)
Value:
((__SEM_MASK__) & HSEM->C1MISR)

Checks whether interrupt has occurred or not for semaphores specified by a mask.

Parameters
__SEM_MASK__semaphores Mask
Return values
semaphoresMask : Semaphores where an interrupt occurred.

Definition at line 85 of file stm32h7xx_hal_hsem.h.

◆ __HAL_HSEM_SEMID_TO_MASK

#define __HAL_HSEM_SEMID_TO_MASK ( __SEMID__)
Value:
(1 << (__SEMID__))

SemID to mask helper Macro.

Parameters
__SEMID__semaphore ID from 0 to 31
Return values
SemaphoreMask.

Definition at line 48 of file stm32h7xx_hal_hsem.h.