RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros
Private macros to check input parameters

Macros

#define IS_RTC_BKP(__BKP__)   ((__BKP__) < BKP_REG_NUMBER)
 
#define IS_TIMESTAMP_EDGE(EDGE)
 
#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_SHIFT_ADD1S(SEL)
 
#define IS_RTC_SHIFT_SUBFS(FS)   ((FS) <= RTC_SHIFTR_SUBFS)
 
#define IS_RTC_CALIB_OUTPUT(OUTPUT)
 
#define IS_RTC_TAMPER(__TAMPER__)
 
#define IS_RTC_TAMPER_INTERRUPT(__INTERRUPT__)
 
#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_TAMPER_FILTER_CONFIG_CORRECT(FILTER, TRIGGER)
 
#define IS_RTC_INTERNAL_TAMPER(__INT_TAMPER__)
 

Detailed Description

Macro Definition Documentation

◆ IS_RTC_CALIB_OUTPUT

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

◆ IS_RTC_INTERNAL_TAMPER

#define IS_RTC_INTERNAL_TAMPER (   __INT_TAMPER__)
Value:
((((__INT_TAMPER__) & RTC_INT_TAMPER_ALL) != 0x00U) && \
(((__INT_TAMPER__) & ~RTC_INT_TAMPER_ALL) == 0x00U))

◆ IS_RTC_SHIFT_ADD1S

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

◆ IS_RTC_SMOOTH_CALIB_PERIOD

#define IS_RTC_SMOOTH_CALIB_PERIOD (   PERIOD)
Value:
(((PERIOD) == RTC_SMOOTHCALIB_PERIOD_32SEC) || \
((PERIOD) == RTC_SMOOTHCALIB_PERIOD_16SEC) || \
#define RTC_SMOOTHCALIB_PERIOD_8SEC
Definition: stm32h7xx_hal_rtc_ex.h:724
#define RTC_SMOOTHCALIB_PERIOD_16SEC
Definition: stm32h7xx_hal_rtc_ex.h:722
#define RTC_SMOOTHCALIB_PERIOD_32SEC
Definition: stm32h7xx_hal_rtc_ex.h:720

◆ IS_RTC_SMOOTH_CALIB_PLUS

#define IS_RTC_SMOOTH_CALIB_PLUS (   PLUS)
Value:
#define RTC_SMOOTHCALIB_PLUSPULSES_SET
Definition: stm32h7xx_hal_rtc_ex.h:734
#define RTC_SMOOTHCALIB_PLUSPULSES_RESET
Definition: stm32h7xx_hal_rtc_ex.h:737

◆ IS_RTC_TAMPER

#define IS_RTC_TAMPER (   __TAMPER__)
Value:
((((__TAMPER__) & RTC_TAMPER_X) != 0x00U) && \
(((__TAMPER__) & ~RTC_TAMPER_X) == 0x00U))

◆ IS_RTC_TAMPER_ERASE_MODE

#define IS_RTC_TAMPER_ERASE_MODE (   __MODE__)
Value:
(((__MODE__) == RTC_TAMPER_ERASE_BACKUP_ENABLE) || \
((__MODE__) == RTC_TAMPER_ERASE_BACKUP_DISABLE))

◆ IS_RTC_TAMPER_FILTER

#define IS_RTC_TAMPER_FILTER (   __FILTER__)
Value:
(((__FILTER__) == RTC_TAMPERFILTER_DISABLE) || \
((__FILTER__) == RTC_TAMPERFILTER_2SAMPLE) || \
((__FILTER__) == RTC_TAMPERFILTER_4SAMPLE) || \
((__FILTER__) == RTC_TAMPERFILTER_8SAMPLE))
#define RTC_TAMPERFILTER_DISABLE
Definition: stm32h7xx_hal_rtc_ex.h:454
#define RTC_TAMPERFILTER_8SAMPLE
Definition: stm32h7xx_hal_rtc_ex.h:460
#define RTC_TAMPERFILTER_2SAMPLE
Definition: stm32h7xx_hal_rtc_ex.h:456
#define RTC_TAMPERFILTER_4SAMPLE
Definition: stm32h7xx_hal_rtc_ex.h:458

◆ IS_RTC_TAMPER_FILTER_CONFIG_CORRECT

#define IS_RTC_TAMPER_FILTER_CONFIG_CORRECT (   FILTER,
  TRIGGER 
)
Value:
( ( ((FILTER) != RTC_TAMPERFILTER_DISABLE) \
&& ( ((TRIGGER) == RTC_TAMPERTRIGGER_LOWLEVEL) \
|| ((TRIGGER) == RTC_TAMPERTRIGGER_HIGHLEVEL))) \
|| ( ((FILTER) == RTC_TAMPERFILTER_DISABLE) \
&& ( ((TRIGGER) == RTC_TAMPERTRIGGER_RISINGEDGE) \
|| ((TRIGGER) == RTC_TAMPERTRIGGER_FALLINGEDGE))))
#define RTC_TAMPERTRIGGER_LOWLEVEL
Definition: stm32h7xx_hal_rtc_ex.h:360
#define RTC_TAMPERTRIGGER_RISINGEDGE
Definition: stm32h7xx_hal_rtc_ex.h:358
#define RTC_TAMPERTRIGGER_HIGHLEVEL
Definition: stm32h7xx_hal_rtc_ex.h:361
#define RTC_TAMPERTRIGGER_FALLINGEDGE
Definition: stm32h7xx_hal_rtc_ex.h:359

◆ IS_RTC_TAMPER_INTERRUPT

#define IS_RTC_TAMPER_INTERRUPT (   __INTERRUPT__)
Value:
((((__INTERRUPT__) & ( RTC_TAMPER_X_INTERRUPT | RTC_IT_TAMPALL )) != 0x00U) && \
(((__INTERRUPT__) & (~(RTC_TAMPER_X_INTERRUPT | RTC_IT_TAMPALL))) == 0x00U))

◆ IS_RTC_TAMPER_MASKFLAG_STATE

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

◆ IS_RTC_TAMPER_PRECHARGE_DURATION

#define IS_RTC_TAMPER_PRECHARGE_DURATION (   __DURATION__)
Value:
(((__DURATION__) == RTC_TAMPERPRECHARGEDURATION_1RTCCLK) || \
((__DURATION__) == RTC_TAMPERPRECHARGEDURATION_2RTCCLK) || \
((__DURATION__) == RTC_TAMPERPRECHARGEDURATION_4RTCCLK) || \
#define RTC_TAMPERPRECHARGEDURATION_4RTCCLK
Definition: stm32h7xx_hal_rtc_ex.h:536
#define RTC_TAMPERPRECHARGEDURATION_2RTCCLK
Definition: stm32h7xx_hal_rtc_ex.h:534
#define RTC_TAMPERPRECHARGEDURATION_8RTCCLK
Definition: stm32h7xx_hal_rtc_ex.h:538
#define RTC_TAMPERPRECHARGEDURATION_1RTCCLK
Definition: stm32h7xx_hal_rtc_ex.h:532

◆ IS_RTC_TAMPER_PULLUP_STATE

#define IS_RTC_TAMPER_PULLUP_STATE (   __STATE__)
Value:
(((__STATE__) == RTC_TAMPER_PULLUP_ENABLE) || \
((__STATE__) == RTC_TAMPER_PULLUP_DISABLE))
#define RTC_TAMPER_PULLUP_DISABLE
Definition: stm32h7xx_hal_rtc_ex.h:574
#define RTC_TAMPER_PULLUP_ENABLE
Definition: stm32h7xx_hal_rtc_ex.h:573

◆ IS_RTC_TAMPER_SAMPLING_FREQ

#define IS_RTC_TAMPER_SAMPLING_FREQ (   __FREQ__)
Value:
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256
Definition: stm32h7xx_hal_rtc_ex.h:507
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768
Definition: stm32h7xx_hal_rtc_ex.h:493
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512
Definition: stm32h7xx_hal_rtc_ex.h:505
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192
Definition: stm32h7xx_hal_rtc_ex.h:497
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048
Definition: stm32h7xx_hal_rtc_ex.h:501
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096
Definition: stm32h7xx_hal_rtc_ex.h:499
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024
Definition: stm32h7xx_hal_rtc_ex.h:503
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384
Definition: stm32h7xx_hal_rtc_ex.h:495

◆ IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION

#define IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION (   __DETECTION__)
Value:
(((__DETECTION__) == RTC_TIMESTAMPONTAMPERDETECTION_ENABLE) || \
#define RTC_TIMESTAMPONTAMPERDETECTION_DISABLE
Definition: stm32h7xx_hal_rtc_ex.h:556
#define RTC_TIMESTAMPONTAMPERDETECTION_ENABLE
Definition: stm32h7xx_hal_rtc_ex.h:557

◆ IS_RTC_TAMPER_TRIGGER

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

◆ IS_RTC_WAKEUP_CLOCK

#define IS_RTC_WAKEUP_CLOCK (   CLOCK)
Value:
(((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV16) || \
((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV8) || \
((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV4) || \
((CLOCK) == RTC_WAKEUPCLOCK_RTCCLK_DIV2) || \
((CLOCK) == RTC_WAKEUPCLOCK_CK_SPRE_16BITS) || \
((CLOCK) == RTC_WAKEUPCLOCK_CK_SPRE_17BITS))

◆ IS_TIMESTAMP_EDGE

#define IS_TIMESTAMP_EDGE (   EDGE)
Value:
(((EDGE) == RTC_TIMESTAMPEDGE_RISING) || \
((EDGE) == RTC_TIMESTAMPEDGE_FALLING))