50 #ifndef ti_dl_dl_rtc__include 51 #define ti_dl_dl_rtc__include 56 #include <ti/devices/msp/msp.h> 59 #ifdef __MSPM0_HAS_RTC__ 74 #define DL_RTC_INTERRUPT_CALENDAR_ALARM1 (RTC_CPU_INT_IMASK_RTCA1_SET) 79 #define DL_RTC_INTERRUPT_CALENDAR_ALARM2 (RTC_CPU_INT_IMASK_RTCA2_SET) 84 #define DL_RTC_INTERRUPT_PRESCALER0 (RTC_CPU_INT_IMASK_RT0PS_SET) 89 #define DL_RTC_INTERRUPT_PRESCALER1 (RTC_CPU_INT_IMASK_RT1PS_SET) 94 #define DL_RTC_INTERRUPT_INTERVAL_ALARM (RTC_CPU_INT_IMASK_RTCTEV_SET) 99 #define DL_RTC_INTERRUPT_READY (RTC_CPU_INT_IMASK_RTCRDY_SET) 110 #define DL_RTC_EVENT_CALENDAR_ALARM1 (RTC_GEN_EVENT_IMASK_RTCA1_SET) 115 #define DL_RTC_EVENT_CALENDAR_ALARM2 (RTC_GEN_EVENT_IMASK_RTCA2_SET) 120 #define DL_RTC_EVENT_PRESCALER0 (RTC_GEN_EVENT_IMASK_RT0PS_SET) 125 #define DL_RTC_EVENT_PRESCALER1 (RTC_GEN_EVENT_IMASK_RT1PS_SET) 130 #define DL_RTC_EVENT_INTERVAL_ALARM (RTC_GEN_EVENT_IMASK_RTCTEV_SET) 135 #define DL_RTC_EVENT_READY (RTC_GEN_EVENT_IMASK_RTCRDY_SET) 325 rtc->GPRCM.PWREN = (RTC_PWREN_KEY_UNLOCK_W | RTC_PWREN_ENABLE_ENABLE);
336 rtc->GPRCM.PWREN = (RTC_PWREN_KEY_UNLOCK_W | RTC_PWREN_ENABLE_DISABLE);
350 (rtc->GPRCM.PWREN & RTC_PWREN_ENABLE_MASK) == RTC_PWREN_ENABLE_ENABLE);
362 (RTC_RSTCTL_KEY_UNLOCK_W | RTC_RSTCTL_RESETSTKYCLR_CLR |
363 RTC_RSTCTL_RESETASSERT_ASSERT);
377 return ((rtc->GPRCM.STAT & RTC_STAT_RESETSTKY_MASK) ==
378 RTC_STAT_RESETSTKY_RESET);
391 rtc->CLKCTL = RTC_CLKCTL_MODCLKEN_ENABLE;
402 rtc->CLKCTL = RTC_CLKCTL_MODCLKEN_DISABLE;
414 rtc->DBGCTL |= RTC_DBGCTL_DBGINT_ON;
427 rtc->DBGCTL &= ~(RTC_DBGCTL_DBGINT_MASK);
438 rtc->DBGCTL |= RTC_DBGCTL_DBGRUN_RUN;
449 rtc->DBGCTL &= ~(RTC_DBGCTL_DBGRUN_MASK);
462 RTC_Regs *rtc, DL_RTC_FORMAT formatSelect)
464 rtc->CTL |= (uint32_t) formatSelect;
479 uint32_t format = (rtc->CTL & RTC_CTL_RTCBCD_MASK);
481 return (DL_RTC_FORMAT)(format);
501 RTC_Regs *rtc, DL_RTC_INTERVAL_ALARM alarmEvent)
504 &rtc->CTL, (uint32_t) alarmEvent, RTC_CTL_RTCTEVTX_MASK);
523 uint32_t alarm = (rtc->CTL & RTC_CTL_RTCTEVTX_MASK);
525 return (DL_RTC_INTERVAL_ALARM)(alarm);
547 return ((rtc->STA & RTC_STA_RTCRDY_MASK) == RTC_STA_RTCRDY_READY);
561 return ((rtc->STA & RTC_STA_RTCTCRDY_MASK) == RTC_STA_RTCTCRDY_READY);
575 return ((rtc->STA & RTC_STA_RTCTCOK_MASK) == RTC_STA_RTCTCOK_OK);
591 RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_FREQUENCY offsetFrequency)
594 &rtc->CAL, (uint32_t) offsetFrequency, RTC_CAL_RTCCALFX_MASK);
613 DL_RTC_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue)
616 ((uint32_t) offsetSign | (uint32_t) offsetValue),
617 (RTC_CAL_RTCOCALX_MASK | RTC_CAL_RTCOCALS_MASK));
643 DL_RTC_OFFSET_CALIBRATION_FREQUENCY offsetFrequency,
644 DL_RTC_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue)
646 rtc->CAL = (offsetValue & RTC_CAL_RTCOCALX_MASK) |
647 (uint32_t) offsetFrequency | (uint32_t) offsetSign;
659 __STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_FREQUENCY
662 uint32_t freq = (rtc->CAL & RTC_CAL_RTCCALFX_MASK);
664 return (DL_RTC_OFFSET_CALIBRATION_FREQUENCY)(freq);
679 uint32_t sign = (rtc->CAL & RTC_CAL_RTCOCALS_MASK);
681 return (DL_RTC_OFFSET_CALIBRATION_SIGN)(sign);
695 return (rtc->CAL & RTC_CAL_RTCOCALX_MASK);
715 DL_RTC_TEMP_CALIBRATION offsetDirection, uint32_t offsetValue)
718 (offsetValue & RTC_TCMP_RTCTCMPX_MASK) | (uint32_t) offsetDirection;
745 RTC_Regs *rtc, uint8_t seconds)
747 rtc->SEC = ((uint32_t) seconds << RTC_SEC_SECLOWBCD_OFS) &
748 (RTC_SEC_SECLOWBCD_MASK | RTC_SEC_SECHIGHBCD_MASK);
768 (rtc->SEC & (RTC_SEC_SECLOWBCD_MASK | RTC_SEC_SECHIGHBCD_MASK)) >>
769 RTC_SEC_SECLOWBCD_OFS);
780 RTC_Regs *rtc, uint8_t minutes)
782 rtc->MIN = ((uint32_t) minutes << RTC_MIN_MINLOWBCD_OFS) &
783 (RTC_MIN_MINLOWBCD_MASK | RTC_MIN_MINHIGHBCD_MASK);
803 (rtc->MIN & (RTC_MIN_MINLOWBCD_MASK | RTC_MIN_MINHIGHBCD_MASK)) >>
804 RTC_MIN_MINLOWBCD_OFS);
816 rtc->HOUR = ((uint32_t) hours << RTC_HOUR_HOURLOWBCD_OFS) &
817 (RTC_HOUR_HOURLOWBCD_MASK | RTC_HOUR_HOURHIGHBCD_MASK);
837 (rtc->HOUR & (RTC_HOUR_HOURLOWBCD_MASK | RTC_HOUR_HOURHIGHBCD_MASK)) >>
838 RTC_HOUR_HOURLOWBCD_OFS);
869 return (uint8_t)(rtc->DAY & RTC_DAY_DOW_MASK);
880 RTC_Regs *rtc, uint8_t day)
883 (RTC_DAY_DOMLOWBCD_MASK | RTC_DAY_DOMHIGHBCD_MASK));
903 (rtc->DAY & (RTC_DAY_DOMLOWBCD_MASK | RTC_DAY_DOMHIGHBCD_MASK)) >>
904 RTC_DAY_DOMLOWBCD_OFS);
916 rtc->MON = ((uint32_t) month << RTC_MON_MONLOWBCD_OFS) &
917 (RTC_MON_MONLOWBCD_MASK | RTC_MON_MONHIGHBCD_MASK);
937 (rtc->MON & (RTC_MON_MONLOWBCD_MASK | RTC_MON_MONHIGHBCD_MASK)) >>
938 RTC_MON_MONLOWBCD_OFS);
950 rtc->YEAR = ((uint32_t) year << RTC_YEAR_YEARLOWESTBCD_OFS) &
951 (RTC_YEAR_YEARLOWESTBCD_MASK | RTC_YEAR_DECADEBCD_MASK |
952 RTC_YEAR_CENTLOWBCD_MASK | RTC_YEAR_CENTHIGHBCD_MASK);
973 (RTC_YEAR_YEARLOWESTBCD_MASK | RTC_YEAR_DECADEBCD_MASK |
974 RTC_YEAR_CENTLOWBCD_MASK | RTC_YEAR_CENTHIGHBCD_MASK)) >>
975 RTC_YEAR_YEARLOWESTBCD_OFS);
986 rtc->A1MIN |= RTC_A1MIN_AMINAEBCD_ENABLE;
997 rtc->A1MIN &= ~(RTC_A1MIN_AMINAEBCD_MASK);
1010 rtc->A1MIN = ((uint32_t) minutes << RTC_A1MIN_AMINLOWBCD_OFS) &
1011 (RTC_A1MIN_AMINLOWBCD_MASK | RTC_A1MIN_AMINHIGHBCD_MASK);
1026 return (uint8_t)((rtc->A1MIN & (RTC_A1MIN_AMINLOWBCD_MASK |
1027 RTC_A1MIN_AMINHIGHBCD_MASK)) >>
1028 RTC_A1MIN_AMINLOWBCD_OFS);
1039 rtc->A1HOUR |= RTC_A1HOUR_AHOURAEBIN_ENABLE;
1050 rtc->A1HOUR &= ~(RTC_A1HOUR_AHOURAEBIN_MASK);
1062 rtc->A1HOUR = ((uint32_t) hours << RTC_A1HOUR_AHOURLOWBCD_OFS) &
1063 (RTC_A1HOUR_AHOURLOWBCD_MASK | RTC_A1HOUR_AHOURHIGHBCD_MASK);
1078 return (uint8_t)((rtc->A1HOUR & (RTC_A1HOUR_AHOURLOWBCD_MASK |
1079 RTC_A1HOUR_AHOURHIGHBCD_MASK)) >>
1080 RTC_A1HOUR_AHOURLOWBCD_OFS);
1091 rtc->A1DAY |= RTC_A1DAY_ADOWAE_ENABLE;
1102 rtc->A1DAY &= ~(RTC_A1DAY_ADOWAE_MASK);
1129 return (uint8_t)(rtc->DAY & RTC_A1DAY_ADOW_MASK);
1140 rtc->A1DAY |= RTC_A1DAY_ADOMAEBCD_ENABLE;
1151 rtc->A1DAY &= ~(RTC_A1DAY_ADOMAEBCD_MASK);
1164 (uint32_t) day << RTC_A1DAY_ADOMLOWBCD_OFS,
1165 (RTC_A1DAY_ADOMLOWBCD_MASK | RTC_A1DAY_ADOMHIGHBCD_MASK));
1180 return (uint8_t)((rtc->A1DAY & (RTC_A1DAY_ADOMLOWBCD_MASK |
1181 RTC_A1DAY_ADOMHIGHBCD_MASK)) >>
1182 RTC_A1DAY_ADOMLOWBCD_OFS);
1193 rtc->A2MIN |= RTC_A2MIN_AMINAEBCD_ENABLE;
1204 rtc->A2MIN &= ~(RTC_A2MIN_AMINAEBCD_MASK);
1217 rtc->A2MIN = ((uint32_t) minutes << RTC_A2MIN_AMINLOWBCD_OFS) &
1218 (RTC_A2MIN_AMINLOWBCD_MASK | RTC_A2MIN_AMINHIGHBCD_MASK);
1233 return (uint8_t)((rtc->A2MIN & (RTC_A2MIN_AMINLOWBCD_MASK |
1234 RTC_A2MIN_AMINHIGHBCD_MASK)) >>
1235 RTC_A2MIN_AMINLOWBCD_OFS);
1246 rtc->A2HOUR |= RTC_A2HOUR_AHOURAEBIN_ENABLE;
1257 rtc->A2HOUR &= ~(RTC_A2HOUR_AHOURAEBIN_MASK);
1269 rtc->A2HOUR = ((uint32_t) hours << RTC_A2HOUR_AHOURLOWBCD_OFS) &
1270 (RTC_A2HOUR_AHOURLOWBCD_MASK | RTC_A2HOUR_AHOURHIGHBCD_MASK);
1285 return (uint8_t)((rtc->A2HOUR & (RTC_A2HOUR_AHOURLOWBCD_MASK |
1286 RTC_A2HOUR_AHOURHIGHBCD_MASK)) >>
1287 RTC_A2HOUR_AHOURLOWBCD_OFS);
1298 rtc->A2DAY |= RTC_A2DAY_ADOWAE_ENABLE;
1309 rtc->A2DAY &= ~(RTC_A2DAY_ADOWAE_MASK);
1336 return (uint8_t)(rtc->DAY & RTC_A2DAY_ADOW_MASK);
1347 rtc->A2DAY |= RTC_A2DAY_ADOMAEBCD_ENABLE;
1358 rtc->A2DAY &= ~(RTC_A2DAY_ADOMAEBCD_MASK);
1371 (uint32_t) day << RTC_A2DAY_ADOMLOWBCD_OFS,
1372 (RTC_A2DAY_ADOMLOWBCD_MASK | RTC_A2DAY_ADOMHIGHBCD_MASK));
1387 return (uint8_t)((rtc->A2DAY & (RTC_A2DAY_ADOMLOWBCD_MASK |
1388 RTC_A2DAY_ADOMHIGHBCD_MASK)) >>
1389 RTC_A2DAY_ADOMLOWBCD_OFS);
1400 RTC_Regs *rtc, uint8_t seconds)
1402 rtc->SEC = (seconds & RTC_SEC_SECBIN_MASK);
1421 return (uint8_t)(rtc->SEC & RTC_SEC_SECBIN_MASK);
1432 RTC_Regs *rtc, uint8_t minutes)
1434 rtc->MIN = (minutes & RTC_MIN_MINBIN_MASK);
1453 return (uint8_t)(rtc->MIN & RTC_MIN_MINBIN_MASK);
1464 RTC_Regs *rtc, uint8_t hours)
1466 rtc->HOUR = (hours & RTC_HOUR_HOURBIN_MASK);
1485 return (uint8_t)(rtc->HOUR & RTC_HOUR_HOURBIN_MASK);
1496 RTC_Regs *rtc, uint8_t day)
1517 return (uint8_t)(rtc->DAY & RTC_DAY_DOW_MASK);
1528 RTC_Regs *rtc, uint8_t day)
1531 &rtc->DAY, (uint32_t) day << RTC_DAY_DOMBIN_OFS, RTC_DAY_DOMBIN_MASK);
1550 return (uint8_t)((rtc->DAY & RTC_DAY_DOMBIN_MASK) >> RTC_DAY_DOMBIN_OFS);
1561 RTC_Regs *rtc, uint8_t month)
1563 rtc->MON = (month & RTC_MON_MONBIN_MASK);
1582 return (uint8_t)(rtc->MON & RTC_MON_MONBIN_MASK);
1594 rtc->YEAR = ((uint32_t) year &
1595 (RTC_YEAR_YEARLOWBIN_MASK | RTC_YEAR_YEARHIGHBIN_MASK));
1615 rtc->YEAR & (RTC_YEAR_YEARLOWBIN_MASK | RTC_YEAR_YEARHIGHBIN_MASK));
1626 rtc->A1MIN |= RTC_A1MIN_AMINAEBIN_ENABLE;
1637 rtc->A1MIN &= ~(RTC_A1MIN_AMINAEBIN_MASK);
1649 RTC_Regs *rtc, uint8_t minutes)
1651 rtc->A1MIN = (minutes & RTC_A1MIN_AMINBIN_MASK);
1666 return (uint8_t)(rtc->A1MIN & RTC_A1MIN_AMINBIN_MASK);
1677 rtc->A1HOUR |= RTC_A1HOUR_AHOURAEBIN_ENABLE;
1688 rtc->A1HOUR &= ~(RTC_A1HOUR_AHOURAEBIN_MASK);
1700 rtc->A1HOUR = (hours & RTC_A1HOUR_AHOURBIN_MASK);
1715 return (uint8_t)(rtc->A1HOUR & RTC_A1HOUR_AHOURBIN_MASK);
1726 rtc->A1DAY |= RTC_A1DAY_ADOWAE_ENABLE;
1737 rtc->A1DAY &= ~(RTC_A1DAY_ADOWAE_MASK);
1748 RTC_Regs *rtc, uint8_t day)
1765 return (uint8_t)(rtc->A1DAY & RTC_A1DAY_ADOW_MASK);
1776 rtc->A1DAY |= RTC_A1DAY_ADOMAEBIN_ENABLE;
1787 rtc->A1DAY &= ~(RTC_A1DAY_ADOMAEBIN_MASK);
1798 RTC_Regs *rtc, uint8_t day)
1801 RTC_A1DAY_ADOMBIN_MASK);
1817 (rtc->A1DAY & RTC_A1DAY_ADOMBIN_MASK) >> RTC_A1DAY_ADOMBIN_OFS);
1828 rtc->A2MIN |= RTC_A2MIN_AMINAEBIN_ENABLE;
1839 rtc->A2MIN &= ~(RTC_A2MIN_AMINAEBIN_MASK);
1851 RTC_Regs *rtc, uint8_t minutes)
1853 rtc->A2MIN = (minutes & RTC_A2MIN_AMINBIN_MASK);
1868 return (uint8_t)(rtc->A2MIN & RTC_A2MIN_AMINBIN_MASK);
1879 rtc->A2HOUR |= RTC_A2HOUR_AHOURAEBIN_ENABLE;
1890 rtc->A2HOUR &= ~(RTC_A2HOUR_AHOURAEBIN_MASK);
1902 rtc->A2HOUR = (hours & RTC_A2HOUR_AHOURBIN_MASK);
1917 return (uint8_t)(rtc->A2HOUR & RTC_A2HOUR_AHOURBIN_MASK);
1928 rtc->A2DAY |= RTC_A2DAY_ADOWAE_ENABLE;
1939 rtc->A2DAY &= ~(RTC_A2DAY_ADOWAE_MASK);
1950 RTC_Regs *rtc, uint8_t day)
1967 return (uint8_t)(rtc->A2DAY & RTC_A2DAY_ADOW_MASK);
1978 rtc->A2DAY |= RTC_A2DAY_ADOMAEBIN_ENABLE;
1989 rtc->A2DAY &= ~(RTC_A2DAY_ADOMAEBIN_MASK);
2000 RTC_Regs *rtc, uint8_t day)
2003 RTC_A2DAY_ADOMBIN_MASK);
2019 (rtc->A2DAY & RTC_A2DAY_ADOMBIN_MASK) >> RTC_A2DAY_ADOMBIN_OFS);
2039 DL_RTC_PRESCALER0_DIVIDE prescaler0Divider,
2040 DL_RTC_PRESCALER1_DIVIDE prescaler1Divider)
2042 rtc->PSCTL = (((uint32_t) prescaler0Divider & RTC_PSCTL_RT0IP_MASK) |
2043 ((uint32_t) prescaler1Divider & RTC_PSCTL_RT1IP_MASK));
2056 RTC_Regs *rtc, DL_RTC_PRESCALER0_DIVIDE prescaler0Divider)
2059 &rtc->PSCTL, (uint32_t) prescaler0Divider, RTC_PSCTL_RT0IP_MASK);
2072 RTC_Regs *rtc, DL_RTC_PRESCALER1_DIVIDE prescaler1Divider)
2075 &rtc->PSCTL, (uint32_t) prescaler1Divider, RTC_PSCTL_RT1IP_MASK);
2090 uint32_t prescaler = (rtc->PSCTL & RTC_PSCTL_RT0IP_MASK);
2092 return (DL_RTC_PRESCALER0_DIVIDE)(prescaler);
2106 uint32_t prescaler = (rtc->PSCTL & RTC_PSCTL_RT1IP_MASK);
2108 return (DL_RTC_PRESCALER1_DIVIDE)(prescaler);
2120 RTC_Regs *rtc, uint32_t interruptMask)
2122 rtc->CPU_INT.IMASK |= interruptMask;
2134 RTC_Regs *rtc, uint32_t interruptMask)
2136 rtc->CPU_INT.IMASK &= ~(interruptMask);
2152 RTC_Regs *rtc, uint32_t interruptMask)
2154 return (rtc->CPU_INT.IMASK & interruptMask);
2175 RTC_Regs *rtc, uint32_t interruptMask)
2177 return (rtc->CPU_INT.MIS & interruptMask);
2196 RTC_Regs *rtc, uint32_t interruptMask)
2198 return (rtc->CPU_INT.RIS & interruptMask);
2215 return (DL_RTC_IIDX)(rtc->CPU_INT.IIDX);
2227 RTC_Regs *rtc, uint32_t interruptMask)
2229 rtc->CPU_INT.ICLR = interruptMask;
2241 rtc->GEN_EVENT.IMASK |= (eventMask);
2253 rtc->GEN_EVENT.IMASK &= ~(eventMask);
2268 RTC_Regs *rtc, uint32_t eventMask)
2270 return ((rtc->GEN_EVENT.IMASK) & (eventMask));
2290 RTC_Regs *rtc, uint32_t eventMask)
2292 return ((rtc->GEN_EVENT.MIS) & eventMask);
2310 RTC_Regs *rtc, uint32_t eventMask)
2312 return ((rtc->GEN_EVENT.RIS) & eventMask);
2323 RTC_Regs *rtc, uint32_t eventMask)
2325 rtc->GEN_EVENT.ICLR |= (eventMask);
2338 rtc->FPUB_0 = (chanID & RTC_FPUB_0_CHANID_MAXIMUM);
2352 return (uint8_t)(rtc->FPUB_0 & RTC_FPUB_0_CHANID_MAXIMUM);
2368 RTC_Regs *rtc,
DL_RTC_Calendar calendarTime, DL_RTC_FORMAT formatSelect);
__STATIC_INLINE void DL_RTC_disableAlarm2HoursBCD(RTC_Regs *rtc)
Disable hours in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1255
uint8_t hours
Definition: dl_rtc.h:278
__STATIC_INLINE void DL_RTC_enableAlarm1HoursBCD(RTC_Regs *rtc)
Enable hours in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1037
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfMonthBCD(RTC_Regs *rtc)
Disable day of the month in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1149
uint16_t year
Definition: dl_rtc.h:314
__STATIC_INLINE void DL_Common_updateReg(volatile uint32_t *reg, uint32_t val, uint32_t mask)
Writes value to specified register - retaining bits unaffected by mask.
Definition: dl_common.h:63
uint8_t dayOfMonth
Definition: dl_rtc.h:284
__STATIC_INLINE uint8_t DL_RTC_getCalendarSecondsBCD(RTC_Regs *rtc)
Get the seconds in in BCD the RTC calendar.
Definition: dl_rtc.h:765
void DL_RTC_disableCalendarAlarm1(RTC_Regs *rtc)
Disable calendar alarm 1.
__STATIC_INLINE void DL_RTC_setAlarm1DayOfWeekBinary(RTC_Regs *rtc, uint8_t day)
Set the day of the week in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1747
__STATIC_INLINE void DL_RTC_disableEvent(RTC_Regs *rtc, uint32_t eventMask)
Disable RTC event.
Definition: dl_rtc.h:2251
__STATIC_INLINE void DL_RTC_setAlarm2DayOfMonthBCD(RTC_Regs *rtc, uint8_t day)
Set the day of the month in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1368
DL_RTC_OFFSET_CALIBRATION_FREQUENCY
Definition: dl_rtc.h:173
Calendar struct to use in DL_RTC_initCalendar()
Definition: dl_rtc.h:293
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfMonthBinary(RTC_Regs *rtc)
Disable day of the month in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1987
__STATIC_INLINE DL_RTC_INTERVAL_ALARM DL_RTC_getIntervalAlarm(RTC_Regs *rtc)
Gets the interval alarm event condition.
Definition: dl_rtc.h:521
__STATIC_INLINE void DL_RTC_setAlarm2HoursBinary(RTC_Regs *rtc, uint8_t hours)
Set the hours in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1900
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfWeekBCD(RTC_Regs *rtc)
Get the day of the week in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1127
void DL_RTC_initCalendar(RTC_Regs *rtc, DL_RTC_Calendar calendarTime, DL_RTC_FORMAT formatSelect)
Initializes the settings to operate the RTC in Calendar mode.
__STATIC_INLINE void DL_RTC_disableAlarm2HoursBinary(RTC_Regs *rtc)
Disable hours in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1888
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfMonthBinary(RTC_Regs *rtc)
Get the day of the month in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1814
__STATIC_INLINE uint8_t DL_RTC_getPublisherChanID(RTC_Regs *rtc)
Gets the event publisher channel ID.
Definition: dl_rtc.h:2350
__STATIC_INLINE DL_RTC_FORMAT DL_RTC_getClockFormat(RTC_Regs *rtc)
Get the format currently being used for counting the real-time clock.
Definition: dl_rtc.h:477
__STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_FREQUENCY DL_RTC_getOffsetCalibrationFrequency(RTC_Regs *rtc)
Gets the offset calibration frequency.
Definition: dl_rtc.h:660
__STATIC_INLINE void DL_RTC_setAlarm1DayOfMonthBCD(RTC_Regs *rtc, uint8_t day)
Set the day of the month in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1161
__STATIC_INLINE uint8_t DL_RTC_getCalendarMinutesBinary(RTC_Regs *rtc)
Get the minutes in binary in the RTC calendar.
Definition: dl_rtc.h:1451
__STATIC_INLINE uint16_t DL_RTC_getCalendarYearBCD(RTC_Regs *rtc)
Get the year in in BCD the RTC calendar.
Definition: dl_rtc.h:969
__STATIC_INLINE void DL_RTC_disableAlarm1HoursBCD(RTC_Regs *rtc)
Disable hours in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1048
__STATIC_INLINE void DL_RTC_setAlarm2HoursBCD(RTC_Regs *rtc, uint8_t hours)
Set the hours in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1267
__STATIC_INLINE void DL_RTC_setPrescalerEvents(RTC_Regs *rtc, DL_RTC_PRESCALER0_DIVIDE prescaler0Divider, DL_RTC_PRESCALER1_DIVIDE prescaler1Divider)
Set prescale interrupt interval for timer 0 and 1.
Definition: dl_rtc.h:2038
__STATIC_INLINE void DL_RTC_enableAlarm1MinutesBinary(RTC_Regs *rtc)
Enable minutes in binary in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1624
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfWeekBinary(RTC_Regs *rtc)
Disable day of the week in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1735
__STATIC_INLINE void DL_RTC_setAlarm2MinutesBCD(RTC_Regs *rtc, uint8_t minutes)
Set the minutes in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1215
__STATIC_INLINE void DL_RTC_setAlarm2MinutesBinary(RTC_Regs *rtc, uint8_t minutes)
Set the minutes in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1850
DL_RTC_Calendar DL_RTC_getCalendarTime(RTC_Regs *rtc)
Returns the Calendar Time.
__STATIC_INLINE uint32_t DL_RTC_getTemperatureCompensation(RTC_Regs *rtc)
Get the RTC temperature compensation.
Definition: dl_rtc.h:732
__STATIC_INLINE void DL_RTC_setAlarm1HoursBCD(RTC_Regs *rtc, uint8_t hours)
Set the hours in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1060
__STATIC_INLINE void DL_RTC_enableAlarm2MinutesBinary(RTC_Regs *rtc)
Enable minutes in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1826
uint8_t minutes
Definition: dl_rtc.h:275
DL_RTC_PRESCALER1_DIVIDE
Definition: dl_rtc.h:229
__STATIC_INLINE void DL_RTC_disableAlarm2MinutesBCD(RTC_Regs *rtc)
Disable minutes in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1202
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfWeekBCD(RTC_Regs *rtc)
Get the day of the week in BCD in the RTC calendar.
Definition: dl_rtc.h:867
__STATIC_INLINE uint8_t DL_RTC_getAlarm1MinutesBCD(RTC_Regs *rtc)
Get the minutes in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1024
__STATIC_INLINE void DL_RTC_setCalendarDayOfMonthBinary(RTC_Regs *rtc, uint8_t day)
Set the day of the month in binary in the RTC calendar.
Definition: dl_rtc.h:1527
void DL_RTC_setCalendarAlarm1(RTC_Regs *rtc, DL_RTC_CalendarAlarm alarmTime)
Set calendar alarm 1.
void DL_RTC_disableCalendarAlarm2(RTC_Regs *rtc)
Disable calendar alarm 2.
DL_RTC_CalendarAlarm DL_RTC_getCalendarAlarm1(RTC_Regs *rtc)
Get calendar alarm 1.
__STATIC_INLINE bool DL_RTC_isReadyToCalibrate(RTC_Regs *rtc)
Checks if RTC is ready to get new calibration values.
Definition: dl_rtc.h:559
DL_RTC_COMPENSATION_STATUS
Definition: dl_rtc.h:149
__STATIC_INLINE uint8_t DL_RTC_getCalendarHoursBinary(RTC_Regs *rtc)
Get the hours in binary in the RTC calendar.
Definition: dl_rtc.h:1483
__STATIC_INLINE uint8_t DL_RTC_getAlarm2HoursBinary(RTC_Regs *rtc)
Get the hours in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1915
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfWeekBCD(RTC_Regs *rtc)
Enable day of the week in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1089
__STATIC_INLINE uint32_t DL_RTC_getOffsetCalibrationValue(RTC_Regs *rtc)
Gets the offset error calibration value.
Definition: dl_rtc.h:693
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfMonthBCD(RTC_Regs *rtc)
Get the day of the month in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1385
__STATIC_INLINE uint32_t DL_RTC_getRawInterruptStatus(RTC_Regs *rtc, uint32_t interruptMask)
Check interrupt flag of any RTC interrupt.
Definition: dl_rtc.h:2195
DL_RTC_OFFSET_CALIBRATION_SIGN
Definition: dl_rtc.h:165
__STATIC_INLINE uint16_t DL_RTC_getCalendarYearBinary(RTC_Regs *rtc)
Get the year in binary in the RTC calendar.
Definition: dl_rtc.h:1612
__STATIC_INLINE void DL_RTC_setCalendarDayOfWeekBCD(RTC_Regs *rtc, uint8_t day)
Set the day of the week in BCD in the RTC calendar.
Definition: dl_rtc.h:848
__STATIC_INLINE void DL_RTC_setCalendarHoursBCD(RTC_Regs *rtc, uint8_t hours)
Set the hours in in BCD the RTC calendar.
Definition: dl_rtc.h:814
__STATIC_INLINE void DL_RTC_setCalendarSecondsBCD(RTC_Regs *rtc, uint8_t seconds)
Set the seconds in BCD in the RTC calendar.
Definition: dl_rtc.h:744
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfWeekBinary(RTC_Regs *rtc)
Enable day of the week in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1926
__STATIC_INLINE void DL_RTC_clearInterruptStatus(RTC_Regs *rtc, uint32_t interruptMask)
Clear pending RTC interrupts.
Definition: dl_rtc.h:2226
__STATIC_INLINE void DL_RTC_disableClockControl(RTC_Regs *rtc)
Disables the supply of the 32kHz clock to the RTC.
Definition: dl_rtc.h:400
__STATIC_INLINE void DL_RTC_setCalendarDayOfWeekBinary(RTC_Regs *rtc, uint8_t day)
Set the day of the week in binary in the RTC calendar.
Definition: dl_rtc.h:1495
__STATIC_INLINE void DL_RTC_setAlarm1HoursBinary(RTC_Regs *rtc, uint8_t hours)
Set the hours in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1698
__STATIC_INLINE void DL_RTC_setPeriodicAlarm0(RTC_Regs *rtc, DL_RTC_PRESCALER0_DIVIDE prescaler0Divider)
Set periodic alarm 0.
Definition: dl_rtc.h:2055
__STATIC_INLINE void DL_RTC_setCalendarHoursBinary(RTC_Regs *rtc, uint8_t hours)
Set the hours in binary in the RTC calendar.
Definition: dl_rtc.h:1463
__STATIC_INLINE uint8_t DL_RTC_getAlarm1HoursBinary(RTC_Regs *rtc)
Get the hours in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1713
uint8_t seconds
Definition: dl_rtc.h:296
void DL_RTC_enableCalendarAlarm1(RTC_Regs *rtc)
Enable calendar alarm 1.
uint8_t dayOfWeek
Definition: dl_rtc.h:281
__STATIC_INLINE void DL_RTC_setCalendarMinutesBinary(RTC_Regs *rtc, uint8_t minutes)
Set the minutes in binary in the RTC calendar.
Definition: dl_rtc.h:1431
DL_RTC_COMPENSATION_WRITE_RESULT
Definition: dl_rtc.h:157
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfMonthBinary(RTC_Regs *rtc)
Enable day of the month in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1976
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfWeekBinary(RTC_Regs *rtc)
Get the day of the week in binary in the RTC calendar.
Definition: dl_rtc.h:1515
__STATIC_INLINE void DL_RTC_reset(RTC_Regs *rtc)
Resets all registers in the RTC module.
Definition: dl_rtc.h:359
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfWeekBCD(RTC_Regs *rtc)
Get the day of the week in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1334
__STATIC_INLINE void DL_RTC_enableAlarm1HoursBinary(RTC_Regs *rtc)
Enable hours in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1675
__STATIC_INLINE void DL_RTC_setCalendarSecondsBinary(RTC_Regs *rtc, uint8_t seconds)
Set the seconds in binary the RTC calendar.
Definition: dl_rtc.h:1399
__STATIC_INLINE void DL_RTC_disableDebugMode(RTC_Regs *rtc)
Disables the RTC modules debug mode.
Definition: dl_rtc.h:447
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfWeekBinary(RTC_Regs *rtc)
Get the day of the week in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1763
__STATIC_INLINE uint8_t DL_RTC_getAlarm1MinutesBinary(RTC_Regs *rtc)
Get the minutes in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1664
__STATIC_INLINE void DL_RTC_setPublisherChanID(RTC_Regs *rtc, uint8_t chanID)
Sets the event publisher channel ID.
Definition: dl_rtc.h:2336
__STATIC_INLINE void DL_RTC_setPeriodicAlarm1(RTC_Regs *rtc, DL_RTC_PRESCALER1_DIVIDE prescaler1Divider)
Set periodic alarm 1.
Definition: dl_rtc.h:2071
uint8_t dayOfMonth
Definition: dl_rtc.h:308
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfMonthBinary(RTC_Regs *rtc)
Enable day of the month in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1774
DL_RTC_INTERVAL_ALARM
Definition: dl_rtc.h:201
__STATIC_INLINE void DL_RTC_setAlarm2DayOfWeekBinary(RTC_Regs *rtc, uint8_t day)
Set the day of the week in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1949
__STATIC_INLINE void DL_RTC_setCalendarMonthBinary(RTC_Regs *rtc, uint8_t month)
Set the month in binary in the RTC calendar.
Definition: dl_rtc.h:1560
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfWeekBCD(RTC_Regs *rtc)
Disable day of the week in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1307
uint8_t minutes
Definition: dl_rtc.h:299
__STATIC_INLINE DL_RTC_IIDX DL_RTC_getPendingInterrupt(RTC_Regs *rtc)
Get highest priority pending RTC interrupt.
Definition: dl_rtc.h:2213
__STATIC_INLINE uint8_t DL_RTC_getAlarm2MinutesBCD(RTC_Regs *rtc)
Get the minutes in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1231
__STATIC_INLINE void DL_RTC_setOffsetCalibrationFrequency(RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_FREQUENCY offsetFrequency)
Sets output frequency for offset calibration.
Definition: dl_rtc.h:590
__STATIC_INLINE void DL_RTC_enableAlarm1MinutesBCD(RTC_Regs *rtc)
Enable minutes in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:984
DL_RTC_PRESCALER0_DIVIDE
Definition: dl_rtc.h:213
__STATIC_INLINE bool DL_RTC_isCalibrationWriteResultOK(RTC_Regs *rtc)
Checks if RTC new calibration values were written OK.
Definition: dl_rtc.h:573
__STATIC_INLINE void DL_RTC_disableAlarm1HoursBinary(RTC_Regs *rtc)
Disable hours in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1686
__STATIC_INLINE void DL_RTC_enableAlarm2MinutesBCD(RTC_Regs *rtc)
Enable minutes in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1191
__STATIC_INLINE void DL_RTC_setAlarm1MinutesBinary(RTC_Regs *rtc, uint8_t minutes)
Set the minutes in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1648
__STATIC_INLINE void DL_RTC_setCalendarMinutesBCD(RTC_Regs *rtc, uint8_t minutes)
Set the minutes in in BCD the RTC calendar.
Definition: dl_rtc.h:779
__STATIC_INLINE void DL_RTC_disablePower(RTC_Regs *rtc)
Disable power to the RTC module.
Definition: dl_rtc.h:334
__STATIC_INLINE void DL_RTC_setCalendarMonthBCD(RTC_Regs *rtc, uint8_t month)
Set the month in in BCD the RTC calendar.
Definition: dl_rtc.h:914
__STATIC_INLINE void DL_RTC_setAlarm1DayOfMonthBinary(RTC_Regs *rtc, uint8_t day)
Set the day of the month in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1797
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfMonthBinary(RTC_Regs *rtc)
Get the day of the month in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:2016
void DL_RTC_setCalendarAlarm2(RTC_Regs *rtc, DL_RTC_CalendarAlarm alarmTime)
Set calendar alarm 2.
DL_RTC_IIDX
Definition: dl_rtc.h:249
__STATIC_INLINE void DL_RTC_enableDebugInterrupts(RTC_Regs *rtc)
Enables interrupts when the CPU is in debug mode. Interrupt requests are signaled to the interrupt co...
Definition: dl_rtc.h:412
Alarm struct to use in DL_RTC_setCalendarAlarm.
Definition: dl_rtc.h:272
__STATIC_INLINE uint32_t DL_RTC_getRawEventsStatus(RTC_Regs *rtc, uint32_t eventMask)
Check interrupt flag of any RTC event.
Definition: dl_rtc.h:2309
__STATIC_INLINE uint32_t DL_RTC_getEnabledEventStatus(RTC_Regs *rtc, uint32_t eventMask)
Check event flag of enabled RTC event.
Definition: dl_rtc.h:2289
uint8_t hours
Definition: dl_rtc.h:302
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfMonthBinary(RTC_Regs *rtc)
Get the day of the month in binary in the RTC calendar.
Definition: dl_rtc.h:1548
__STATIC_INLINE bool DL_RTC_isReset(RTC_Regs *rtc)
Returns if the RTC module was reset.
Definition: dl_rtc.h:375
__STATIC_INLINE void DL_RTC_disableAlarm2MinutesBinary(RTC_Regs *rtc)
Disable minutes in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1837
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfWeekBinary(RTC_Regs *rtc)
Disable day of the week in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1937
__STATIC_INLINE bool DL_RTC_isSafetoRead(RTC_Regs *rtc)
Checks if RTC is safe for reading.
Definition: dl_rtc.h:545
void DL_RTC_enableCalendarAlarm2(RTC_Regs *rtc)
Enable calendar alarm 2.
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfMonthBCD(RTC_Regs *rtc)
Get the day of the month in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1178
__STATIC_INLINE void DL_RTC_enableDebugMode(RTC_Regs *rtc)
Enables the RTC modules debug mode.
Definition: dl_rtc.h:436
__STATIC_INLINE void DL_RTC_setCalendarYearBinary(RTC_Regs *rtc, uint16_t year)
Set the year in binary in the RTC calendar.
Definition: dl_rtc.h:1592
__STATIC_INLINE void DL_RTC_disableInterrupt(RTC_Regs *rtc, uint32_t interruptMask)
Disable RTC interrupts.
Definition: dl_rtc.h:2133
__STATIC_INLINE uint8_t DL_RTC_getCalendarSecondsBinary(RTC_Regs *rtc)
Get the seconds in binary in the RTC calendar.
Definition: dl_rtc.h:1419
__STATIC_INLINE uint32_t DL_RTC_getEnabledEvents(RTC_Regs *rtc, uint32_t eventMask)
Check which RTC events are enabled.
Definition: dl_rtc.h:2267
__STATIC_INLINE uint32_t DL_RTC_getEnabledInterruptStatus(RTC_Regs *rtc, uint32_t interruptMask)
Check interrupt flag of enabled RTC interrupts.
Definition: dl_rtc.h:2174
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfWeekBinary(RTC_Regs *rtc)
Get the day of the week in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1965
__STATIC_INLINE void DL_RTC_setAlarm2DayOfMonthBinary(RTC_Regs *rtc, uint8_t day)
Set the day of the month in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1999
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfWeekBCD(RTC_Regs *rtc)
Disable day of the week in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1100
__STATIC_INLINE void DL_RTC_disableAlarm1MinutesBinary(RTC_Regs *rtc)
Disable minutes in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1635
__STATIC_INLINE void DL_RTC_clearEventsStatus(RTC_Regs *rtc, uint32_t eventMask)
Clear pending RTC events.
Definition: dl_rtc.h:2322
__STATIC_INLINE void DL_RTC_enablePower(RTC_Regs *rtc)
Enable power to the RTC module.
Definition: dl_rtc.h:323
__STATIC_INLINE void DL_RTC_enableInterrupt(RTC_Regs *rtc, uint32_t interruptMask)
Enable RTC interrupts.
Definition: dl_rtc.h:2119
__STATIC_INLINE void DL_RTC_setClockFormat(RTC_Regs *rtc, DL_RTC_FORMAT formatSelect)
Set the format of the real-time clock.
Definition: dl_rtc.h:461
DL_RTC_TEMP_CALIBRATION
Definition: dl_rtc.h:185
DL_RTC_FORMAT
Definition: dl_rtc.h:193
__STATIC_INLINE void DL_RTC_disableAlarm1MinutesBCD(RTC_Regs *rtc)
Disable minutes in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:995
__STATIC_INLINE uint32_t DL_RTC_getEnabledInterrupts(RTC_Regs *rtc, uint32_t interruptMask)
Check which RTC interrupts are enabled.
Definition: dl_rtc.h:2151
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfMonthBCD(RTC_Regs *rtc)
Disable day of the month in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1356
__STATIC_INLINE uint8_t DL_RTC_getAlarm2HoursBCD(RTC_Regs *rtc)
Get the hours in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1283
__STATIC_INLINE DL_RTC_PRESCALER0_DIVIDE DL_RTC_getPrescaler0(RTC_Regs *rtc)
Get prescaler 0 interrupt interval.
Definition: dl_rtc.h:2088
__STATIC_INLINE void DL_RTC_enableClockControl(RTC_Regs *rtc)
Enables the supply of the 32kHz clock to the RTC. It will not power up the 32kHz crystal oscillator...
Definition: dl_rtc.h:389
__STATIC_INLINE void DL_RTC_setOffsetCalibrationAdjValue(RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue)
Sets the offset error calibration adjustment value.
Definition: dl_rtc.h:612
__STATIC_INLINE uint8_t DL_RTC_getCalendarMinutesBCD(RTC_Regs *rtc)
Get the minutes in in BCD the RTC calendar.
Definition: dl_rtc.h:800
__STATIC_INLINE void DL_RTC_setTemperatureCompensation(RTC_Regs *rtc, DL_RTC_TEMP_CALIBRATION offsetDirection, uint32_t offsetValue)
Set the specified RTC temperature compensation.
Definition: dl_rtc.h:714
__STATIC_INLINE void DL_RTC_enableAlarm2HoursBCD(RTC_Regs *rtc)
Enable hours in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1244
__STATIC_INLINE void DL_RTC_setCalendarDayOfMonthBCD(RTC_Regs *rtc, uint8_t day)
Set the day of the month in BCD in the RTC calendar.
Definition: dl_rtc.h:879
__STATIC_INLINE void DL_RTC_setAlarm1DayOfWeekBCD(RTC_Regs *rtc, uint8_t day)
Set the day of the week in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1112
__STATIC_INLINE uint8_t DL_RTC_getCalendarHoursBCD(RTC_Regs *rtc)
Get the hours in in BCD the RTC calendar.
Definition: dl_rtc.h:834
uint8_t month
Definition: dl_rtc.h:311
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfMonthBCD(RTC_Regs *rtc)
Enable day of the month in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1345
__STATIC_INLINE void DL_RTC_disableDebugInterrupts(RTC_Regs *rtc)
Disables interrupts when the CPU is in debug mode. Interrupts of the RTC module will not be captured...
Definition: dl_rtc.h:425
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfMonthBCD(RTC_Regs *rtc)
Enable day of the month in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1138
__STATIC_INLINE void DL_RTC_enableAlarm2HoursBinary(RTC_Regs *rtc)
Enable hours in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1877
__STATIC_INLINE uint8_t DL_RTC_getAlarm1HoursBCD(RTC_Regs *rtc)
Get the hours in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1076
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfMonthBCD(RTC_Regs *rtc)
Get the day of the month in BCD in the RTC calendar.
Definition: dl_rtc.h:900
__STATIC_INLINE bool DL_RTC_isPowerEnabled(RTC_Regs *rtc)
Returns if power is enabled for the RTC module.
Definition: dl_rtc.h:347
__STATIC_INLINE void DL_RTC_setAlarm2DayOfWeekBCD(RTC_Regs *rtc, uint8_t day)
Set the day of the week in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1319
__STATIC_INLINE DL_RTC_PRESCALER1_DIVIDE DL_RTC_getPrescaler1(RTC_Regs *rtc)
Get prescaler 1 interrupt interval.
Definition: dl_rtc.h:2104
__STATIC_INLINE void DL_RTC_setIntervalAlarm(RTC_Regs *rtc, DL_RTC_INTERVAL_ALARM alarmEvent)
Sets the interval alarm event condition.
Definition: dl_rtc.h:500
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfMonthBinary(RTC_Regs *rtc)
Disable day of the month in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1785
__STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_SIGN DL_RTC_getOffsetCalibrationSign(RTC_Regs *rtc)
Gets the offset calibration sign.
Definition: dl_rtc.h:676
__STATIC_INLINE void DL_RTC_setAlarm1MinutesBCD(RTC_Regs *rtc, uint8_t minutes)
Set the minutes in BCD for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1008
DL_RTC_CalendarAlarm DL_RTC_getCalendarAlarm2(RTC_Regs *rtc)
Get calendar alarm 2.
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfWeekBCD(RTC_Regs *rtc)
Enable day of the week in BCD for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1296
uint8_t dayOfWeek
Definition: dl_rtc.h:305
DL_RTC_STATUS
Definition: dl_rtc.h:141
__STATIC_INLINE void DL_RTC_enableEvent(RTC_Regs *rtc, uint32_t eventMask)
Enable RTC event.
Definition: dl_rtc.h:2239
__STATIC_INLINE uint8_t DL_RTC_getCalendarMonthBCD(RTC_Regs *rtc)
Get the month of the year in BCD in the RTC calendar.
Definition: dl_rtc.h:934
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfWeekBinary(RTC_Regs *rtc)
Enable day of the week in binary for RTC Calendar Alarm 1.
Definition: dl_rtc.h:1724
__STATIC_INLINE void DL_RTC_setOffsetCalibration(RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_FREQUENCY offsetFrequency, DL_RTC_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue)
Sets the offset error calibration.
Definition: dl_rtc.h:642
__STATIC_INLINE void DL_RTC_setCalendarYearBCD(RTC_Regs *rtc, uint16_t year)
Set the year in in BCD the RTC calendar.
Definition: dl_rtc.h:948
__STATIC_INLINE uint8_t DL_RTC_getCalendarMonthBinary(RTC_Regs *rtc)
Get the month of the year in binary in the RTC calendar.
Definition: dl_rtc.h:1580
__STATIC_INLINE uint8_t DL_RTC_getAlarm2MinutesBinary(RTC_Regs *rtc)
Get the minutes in binary for RTC Calendar Alarm 2.
Definition: dl_rtc.h:1866