![]() |
![]() |
MSPM0G1X0X_G3X0X Driver Library
2.02.00.05
|
![]() |
Modules | |
DL_RTC_COMMON_INTERRUPT | |
DL_RTC_COMMON_EVENT | |
Data Structures | |
struct | DL_RTC_Common_CalendarAlarm |
Alarm struct to use in DL_RTC_Common_setCalendarAlarm. More... | |
struct | DL_RTC_Common_Calendar |
Calendar struct to use in DL_RTC_Common_initCalendar() More... | |
Functions | |
__STATIC_INLINE bool | DL_RTC_Common_isClockSourceLFCLK (RTC_Regs *rtc_common) |
Returns if LFCLK is selected as clock source. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableClockControl (RTC_Regs *rtc_common) |
Enables the supply of the 32kHz clock to the RTC Common. 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_Common_disableClockControl (RTC_Regs *rtc_common) |
Disables the supply of the 32kHz clock to the RTC Common. More... | |
__STATIC_INLINE void | DL_RTC_Common_enablePower (RTC_Regs *rtc_common) |
Enable power to the RTC Common module. More... | |
__STATIC_INLINE void | DL_RTC_Common_disablePower (RTC_Regs *rtc_common) |
Disable power to the RTC Common module. More... | |
__STATIC_INLINE bool | DL_RTC_Common_isPowerEnabled (RTC_Regs *rtc_common) |
Returns if power is enabled for the RTC Common module. More... | |
__STATIC_INLINE void | DL_RTC_Common_reset (RTC_Regs *rtc_common) |
Resets all registers in the RTC Common module. More... | |
__STATIC_INLINE bool | DL_RTC_Common_isReset (RTC_Regs *rtc_common) |
Returns if the RTC Common module was reset. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableDebugInterrupts (RTC_Regs *rtc_common) |
Enables interrupts when the CPU is in debug mode. Interrupt requests are signaled to the interrupt controller. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableDebugInterrupts (RTC_Regs *rtc_common) |
Disables interrupts when the CPU is in debug mode. Interrupts of the RTC Common module will not be captured. There will be no updates to the RTCRIS, RTCMISC and RTCIIDX registers. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableDebugMode (RTC_Regs *rtc_common) |
Enables the RTC Common modules debug mode. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableDebugMode (RTC_Regs *rtc_common) |
Disables the RTC Common modules debug mode. More... | |
__STATIC_INLINE void | DL_RTC_Common_setClockFormat (RTC_Regs *rtc_common, DL_RTC_COMMON_FORMAT formatSelect) |
Set the format of the real-time clock. More... | |
__STATIC_INLINE DL_RTC_COMMON_FORMAT | DL_RTC_Common_getClockFormat (RTC_Regs *rtc_common) |
Get the format currently being used for counting the real-time clock. More... | |
__STATIC_INLINE void | DL_RTC_Common_setIntervalAlarm (RTC_Regs *rtc_common, DL_RTC_COMMON_INTERVAL_ALARM alarmEvent) |
Sets the interval alarm event condition. More... | |
__STATIC_INLINE DL_RTC_COMMON_INTERVAL_ALARM | DL_RTC_Common_getIntervalAlarm (RTC_Regs *rtc_common) |
Gets the interval alarm event condition. More... | |
__STATIC_INLINE bool | DL_RTC_Common_isSafeToRead (RTC_Regs *rtc_common) |
Checks if RTC Common is safe for reading. More... | |
__STATIC_INLINE bool | DL_RTC_Common_isReadyToCalibrate (RTC_Regs *rtc_common) |
Checks if RTC Common is ready to get new calibration values. More... | |
__STATIC_INLINE bool | DL_RTC_Common_isCalibrationWriteResultOK (RTC_Regs *rtc_common) |
Checks if RTC Common new calibration values were written OK. More... | |
__STATIC_INLINE void | DL_RTC_Common_setOffsetCalibrationFrequency (RTC_Regs *rtc_common, DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY offsetFrequency) |
Sets output frequency for offset calibration. More... | |
__STATIC_INLINE void | DL_RTC_Common_setOffsetCalibrationAdjValue (RTC_Regs *rtc_common, DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue) |
Sets the offset error calibration adjustment value. More... | |
__STATIC_INLINE void | DL_RTC_Common_setOffsetCalibration (RTC_Regs *rtc_common, DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY offsetFrequency, DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue) |
Sets the offset error calibration. More... | |
__STATIC_INLINE DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY | DL_RTC_Common_getOffsetCalibrationFrequency (RTC_Regs *rtc_common) |
Gets the offset calibration frequency. More... | |
__STATIC_INLINE DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN | DL_RTC_Common_getOffsetCalibrationSign (RTC_Regs *rtc_common) |
Gets the offset calibration sign. More... | |
__STATIC_INLINE void | DL_RTC_Common_setTemperatureCompensation (RTC_Regs *rtc_common, DL_RTC_COMMON_TEMP_CALIBRATION offsetDirection, uint32_t offsetValue) |
Set the specified RTC Common temperature compensation. More... | |
__STATIC_INLINE uint32_t | DL_RTC_Common_getTemperatureCompensation (RTC_Regs *rtc_common) |
Get the RTC Common temperature compensation. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarSecondsBCD (RTC_Regs *rtc_common, uint8_t seconds) |
Set the seconds in BCD in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarSecondsBCD (RTC_Regs *rtc_common) |
Get the seconds in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarMinutesBCD (RTC_Regs *rtc_common, uint8_t minutes) |
Set the minutes in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarMinutesBCD (RTC_Regs *rtc_common) |
Get the minutes in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarHoursBCD (RTC_Regs *rtc_common, uint8_t hours) |
Set the hours in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarHoursBCD (RTC_Regs *rtc_common) |
Get the hours in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarDayOfWeekBCD (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the week in BCD in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarDayOfWeekBCD (RTC_Regs *rtc_common) |
Get the day of the week in BCD in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarDayOfMonthBCD (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the month in BCD in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarDayOfMonthBCD (RTC_Regs *rtc_common) |
Get the day of the month in BCD in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarMonthBCD (RTC_Regs *rtc_common, uint8_t month) |
Set the month in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarMonthBCD (RTC_Regs *rtc_common) |
Get the month of the year in BCD in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarYearBCD (RTC_Regs *rtc_common, uint16_t year) |
Set the year in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE uint16_t | DL_RTC_Common_getCalendarYearBCD (RTC_Regs *rtc_common) |
Get the year in in BCD the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1MinutesBCD (RTC_Regs *rtc_common) |
Enable minutes in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1MinutesBCD (RTC_Regs *rtc_common) |
Disable minutes in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1MinutesBCD (RTC_Regs *rtc_common, uint8_t minutes) |
Set the minutes in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1MinutesBCD (RTC_Regs *rtc_common) |
Get the minutes in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1HoursBCD (RTC_Regs *rtc_common) |
Enable hours in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1HoursBCD (RTC_Regs *rtc_common) |
Disable hours in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1HoursBCD (RTC_Regs *rtc_common, uint8_t hours) |
Set the hours in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1HoursBCD (RTC_Regs *rtc_common) |
Get the hours in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1DayOfWeekBCD (RTC_Regs *rtc_common) |
Enable day of the week in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1DayOfWeekBCD (RTC_Regs *rtc_common) |
Disable day of the week in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1DayOfWeekBCD (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the week in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1DayOfWeekBCD (RTC_Regs *rtc_common) |
Get the day of the week in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1DayOfMonthBCD (RTC_Regs *rtc_common) |
Enable day of the month in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1DayOfMonthBCD (RTC_Regs *rtc_common) |
Disable day of the month in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1DayOfMonthBCD (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the month in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1DayOfMonthBCD (RTC_Regs *rtc_common) |
Get the day of the month in BCD for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2MinutesBCD (RTC_Regs *rtc_common) |
Enable minutes in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2MinutesBCD (RTC_Regs *rtc_common) |
Disable minutes in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2MinutesBCD (RTC_Regs *rtc_common, uint8_t minutes) |
Set the minutes in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2MinutesBCD (RTC_Regs *rtc_common) |
Get the minutes in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2HoursBCD (RTC_Regs *rtc_common) |
Enable hours in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2HoursBCD (RTC_Regs *rtc_common) |
Disable hours in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2HoursBCD (RTC_Regs *rtc_common, uint8_t hours) |
Set the hours in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2HoursBCD (RTC_Regs *rtc_common) |
Get the hours in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2DayOfWeekBCD (RTC_Regs *rtc_common) |
Enable day of the week in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2DayOfWeekBCD (RTC_Regs *rtc_common) |
Disable day of the week in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2DayOfWeekBCD (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the week in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2DayOfWeekBCD (RTC_Regs *rtc_common) |
Get the day of the week in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2DayOfMonthBCD (RTC_Regs *rtc_common) |
Enable day of the month in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2DayOfMonthBCD (RTC_Regs *rtc_common) |
Disable day of the month in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2DayOfMonthBCD (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the month in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2DayOfMonthBCD (RTC_Regs *rtc_common) |
Get the day of the month in BCD for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarSecondsBinary (RTC_Regs *rtc_common, uint8_t seconds) |
Set the seconds in binary the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarSecondsBinary (RTC_Regs *rtc_common) |
Get the seconds in binary in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarMinutesBinary (RTC_Regs *rtc_common, uint8_t minutes) |
Set the minutes in binary in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarMinutesBinary (RTC_Regs *rtc_common) |
Get the minutes in binary in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarHoursBinary (RTC_Regs *rtc_common, uint8_t hours) |
Set the hours in binary in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarHoursBinary (RTC_Regs *rtc_common) |
Get the hours in binary in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarDayOfWeekBinary (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the week in binary in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarDayOfWeekBinary (RTC_Regs *rtc_common) |
Get the day of the week in binary in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarDayOfMonthBinary (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the month in binary in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarDayOfMonthBinary (RTC_Regs *rtc_common) |
Get the day of the month in binary in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarMonthBinary (RTC_Regs *rtc_common, uint8_t month) |
Set the month in binary in the RTC Common calendar. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getCalendarMonthBinary (RTC_Regs *rtc_common) |
Get the month of the year in binary in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_setCalendarYearBinary (RTC_Regs *rtc_common, uint16_t year) |
Set the year in binary in the RTC Common calendar. More... | |
__STATIC_INLINE uint16_t | DL_RTC_Common_getCalendarYearBinary (RTC_Regs *rtc_common) |
Get the year in binary in the RTC Common calendar. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1MinutesBinary (RTC_Regs *rtc_common) |
Enable minutes in binary in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1MinutesBinary (RTC_Regs *rtc_common) |
Disable minutes in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1MinutesBinary (RTC_Regs *rtc_common, uint8_t minutes) |
Set the minutes in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1MinutesBinary (RTC_Regs *rtc_common) |
Get the minutes in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1HoursBinary (RTC_Regs *rtc_common) |
Enable hours in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1HoursBinary (RTC_Regs *rtc_common) |
Disable hours in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1HoursBinary (RTC_Regs *rtc_common, uint8_t hours) |
Set the hours in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1HoursBinary (RTC_Regs *rtc_common) |
Get the hours in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1DayOfWeekBinary (RTC_Regs *rtc_common) |
Enable day of the week in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1DayOfWeekBinary (RTC_Regs *rtc_common) |
Disable day of the week in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1DayOfWeekBinary (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the week in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1DayOfWeekBinary (RTC_Regs *rtc_common) |
Get the day of the week in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm1DayOfMonthBinary (RTC_Regs *rtc_common) |
Enable day of the month in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm1DayOfMonthBinary (RTC_Regs *rtc_common) |
Disable day of the month in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm1DayOfMonthBinary (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the month in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm1DayOfMonthBinary (RTC_Regs *rtc_common) |
Get the day of the month in binary for RTC Common Calendar Alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2MinutesBinary (RTC_Regs *rtc_common) |
Enable minutes in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2MinutesBinary (RTC_Regs *rtc_common) |
Disable minutes in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2MinutesBinary (RTC_Regs *rtc_common, uint8_t minutes) |
Set the minutes in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2MinutesBinary (RTC_Regs *rtc_common) |
Get the minutes in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2HoursBinary (RTC_Regs *rtc_common) |
Enable hours in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2HoursBinary (RTC_Regs *rtc_common) |
Disable hours in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2HoursBinary (RTC_Regs *rtc_common, uint8_t hours) |
Set the hours in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2HoursBinary (RTC_Regs *rtc_common) |
Get the hours in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2DayOfWeekBinary (RTC_Regs *rtc_common) |
Enable day of the week in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2DayOfWeekBinary (RTC_Regs *rtc_common) |
Disable day of the week in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2DayOfWeekBinary (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the week in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2DayOfWeekBinary (RTC_Regs *rtc_common) |
Get the day of the week in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableAlarm2DayOfMonthBinary (RTC_Regs *rtc_common) |
Enable day of the month in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableAlarm2DayOfMonthBinary (RTC_Regs *rtc_common) |
Disable day of the month in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setAlarm2DayOfMonthBinary (RTC_Regs *rtc_common, uint8_t day) |
Set the day of the month in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getAlarm2DayOfMonthBinary (RTC_Regs *rtc_common) |
Get the day of the month in binary for RTC Common Calendar Alarm 2. More... | |
__STATIC_INLINE void | DL_RTC_Common_setPrescalerEvents (RTC_Regs *rtc_common, DL_RTC_COMMON_PRESCALER0_DIVIDE prescaler0Divider, DL_RTC_COMMON_PRESCALER1_DIVIDE prescaler1Divider, DL_RTC_COMMON_PRESCALER2_DIVIDE prescaler2Divider) |
Set prescale interrupt interval for timer 0 and 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setPeriodicAlarm0 (RTC_Regs *rtc_common, DL_RTC_COMMON_PRESCALER0_DIVIDE prescaler0Divider) |
Set periodic alarm 0. More... | |
__STATIC_INLINE void | DL_RTC_Common_setPeriodicAlarm1 (RTC_Regs *rtc_common, DL_RTC_COMMON_PRESCALER1_DIVIDE prescaler1Divider) |
Set periodic alarm 1. More... | |
__STATIC_INLINE void | DL_RTC_Common_setPeriodicAlarm2 (RTC_Regs *rtc_common, DL_RTC_COMMON_PRESCALER2_DIVIDE prescaler2Divider) |
Set periodic alarm 2. More... | |
__STATIC_INLINE DL_RTC_COMMON_PRESCALER0_DIVIDE | DL_RTC_Common_getPrescaler0 (RTC_Regs *rtc_common) |
Get prescaler 0 interrupt interval. More... | |
__STATIC_INLINE DL_RTC_COMMON_PRESCALER1_DIVIDE | DL_RTC_Common_getPrescaler1 (RTC_Regs *rtc_common) |
Get prescaler 1 interrupt interval. More... | |
__STATIC_INLINE DL_RTC_COMMON_PRESCALER2_DIVIDE | DL_RTC_Common_getPrescaler2 (RTC_Regs *rtc_common) |
Get prescaler 2 interrupt interval. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampSecondsBCD (RTC_Regs *rtc_common) |
Get the seconds in BCD in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampMinutesBCD (RTC_Regs *rtc_common) |
Get the minutes in BCD in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampHoursBCD (RTC_Regs *rtc_common) |
Get the hours in BCD in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampDayOfWeekBCD (RTC_Regs *rtc_common) |
Get the day of the week in BCD in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampDayOfMonthBCD (RTC_Regs *rtc_common) |
Get the day of the month in BCD in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampMonthBCD (RTC_Regs *rtc_common) |
Get the month of the year in BCD in the time stamp. More... | |
__STATIC_INLINE uint16_t | DL_RTC_Common_getTimeStampYearBCD (RTC_Regs *rtc_common) |
Get the year in BCD in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampSecondsBinary (RTC_Regs *rtc_common) |
Get the seconds in binary in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampMinutesBinary (RTC_Regs *rtc_common) |
Get the minutes in binary in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampHoursBinary (RTC_Regs *rtc_common) |
Get the hours in binary in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampDayOfWeekBinary (RTC_Regs *rtc_common) |
Get the day of the week in binary in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampDayOfMonthBinary (RTC_Regs *rtc_common) |
Get the day of the month in binary in the time stamp. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getTimeStampMonthBinary (RTC_Regs *rtc_common) |
Get the month of the year in binary in the time stamp. More... | |
__STATIC_INLINE uint16_t | DL_RTC_Common_getTimeStampYearBinary (RTC_Regs *rtc_common) |
Get the year in binary in the time stamp. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableInterrupt (RTC_Regs *rtc_common, uint32_t interruptMask) |
Enable RTC Common interrupts. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableInterrupt (RTC_Regs *rtc_common, uint32_t interruptMask) |
Disable RTC Common interrupts. More... | |
__STATIC_INLINE uint32_t | DL_RTC_Common_getEnabledInterrupts (RTC_Regs *rtc_common, uint32_t interruptMask) |
Check which RTC Common interrupts are enabled. More... | |
__STATIC_INLINE uint32_t | DL_RTC_Common_getEnabledInterruptStatus (RTC_Regs *rtc_common, uint32_t interruptMask) |
Check interrupt flag of enabled RTC Common interrupts. More... | |
__STATIC_INLINE uint32_t | DL_RTC_Common_getRawInterruptStatus (RTC_Regs *rtc_common, uint32_t interruptMask) |
Check interrupt flag of any RTC Common interrupt. More... | |
__STATIC_INLINE DL_RTC_COMMON_IIDX | DL_RTC_Common_getPendingInterrupt (RTC_Regs *rtc_common) |
Get highest priority pending RTC Common interrupt. More... | |
__STATIC_INLINE void | DL_RTC_Common_clearInterruptStatus (RTC_Regs *rtc_common, uint32_t interruptMask) |
Clear pending RTC Common interrupts. More... | |
__STATIC_INLINE void | DL_RTC_Common_enableEvent (RTC_Regs *rtc_common, uint32_t eventMask) |
Enable RTC Common event. More... | |
__STATIC_INLINE void | DL_RTC_Common_disableEvent (RTC_Regs *rtc_common, uint32_t eventMask) |
Disable RTC Common event. More... | |
__STATIC_INLINE uint32_t | DL_RTC_Common_getEnabledEvents (RTC_Regs *rtc_common, uint32_t eventMask) |
Check which RTC Common events are enabled. More... | |
__STATIC_INLINE uint32_t | DL_RTC_Common_getEnabledEventStatus (RTC_Regs *rtc_common, uint32_t eventMask) |
Check event flag of enabled RTC Common event. More... | |
__STATIC_INLINE uint32_t | DL_RTC_Common_getRawEventsStatus (RTC_Regs *rtc_common, uint32_t eventMask) |
Check interrupt flag of any RTC Common event. More... | |
__STATIC_INLINE void | DL_RTC_Common_clearEventsStatus (RTC_Regs *rtc_common, uint32_t eventMask) |
Clear pending RTC Common events. More... | |
__STATIC_INLINE void | DL_RTC_Common_setPublisherChanID (RTC_Regs *rtc_common, uint8_t chanID) |
Sets the event publisher channel ID. More... | |
__STATIC_INLINE uint8_t | DL_RTC_Common_getPublisherChanID (RTC_Regs *rtc_common) |
Gets the event publisher channel ID. More... | |
void | DL_RTC_Common_initCalendar (RTC_Regs *rtc_common, DL_RTC_Common_Calendar calendarTime, DL_RTC_COMMON_FORMAT formatSelect) |
Initializes the settings to operate the RTC Common in Calendar mode. More... | |
DL_RTC_Common_Calendar | DL_RTC_Common_getCalendarTime (RTC_Regs *rtc_common) |
Returns the Calendar Time. More... | |
void | DL_RTC_Common_setCalendarAlarm1 (RTC_Regs *rtc_common, DL_RTC_Common_CalendarAlarm alarmTime) |
Set calendar alarm 1. More... | |
DL_RTC_Common_CalendarAlarm | DL_RTC_Common_getCalendarAlarm1 (RTC_Regs *rtc_common) |
Get calendar alarm 1. More... | |
void | DL_RTC_Common_enableCalendarAlarm1 (RTC_Regs *rtc_common) |
Enable calendar alarm 1. More... | |
void | DL_RTC_Common_disableCalendarAlarm1 (RTC_Regs *rtc_common) |
Disable calendar alarm 1. More... | |
void | DL_RTC_Common_setCalendarAlarm2 (RTC_Regs *rtc_common, DL_RTC_Common_CalendarAlarm alarmTime) |
Set calendar alarm 2. More... | |
DL_RTC_Common_CalendarAlarm | DL_RTC_Common_getCalendarAlarm2 (RTC_Regs *rtc_common) |
Get calendar alarm 2. More... | |
void | DL_RTC_Common_enableCalendarAlarm2 (RTC_Regs *rtc_common) |
Enable calendar alarm 2. More... | |
void | DL_RTC_Common_disableCalendarAlarm2 (RTC_Regs *rtc_common) |
Disable calendar alarm 2. More... | |
enum DL_RTC_COMMON_STATUS |
enum DL_RTC_COMMON_FORMAT |
enum DL_RTC_COMMON_IIDX |
__STATIC_INLINE bool DL_RTC_Common_isClockSourceLFCLK | ( | RTC_Regs * | rtc_common | ) |
Returns if LFCLK is selected as clock source.
If the LFCLK is enabled, the RTC Common module will select it as the clock source.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_enableClockControl | ( | RTC_Regs * | rtc_common | ) |
Enables the supply of the 32kHz clock to the RTC Common. It will not power up the 32kHz crystal oscillator. This needs to be done in the Clock System Module.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableClockControl | ( | RTC_Regs * | rtc_common | ) |
Disables the supply of the 32kHz clock to the RTC Common.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_enablePower | ( | RTC_Regs * | rtc_common | ) |
Enable power to the RTC Common module.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disablePower | ( | RTC_Regs * | rtc_common | ) |
Disable power to the RTC Common module.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE bool DL_RTC_Common_isPowerEnabled | ( | RTC_Regs * | rtc_common | ) |
Returns if power is enabled for the RTC Common module.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_reset | ( | RTC_Regs * | rtc_common | ) |
Resets all registers in the RTC Common module.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE bool DL_RTC_Common_isReset | ( | RTC_Regs * | rtc_common | ) |
Returns if the RTC Common module was reset.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_enableDebugInterrupts | ( | RTC_Regs * | rtc_common | ) |
Enables interrupts when the CPU is in debug mode. Interrupt requests are signaled to the interrupt controller.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableDebugInterrupts | ( | RTC_Regs * | rtc_common | ) |
Disables interrupts when the CPU is in debug mode. Interrupts of the RTC Common module will not be captured. There will be no updates to the RTCRIS, RTCMISC and RTCIIDX registers.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_enableDebugMode | ( | RTC_Regs * | rtc_common | ) |
Enables the RTC Common modules debug mode.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableDebugMode | ( | RTC_Regs * | rtc_common | ) |
Disables the RTC Common modules debug mode.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setClockFormat | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_FORMAT | formatSelect | ||
) |
Set the format of the real-time clock.
The format must be selected before the time is set.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | formatSelect | Selectable format the RTC Common peripheral will provide time in. One of DL_RTC_COMMON_FORMAT |
__STATIC_INLINE DL_RTC_COMMON_FORMAT DL_RTC_Common_getClockFormat | ( | RTC_Regs * | rtc_common | ) |
Get the format currently being used for counting the real-time clock.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
One | of DL_RTC_COMMON_FORMAT |
__STATIC_INLINE void DL_RTC_Common_setIntervalAlarm | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_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_COMMON_INTERRUPT_INTERVAL_ALARM interrupt
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | alarmEvent | The interval alarm interrupt condition. One of DL_RTC_COMMON_INTERVAL_ALARM |
References DL_Common_updateReg().
__STATIC_INLINE DL_RTC_COMMON_INTERVAL_ALARM DL_RTC_Common_getIntervalAlarm | ( | RTC_Regs * | rtc_common | ) |
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_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE bool DL_RTC_Common_isSafeToRead | ( | RTC_Regs * | rtc_common | ) |
Checks if RTC Common is safe for reading.
This API checks if the counter/calender registers can be safely read.
The RTC Common 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_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE bool DL_RTC_Common_isReadyToCalibrate | ( | RTC_Regs * | rtc_common | ) |
Checks if RTC Common is ready to get new calibration values.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE bool DL_RTC_Common_isCalibrationWriteResultOK | ( | RTC_Regs * | rtc_common | ) |
Checks if RTC Common new calibration values were written OK.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setOffsetCalibrationFrequency | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_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_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | offsetFrequency | The frequency of offset calibration. Valid values are one of DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY |
References DL_Common_updateReg().
__STATIC_INLINE void DL_RTC_Common_setOffsetCalibrationAdjValue | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_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_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | offsetSign | The sign of offset calibration. Valid values are one of DL_RTC_COMMON_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_Common_setOffsetCalibration | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY | offsetFrequency, | ||
DL_RTC_COMMON_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_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | offsetFrequency | The frequency of offset calibration. Valid values are one of DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY |
[in] | offsetSign | The sign of offset calibration. Valid values are one of DL_RTC_COMMON_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_COMMON_OFFSET_CALIBRATION_FREQUENCY DL_RTC_Common_getOffsetCalibrationFrequency | ( | RTC_Regs * | rtc_common | ) |
Gets the offset calibration frequency.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
One | of DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY |
__STATIC_INLINE DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN DL_RTC_Common_getOffsetCalibrationSign | ( | RTC_Regs * | rtc_common | ) |
Gets the offset calibration sign.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
One | of DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN |
__STATIC_INLINE void DL_RTC_Common_setTemperatureCompensation | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_TEMP_CALIBRATION | offsetDirection, | ||
uint32_t | offsetValue | ||
) |
Set the specified RTC Common temperature compensation.
This function sets the calibration offset to make the RTC Common 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_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | offsetDirection | The direction that the calibration offset will go. Valid values are one of DL_RTC_COMMON_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_Common_getTemperatureCompensation | ( | RTC_Regs * | rtc_common | ) |
Get the RTC Common temperature compensation.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Signed | addition of RTCOCALX and RTCTCMPX values, and the updated sign bit (RTCTCMPS) of the addition result. |
__STATIC_INLINE void DL_RTC_Common_setCalendarSecondsBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | seconds | ||
) |
Set the seconds in BCD in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | seconds | Value for the seconds of the RTC Common calendar Valid values are 0x0-0x59. |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarSecondsBCD | ( | RTC_Regs * | rtc_common | ) |
Get the seconds in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x59 |
__STATIC_INLINE void DL_RTC_Common_setCalendarMinutesBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | minutes | ||
) |
Set the minutes in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | minutes | Value for the minutes of the RTC Common calendar Valid values are 0x0-0x59. |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarMinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x59 |
__STATIC_INLINE void DL_RTC_Common_setCalendarHoursBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | hours | ||
) |
Set the hours in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | hours | Value for the hours of the RTC Common calendar Valid values are 0x0-0x23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarHoursBCD | ( | RTC_Regs * | rtc_common | ) |
Get the hours in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x23 |
__STATIC_INLINE void DL_RTC_Common_setCalendarDayOfWeekBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the week in BCD in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the week of the RTC Common calendar Valid values are 0x0-0x6 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarDayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in BCD in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x6 |
__STATIC_INLINE void DL_RTC_Common_setCalendarDayOfMonthBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the month in BCD in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the month of the RTC Common calendar Valid values are 0x1-0x31 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarDayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in BCD in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x1-0x31 |
__STATIC_INLINE void DL_RTC_Common_setCalendarMonthBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | month | ||
) |
Set the month in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | month | Value for the month of the RTC Common calendar Valid values are 0x1-0x12 |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Get the month of the year in BCD in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x1-0x12 |
__STATIC_INLINE void DL_RTC_Common_setCalendarYearBCD | ( | RTC_Regs * | rtc_common, |
uint16_t | year | ||
) |
Set the year in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | year | Value for the year of the RTC Common calendar Valid values are 0x0-0x4095 |
__STATIC_INLINE uint16_t DL_RTC_Common_getCalendarYearBCD | ( | RTC_Regs * | rtc_common | ) |
Get the year in in BCD the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x4095 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1MinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Enable minutes in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1MinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Disable minutes in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1MinutesBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | minutes | ||
) |
Set the minutes in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | minutes | Value for the minutes of alarm 1 Valid values are 0x0-0x59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1MinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x59 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1HoursBCD | ( | RTC_Regs * | rtc_common | ) |
Enable hours in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1HoursBCD | ( | RTC_Regs * | rtc_common | ) |
Disable hours in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1HoursBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | hours | ||
) |
Set the hours in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | hours | Value for the hours of alarm 1 Valid values are 0x0-0x23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1HoursBCD | ( | RTC_Regs * | rtc_common | ) |
Get the hours in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x23 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1DayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Enable day of the week in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1DayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Disable day of the week in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1DayOfWeekBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the week in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the week of the RTC Common calendar Valid values are 0x0-0x6 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1DayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x6 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1DayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Enable day of the month in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1DayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Disable day of the month in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1DayOfMonthBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the month in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the month of the RTC Common calendar Valid values are 0x1-0x31 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1DayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in BCD for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x1-0x31 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2MinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Enable minutes in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2MinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Disable minutes in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2MinutesBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | minutes | ||
) |
Set the minutes in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | minutes | Value for the minutes of alarm 2 Valid values are 0x0-0x59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2MinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x59 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2HoursBCD | ( | RTC_Regs * | rtc_common | ) |
Enable hours in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2HoursBCD | ( | RTC_Regs * | rtc_common | ) |
Disable hours in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2HoursBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | hours | ||
) |
Set the hours in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | hours | Value for the hours of alarm 2 Valid values are 0x0-0x23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2HoursBCD | ( | RTC_Regs * | rtc_common | ) |
Get the hours in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x23 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2DayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Enable day of the week in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2DayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Disable day of the week in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2DayOfWeekBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the week in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the week of the RTC Common calendar Valid values are 0x0-0x6 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2DayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x6 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2DayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Enable day of the month in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2DayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Disable day of the month in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2DayOfMonthBCD | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the month in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the month of the RTC Common calendar Valid values are 0x1-0x31 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2DayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in BCD for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x1-0x31 |
__STATIC_INLINE void DL_RTC_Common_setCalendarSecondsBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | seconds | ||
) |
Set the seconds in binary the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | seconds | Value for the seconds of the RTC Common calendar Valid values are 0-59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarSecondsBinary | ( | RTC_Regs * | rtc_common | ) |
Get the seconds in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-59 |
__STATIC_INLINE void DL_RTC_Common_setCalendarMinutesBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | minutes | ||
) |
Set the minutes in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | minutes | Value for the minutes of the RTC Common calendar Valid values are 0-59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarMinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-59 |
__STATIC_INLINE void DL_RTC_Common_setCalendarHoursBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | hours | ||
) |
Set the hours in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | hours | Value for the hours of the RTC Common calendar Valid values are 0-23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarHoursBinary | ( | RTC_Regs * | rtc_common | ) |
Get the hours in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-23 |
__STATIC_INLINE void DL_RTC_Common_setCalendarDayOfWeekBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the week in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the week of the RTC Common calendar Valid values are 0-6 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarDayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-6 |
__STATIC_INLINE void DL_RTC_Common_setCalendarDayOfMonthBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the month in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the month of the RTC Common calendar Valid values are 1-31 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarDayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 1-31 |
__STATIC_INLINE void DL_RTC_Common_setCalendarMonthBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | month | ||
) |
Set the month in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | month | Value for the month of the RTC Common calendar Valid values are 1-12 |
__STATIC_INLINE uint8_t DL_RTC_Common_getCalendarMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Get the month of the year in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 1-12 |
__STATIC_INLINE void DL_RTC_Common_setCalendarYearBinary | ( | RTC_Regs * | rtc_common, |
uint16_t | year | ||
) |
Set the year in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | year | Value for the year of the RTC Common calendar Valid values are 0-4095 |
__STATIC_INLINE uint16_t DL_RTC_Common_getCalendarYearBinary | ( | RTC_Regs * | rtc_common | ) |
Get the year in binary in the RTC Common calendar.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-4095 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1MinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Enable minutes in binary in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1MinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Disable minutes in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1MinutesBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | minutes | ||
) |
Set the minutes in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | minutes | Value for the minutes of alarm 1 Valid values are 0-59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1MinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-59 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1HoursBinary | ( | RTC_Regs * | rtc_common | ) |
Enable hours in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1HoursBinary | ( | RTC_Regs * | rtc_common | ) |
Disable hours in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1HoursBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | hours | ||
) |
Set the hours in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | hours | Value for the hours of alarm 1 Valid values are 0-23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1HoursBinary | ( | RTC_Regs * | rtc_common | ) |
Get the hours in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-23 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1DayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Enable day of the week in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1DayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Disable day of the week in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1DayOfWeekBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the week in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the week of the RTC Common calendar Valid values are 0-6 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1DayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-6 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm1DayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Enable day of the month in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm1DayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Disable day of the month in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm1DayOfMonthBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the month in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the month of the RTC Common calendar Valid values are 1-31 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm1DayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in binary for RTC Common Calendar Alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 1-31 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2MinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Enable minutes in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2MinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Disable minutes in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2MinutesBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | minutes | ||
) |
Set the minutes in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | minutes | Value for the minutes of alarm 2 Valid values are 0-59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2MinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-59 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2HoursBinary | ( | RTC_Regs * | rtc_common | ) |
Enable hours in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2HoursBinary | ( | RTC_Regs * | rtc_common | ) |
Disable hours in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2HoursBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | hours | ||
) |
Set the hours in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | hours | Value for the hours of alarm 2 Valid values are 0-23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2HoursBinary | ( | RTC_Regs * | rtc_common | ) |
Get the hours in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-23 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2DayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Enable day of the week in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2DayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Disable day of the week in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2DayOfWeekBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the week in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the week of the RTC Common calendar Valid values are 0-6 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2DayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-6 |
__STATIC_INLINE void DL_RTC_Common_enableAlarm2DayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Enable day of the month in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_disableAlarm2DayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Disable day of the month in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
__STATIC_INLINE void DL_RTC_Common_setAlarm2DayOfMonthBinary | ( | RTC_Regs * | rtc_common, |
uint8_t | day | ||
) |
Set the day of the month in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | day | Value for the day of the month of the RTC Common calendar Valid values are 1-31 |
References DL_Common_updateReg().
__STATIC_INLINE uint8_t DL_RTC_Common_getAlarm2DayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in binary for RTC Common Calendar Alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 1-31 |
__STATIC_INLINE void DL_RTC_Common_setPrescalerEvents | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_PRESCALER0_DIVIDE | prescaler0Divider, | ||
DL_RTC_COMMON_PRESCALER1_DIVIDE | prescaler1Divider, | ||
DL_RTC_COMMON_PRESCALER2_DIVIDE | prescaler2Divider | ||
) |
Set prescale interrupt interval for timer 0 and 1.
Set prescale timer interrupt interval to DL_RTC_COMMON_PRESCALE_NONE to keep the timer disabled.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | prescaler0Divider | Value to set for prescaler 0 interrupt interval One of DL_RTC_COMMON_PRESCALER0_DIVIDE |
[in] | prescaler1Divider | Value to set for prescaler 1 interrupt interval One of DL_RTC_COMMON_PRESCALER1_DIVIDE |
[in] | prescaler2Divider | Value to set for prescaler 2 interrupt interval. One of DL_RTC_COMMON_PRESCALER2_DIVIDE |
__STATIC_INLINE void DL_RTC_Common_setPeriodicAlarm0 | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_PRESCALER0_DIVIDE | prescaler0Divider | ||
) |
Set periodic alarm 0.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | prescaler0Divider | Value to set for prescaler 0 interrupt interval. One of DL_RTC_COMMON_PRESCALER0_DIVIDE |
References DL_Common_updateReg().
__STATIC_INLINE void DL_RTC_Common_setPeriodicAlarm1 | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_PRESCALER1_DIVIDE | prescaler1Divider | ||
) |
Set periodic alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | prescaler1Divider | Value to set for prescaler 1 interrupt interval. One of DL_RTC_COMMON_PRESCALER1_DIVIDE |
References DL_Common_updateReg().
__STATIC_INLINE void DL_RTC_Common_setPeriodicAlarm2 | ( | RTC_Regs * | rtc_common, |
DL_RTC_COMMON_PRESCALER2_DIVIDE | prescaler2Divider | ||
) |
Set periodic alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | prescaler2Divider | Value to set for prescaler 2 interrupt interval. One of DL_RTC_COMMON_PRESCALER2_DIVIDE |
References DL_Common_updateReg().
__STATIC_INLINE DL_RTC_COMMON_PRESCALER0_DIVIDE DL_RTC_Common_getPrescaler0 | ( | RTC_Regs * | rtc_common | ) |
Get prescaler 0 interrupt interval.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
One | of DL_RTC_COMMON_PRESCALER0_DIVIDE |
__STATIC_INLINE DL_RTC_COMMON_PRESCALER1_DIVIDE DL_RTC_Common_getPrescaler1 | ( | RTC_Regs * | rtc_common | ) |
Get prescaler 1 interrupt interval.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
One | of DL_RTC_COMMON_PRESCALER1_DIVIDE |
__STATIC_INLINE DL_RTC_COMMON_PRESCALER2_DIVIDE DL_RTC_Common_getPrescaler2 | ( | RTC_Regs * | rtc_common | ) |
Get prescaler 2 interrupt interval.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
One | of DL_RTC_COMMON_PRESCALER2_DIVIDE |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampSecondsBCD | ( | RTC_Regs * | rtc_common | ) |
Get the seconds in BCD in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampMinutesBCD | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in BCD in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampHoursBCD | ( | RTC_Regs * | rtc_common | ) |
Get the hours in BCD in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampDayOfWeekBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in BCD in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x6 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampDayOfMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in BCD in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x1-0x31 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampMonthBCD | ( | RTC_Regs * | rtc_common | ) |
Get the month of the year in BCD in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x1-0x12 |
__STATIC_INLINE uint16_t DL_RTC_Common_getTimeStampYearBCD | ( | RTC_Regs * | rtc_common | ) |
Get the year in BCD in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0x0-0x4095 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampSecondsBinary | ( | RTC_Regs * | rtc_common | ) |
Get the seconds in binary in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampMinutesBinary | ( | RTC_Regs * | rtc_common | ) |
Get the minutes in binary in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-59 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampHoursBinary | ( | RTC_Regs * | rtc_common | ) |
Get the hours in binary in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-23 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampDayOfWeekBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the week in binary in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-6 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampDayOfMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Get the day of the month in binary in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 1-31 |
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampMonthBinary | ( | RTC_Regs * | rtc_common | ) |
Get the month of the year in binary in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 1-12 |
__STATIC_INLINE uint16_t DL_RTC_Common_getTimeStampYearBinary | ( | RTC_Regs * | rtc_common | ) |
Get the year in binary in the time stamp.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Value | in range: 0-4095 |
__STATIC_INLINE void DL_RTC_Common_enableInterrupt | ( | RTC_Regs * | rtc_common, |
uint32_t | interruptMask | ||
) |
Enable RTC Common interrupts.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | interruptMask | Bit mask of interrupts to enable. Logical OR of DL_RTC_COMMON_INTERRUPT. |
__STATIC_INLINE void DL_RTC_Common_disableInterrupt | ( | RTC_Regs * | rtc_common, |
uint32_t | interruptMask | ||
) |
Disable RTC Common interrupts.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | interruptMask | Bit mask of interrupts to enable. Logical OR of DL_RTC_COMMON_INTERRUPT |
__STATIC_INLINE uint32_t DL_RTC_Common_getEnabledInterrupts | ( | RTC_Regs * | rtc_common, |
uint32_t | interruptMask | ||
) |
Check which RTC Common interrupts are enabled.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_COMMON_INTERRUPT |
Logical | OR of DL_RTC_COMMON_INTERRUPT values |
__STATIC_INLINE uint32_t DL_RTC_Common_getEnabledInterruptStatus | ( | RTC_Regs * | rtc_common, |
uint32_t | interruptMask | ||
) |
Check interrupt flag of enabled RTC Common interrupts.
Checks if any of the RTC Common interrupts that were previously enabled are pending.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_COMMON_INTERRUPT |
Logical | OR of DL_RTC_COMMON_INTERRUPT values |
__STATIC_INLINE uint32_t DL_RTC_Common_getRawInterruptStatus | ( | RTC_Regs * | rtc_common, |
uint32_t | interruptMask | ||
) |
Check interrupt flag of any RTC Common interrupt.
Checks if any of the RTC Common interrupts are pending. Interrupts do not have to be previously enabled.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_COMMON_INTERRUPT |
Logical | OR of DL_RTC_COMMON_INTERRUPT values |
__STATIC_INLINE DL_RTC_COMMON_IIDX DL_RTC_Common_getPendingInterrupt | ( | RTC_Regs * | rtc_common | ) |
Get highest priority pending RTC Common interrupt.
Checks if any of the RTC Common interrupts are pending. Interrupts do not have to be previously enabled.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
One | of DL_RTC_COMMON_IIDX |
__STATIC_INLINE void DL_RTC_Common_clearInterruptStatus | ( | RTC_Regs * | rtc_common, |
uint32_t | interruptMask | ||
) |
Clear pending RTC Common interrupts.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | interruptMask | Bit mask of interrupts to check. Logical OR of DL_RTC_COMMON_INTERRUPT |
__STATIC_INLINE void DL_RTC_Common_enableEvent | ( | RTC_Regs * | rtc_common, |
uint32_t | eventMask | ||
) |
Enable RTC Common event.
[in] | rtc_common | Pointer to the register overlay for the peripheral |
[in] | eventMask | Bit mask of interrupts to enable. Bitwise OR of DL_RTC_COMMON_EVENT. |
__STATIC_INLINE void DL_RTC_Common_disableEvent | ( | RTC_Regs * | rtc_common, |
uint32_t | eventMask | ||
) |
Disable RTC Common event.
[in] | rtc_common | Pointer to the register overlay for the peripheral |
[in] | eventMask | Bit mask of interrupts to enable. Bitwise OR of DL_RTC_COMMON_EVENT. |
__STATIC_INLINE uint32_t DL_RTC_Common_getEnabledEvents | ( | RTC_Regs * | rtc_common, |
uint32_t | eventMask | ||
) |
Check which RTC Common events are enabled.
[in] | rtc_common | Pointer to the register overlay for the peripheral |
[in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_RTC_COMMON_EVENT. |
Bitwise | OR of DL_RTC_COMMON_EVENT values |
__STATIC_INLINE uint32_t DL_RTC_Common_getEnabledEventStatus | ( | RTC_Regs * | rtc_common, |
uint32_t | eventMask | ||
) |
Check event flag of enabled RTC Common event.
Checks if any of the RTC Common events that were previously enabled are pending.
[in] | rtc_common | Pointer to the register overlay for the peripheral |
[in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_RTC_COMMON_EVENT. |
Bitwise | OR of DL_RTC_COMMON_EVENT values |
__STATIC_INLINE uint32_t DL_RTC_Common_getRawEventsStatus | ( | RTC_Regs * | rtc_common, |
uint32_t | eventMask | ||
) |
Check interrupt flag of any RTC Common event.
Checks if any events are pending. Events do not have to be previously enabled.
[in] | rtc_common | Pointer to the register overlay for the peripheral |
[in] | eventMask | Bit mask of interrupts to check. Bitwise OR of DL_RTC_COMMON_EVENT. |
Bitwise | OR of DL_RTC_COMMON_EVENT values |
__STATIC_INLINE void DL_RTC_Common_clearEventsStatus | ( | RTC_Regs * | rtc_common, |
uint32_t | eventMask | ||
) |
Clear pending RTC Common events.
[in] | rtc_common | Pointer to the register overlay for the peripheral |
[in] | eventMask | Bit mask of interrupts to clear. Bitwise OR of DL_RTC_COMMON_EVENT. |
__STATIC_INLINE void DL_RTC_Common_setPublisherChanID | ( | RTC_Regs * | rtc_common, |
uint8_t | chanID | ||
) |
Sets the event publisher channel ID.
[in] | rtc_common | 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_Common_getPublisherChanID | ( | RTC_Regs * | rtc_common | ) |
Gets the event publisher channel ID.
[in] | rtc_common | Pointer to the register overlay for the peripheral |
References DL_Common_updateReg(), DL_RTC_Common_disableCalendarAlarm1(), DL_RTC_Common_disableCalendarAlarm2(), DL_RTC_Common_enableCalendarAlarm1(), DL_RTC_Common_enableCalendarAlarm2(), DL_RTC_Common_getCalendarAlarm1(), DL_RTC_Common_getCalendarAlarm2(), DL_RTC_Common_getCalendarTime(), DL_RTC_Common_initCalendar(), DL_RTC_Common_setCalendarAlarm1(), and DL_RTC_Common_setCalendarAlarm2().
void DL_RTC_Common_initCalendar | ( | RTC_Regs * | rtc_common, |
DL_RTC_Common_Calendar | calendarTime, | ||
DL_RTC_COMMON_FORMAT | formatSelect | ||
) |
Initializes the settings to operate the RTC Common in Calendar mode.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | calendarTime | Structure containing the values for the Calendar to be initialized to |
[in] | formatSelect | Selectable format the RTC Common peripheral will provide time in. DL_RTC_COMMON_FORMAT |
Referenced by DL_RTC_Common_getPublisherChanID().
DL_RTC_Common_Calendar DL_RTC_Common_getCalendarTime | ( | RTC_Regs * | rtc_common | ) |
Returns the Calendar Time.
[in] | rtc_common | Pointer to the register overlay for the RTC Common 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_Common_getPublisherChanID().
void DL_RTC_Common_setCalendarAlarm1 | ( | RTC_Regs * | rtc_common, |
DL_RTC_Common_CalendarAlarm | alarmTime | ||
) |
Set calendar alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | alarmTime | Structure containing the values for the alarm to be set to |
Referenced by DL_RTC_Common_getPublisherChanID().
DL_RTC_Common_CalendarAlarm DL_RTC_Common_getCalendarAlarm1 | ( | RTC_Regs * | rtc_common | ) |
Get calendar alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Referenced by DL_RTC_Common_getPublisherChanID().
void DL_RTC_Common_enableCalendarAlarm1 | ( | RTC_Regs * | rtc_common | ) |
Enable calendar alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Referenced by DL_RTC_Common_getPublisherChanID().
void DL_RTC_Common_disableCalendarAlarm1 | ( | RTC_Regs * | rtc_common | ) |
Disable calendar alarm 1.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Referenced by DL_RTC_Common_getPublisherChanID().
void DL_RTC_Common_setCalendarAlarm2 | ( | RTC_Regs * | rtc_common, |
DL_RTC_Common_CalendarAlarm | alarmTime | ||
) |
Set calendar alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
[in] | alarmTime | Structure containing the values for the alarm to be set to |
Referenced by DL_RTC_Common_getPublisherChanID().
DL_RTC_Common_CalendarAlarm DL_RTC_Common_getCalendarAlarm2 | ( | RTC_Regs * | rtc_common | ) |
Get calendar alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Referenced by DL_RTC_Common_getPublisherChanID().
void DL_RTC_Common_enableCalendarAlarm2 | ( | RTC_Regs * | rtc_common | ) |
Enable calendar alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Referenced by DL_RTC_Common_getPublisherChanID().
void DL_RTC_Common_disableCalendarAlarm2 | ( | RTC_Regs * | rtc_common | ) |
Disable calendar alarm 2.
[in] | rtc_common | Pointer to the register overlay for the RTC Common peripheral |
Referenced by DL_RTC_Common_getPublisherChanID().