STM32F103xB HAL User Manual
Defines
RTC Private Macros
RTC

Defines

#define IS_RTC_ASYNCH_PREDIV(PREDIV)   (((PREDIV) <= 0xFFFFFU) || ((PREDIV) == RTC_AUTO_1_SECOND))
#define IS_RTC_HOUR24(HOUR)   ((HOUR) <= 23U)
#define IS_RTC_MINUTES(MINUTES)   ((MINUTES) <= 59U)
#define IS_RTC_SECONDS(SECONDS)   ((SECONDS) <= 59U)
#define IS_RTC_FORMAT(FORMAT)   (((FORMAT) == RTC_FORMAT_BIN) || ((FORMAT) == RTC_FORMAT_BCD))
#define IS_RTC_YEAR(YEAR)   ((YEAR) <= 99U)
#define IS_RTC_MONTH(MONTH)   (((MONTH) >= 1U) && ((MONTH) <= 12U))
#define IS_RTC_DATE(DATE)   (((DATE) >= 1U) && ((DATE) <= 31U))
#define IS_RTC_ALARM(ALARM)   ((ALARM) == RTC_ALARM_A)
#define IS_RTC_CALIB_OUTPUT(__OUTPUT__)

Define Documentation

#define IS_RTC_ALARM (   ALARM)    ((ALARM) == RTC_ALARM_A)
#define IS_RTC_ASYNCH_PREDIV (   PREDIV)    (((PREDIV) <= 0xFFFFFU) || ((PREDIV) == RTC_AUTO_1_SECOND))

Definition at line 43 of file stm32f1xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

#define IS_RTC_CALIB_OUTPUT (   __OUTPUT__)
Value:
(((__OUTPUT__) == RTC_OUTPUTSOURCE_NONE) || \
                                         ((__OUTPUT__) == RTC_OUTPUTSOURCE_CALIBCLOCK) || \
                                         ((__OUTPUT__) == RTC_OUTPUTSOURCE_ALARM) || \
                                         ((__OUTPUT__) == RTC_OUTPUTSOURCE_SECOND))

Definition at line 52 of file stm32f1xx_hal_rtc.h.

Referenced by HAL_RTC_Init().

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

Definition at line 50 of file stm32f1xx_hal_rtc.h.

Referenced by HAL_RTC_SetDate().

#define IS_RTC_FORMAT (   FORMAT)    (((FORMAT) == RTC_FORMAT_BIN) || ((FORMAT) == RTC_FORMAT_BCD))
#define IS_RTC_HOUR24 (   HOUR)    ((HOUR) <= 23U)

Definition at line 44 of file stm32f1xx_hal_rtc.h.

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

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

Definition at line 45 of file stm32f1xx_hal_rtc.h.

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

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

Definition at line 49 of file stm32f1xx_hal_rtc.h.

Referenced by HAL_RTC_SetDate().

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

Definition at line 46 of file stm32f1xx_hal_rtc.h.

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

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

Definition at line 48 of file stm32f1xx_hal_rtc.h.

Referenced by HAL_RTC_SetDate().