![]() |
![]() |
|
MSPM0G1X0X_G3X0X Driver Library
1.20.00.05
|
|
Modules | |
| DL_RTC_INTERRUPT | |
| DL_RTC_EVENT | |
Data Structures | |
| struct | DL_RTC_CalendarAlarm |
| Alarm struct to use in DL_RTC_setCalendarAlarm. More... | |
| struct | DL_RTC_Calendar |
| Calendar struct to use in DL_RTC_initCalendar() More... | |
Functions | |
| __STATIC_INLINE void | DL_RTC_enablePower (RTC_Regs *rtc) |
| Enable power to the RTC module. More... | |
| __STATIC_INLINE void | DL_RTC_disablePower (RTC_Regs *rtc) |
| Disable power to the RTC module. More... | |
| __STATIC_INLINE bool | DL_RTC_isPowerEnabled (RTC_Regs *rtc) |
| Returns if power is enabled for the RTC module. More... | |
| __STATIC_INLINE void | DL_RTC_reset (RTC_Regs *rtc) |
| Resets all registers in the RTC module. More... | |
| __STATIC_INLINE bool | DL_RTC_isReset (RTC_Regs *rtc) |
| Returns if the RTC module was reset. More... | |
| __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. This needs to be done in the Clock System Module. More... | |
| __STATIC_INLINE void | DL_RTC_disableClockControl (RTC_Regs *rtc) |
| Disables the supply of the 32kHz clock to the RTC. More... | |
| __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 controller. More... | |
| __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. There will be no updates to the RTCRIS, RTCMISC and RTCIIDX registers. More... | |
| __STATIC_INLINE void | DL_RTC_enableDebugMode (RTC_Regs *rtc) |
| Enables the RTC modules debug mode. More... | |
| __STATIC_INLINE void | DL_RTC_disableDebugMode (RTC_Regs *rtc) |
| Disables the RTC modules debug mode. More... | |
| __STATIC_INLINE void | DL_RTC_setClockFormat (RTC_Regs *rtc, DL_RTC_FORMAT formatSelect) |
| Set the format of the real-time clock. More... | |
| __STATIC_INLINE DL_RTC_FORMAT | DL_RTC_getClockFormat (RTC_Regs *rtc) |
| Get the format currently being used for counting the real-time clock. More... | |
| __STATIC_INLINE void | DL_RTC_setIntervalAlarm (RTC_Regs *rtc, DL_RTC_INTERVAL_ALARM alarmEvent) |
| Sets the interval alarm event condition. More... | |
| __STATIC_INLINE DL_RTC_INTERVAL_ALARM | DL_RTC_getIntervalAlarm (RTC_Regs *rtc) |
| Gets the interval alarm event condition. More... | |
| __STATIC_INLINE bool | DL_RTC_isSafetoRead (RTC_Regs *rtc) |
| Checks if RTC is safe for reading. More... | |
| __STATIC_INLINE bool | DL_RTC_isReadyToCalibrate (RTC_Regs *rtc) |
| Checks if RTC is ready to get new calibration values. More... | |
| __STATIC_INLINE bool | DL_RTC_isCalibrationWriteResultOK (RTC_Regs *rtc) |
| Checks if RTC new calibration values were written OK. More... | |
| __STATIC_INLINE void | DL_RTC_setOffsetCalibrationFrequency (RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_FREQUENCY offsetFrequency) |
| Sets output frequency for offset calibration. More... | |
| __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. More... | |
| __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. More... | |
| __STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_FREQUENCY | DL_RTC_getOffsetCalibrationFrequency (RTC_Regs *rtc) |
| Gets the offset calibration frequency. More... | |
| __STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_SIGN | DL_RTC_getOffsetCalibrationSign (RTC_Regs *rtc) |
| Gets the offset calibration sign. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getOffsetCalibrationValue (RTC_Regs *rtc) |
| Gets the offset error calibration value. More... | |
| __STATIC_INLINE void | DL_RTC_setTemperatureCompensation (RTC_Regs *rtc, DL_RTC_TEMP_CALIBRATION offsetDirection, uint32_t offsetValue) |
| Set the specified RTC temperature compensation. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getTemperatureCompensation (RTC_Regs *rtc) |
| Get the RTC temperature compensation. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarSecondsBCD (RTC_Regs *rtc, uint8_t seconds) |
| Set the seconds in BCD in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarSecondsBCD (RTC_Regs *rtc) |
| Get the seconds in in BCD the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarMinutesBCD (RTC_Regs *rtc, uint8_t minutes) |
| Set the minutes in in BCD the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarMinutesBCD (RTC_Regs *rtc) |
| Get the minutes in in BCD the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarHoursBCD (RTC_Regs *rtc, uint8_t hours) |
| Set the hours in in BCD the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarHoursBCD (RTC_Regs *rtc) |
| Get the hours in in BCD the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarDayOfWeekBCD (RTC_Regs *rtc, uint8_t day) |
| Set the day of the week in BCD in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarDayOfWeekBCD (RTC_Regs *rtc) |
| Get the day of the week in BCD in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarDayOfMonthBCD (RTC_Regs *rtc, uint8_t day) |
| Set the day of the month in BCD in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarDayOfMonthBCD (RTC_Regs *rtc) |
| Get the day of the month in BCD in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarMonthBCD (RTC_Regs *rtc, uint8_t month) |
| Set the month in in BCD the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarMonthBCD (RTC_Regs *rtc) |
| Get the month of the year in BCD in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarYearBCD (RTC_Regs *rtc, uint16_t year) |
| Set the year in in BCD the RTC calendar. More... | |
| __STATIC_INLINE uint16_t | DL_RTC_getCalendarYearBCD (RTC_Regs *rtc) |
| Get the year in in BCD the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1MinutesBCD (RTC_Regs *rtc) |
| Enable minutes in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1MinutesBCD (RTC_Regs *rtc) |
| Disable minutes in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm1MinutesBCD (RTC_Regs *rtc, uint8_t minutes) |
| Set the minutes in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1MinutesBCD (RTC_Regs *rtc) |
| Get the minutes in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1HoursBCD (RTC_Regs *rtc) |
| Enable hours in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1HoursBCD (RTC_Regs *rtc) |
| Disable hours in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm1HoursBCD (RTC_Regs *rtc, uint8_t hours) |
| Set the hours in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1HoursBCD (RTC_Regs *rtc) |
| Get the hours in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1DayOfWeekBCD (RTC_Regs *rtc) |
| Enable day of the week in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1DayOfWeekBCD (RTC_Regs *rtc) |
| Disable day of the week in BCD for RTC Calendar Alarm 1. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1DayOfWeekBCD (RTC_Regs *rtc) |
| Get the day of the week in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1DayOfMonthBCD (RTC_Regs *rtc) |
| Enable day of the month in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1DayOfMonthBCD (RTC_Regs *rtc) |
| Disable day of the month in BCD for RTC Calendar Alarm 1. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1DayOfMonthBCD (RTC_Regs *rtc) |
| Get the day of the month in BCD for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2MinutesBCD (RTC_Regs *rtc) |
| Enable minutes in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2MinutesBCD (RTC_Regs *rtc) |
| Disable minutes in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm2MinutesBCD (RTC_Regs *rtc, uint8_t minutes) |
| Set the minutes in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2MinutesBCD (RTC_Regs *rtc) |
| Get the minutes in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2HoursBCD (RTC_Regs *rtc) |
| Enable hours in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2HoursBCD (RTC_Regs *rtc) |
| Disable hours in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm2HoursBCD (RTC_Regs *rtc, uint8_t hours) |
| Set the hours in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2HoursBCD (RTC_Regs *rtc) |
| Get the hours in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2DayOfWeekBCD (RTC_Regs *rtc) |
| Enable day of the week in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2DayOfWeekBCD (RTC_Regs *rtc) |
| Disable day of the week in BCD for RTC Calendar Alarm 2. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2DayOfWeekBCD (RTC_Regs *rtc) |
| Get the day of the week in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2DayOfMonthBCD (RTC_Regs *rtc) |
| Enable day of the month in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2DayOfMonthBCD (RTC_Regs *rtc) |
| Disable day of the month in BCD for RTC Calendar Alarm 2. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2DayOfMonthBCD (RTC_Regs *rtc) |
| Get the day of the month in BCD for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarSecondsBinary (RTC_Regs *rtc, uint8_t seconds) |
| Set the seconds in binary the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarSecondsBinary (RTC_Regs *rtc) |
| Get the seconds in binary in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarMinutesBinary (RTC_Regs *rtc, uint8_t minutes) |
| Set the minutes in binary in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarMinutesBinary (RTC_Regs *rtc) |
| Get the minutes in binary in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarHoursBinary (RTC_Regs *rtc, uint8_t hours) |
| Set the hours in binary in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarHoursBinary (RTC_Regs *rtc) |
| Get the hours in binary in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarDayOfWeekBinary (RTC_Regs *rtc, uint8_t day) |
| Set the day of the week in binary in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarDayOfWeekBinary (RTC_Regs *rtc) |
| Get the day of the week in binary in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarDayOfMonthBinary (RTC_Regs *rtc, uint8_t day) |
| Set the day of the month in binary in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarDayOfMonthBinary (RTC_Regs *rtc) |
| Get the day of the month in binary in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarMonthBinary (RTC_Regs *rtc, uint8_t month) |
| Set the month in binary in the RTC calendar. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getCalendarMonthBinary (RTC_Regs *rtc) |
| Get the month of the year in binary in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_setCalendarYearBinary (RTC_Regs *rtc, uint16_t year) |
| Set the year in binary in the RTC calendar. More... | |
| __STATIC_INLINE uint16_t | DL_RTC_getCalendarYearBinary (RTC_Regs *rtc) |
| Get the year in binary in the RTC calendar. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1MinutesBinary (RTC_Regs *rtc) |
| Enable minutes in binary in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1MinutesBinary (RTC_Regs *rtc) |
| Disable minutes in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm1MinutesBinary (RTC_Regs *rtc, uint8_t minutes) |
| Set the minutes in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1MinutesBinary (RTC_Regs *rtc) |
| Get the minutes in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1HoursBinary (RTC_Regs *rtc) |
| Enable hours in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1HoursBinary (RTC_Regs *rtc) |
| Disable hours in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm1HoursBinary (RTC_Regs *rtc, uint8_t hours) |
| Set the hours in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1HoursBinary (RTC_Regs *rtc) |
| Get the hours in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1DayOfWeekBinary (RTC_Regs *rtc) |
| Enable day of the week in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1DayOfWeekBinary (RTC_Regs *rtc) |
| Disable day of the week in binary for RTC Calendar Alarm 1. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1DayOfWeekBinary (RTC_Regs *rtc) |
| Get the day of the week in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm1DayOfMonthBinary (RTC_Regs *rtc) |
| Enable day of the month in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm1DayOfMonthBinary (RTC_Regs *rtc) |
| Disable day of the month in binary for RTC Calendar Alarm 1. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm1DayOfMonthBinary (RTC_Regs *rtc) |
| Get the day of the month in binary for RTC Calendar Alarm 1. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2MinutesBinary (RTC_Regs *rtc) |
| Enable minutes in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2MinutesBinary (RTC_Regs *rtc) |
| Disable minutes in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm2MinutesBinary (RTC_Regs *rtc, uint8_t minutes) |
| Set the minutes in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2MinutesBinary (RTC_Regs *rtc) |
| Get the minutes in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2HoursBinary (RTC_Regs *rtc) |
| Enable hours in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2HoursBinary (RTC_Regs *rtc) |
| Disable hours in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_setAlarm2HoursBinary (RTC_Regs *rtc, uint8_t hours) |
| Set the hours in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2HoursBinary (RTC_Regs *rtc) |
| Get the hours in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2DayOfWeekBinary (RTC_Regs *rtc) |
| Enable day of the week in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2DayOfWeekBinary (RTC_Regs *rtc) |
| Disable day of the week in binary for RTC Calendar Alarm 2. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2DayOfWeekBinary (RTC_Regs *rtc) |
| Get the day of the week in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_enableAlarm2DayOfMonthBinary (RTC_Regs *rtc) |
| Enable day of the month in binary for RTC Calendar Alarm 2. More... | |
| __STATIC_INLINE void | DL_RTC_disableAlarm2DayOfMonthBinary (RTC_Regs *rtc) |
| Disable day of the month in binary for RTC Calendar Alarm 2. More... | |
| __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. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getAlarm2DayOfMonthBinary (RTC_Regs *rtc) |
| Get the day of the month in binary for RTC Calendar Alarm 2. More... | |
| __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. More... | |
| __STATIC_INLINE void | DL_RTC_setPeriodicAlarm0 (RTC_Regs *rtc, DL_RTC_PRESCALER0_DIVIDE prescaler0Divider) |
| Set periodic alarm 0. More... | |
| __STATIC_INLINE void | DL_RTC_setPeriodicAlarm1 (RTC_Regs *rtc, DL_RTC_PRESCALER1_DIVIDE prescaler1Divider) |
| Set periodic alarm 1. More... | |
| __STATIC_INLINE DL_RTC_PRESCALER0_DIVIDE | DL_RTC_getPrescaler0 (RTC_Regs *rtc) |
| Get prescaler 0 interrupt interval. More... | |
| __STATIC_INLINE DL_RTC_PRESCALER1_DIVIDE | DL_RTC_getPrescaler1 (RTC_Regs *rtc) |
| Get prescaler 1 interrupt interval. More... | |
| __STATIC_INLINE void | DL_RTC_enableInterrupt (RTC_Regs *rtc, uint32_t interruptMask) |
| Enable RTC interrupts. More... | |
| __STATIC_INLINE void | DL_RTC_disableInterrupt (RTC_Regs *rtc, uint32_t interruptMask) |
| Disable RTC interrupts. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getEnabledInterrupts (RTC_Regs *rtc, uint32_t interruptMask) |
| Check which RTC interrupts are enabled. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getEnabledInterruptStatus (RTC_Regs *rtc, uint32_t interruptMask) |
| Check interrupt flag of enabled RTC interrupts. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getRawInterruptStatus (RTC_Regs *rtc, uint32_t interruptMask) |
| Check interrupt flag of any RTC interrupt. More... | |
| __STATIC_INLINE DL_RTC_IIDX | DL_RTC_getPendingInterrupt (RTC_Regs *rtc) |
| Get highest priority pending RTC interrupt. More... | |
| __STATIC_INLINE void | DL_RTC_clearInterruptStatus (RTC_Regs *rtc, uint32_t interruptMask) |
| Clear pending RTC interrupts. More... | |
| __STATIC_INLINE void | DL_RTC_enableEvent (RTC_Regs *rtc, uint32_t eventMask) |
| Enable RTC event. More... | |
| __STATIC_INLINE void | DL_RTC_disableEvent (RTC_Regs *rtc, uint32_t eventMask) |
| Disable RTC event. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getEnabledEvents (RTC_Regs *rtc, uint32_t eventMask) |
| Check which RTC events are enabled. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getEnabledEventStatus (RTC_Regs *rtc, uint32_t eventMask) |
| Check event flag of enabled RTC event. More... | |
| __STATIC_INLINE uint32_t | DL_RTC_getRawEventsStatus (RTC_Regs *rtc, uint32_t eventMask) |
| Check interrupt flag of any RTC event. More... | |
| __STATIC_INLINE void | DL_RTC_clearEventsStatus (RTC_Regs *rtc, uint32_t eventMask) |
| Clear pending RTC events. More... | |
| __STATIC_INLINE void | DL_RTC_setPublisherChanID (RTC_Regs *rtc, uint8_t chanID) |
| Sets the event publisher channel ID. More... | |
| __STATIC_INLINE uint8_t | DL_RTC_getPublisherChanID (RTC_Regs *rtc) |
| Gets the event publisher channel ID. More... | |
| 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. More... | |
| DL_RTC_Calendar | DL_RTC_getCalendarTime (RTC_Regs *rtc) |
| Returns the Calendar Time. More... | |
| void | DL_RTC_setCalendarAlarm1 (RTC_Regs *rtc, DL_RTC_CalendarAlarm alarmTime) |
| Set calendar alarm 1. More... | |
| DL_RTC_CalendarAlarm | DL_RTC_getCalendarAlarm1 (RTC_Regs *rtc) |
| Get calendar alarm 1. More... | |
| void | DL_RTC_enableCalendarAlarm1 (RTC_Regs *rtc) |
| Enable calendar alarm 1. More... | |
| void | DL_RTC_disableCalendarAlarm1 (RTC_Regs *rtc) |
| Disable calendar alarm 1. More... | |
| void | DL_RTC_setCalendarAlarm2 (RTC_Regs *rtc, DL_RTC_CalendarAlarm alarmTime) |
| Set calendar alarm 2. More... | |
| DL_RTC_CalendarAlarm | DL_RTC_getCalendarAlarm2 (RTC_Regs *rtc) |
| Get calendar alarm 2. More... | |
| void | DL_RTC_enableCalendarAlarm2 (RTC_Regs *rtc) |
| Enable calendar alarm 2. More... | |
| void | DL_RTC_disableCalendarAlarm2 (RTC_Regs *rtc) |
| Disable calendar alarm 2. More... | |
The RTC Driver Library allows full configuration of the MSPM0 RTC module. The real-time clock (RTC) module provides clock counters with calendar mode, a flexible programmable alarm, offset calibration, and a provision for temperature compensation.
| enum DL_RTC_STATUS |
| enum DL_RTC_FORMAT |
| enum DL_RTC_IIDX |
| __STATIC_INLINE void DL_RTC_enablePower | ( | RTC_Regs * | rtc | ) |
Enable power to the RTC module.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disablePower | ( | RTC_Regs * | rtc | ) |
Disable power to the RTC module.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE bool DL_RTC_isPowerEnabled | ( | RTC_Regs * | rtc | ) |
Returns if power is enabled for the RTC module.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_reset | ( | RTC_Regs * | rtc | ) |
Resets all registers in the RTC module.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE bool DL_RTC_isReset | ( | RTC_Regs * | rtc | ) |
Returns if the RTC module was reset.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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. This needs to be done in the Clock System Module.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableClockControl | ( | RTC_Regs * | rtc | ) |
Disables the supply of the 32kHz clock to the RTC.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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 controller.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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. There will be no updates to the RTCRIS, RTCMISC and RTCIIDX registers.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_enableDebugMode | ( | RTC_Regs * | rtc | ) |
Enables the RTC modules debug mode.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableDebugMode | ( | RTC_Regs * | rtc | ) |
Disables the RTC modules debug mode.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setClockFormat | ( | RTC_Regs * | rtc, |
| DL_RTC_FORMAT | formatSelect | ||
| ) |
Set the format of the real-time clock.
The format must be selected before the time is set.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | formatSelect | Selectable format the RTC peripheral will provide time in. One of DL_RTC_FORMAT |
| __STATIC_INLINE DL_RTC_FORMAT DL_RTC_getClockFormat | ( | RTC_Regs * | rtc | ) |
Get the format currently being used for counting the real-time clock.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| One | of DL_RTC_FORMAT |
| __STATIC_INLINE void DL_RTC_setIntervalAlarm | ( | RTC_Regs * | rtc, |
| DL_RTC_INTERVAL_ALARM | alarmEvent | ||
| ) |
Sets the interval alarm event condition.
The interval alarm can be configured to generate an interval alarm event when one of the following events occurs:
The interval alarm sources the DL_RTC_INTERRUPT_INTERVAL_ALARM interrupt
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | alarmEvent | The interval alarm interrupt condition. One of DL_RTC_INTERVAL_ALARM |
References DL_Common_updateReg().
| __STATIC_INLINE DL_RTC_INTERVAL_ALARM DL_RTC_getIntervalAlarm | ( | RTC_Regs * | rtc | ) |
Gets the interval alarm event condition.
The interval alarm can be configured to generate an interval alarm event when one of the following events occurs:
Every day at noon (12:00:00)
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE bool DL_RTC_isSafetoRead | ( | RTC_Regs * | rtc | ) |
Checks if RTC is safe for reading.
This API checks if the counter/calender registers can be safely read.
The RTC counter/calendar registers are updated once per second. To prevent reading any counter/calendar register at the time of an update (which could result in an invalid time being read), a keep-out window is provided. The keep-out window is approximately 128/32768 seconds before the counters update.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE bool DL_RTC_isReadyToCalibrate | ( | RTC_Regs * | rtc | ) |
Checks if RTC is ready to get new calibration values.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE bool DL_RTC_isCalibrationWriteResultOK | ( | RTC_Regs * | rtc | ) |
Checks if RTC new calibration values were written OK.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setOffsetCalibrationFrequency | ( | RTC_Regs * | rtc, |
| DL_RTC_OFFSET_CALIBRATION_FREQUENCY | offsetFrequency | ||
| ) |
Sets output frequency for offset calibration.
Sets the frequency output to RTC_OUT pin for calibration measurement. The corresponding port must be configured for the peripheral module function.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | offsetFrequency | The frequency of offset calibration. Valid values are one of DL_RTC_OFFSET_CALIBRATION_FREQUENCY |
References DL_Common_updateReg().
| __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.
Each LSB represents approximately +1ppm (RTCOCALXS = 1) or -1ppm (RTCOCALXS = 0) adjustment in frequency. Maximum effective calibration value is +/-240ppm. Excess values written above +/-240ppm will be ignored by hardware.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | offsetSign | The sign of offset calibration. Valid values are one of DL_RTC_OFFSET_CALIBRATION_SIGN |
| [in] | offsetValue | The value that the offset will be a factor of. Must be any integer from 1-240. |
References DL_Common_updateReg().
| __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.
Each LSB represents approximately +1ppm (RTCOCALXS = 1) or -1ppm (RTCOCALXS = 0) adjustment in frequency. Maximum effective calibration value is +/-240ppm. Excess values written above +/-240ppm will be ignored by hardware.
Sets the frequency output to RTCCLK pin for calibration measurement. The corresponding port must be configured for the peripheral module function.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | offsetFrequency | The frequency of offset calibration. Valid values are one of DL_RTC_OFFSET_CALIBRATION_FREQUENCY |
| [in] | offsetSign | The sign of offset calibration. Valid values are one of DL_RTC_OFFSET_CALIBRATION_SIGN |
| [in] | offsetValue | The value that the offset will be a factor of. Must be any integer from 1-240. |
| __STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_FREQUENCY DL_RTC_getOffsetCalibrationFrequency | ( | RTC_Regs * | rtc | ) |
Gets the offset calibration frequency.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| One | of DL_RTC_OFFSET_CALIBRATION_FREQUENCY |
| __STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_SIGN DL_RTC_getOffsetCalibrationSign | ( | RTC_Regs * | rtc | ) |
Gets the offset calibration sign.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| One | of DL_RTC_OFFSET_CALIBRATION_SIGN |
| __STATIC_INLINE uint32_t DL_RTC_getOffsetCalibrationValue | ( | RTC_Regs * | rtc | ) |
Gets the offset error calibration value.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| 0 | - 240 The effective offset error calibration. |
| __STATIC_INLINE void DL_RTC_setTemperatureCompensation | ( | RTC_Regs * | rtc, |
| DL_RTC_TEMP_CALIBRATION | offsetDirection, | ||
| uint32_t | offsetValue | ||
| ) |
Set the specified RTC temperature compensation.
This function sets the calibration offset to make the RTC as accurate as possible. The offsetDirection can be either +1-ppm or -1-ppm, and the offsetValue should be from 1-240 and is multiplied by the direction setting (i.e. +1-ppm * 8 (offsetValue) = +8-ppm).
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | offsetDirection | The direction that the calibration offset will go. Valid values are one of DL_RTC_TEMP_CALIBRATION |
| [in] | offsetValue | The value that the offset will be a factor of. Must be any integer from 1-240. |
| __STATIC_INLINE uint32_t DL_RTC_getTemperatureCompensation | ( | RTC_Regs * | rtc | ) |
Get the RTC temperature compensation.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Signed | addition of RTCOCALX and RTCTCMPX values, and the updated sign bit (RTCTCMPS) of the addition result. |
| __STATIC_INLINE void DL_RTC_setCalendarSecondsBCD | ( | RTC_Regs * | rtc, |
| uint8_t | seconds | ||
| ) |
Set the seconds in BCD in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | seconds | Value for the seconds of the RTC calendar Valid values are 0x0-0x59. |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarSecondsBCD | ( | RTC_Regs * | rtc | ) |
Get the seconds in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x59 |
| __STATIC_INLINE void DL_RTC_setCalendarMinutesBCD | ( | RTC_Regs * | rtc, |
| uint8_t | minutes | ||
| ) |
Set the minutes in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | minutes | Value for the minutes of the RTC calendar Valid values are 0x0-0x59. |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarMinutesBCD | ( | RTC_Regs * | rtc | ) |
Get the minutes in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x59 |
| __STATIC_INLINE void DL_RTC_setCalendarHoursBCD | ( | RTC_Regs * | rtc, |
| uint8_t | hours | ||
| ) |
Set the hours in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | hours | Value for the hours of the RTC calendar Valid values are 0x0-0x23 |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarHoursBCD | ( | RTC_Regs * | rtc | ) |
Get the hours in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x23 |
| __STATIC_INLINE void DL_RTC_setCalendarDayOfWeekBCD | ( | RTC_Regs * | rtc, |
| uint8_t | day | ||
| ) |
Set the day of the week in BCD in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the week of the RTC calendar Valid values are 0x0-0x6 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfWeekBCD | ( | RTC_Regs * | rtc | ) |
Get the day of the week in BCD in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x6 |
| __STATIC_INLINE void DL_RTC_setCalendarDayOfMonthBCD | ( | RTC_Regs * | rtc, |
| uint8_t | day | ||
| ) |
Set the day of the month in BCD in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the month of the RTC calendar Valid values are 0x1-0x31 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfMonthBCD | ( | RTC_Regs * | rtc | ) |
Get the day of the month in BCD in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x1-0x31 |
| __STATIC_INLINE void DL_RTC_setCalendarMonthBCD | ( | RTC_Regs * | rtc, |
| uint8_t | month | ||
| ) |
Set the month in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | month | Value for the month of the RTC calendar Valid values are 0x1-0x12 |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarMonthBCD | ( | RTC_Regs * | rtc | ) |
Get the month of the year in BCD in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x1-0x12 |
| __STATIC_INLINE void DL_RTC_setCalendarYearBCD | ( | RTC_Regs * | rtc, |
| uint16_t | year | ||
| ) |
Set the year in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | year | Value for the year of the RTC calendar Valid values are 0x0-0x4095 |
| __STATIC_INLINE uint16_t DL_RTC_getCalendarYearBCD | ( | RTC_Regs * | rtc | ) |
Get the year in in BCD the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x4095 |
| __STATIC_INLINE void DL_RTC_enableAlarm1MinutesBCD | ( | RTC_Regs * | rtc | ) |
Enable minutes in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1MinutesBCD | ( | RTC_Regs * | rtc | ) |
Disable minutes in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm1MinutesBCD | ( | RTC_Regs * | rtc, |
| uint8_t | minutes | ||
| ) |
Set the minutes in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | minutes | Value for the minutes of alarm 1 Valid values are 0x0-0x59 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1MinutesBCD | ( | RTC_Regs * | rtc | ) |
Get the minutes in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x59 |
| __STATIC_INLINE void DL_RTC_enableAlarm1HoursBCD | ( | RTC_Regs * | rtc | ) |
Enable hours in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1HoursBCD | ( | RTC_Regs * | rtc | ) |
Disable hours in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm1HoursBCD | ( | RTC_Regs * | rtc, |
| uint8_t | hours | ||
| ) |
Set the hours in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | hours | Value for the hours of alarm 1 Valid values are 0x0-0x23 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1HoursBCD | ( | RTC_Regs * | rtc | ) |
Get the hours in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x23 |
| __STATIC_INLINE void DL_RTC_enableAlarm1DayOfWeekBCD | ( | RTC_Regs * | rtc | ) |
Enable day of the week in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1DayOfWeekBCD | ( | RTC_Regs * | rtc | ) |
Disable day of the week in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the week of the RTC calendar Valid values are 0x0-0x6 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfWeekBCD | ( | RTC_Regs * | rtc | ) |
Get the day of the week in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x6 |
| __STATIC_INLINE void DL_RTC_enableAlarm1DayOfMonthBCD | ( | RTC_Regs * | rtc | ) |
Enable day of the month in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1DayOfMonthBCD | ( | RTC_Regs * | rtc | ) |
Disable day of the month in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the month of the RTC calendar Valid values are 0x1-0x31 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfMonthBCD | ( | RTC_Regs * | rtc | ) |
Get the day of the month in BCD for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x1-0x31 |
| __STATIC_INLINE void DL_RTC_enableAlarm2MinutesBCD | ( | RTC_Regs * | rtc | ) |
Enable minutes in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2MinutesBCD | ( | RTC_Regs * | rtc | ) |
Disable minutes in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm2MinutesBCD | ( | RTC_Regs * | rtc, |
| uint8_t | minutes | ||
| ) |
Set the minutes in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | minutes | Value for the minutes of alarm 2 Valid values are 0x0-0x59 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2MinutesBCD | ( | RTC_Regs * | rtc | ) |
Get the minutes in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x59 |
| __STATIC_INLINE void DL_RTC_enableAlarm2HoursBCD | ( | RTC_Regs * | rtc | ) |
Enable hours in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2HoursBCD | ( | RTC_Regs * | rtc | ) |
Disable hours in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm2HoursBCD | ( | RTC_Regs * | rtc, |
| uint8_t | hours | ||
| ) |
Set the hours in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | hours | Value for the hours of alarm 2 Valid values are 0x0-0x23 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2HoursBCD | ( | RTC_Regs * | rtc | ) |
Get the hours in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x23 |
| __STATIC_INLINE void DL_RTC_enableAlarm2DayOfWeekBCD | ( | RTC_Regs * | rtc | ) |
Enable day of the week in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2DayOfWeekBCD | ( | RTC_Regs * | rtc | ) |
Disable day of the week in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the week of the RTC calendar Valid values are 0x0-0x6 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfWeekBCD | ( | RTC_Regs * | rtc | ) |
Get the day of the week in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x0-0x6 |
| __STATIC_INLINE void DL_RTC_enableAlarm2DayOfMonthBCD | ( | RTC_Regs * | rtc | ) |
Enable day of the month in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2DayOfMonthBCD | ( | RTC_Regs * | rtc | ) |
Disable day of the month in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the month of the RTC calendar Valid values are 0x1-0x31 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfMonthBCD | ( | RTC_Regs * | rtc | ) |
Get the day of the month in BCD for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0x1-0x31 |
| __STATIC_INLINE void DL_RTC_setCalendarSecondsBinary | ( | RTC_Regs * | rtc, |
| uint8_t | seconds | ||
| ) |
Set the seconds in binary the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | seconds | Value for the seconds of the RTC calendar Valid values are 0-59 |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarSecondsBinary | ( | RTC_Regs * | rtc | ) |
Get the seconds in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-59 |
| __STATIC_INLINE void DL_RTC_setCalendarMinutesBinary | ( | RTC_Regs * | rtc, |
| uint8_t | minutes | ||
| ) |
Set the minutes in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | minutes | Value for the minutes of the RTC calendar Valid values are 0-59 |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarMinutesBinary | ( | RTC_Regs * | rtc | ) |
Get the minutes in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-59 |
| __STATIC_INLINE void DL_RTC_setCalendarHoursBinary | ( | RTC_Regs * | rtc, |
| uint8_t | hours | ||
| ) |
Set the hours in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | hours | Value for the hours of the RTC calendar Valid values are 0-23 |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarHoursBinary | ( | RTC_Regs * | rtc | ) |
Get the hours in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-23 |
| __STATIC_INLINE void DL_RTC_setCalendarDayOfWeekBinary | ( | RTC_Regs * | rtc, |
| uint8_t | day | ||
| ) |
Set the day of the week in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the week of the RTC calendar Valid values are 0-6 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfWeekBinary | ( | RTC_Regs * | rtc | ) |
Get the day of the week in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-6 |
| __STATIC_INLINE void DL_RTC_setCalendarDayOfMonthBinary | ( | RTC_Regs * | rtc, |
| uint8_t | day | ||
| ) |
Set the day of the month in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the month of the RTC calendar Valid values are 1-31 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfMonthBinary | ( | RTC_Regs * | rtc | ) |
Get the day of the month in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 1-31 |
| __STATIC_INLINE void DL_RTC_setCalendarMonthBinary | ( | RTC_Regs * | rtc, |
| uint8_t | month | ||
| ) |
Set the month in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | month | Value for the month of the RTC calendar Valid values are 1-12 |
| __STATIC_INLINE uint8_t DL_RTC_getCalendarMonthBinary | ( | RTC_Regs * | rtc | ) |
Get the month of the year in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 1-12 |
| __STATIC_INLINE void DL_RTC_setCalendarYearBinary | ( | RTC_Regs * | rtc, |
| uint16_t | year | ||
| ) |
Set the year in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | year | Value for the year of the RTC calendar Valid values are 0-4095 |
| __STATIC_INLINE uint16_t DL_RTC_getCalendarYearBinary | ( | RTC_Regs * | rtc | ) |
Get the year in binary in the RTC calendar.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-4095 |
| __STATIC_INLINE void DL_RTC_enableAlarm1MinutesBinary | ( | RTC_Regs * | rtc | ) |
Enable minutes in binary in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1MinutesBinary | ( | RTC_Regs * | rtc | ) |
Disable minutes in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm1MinutesBinary | ( | RTC_Regs * | rtc, |
| uint8_t | minutes | ||
| ) |
Set the minutes in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | minutes | Value for the minutes of alarm 1 Valid values are 0-59 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1MinutesBinary | ( | RTC_Regs * | rtc | ) |
Get the minutes in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-59 |
| __STATIC_INLINE void DL_RTC_enableAlarm1HoursBinary | ( | RTC_Regs * | rtc | ) |
Enable hours in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1HoursBinary | ( | RTC_Regs * | rtc | ) |
Disable hours in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm1HoursBinary | ( | RTC_Regs * | rtc, |
| uint8_t | hours | ||
| ) |
Set the hours in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | hours | Value for the hours of alarm 1 Valid values are 0-23 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1HoursBinary | ( | RTC_Regs * | rtc | ) |
Get the hours in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-23 |
| __STATIC_INLINE void DL_RTC_enableAlarm1DayOfWeekBinary | ( | RTC_Regs * | rtc | ) |
Enable day of the week in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1DayOfWeekBinary | ( | RTC_Regs * | rtc | ) |
Disable day of the week in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the week of the RTC calendar Valid values are 0-6 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfWeekBinary | ( | RTC_Regs * | rtc | ) |
Get the day of the week in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-6 |
| __STATIC_INLINE void DL_RTC_enableAlarm1DayOfMonthBinary | ( | RTC_Regs * | rtc | ) |
Enable day of the month in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm1DayOfMonthBinary | ( | RTC_Regs * | rtc | ) |
Disable day of the month in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the month of the RTC calendar Valid values are 1-31 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfMonthBinary | ( | RTC_Regs * | rtc | ) |
Get the day of the month in binary for RTC Calendar Alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 1-31 |
| __STATIC_INLINE void DL_RTC_enableAlarm2MinutesBinary | ( | RTC_Regs * | rtc | ) |
Enable minutes in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2MinutesBinary | ( | RTC_Regs * | rtc | ) |
Disable minutes in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm2MinutesBinary | ( | RTC_Regs * | rtc, |
| uint8_t | minutes | ||
| ) |
Set the minutes in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | minutes | Value for the minutes of alarm 2 Valid values are 0-59 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2MinutesBinary | ( | RTC_Regs * | rtc | ) |
Get the minutes in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-59 |
| __STATIC_INLINE void DL_RTC_enableAlarm2HoursBinary | ( | RTC_Regs * | rtc | ) |
Enable hours in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2HoursBinary | ( | RTC_Regs * | rtc | ) |
Disable hours in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_setAlarm2HoursBinary | ( | RTC_Regs * | rtc, |
| uint8_t | hours | ||
| ) |
Set the hours in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | hours | Value for the hours of alarm 2 Valid values are 0-23 |
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2HoursBinary | ( | RTC_Regs * | rtc | ) |
Get the hours in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-23 |
| __STATIC_INLINE void DL_RTC_enableAlarm2DayOfWeekBinary | ( | RTC_Regs * | rtc | ) |
Enable day of the week in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2DayOfWeekBinary | ( | RTC_Regs * | rtc | ) |
Disable day of the week in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the week of the RTC calendar Valid values are 0-6 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfWeekBinary | ( | RTC_Regs * | rtc | ) |
Get the day of the week in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 0-6 |
| __STATIC_INLINE void DL_RTC_enableAlarm2DayOfMonthBinary | ( | RTC_Regs * | rtc | ) |
Enable day of the month in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __STATIC_INLINE void DL_RTC_disableAlarm2DayOfMonthBinary | ( | RTC_Regs * | rtc | ) |
Disable day of the month in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| __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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | day | Value for the day of the month of the RTC calendar Valid values are 1-31 |
References DL_Common_updateReg().
| __STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfMonthBinary | ( | RTC_Regs * | rtc | ) |
Get the day of the month in binary for RTC Calendar Alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| Value | in range: 1-31 |
| __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.
Set prescale timer interrupt interval to DL_RTC_PRESCALE_NONE to keep the timer disabled.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | prescaler0Divider | Value to set for prescaler 0 interrupt interval One of DL_RTC_PRESCALER0_DIVIDE |
| [in] | prescaler1Divider | Value to set for prescaler 1 interrupt interval One of DL_RTC_PRESCALER1_DIVIDE |
| __STATIC_INLINE void DL_RTC_setPeriodicAlarm0 | ( | RTC_Regs * | rtc, |
| DL_RTC_PRESCALER0_DIVIDE | prescaler0Divider | ||
| ) |
Set periodic alarm 0.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | prescaler0Divider | Value to set for prescaler 0 interrupt interval. One of DL_RTC_PRESCALER0_DIVIDE |
References DL_Common_updateReg().
| __STATIC_INLINE void DL_RTC_setPeriodicAlarm1 | ( | RTC_Regs * | rtc, |
| DL_RTC_PRESCALER1_DIVIDE | prescaler1Divider | ||
| ) |
Set periodic alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | prescaler1Divider | Value to set for prescaler 1 interrupt interval. One of DL_RTC_PRESCALER1_DIVIDE |
References DL_Common_updateReg().
| __STATIC_INLINE DL_RTC_PRESCALER0_DIVIDE DL_RTC_getPrescaler0 | ( | RTC_Regs * | rtc | ) |
Get prescaler 0 interrupt interval.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| One | of DL_RTC_PRESCALER0_DIVIDE |
| __STATIC_INLINE DL_RTC_PRESCALER1_DIVIDE DL_RTC_getPrescaler1 | ( | RTC_Regs * | rtc | ) |
Get prescaler 1 interrupt interval.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| One | of DL_RTC_PRESCALER1_DIVIDE |
| __STATIC_INLINE void DL_RTC_enableInterrupt | ( | RTC_Regs * | rtc, |
| uint32_t | interruptMask | ||
| ) |
Enable RTC interrupts.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | interruptMask | Bit mask of interrupts to enable. Logical OR of DL_RTC_INTERRUPT. |
| __STATIC_INLINE void DL_RTC_disableInterrupt | ( | RTC_Regs * | rtc, |
| uint32_t | interruptMask | ||
| ) |
Disable RTC interrupts.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | interruptMask | Bit mask of interrupts to enable. Logical OR of DL_RTC_INTERRUPT |
| __STATIC_INLINE uint32_t DL_RTC_getEnabledInterrupts | ( | RTC_Regs * | rtc, |
| uint32_t | interruptMask | ||
| ) |
Check which RTC interrupts are enabled.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_INTERRUPT |
| Logical | OR of DL_RTC_INTERRUPT values |
| __STATIC_INLINE uint32_t DL_RTC_getEnabledInterruptStatus | ( | RTC_Regs * | rtc, |
| uint32_t | interruptMask | ||
| ) |
Check interrupt flag of enabled RTC interrupts.
Checks if any of the RTC interrupts that were previously enabled are pending.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_INTERRUPT |
| Logical | OR of DL_RTC_INTERRUPT values |
| __STATIC_INLINE uint32_t DL_RTC_getRawInterruptStatus | ( | RTC_Regs * | rtc, |
| uint32_t | interruptMask | ||
| ) |
Check interrupt flag of any RTC interrupt.
Checks if any of the RTC interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_INTERRUPT |
| Logical | OR of DL_RTC_INTERRUPT values |
| __STATIC_INLINE DL_RTC_IIDX DL_RTC_getPendingInterrupt | ( | RTC_Regs * | rtc | ) |
Get highest priority pending RTC interrupt.
Checks if any of the RTC interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| One | of DL_RTC_IIDX |
| __STATIC_INLINE void DL_RTC_clearInterruptStatus | ( | RTC_Regs * | rtc, |
| uint32_t | interruptMask | ||
| ) |
Clear pending RTC interrupts.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_INTERRUPT |
| __STATIC_INLINE void DL_RTC_enableEvent | ( | RTC_Regs * | rtc, |
| uint32_t | eventMask | ||
| ) |
Enable RTC event.
| [in] | rtc | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to enable. Bitwise OR of DL_RTC_EVENT. |
| __STATIC_INLINE void DL_RTC_disableEvent | ( | RTC_Regs * | rtc, |
| uint32_t | eventMask | ||
| ) |
Disable RTC event.
| [in] | rtc | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to enable. Bitwise OR of DL_RTC_EVENT. |
| __STATIC_INLINE uint32_t DL_RTC_getEnabledEvents | ( | RTC_Regs * | rtc, |
| uint32_t | eventMask | ||
| ) |
Check which RTC events are enabled.
| [in] | rtc | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_RTC_EVENT. |
| Bitwise | OR of DL_RTC_EVENT values |
| __STATIC_INLINE uint32_t DL_RTC_getEnabledEventStatus | ( | RTC_Regs * | rtc, |
| uint32_t | eventMask | ||
| ) |
Check event flag of enabled RTC event.
Checks if any of the RTC events that were previously enabled are pending.
| [in] | rtc | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_RTC_EVENT. |
| Bitwise | OR of DL_RTC_EVENT values |
| __STATIC_INLINE uint32_t DL_RTC_getRawEventsStatus | ( | RTC_Regs * | rtc, |
| uint32_t | eventMask | ||
| ) |
Check interrupt flag of any RTC event.
Checks if any events are pending. Events do not have to be previously enabled.
| [in] | rtc | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_RTC_EVENT. |
| Bitwise | OR of DL_RTC_EVENT values |
| __STATIC_INLINE void DL_RTC_clearEventsStatus | ( | RTC_Regs * | rtc, |
| uint32_t | eventMask | ||
| ) |
Clear pending RTC events.
| [in] | rtc | Pointer to the register overlay for the peripheral |
| [in] | eventMask | Bit mask of interrupts to clear. Bitwise OR of DL_RTC_EVENT. |
| __STATIC_INLINE void DL_RTC_setPublisherChanID | ( | RTC_Regs * | rtc, |
| uint8_t | chanID | ||
| ) |
Sets the event publisher channel ID.
| [in] | rtc | Pointer to the register overlay for the peripheral |
| [in] | chanID | Channel ID number. Valid range 0-15. If ChanID == 0 publisher is disconnected. |
| __STATIC_INLINE uint8_t DL_RTC_getPublisherChanID | ( | RTC_Regs * | rtc | ) |
Gets the event publisher channel ID.
| [in] | rtc | Pointer to the register overlay for the peripheral |
References DL_RTC_disableCalendarAlarm1(), DL_RTC_disableCalendarAlarm2(), DL_RTC_enableCalendarAlarm1(), DL_RTC_enableCalendarAlarm2(), DL_RTC_getCalendarAlarm1(), DL_RTC_getCalendarAlarm2(), DL_RTC_getCalendarTime(), DL_RTC_initCalendar(), DL_RTC_setCalendarAlarm1(), and DL_RTC_setCalendarAlarm2().
| 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.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | calendarTime | Structure containing the values for the Calendar to be initialized to |
| [in] | formatSelect | Selectable format the RTC peripheral will provide time in. DL_RTC_FORMAT |
Referenced by DL_RTC_getPublisherChanID().
| DL_RTC_Calendar DL_RTC_getCalendarTime | ( | RTC_Regs * | rtc | ) |
Returns the Calendar Time.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
This function returns the current Calendar Time in the form of a Calendar structure. The time returned will be in the previously selected format.
Referenced by DL_RTC_getPublisherChanID().
| void DL_RTC_setCalendarAlarm1 | ( | RTC_Regs * | rtc, |
| DL_RTC_CalendarAlarm | alarmTime | ||
| ) |
Set calendar alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | alarmTime | Structure containing the values for the alarm to be set to |
Referenced by DL_RTC_getPublisherChanID().
| DL_RTC_CalendarAlarm DL_RTC_getCalendarAlarm1 | ( | RTC_Regs * | rtc | ) |
Get calendar alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
Referenced by DL_RTC_getPublisherChanID().
| void DL_RTC_enableCalendarAlarm1 | ( | RTC_Regs * | rtc | ) |
Enable calendar alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
Referenced by DL_RTC_getPublisherChanID().
| void DL_RTC_disableCalendarAlarm1 | ( | RTC_Regs * | rtc | ) |
Disable calendar alarm 1.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
Referenced by DL_RTC_getPublisherChanID().
| void DL_RTC_setCalendarAlarm2 | ( | RTC_Regs * | rtc, |
| DL_RTC_CalendarAlarm | alarmTime | ||
| ) |
Set calendar alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
| [in] | alarmTime | Structure containing the values for the alarm to be set to |
Referenced by DL_RTC_getPublisherChanID().
| DL_RTC_CalendarAlarm DL_RTC_getCalendarAlarm2 | ( | RTC_Regs * | rtc | ) |
Get calendar alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
Referenced by DL_RTC_getPublisherChanID().
| void DL_RTC_enableCalendarAlarm2 | ( | RTC_Regs * | rtc | ) |
Enable calendar alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
Referenced by DL_RTC_getPublisherChanID().
| void DL_RTC_disableCalendarAlarm2 | ( | RTC_Regs * | rtc | ) |
Disable calendar alarm 2.
| [in] | rtc | Pointer to the register overlay for the RTC peripheral |
Referenced by DL_RTC_getPublisherChanID().