STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
Private macros to check input parameters
Collaboration diagram for Private macros to check input parameters:

Macros

#define IS_RTC_BKP(__BKP__)
#define IS_TIMESTAMP_EDGE(EDGE)
#define IS_RTC_TIMESTAMP_PIN(PIN)
#define IS_RTC_WAKEUP_CLOCK(CLOCK)
#define IS_RTC_WAKEUP_COUNTER(COUNTER)
#define IS_RTC_SMOOTH_CALIB_PERIOD(PERIOD)
#define IS_RTC_SMOOTH_CALIB_PLUS(PLUS)
#define IS_RTC_SMOOTH_CALIB_MINUS(VALUE)
#define IS_RTC_SHIFT_ADD1S(SEL)
#define IS_RTC_SHIFT_SUBFS(FS)
#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_BKP

#define IS_RTC_BKP ( __BKP__)
Value:
((__BKP__) < BKP_REG_NUMBER)
#define BKP_REG_NUMBER

Definition at line 1864 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_CALIB_OUTPUT

#define IS_RTC_CALIB_OUTPUT ( OUTPUT)
Value:
#define OUTPUT
Definition Arduino.h:22
#define RTC_CALIBOUTPUT_512HZ
#define RTC_CALIBOUTPUT_1HZ

Definition at line 1910 of file stm32h7xx_hal_rtc_ex.h.

◆ 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))

Definition at line 1973 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_SHIFT_ADD1S

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

Definition at line 1905 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_SHIFT_SUBFS

#define IS_RTC_SHIFT_SUBFS ( FS)
Value:
#define RTC_SHIFTR_SUBFS

Definition at line 1908 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_SMOOTH_CALIB_MINUS

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

Definition at line 1899 of file stm32h7xx_hal_rtc_ex.h.

◆ 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
If RTCCLK = 32768 Hz, Smooth calibration period is 8s, else 2exp18 RTCCLK pulses.
#define RTC_SMOOTHCALIB_PERIOD_16SEC
If RTCCLK = 32768 Hz, Smooth calibration period is 16s, else 2exp19 RTCCLK pulses.
#define RTC_SMOOTHCALIB_PERIOD_32SEC
If RTCCLK = 32768 Hz, Smooth calibration period is 32s, else 2exp20 RTCCLK pulses.

Definition at line 1892 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_SMOOTH_CALIB_PLUS

#define IS_RTC_SMOOTH_CALIB_PLUS ( PLUS)
Value:
#define RTC_SMOOTHCALIB_PLUSPULSES_SET
The number of RTCCLK pulses added during a X -second window = Y - CALM[8:0] with Y = 512,...
#define RTC_SMOOTHCALIB_PLUSPULSES_RESET
The number of RTCCLK pulses subbstited during a 32-second window = CALM[8:0].

Definition at line 1896 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_TAMPER

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

Definition at line 1917 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_TAMPER_ERASE_MODE

#define IS_RTC_TAMPER_ERASE_MODE ( __MODE__)
Value:
(((__MODE__) == RTC_TAMPER_ERASE_BACKUP_ENABLE) || \
#define RTC_TAMPER_ERASE_BACKUP_DISABLE
#define RTC_TAMPER_ERASE_BACKUP_ENABLE
< These values are not applicable to the STM32H723/33, STM32H725/35 and STM32H730 devices,...

Definition at line 1929 of file stm32h7xx_hal_rtc_ex.h.

◆ 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
Tamper filter is disabled.
#define RTC_TAMPERFILTER_8SAMPLE
Tamper is activated after 8 consecutive samples at the active level.
#define RTC_TAMPERFILTER_2SAMPLE
Tamper is activated after 2 consecutive samples at the active level.
#define RTC_TAMPERFILTER_4SAMPLE
Tamper is activated after 4 consecutive samples at the active level.

Definition at line 1935 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_TAMPER_FILTER_CONFIG_CORRECT

#define IS_RTC_TAMPER_FILTER_CONFIG_CORRECT ( FILTER,
TRIGGER )
Value:
&& ( ((TRIGGER) == RTC_TAMPERTRIGGER_LOWLEVEL) \
|| ((TRIGGER) == RTC_TAMPERTRIGGER_HIGHLEVEL))) \
&& ( ((TRIGGER) == RTC_TAMPERTRIGGER_RISINGEDGE) \
|| ((TRIGGER) == RTC_TAMPERTRIGGER_FALLINGEDGE))))
#define FILTER
Definition main.h:4
#define RTC_TAMPERTRIGGER_LOWLEVEL
Warning : Filter must not be RTC_TAMPERFILTER_DISABLE.
#define RTC_TAMPERTRIGGER_RISINGEDGE
Warning : Filter must be RTC_TAMPERFILTER_DISABLE.
#define RTC_TAMPERTRIGGER_HIGHLEVEL
Warning : Filter must not be RTC_TAMPERFILTER_DISABLE.
#define RTC_TAMPERTRIGGER_FALLINGEDGE
Warning : Filter must be RTC_TAMPERFILTER_DISABLE.

Definition at line 1965 of file stm32h7xx_hal_rtc_ex.h.

◆ 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))
#define RTC_TAMPER_X_INTERRUPT
#define RTC_IT_TAMPALL

Definition at line 1920 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_TAMPER_MASKFLAG_STATE

#define IS_RTC_TAMPER_MASKFLAG_STATE ( __STATE__)
Value:
(((__STATE__) == RTC_TAMPERMASK_FLAG_ENABLE) || \
((__STATE__) == RTC_TAMPERMASK_FLAG_DISABLE))
#define RTC_TAMPERMASK_FLAG_ENABLE
#define RTC_TAMPERMASK_FLAG_DISABLE
< These values are not applicable to the STM32H723/33, STM32H725/35 and STM32H730 devices,...

Definition at line 1932 of file stm32h7xx_hal_rtc_ex.h.

◆ 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
Tamper pins are pre-charged before sampling during 4 RTCCLK cycles.
#define RTC_TAMPERPRECHARGEDURATION_2RTCCLK
Tamper pins are pre-charged before sampling during 2 RTCCLK cycles.
#define RTC_TAMPERPRECHARGEDURATION_8RTCCLK
Tamper pins are pre-charged before sampling during 8 RTCCLK cycles.
#define RTC_TAMPERPRECHARGEDURATION_1RTCCLK
Tamper pins are pre-charged before sampling during 1 RTCCLK cycle.

Definition at line 1949 of file stm32h7xx_hal_rtc_ex.h.

◆ 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
TimeStamp on Tamper Detection event is not saved.
#define RTC_TAMPER_PULLUP_ENABLE
TimeStamp on Tamper Detection event saved.

Definition at line 1954 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_TAMPER_SAMPLING_FREQ

#define IS_RTC_TAMPER_SAMPLING_FREQ ( __FREQ__)
Value:
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV256
Each of the tamper inputs are sampled with a frequency = RTCCLK / 256.
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV32768
Each of the tamper inputs are sampled with a frequency = RTCCLK / 32768.
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV512
Each of the tamper inputs are sampled with a frequency = RTCCLK / 512.
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV8192
Each of the tamper inputs are sampled with a frequency = RTCCLK / 8192.
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV2048
Each of the tamper inputs are sampled with a frequency = RTCCLK / 2048.
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV4096
Each of the tamper inputs are sampled with a frequency = RTCCLK / 4096.
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV1024
Each of the tamper inputs are sampled with a frequency = RTCCLK / 1024.
#define RTC_TAMPERSAMPLINGFREQ_RTCCLK_DIV16384
Each of the tamper inputs are sampled with a frequency = RTCCLK / 16384.

Definition at line 1940 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION

#define IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION ( __DETECTION__)
Value:
(((__DETECTION__) == RTC_TIMESTAMPONTAMPERDETECTION_ENABLE) || \
#define RTC_TIMESTAMPONTAMPERDETECTION_DISABLE
TimeStamp on Tamper Detection event is not saved.
#define RTC_TIMESTAMPONTAMPERDETECTION_ENABLE
TimeStamp on Tamper Detection event saved.

Definition at line 1957 of file stm32h7xx_hal_rtc_ex.h.

◆ 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))

Definition at line 1924 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_TIMESTAMP_PIN

#define IS_RTC_TIMESTAMP_PIN ( PIN)
Value:
#define RTC_TIMESTAMPPIN_DEFAULT

Definition at line 1873 of file stm32h7xx_hal_rtc_ex.h.

◆ 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) || \
#define RTC_WAKEUPCLOCK_CK_SPRE_16BITS
#define RTC_WAKEUPCLOCK_RTCCLK_DIV16
#define RTC_WAKEUPCLOCK_RTCCLK_DIV8
#define RTC_WAKEUPCLOCK_RTCCLK_DIV2
#define RTC_WAKEUPCLOCK_CK_SPRE_17BITS
#define RTC_WAKEUPCLOCK_RTCCLK_DIV4

Definition at line 1879 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_RTC_WAKEUP_COUNTER

#define IS_RTC_WAKEUP_COUNTER ( COUNTER)
Value:
((COUNTER) <= RTC_WUTR_WUT)
#define RTC_WUTR_WUT

Definition at line 1886 of file stm32h7xx_hal_rtc_ex.h.

◆ IS_TIMESTAMP_EDGE

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

Definition at line 1870 of file stm32h7xx_hal_rtc_ex.h.