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

Macros

#define IS_RTC_OUTPUT(OUTPUT)
#define IS_RTC_HOUR_FORMAT(FORMAT)
#define IS_RTC_OUTPUT_POL(POL)
#define IS_RTC_OUTPUT_TYPE(TYPE)
#define IS_RTC_OUTPUT_REMAP(REMAP)
#define IS_RTC_HOURFORMAT12(PM)
#define IS_RTC_DAYLIGHT_SAVING(SAVE)
#define IS_RTC_STORE_OPERATION(OPERATION)
#define IS_RTC_FORMAT(FORMAT)
#define IS_RTC_YEAR(YEAR)
#define IS_RTC_MONTH(MONTH)
#define IS_RTC_DATE(DATE)
#define IS_RTC_WEEKDAY(WEEKDAY)
#define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE)
#define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY)
#define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL)
#define IS_RTC_ALARM_MASK(MASK)
#define IS_RTC_ALARM(ALARM)
#define IS_RTC_ALARM_SUB_SECOND_VALUE(VALUE)
#define IS_RTC_ALARM_SUB_SECOND_MASK(MASK)
#define IS_RTC_ASYNCH_PREDIV(PREDIV)
#define IS_RTC_SYNCH_PREDIV(PREDIV)
#define IS_RTC_HOUR12(HOUR)
#define IS_RTC_HOUR24(HOUR)
#define IS_RTC_MINUTES(MINUTES)
#define IS_RTC_SECONDS(SECONDS)

Detailed Description

Macro Definition Documentation

◆ IS_RTC_ALARM

#define IS_RTC_ALARM ( ALARM)
Value:
(((ALARM) == RTC_ALARM_A) || \
((ALARM) == RTC_ALARM_B))
#define RTC_ALARM_B
#define RTC_ALARM_A

Definition at line 1100 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_ALARM_DATE_WEEKDAY_DATE

#define IS_RTC_ALARM_DATE_WEEKDAY_DATE ( DATE)
Value:
(((DATE) > 0u) && ((DATE) <= 31u))

Definition at line 1085 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_ALARM_DATE_WEEKDAY_SEL

#define IS_RTC_ALARM_DATE_WEEKDAY_SEL ( SEL)
Value:
#define RTC_ALARMDATEWEEKDAYSEL_DATE
#define RTC_ALARMDATEWEEKDAYSEL_WEEKDAY

Definition at line 1095 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY

#define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY ( WEEKDAY)
Value:
(((WEEKDAY) == RTC_WEEKDAY_MONDAY) || \
((WEEKDAY) == RTC_WEEKDAY_TUESDAY) || \
((WEEKDAY) == RTC_WEEKDAY_WEDNESDAY) || \
((WEEKDAY) == RTC_WEEKDAY_THURSDAY) || \
((WEEKDAY) == RTC_WEEKDAY_FRIDAY) || \
((WEEKDAY) == RTC_WEEKDAY_SATURDAY) || \
((WEEKDAY) == RTC_WEEKDAY_SUNDAY))
#define RTC_WEEKDAY_WEDNESDAY
#define RTC_WEEKDAY_FRIDAY
#define RTC_WEEKDAY_SATURDAY
#define RTC_WEEKDAY_MONDAY
#define RTC_WEEKDAY_THURSDAY
#define RTC_WEEKDAY_SUNDAY
#define RTC_WEEKDAY_TUESDAY

Definition at line 1087 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_ALARM_MASK

#define IS_RTC_ALARM_MASK ( MASK)
Value:
(((MASK) & ~(RTC_ALARMMASK_ALL)) == 0u)
#define RTC_ALARMMASK_ALL

Definition at line 1098 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_ALARM_SUB_SECOND_MASK

#define IS_RTC_ALARM_SUB_SECOND_MASK ( MASK)
Value:
(((MASK) == 0u) || \
#define RTC_ALARMSUBSECONDMASK_NONE
#define RTC_ALARMSUBSECONDMASK_SS14_1
SS[14:2] are don't care in Alarm comparison.

Definition at line 1105 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_ALARM_SUB_SECOND_VALUE

#define IS_RTC_ALARM_SUB_SECOND_VALUE ( VALUE)
Value:
((VALUE) <= RTC_ALRMASSR_SS)
#define RTC_ALRMASSR_SS

Definition at line 1103 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_ASYNCH_PREDIV

#define IS_RTC_ASYNCH_PREDIV ( PREDIV)
Value:
#define RTC_PRER_PREDIV_A
#define RTC_PRER_PREDIV_A_Pos

Definition at line 1108 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_DATE

#define IS_RTC_DATE ( DATE)
Value:
(((DATE) >= 1u) && ((DATE) <= 31u))

Definition at line 1075 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_DAYLIGHT_SAVING

#define IS_RTC_DAYLIGHT_SAVING ( SAVE)
Value:
(((SAVE) == RTC_DAYLIGHTSAVING_SUB1H) || \
((SAVE) == RTC_DAYLIGHTSAVING_ADD1H) || \
#define RTC_DAYLIGHTSAVING_SUB1H
#define RTC_DAYLIGHTSAVING_ADD1H
#define RTC_DAYLIGHTSAVING_NONE

Definition at line 1061 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_FORMAT

#define IS_RTC_FORMAT ( FORMAT)
Value:
(((FORMAT) == RTC_FORMAT_BIN) || \
((FORMAT) == RTC_FORMAT_BCD))
#define RTC_FORMAT_BCD
#define RTC_FORMAT_BIN

Definition at line 1068 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_HOUR12

#define IS_RTC_HOUR12 ( HOUR)
Value:
(((HOUR) > 0u) && ((HOUR) <= 12u))

Definition at line 1112 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_HOUR24

#define IS_RTC_HOUR24 ( HOUR)
Value:
((HOUR) <= 23u)

Definition at line 1114 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_HOUR_FORMAT

#define IS_RTC_HOUR_FORMAT ( FORMAT)
Value:
(((FORMAT) == RTC_HOURFORMAT_12) || \
((FORMAT) == RTC_HOURFORMAT_24))
#define RTC_HOURFORMAT_12
#define RTC_HOURFORMAT_24

Definition at line 1041 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_HOURFORMAT12

#define IS_RTC_HOURFORMAT12 ( PM)
Value:
(((PM) == RTC_HOURFORMAT12_AM) || \
#define RTC_HOURFORMAT12_AM
#define RTC_HOURFORMAT12_PM

Definition at line 1058 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_MINUTES

#define IS_RTC_MINUTES ( MINUTES)
Value:
((MINUTES) <= 59u)

Definition at line 1116 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_MONTH

#define IS_RTC_MONTH ( MONTH)
Value:
(((MONTH) >= 1u) && ((MONTH) <= 12u))

Definition at line 1073 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_OUTPUT

#define IS_RTC_OUTPUT ( OUTPUT)
Value:
#define OUTPUT
Definition Arduino.h:22
#define RTC_OUTPUT_DISABLE
#define RTC_OUTPUT_WAKEUP
#define RTC_OUTPUT_ALARMA
#define RTC_OUTPUT_ALARMB

Definition at line 1035 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_OUTPUT_POL

#define IS_RTC_OUTPUT_POL ( POL)
Value:
(((POL) == RTC_OUTPUT_POLARITY_HIGH) || \
#define RTC_OUTPUT_POLARITY_HIGH
#define RTC_OUTPUT_POLARITY_LOW

Definition at line 1044 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_OUTPUT_REMAP

#define IS_RTC_OUTPUT_REMAP ( REMAP)
Value:
(((REMAP) == RTC_OUTPUT_REMAP_NONE) || \
((REMAP) == RTC_OUTPUT_REMAP_POS1))
#define RTC_OUTPUT_REMAP_NONE
#define RTC_OUTPUT_REMAP_POS1

Definition at line 1055 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_OUTPUT_TYPE

#define IS_RTC_OUTPUT_TYPE ( TYPE)
Value:
(((TYPE) == RTC_OUTPUT_TYPE_OPENDRAIN) || \
#define RTC_OUTPUT_TYPE_PUSHPULL
#define RTC_OUTPUT_TYPE_OPENDRAIN

Definition at line 1047 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_SECONDS

#define IS_RTC_SECONDS ( SECONDS)
Value:
((SECONDS) <= 59u)

Definition at line 1118 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_STORE_OPERATION

#define IS_RTC_STORE_OPERATION ( OPERATION)
Value:
(((OPERATION) == RTC_STOREOPERATION_RESET) || \
((OPERATION) == RTC_STOREOPERATION_SET))
#define RTC_STOREOPERATION_RESET
#define RTC_STOREOPERATION_SET

Definition at line 1065 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_SYNCH_PREDIV

#define IS_RTC_SYNCH_PREDIV ( PREDIV)
Value:
#define RTC_PRER_PREDIV_S
#define RTC_PRER_PREDIV_S_Pos

Definition at line 1110 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_WEEKDAY

#define IS_RTC_WEEKDAY ( WEEKDAY)
Value:
(((WEEKDAY) == RTC_WEEKDAY_MONDAY) || \
((WEEKDAY) == RTC_WEEKDAY_TUESDAY) || \
((WEEKDAY) == RTC_WEEKDAY_WEDNESDAY) || \
((WEEKDAY) == RTC_WEEKDAY_THURSDAY) || \
((WEEKDAY) == RTC_WEEKDAY_FRIDAY) || \
((WEEKDAY) == RTC_WEEKDAY_SATURDAY) || \
((WEEKDAY) == RTC_WEEKDAY_SUNDAY))

Definition at line 1077 of file stm32h7xx_hal_rtc.h.

◆ IS_RTC_YEAR

#define IS_RTC_YEAR ( YEAR)
Value:
((YEAR) <= 99u)

Definition at line 1071 of file stm32h7xx_hal_rtc.h.