STM32L486xx HAL User Manual
Defines
RTC Private macros to check input parameters
RTC Private Macros

Defines

#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)   (((PM) == RTC_HOURFORMAT12_AM) || ((PM) == RTC_HOURFORMAT12_PM))
#define IS_RTC_DAYLIGHT_SAVING(SAVE)
#define IS_RTC_STORE_OPERATION(OPERATION)
#define IS_RTC_FORMAT(FORMAT)   (((FORMAT) == RTC_FORMAT_BIN) || ((FORMAT) == RTC_FORMAT_BCD))
#define IS_RTC_YEAR(YEAR)   ((YEAR) <= (uint32_t)99)
#define IS_RTC_MONTH(MONTH)   (((MONTH) >= (uint32_t)1) && ((MONTH) <= (uint32_t)12))
#define IS_RTC_DATE(DATE)   (((DATE) >= (uint32_t)1) && ((DATE) <= (uint32_t)31))
#define IS_RTC_WEEKDAY(WEEKDAY)
#define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE)   (((DATE) >(uint32_t) 0) && ((DATE) <= (uint32_t)31))
#define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY)
#define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL)
#define IS_RTC_ALARM_MASK(MASK)   (((MASK) & 0x7F7F7F7F) == (uint32_t)RESET)
#define IS_RTC_ALARM(ALARM)   (((ALARM) == RTC_ALARM_A) || ((ALARM) == RTC_ALARM_B))
#define IS_RTC_ALARM_SUB_SECOND_VALUE(VALUE)   ((VALUE) <= (uint32_t)0x00007FFF)
#define IS_RTC_ALARM_SUB_SECOND_MASK(MASK)
#define IS_RTC_ASYNCH_PREDIV(PREDIV)   ((PREDIV) <= (uint32_t)0x7F)
#define IS_RTC_SYNCH_PREDIV(PREDIV)   ((PREDIV) <= (uint32_t)0x7FFF)
#define IS_RTC_HOUR12(HOUR)   (((HOUR) > (uint32_t)0) && ((HOUR) <= (uint32_t)12))
#define IS_RTC_HOUR24(HOUR)   ((HOUR) <= (uint32_t)23)
#define IS_RTC_MINUTES(MINUTES)   ((MINUTES) <= (uint32_t)59)
#define IS_RTC_SECONDS(SECONDS)   ((SECONDS) <= (uint32_t)59)

Define Documentation

#define IS_RTC_ALARM (   ALARM)    (((ALARM) == RTC_ALARM_A) || ((ALARM) == RTC_ALARM_B))
#define IS_RTC_ALARM_DATE_WEEKDAY_DATE (   DATE)    (((DATE) >(uint32_t) 0) && ((DATE) <= (uint32_t)31))

Definition at line 845 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), and HAL_RTC_SetAlarm_IT().

#define IS_RTC_ALARM_DATE_WEEKDAY_SEL (   SEL)
Value:

Definition at line 855 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), and HAL_RTC_SetAlarm_IT().

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

Definition at line 847 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), and HAL_RTC_SetAlarm_IT().

#define IS_RTC_ALARM_MASK (   MASK)    (((MASK) & 0x7F7F7F7F) == (uint32_t)RESET)

Definition at line 858 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), and HAL_RTC_SetAlarm_IT().

#define IS_RTC_ALARM_SUB_SECOND_MASK (   MASK)
#define IS_RTC_ALARM_SUB_SECOND_VALUE (   VALUE)    ((VALUE) <= (uint32_t)0x00007FFF)

Definition at line 862 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), and HAL_RTC_SetAlarm_IT().

#define IS_RTC_ASYNCH_PREDIV (   PREDIV)    ((PREDIV) <= (uint32_t)0x7F)

Definition at line 881 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

#define IS_RTC_DATE (   DATE)    (((DATE) >= (uint32_t)1) && ((DATE) <= (uint32_t)31))

Definition at line 835 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetDate().

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

Definition at line 822 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetTime().

#define IS_RTC_FORMAT (   FORMAT)    (((FORMAT) == RTC_FORMAT_BIN) || ((FORMAT) == RTC_FORMAT_BCD))
#define IS_RTC_HOUR12 (   HOUR)    (((HOUR) > (uint32_t)0) && ((HOUR) <= (uint32_t)12))

Definition at line 885 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), and HAL_RTC_SetTime().

#define IS_RTC_HOUR24 (   HOUR)    ((HOUR) <= (uint32_t)23)

Definition at line 887 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), and HAL_RTC_SetTime().

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

Definition at line 808 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

#define IS_RTC_HOURFORMAT12 (   PM)    (((PM) == RTC_HOURFORMAT12_AM) || ((PM) == RTC_HOURFORMAT12_PM))

Definition at line 820 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), and HAL_RTC_SetTime().

#define IS_RTC_MINUTES (   MINUTES)    ((MINUTES) <= (uint32_t)59)

Definition at line 889 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), and HAL_RTC_SetTime().

#define IS_RTC_MONTH (   MONTH)    (((MONTH) >= (uint32_t)1) && ((MONTH) <= (uint32_t)12))

Definition at line 833 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetDate().

#define IS_RTC_OUTPUT_POL (   POL)
Value:

Definition at line 811 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

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

Definition at line 817 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

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

Definition at line 814 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

#define IS_RTC_SECONDS (   SECONDS)    ((SECONDS) <= (uint32_t)59)

Definition at line 891 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), and HAL_RTC_SetTime().

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

Definition at line 826 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetTime().

#define IS_RTC_SYNCH_PREDIV (   PREDIV)    ((PREDIV) <= (uint32_t)0x7FFF)

Definition at line 883 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

#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 837 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetDate().

#define IS_RTC_YEAR (   YEAR)    ((YEAR) <= (uint32_t)99)

Definition at line 831 of file stm32l4xx_hal_rtc.h.

Referenced by HAL_RTC_SetDate().