Macros
Collaboration diagram for RTC Tamper:

Macros

#define __HAL_RTC_TAMPER1_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP1E))
 Disable the RTC Tamper1 input detection. More...
 
#define __HAL_RTC_TAMPER1_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP1E))
 Enable the RTC Tamper1 input detection. More...
 
#define __HAL_RTC_TAMPER2_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP2E))
 Disable the RTC Tamper2 input detection. More...
 
#define __HAL_RTC_TAMPER2_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP2E))
 Enable the RTC Tamper2 input detection. More...
 
#define __HAL_RTC_TAMPER_CLEAR_FLAG(__HANDLE__, __FLAG__)   ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
 Clear the RTC Tamper's pending flags. More...
 
#define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__)   (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)
 Get the selected RTC Tamper's flag status. More...
 
#define __HAL_RTC_TAMPER_GET_IT(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->ISR) & ((__INTERRUPT__)>> 4U)) != RESET)? SET : RESET)
 Check whether the specified RTC Tamper interrupt has occurred or not. More...
 
#define __HAL_RTC_TAMPER_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)   (((((__HANDLE__)->Instance->TAFCR) & (__INTERRUPT__)) != RESET) ? SET : RESET)
 Check whether the specified RTC Tamper interrupt has been enabled or not. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_RTC_TAMPER1_DISABLE

#define __HAL_RTC_TAMPER1_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP1E))

Disable the RTC Tamper1 input detection.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
Return values
None

Definition at line 580 of file stm32f4xx_hal_rtc_ex.h.

◆ __HAL_RTC_TAMPER1_ENABLE

#define __HAL_RTC_TAMPER1_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP1E))

Enable the RTC Tamper1 input detection.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
Return values
None

Definition at line 573 of file stm32f4xx_hal_rtc_ex.h.

◆ __HAL_RTC_TAMPER2_DISABLE

#define __HAL_RTC_TAMPER2_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR &= ~(RTC_TAFCR_TAMP2E))

Disable the RTC Tamper2 input detection.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
Return values
None

Definition at line 595 of file stm32f4xx_hal_rtc_ex.h.

◆ __HAL_RTC_TAMPER2_ENABLE

#define __HAL_RTC_TAMPER2_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->TAFCR |= (RTC_TAFCR_TAMP2E))

Enable the RTC Tamper2 input detection.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
Return values
None

Definition at line 588 of file stm32f4xx_hal_rtc_ex.h.

◆ __HAL_RTC_TAMPER_CLEAR_FLAG

#define __HAL_RTC_TAMPER_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))

Clear the RTC Tamper's pending flags.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
<strong>FLAG</strong>specifies the RTC Tamper Flag to clear. This parameter can be:
  • RTC_FLAG_TAMP1F
  • RTC_FLAG_TAMP2F
Return values
None

Definition at line 639 of file stm32f4xx_hal_rtc_ex.h.

◆ __HAL_RTC_TAMPER_GET_FLAG

#define __HAL_RTC_TAMPER_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != RESET)? SET : RESET)

Get the selected RTC Tamper's flag status.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
<strong>FLAG</strong>specifies the RTC Tamper Flag sources to be enabled or disabled. This parameter can be:
  • RTC_FLAG_TAMP1F
  • RTC_FLAG_TAMP2F
Return values
None

Definition at line 628 of file stm32f4xx_hal_rtc_ex.h.

◆ __HAL_RTC_TAMPER_GET_IT

#define __HAL_RTC_TAMPER_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((((__HANDLE__)->Instance->ISR) & ((__INTERRUPT__)>> 4U)) != RESET)? SET : RESET)

Check whether the specified RTC Tamper interrupt has occurred or not.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
<strong>INTERRUPT</strong>specifies the RTC Tamper interrupt to check. This parameter can be:
  • RTC_IT_TAMP1
  • RTC_IT_TAMP2
Return values
None

Definition at line 607 of file stm32f4xx_hal_rtc_ex.h.

◆ __HAL_RTC_TAMPER_GET_IT_SOURCE

#define __HAL_RTC_TAMPER_GET_IT_SOURCE (   __HANDLE__,
  __INTERRUPT__ 
)    (((((__HANDLE__)->Instance->TAFCR) & (__INTERRUPT__)) != RESET) ? SET : RESET)

Check whether the specified RTC Tamper interrupt has been enabled or not.

Parameters
<strong>HANDLE</strong>specifies the RTC handle.
<strong>INTERRUPT</strong>specifies the RTC Tamper interrupt source to check. This parameter can be:
  • RTC_IT_TAMP: Tamper interrupt
Return values
None

Definition at line 617 of file stm32f4xx_hal_rtc_ex.h.



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