STM32L443xx HAL User Manual
Defines
Private macros to check input parameters
RTCEx Private Macros

Defines

#define IS_TIMESTAMP_EDGE(EDGE)
#define IS_RTC_TAMPER_INTERRUPT(INTERRUPT)   ((((INTERRUPT) & (uint32_t)0xFFB6FFFB) == 0x00) && ((INTERRUPT) != 0U))
#define IS_RTC_TIMESTAMP_PIN(PIN)   (((PIN) == RTC_TIMESTAMPPIN_DEFAULT))
#define IS_RTC_WAKEUP_CLOCK(CLOCK)
#define IS_RTC_WAKEUP_COUNTER(COUNTER)   ((COUNTER) <= RTC_WUTR_WUT)
#define IS_RTC_SMOOTH_CALIB_PERIOD(PERIOD)
#define IS_RTC_SMOOTH_CALIB_PLUS(PLUS)
#define IS_RTC_SMOOTH_CALIB_MINUS(VALUE)   ((VALUE) <= RTC_CALR_CALM)
#define IS_RTC_TAMPER(TAMPER)   ((((TAMPER) & (uint32_t)0xFFFFFFD6) == 0x00) && ((TAMPER) != 0U))
#define IS_RTC_TAMPER_TRIGGER(__TRIGGER__)
#define IS_RTC_TAMPER_ERASE_MODE(__MODE__)
#define IS_RTC_TAMPER_MASKFLAG_STATE(__STATE__)
#define IS_RTC_TAMPER_FILTER(__FILTER__)
#define IS_RTC_TAMPER_SAMPLING_FREQ(__FREQ__)
#define IS_RTC_TAMPER_PRECHARGE_DURATION(__DURATION__)
#define IS_RTC_TAMPER_PULLUP_STATE(__STATE__)
#define IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION(DETECTION)
#define IS_RTC_BKP(__BKP__)   ((__BKP__) < RTC_BKP_NUMBER)
#define IS_RTC_SHIFT_ADD1S(SEL)
#define IS_RTC_SHIFT_SUBFS(FS)   ((FS) <= RTC_SHIFTR_SUBFS)
#define IS_RTC_CALIB_OUTPUT(OUTPUT)

Define Documentation

#define IS_RTC_BKP (   __BKP__)    ((__BKP__) < RTC_BKP_NUMBER)

Definition at line 1690 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_BKUPRead(), and HAL_RTCEx_BKUPWrite().

#define IS_RTC_CALIB_OUTPUT (   OUTPUT)
Value:
(((OUTPUT) == RTC_CALIBOUTPUT_512HZ) || \
                                      ((OUTPUT) == RTC_CALIBOUTPUT_1HZ))

Definition at line 1697 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetCalibrationOutPut().

#define IS_RTC_SHIFT_ADD1S (   SEL)
Value:
(((SEL) == RTC_SHIFTADD1S_RESET) || \
                                 ((SEL) == RTC_SHIFTADD1S_SET))

Definition at line 1692 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetSynchroShift().

#define IS_RTC_SHIFT_SUBFS (   FS)    ((FS) <= RTC_SHIFTR_SUBFS)

Definition at line 1695 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetSynchroShift().

#define IS_RTC_SMOOTH_CALIB_MINUS (   VALUE)    ((VALUE) <= RTC_CALR_CALM)

Definition at line 1639 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetSmoothCalib().

#define IS_RTC_SMOOTH_CALIB_PERIOD (   PERIOD)
Value:
(((PERIOD) == RTC_SMOOTHCALIB_PERIOD_32SEC) || \
                                            ((PERIOD) == RTC_SMOOTHCALIB_PERIOD_16SEC) || \
                                            ((PERIOD) == RTC_SMOOTHCALIB_PERIOD_8SEC))

Definition at line 1632 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetSmoothCalib().

#define IS_RTC_SMOOTH_CALIB_PLUS (   PLUS)
Value:

Definition at line 1636 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetSmoothCalib().

#define IS_RTC_TAMPER (   TAMPER)    ((((TAMPER) & (uint32_t)0xFFFFFFD6) == 0x00) && ((TAMPER) != 0U))
#define IS_RTC_TAMPER_ERASE_MODE (   __MODE__)
Value:
(((__MODE__) == RTC_TAMPER_ERASE_BACKUP_ENABLE) || \
                                                  ((__MODE__) == RTC_TAMPER_ERASE_BACKUP_DISABLE))

Definition at line 1659 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper(), and HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TAMPER_FILTER (   __FILTER__)
Value:
(((__FILTER__) == RTC_TAMPERFILTER_DISABLE)  || \
                                                  ((__FILTER__) == RTC_TAMPERFILTER_2SAMPLE) || \
                                                  ((__FILTER__) == RTC_TAMPERFILTER_4SAMPLE) || \
                                                  ((__FILTER__) == RTC_TAMPERFILTER_8SAMPLE))

Definition at line 1665 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper(), and HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TAMPER_INTERRUPT (   INTERRUPT)    ((((INTERRUPT) & (uint32_t)0xFFB6FFFB) == 0x00) && ((INTERRUPT) != 0U))

Definition at line 1619 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TAMPER_MASKFLAG_STATE (   __STATE__)
Value:
(((__STATE__) == RTC_TAMPERMASK_FLAG_ENABLE) || \
                                                  ((__STATE__) == RTC_TAMPERMASK_FLAG_DISABLE))

Definition at line 1662 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper(), and HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TAMPER_PRECHARGE_DURATION (   __DURATION__)
Value:
(((__DURATION__) == RTC_TAMPERPRECHARGEDURATION_1RTCCLK) || \
                                                          ((__DURATION__) == RTC_TAMPERPRECHARGEDURATION_2RTCCLK) || \
                                                          ((__DURATION__) == RTC_TAMPERPRECHARGEDURATION_4RTCCLK) || \
                                                          ((__DURATION__) == RTC_TAMPERPRECHARGEDURATION_8RTCCLK))

Definition at line 1679 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper(), and HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TAMPER_PULLUP_STATE (   __STATE__)
Value:
(((__STATE__) == RTC_TAMPER_PULLUP_ENABLE) || \
                                                  ((__STATE__) == RTC_TAMPER_PULLUP_DISABLE))

Definition at line 1684 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper(), and HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TAMPER_SAMPLING_FREQ (   __FREQ__)
Value:

Definition at line 1687 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper(), and HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TAMPER_TRIGGER (   __TRIGGER__)
Value:
(((__TRIGGER__) == RTC_TAMPERTRIGGER_RISINGEDGE)  || \
                                                  ((__TRIGGER__) == RTC_TAMPERTRIGGER_FALLINGEDGE) || \
                                                  ((__TRIGGER__) == RTC_TAMPERTRIGGER_LOWLEVEL)    || \
                                                  ((__TRIGGER__) == RTC_TAMPERTRIGGER_HIGHLEVEL))

Definition at line 1654 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTamper(), and HAL_RTCEx_SetTamper_IT().

#define IS_RTC_TIMESTAMP_PIN (   PIN)    (((PIN) == RTC_TIMESTAMPPIN_DEFAULT))

Definition at line 1621 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTimeStamp(), and HAL_RTCEx_SetTimeStamp_IT().

#define IS_RTC_WAKEUP_CLOCK (   CLOCK)
Value:

Definition at line 1623 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetWakeUpTimer(), and HAL_RTCEx_SetWakeUpTimer_IT().

#define IS_RTC_WAKEUP_COUNTER (   COUNTER)    ((COUNTER) <= RTC_WUTR_WUT)
#define IS_TIMESTAMP_EDGE (   EDGE)
Value:
(((EDGE) == RTC_TIMESTAMPEDGE_RISING) || \
                                 ((EDGE) == RTC_TIMESTAMPEDGE_FALLING))

Definition at line 1616 of file stm32l4xx_hal_rtc_ex.h.

Referenced by HAL_RTCEx_SetTimeStamp(), and HAL_RTCEx_SetTimeStamp_IT().