/* param base IRTC peripheral base address param datetime Pointer to a structure where the date and time details are stored.  */
void IRTC_SetDaylightTime(RTC_Type *base, const irtc_daylight_time_t *datetime)
/* param base IRTC peripheral base address param datetime Pointer to a structure where the date and time details are stored.  */
void IRTC_SetDaylightTime(RTC_Type *base, const irtc_daylight_time_t *datetime)
{
    assert(NULL != datetime);
    base->CTRL &= ~(uint16_t)RTC_CTRL_DST_EN_MASK;
    base->DST_MONTH =
        RTC_DST_MONTH_DST_START_MONTH(datetime->startMonth) | RTC_DST_MONTH_DST_END_MONTH(datetime->endMonth);
    base->DST_DAY = RTC_DST_DAY_DST_START_DAY(datetime->startDay) | RTC_DST_DAY_DST_END_DAY(datetime->endDay);
    base->DST_HOUR = RTC_DST_HOUR_DST_START_HOUR(datetime->startHour) | RTC_DST_HOUR_DST_END_HOUR(datetime->endHour);
    base->CTRL |= RTC_CTRL_DST_EN_MASK;
}