RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros
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)   ((YEAR) <= 99u)
 
#define IS_RTC_MONTH(MONTH)   (((MONTH) >= 1u) && ((MONTH) <= 12u))
 
#define IS_RTC_DATE(DATE)   (((DATE) >= 1u) && ((DATE) <= 31u))
 
#define IS_RTC_WEEKDAY(WEEKDAY)
 
#define IS_RTC_ALARM_DATE_WEEKDAY_DATE(DATE)   (((DATE) > 0u) && ((DATE) <= 31u))
 
#define IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(WEEKDAY)
 
#define IS_RTC_ALARM_DATE_WEEKDAY_SEL(SEL)
 
#define IS_RTC_ALARM_MASK(MASK)   (((MASK) & ~(RTC_ALARMMASK_ALL)) == 0u)
 
#define IS_RTC_ALARM(ALARM)
 
#define IS_RTC_ALARM_SUB_SECOND_VALUE(VALUE)   ((VALUE) <= RTC_ALRMASSR_SS)
 
#define IS_RTC_ALARM_SUB_SECOND_MASK(MASK)
 
#define IS_RTC_ASYNCH_PREDIV(PREDIV)   ((PREDIV) <= (RTC_PRER_PREDIV_A >> RTC_PRER_PREDIV_A_Pos))
 
#define IS_RTC_SYNCH_PREDIV(PREDIV)   ((PREDIV) <= (RTC_PRER_PREDIV_S >> RTC_PRER_PREDIV_S_Pos))
 
#define IS_RTC_HOUR12(HOUR)   (((HOUR) > 0u) && ((HOUR) <= 12u))
 
#define IS_RTC_HOUR24(HOUR)   ((HOUR) <= 23u)
 
#define IS_RTC_MINUTES(MINUTES)   ((MINUTES) <= 59u)
 
#define IS_RTC_SECONDS(SECONDS)   ((SECONDS) <= 59u)
 

Detailed Description

Macro Definition Documentation

◆ IS_RTC_ALARM

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

◆ IS_RTC_ALARM_DATE_WEEKDAY_SEL

#define IS_RTC_ALARM_DATE_WEEKDAY_SEL (   SEL)
Value:
(((SEL) == RTC_ALARMDATEWEEKDAYSEL_DATE) || \
((SEL) == RTC_ALARMDATEWEEKDAYSEL_WEEKDAY))

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

◆ IS_RTC_ALARM_SUB_SECOND_MASK

#define IS_RTC_ALARM_SUB_SECOND_MASK (   MASK)
Value:
(((MASK) == 0u) || \
(((MASK) >= RTC_ALARMSUBSECONDMASK_SS14_1) && ((MASK) <= RTC_ALARMSUBSECONDMASK_NONE)))
#define RTC_ALARMSUBSECONDMASK_SS14_1
Definition: stm32h7xx_hal_rtc.h:468

◆ IS_RTC_DAYLIGHT_SAVING

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

◆ IS_RTC_FORMAT

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

◆ IS_RTC_HOUR_FORMAT

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

◆ IS_RTC_HOURFORMAT12

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

◆ IS_RTC_OUTPUT

#define IS_RTC_OUTPUT (   OUTPUT)
Value:
(((OUTPUT) == RTC_OUTPUT_DISABLE) || \
((OUTPUT) == RTC_OUTPUT_ALARMA) || \
((OUTPUT) == RTC_OUTPUT_ALARMB) || \
((OUTPUT) == RTC_OUTPUT_WAKEUP))

◆ IS_RTC_OUTPUT_POL

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

◆ IS_RTC_OUTPUT_REMAP

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

◆ IS_RTC_OUTPUT_TYPE

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

◆ IS_RTC_STORE_OPERATION

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

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