MSPM0C1105_C1106 Driver Library  2.05.01.00
Data Structures | Macros | Enumerations | Functions
dl_rtc_common.h File Reference

Detailed Description

Real Time Clock A (RTC Common) Peripheral Interface.


#include <stdbool.h>
#include <stdint.h>
#include <ti/devices/msp/msp.h>
#include <ti/driverlib/dl_common.h>
Include dependency graph for dl_rtc_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...
 

Macros

#define DL_RTC_COMMON_INTERRUPT_CALENDAR_ALARM1   (RTC_CPU_INT_IMASK_RTCA1_SET)
 RTC Common alarm 1 interrupt.
 
#define DL_RTC_COMMON_INTERRUPT_CALENDAR_ALARM2   (RTC_CPU_INT_IMASK_RTCA2_SET)
 RTC Common alarm 2 interrupt.
 
#define DL_RTC_COMMON_INTERRUPT_PRESCALER0   (RTC_CPU_INT_IMASK_RT0PS_SET)
 RTC Common prescaler 0 interrupt.
 
#define DL_RTC_COMMON_INTERRUPT_PRESCALER1   (RTC_CPU_INT_IMASK_RT1PS_SET)
 RTC Common prescaler 1 interrupt.
 
#define DL_RTC_COMMON_INTERRUPT_INTERVAL_ALARM   (RTC_CPU_INT_IMASK_RTCTEV_SET)
 RTC Common interval timer interrupt.
 
#define DL_RTC_COMMON_INTERRUPT_READY   (RTC_CPU_INT_IMASK_RTCRDY_SET)
 RTC Common ready interrupt.
 
#define DL_RTC_COMMON_EVENT_CALENDAR_ALARM1   (RTC_GEN_EVENT_IMASK_RTCA1_SET)
 RTC Common alarm 1 event.
 
#define DL_RTC_COMMON_EVENT_CALENDAR_ALARM2   (RTC_GEN_EVENT_IMASK_RTCA2_SET)
 RTC Common alarm 2 event.
 
#define DL_RTC_COMMON_EVENT_PRESCALER0   (RTC_GEN_EVENT_IMASK_RT0PS_SET)
 RTC Common prescaler 0 event.
 
#define DL_RTC_COMMON_EVENT_PRESCALER1   (RTC_GEN_EVENT_IMASK_RT1PS_SET)
 RTC Common prescaler 1 event.
 
#define DL_RTC_COMMON_EVENT_INTERVAL_ALARM   (RTC_GEN_EVENT_IMASK_RTCTEV_SET)
 RTC Common interval timer event.
 
#define DL_RTC_COMMON_EVENT_READY   (RTC_GEN_EVENT_IMASK_RTCRDY_SET)
 RTC Common ready event.
 

Enumerations

enum  DL_RTC_COMMON_STATUS {
  DL_RTC_COMMON_STATUS_READY = RTC_STA_RTCRDY_READY,
  DL_RTC_COMMON_STATUS_NOT_READY = RTC_STA_RTCRDY_NOT_READY
}
 
enum  DL_RTC_COMMON_COMPENSATION_STATUS {
  DL_RTC_COMMON_COMPENSATION_STATUS_READY = RTC_STA_RTCTCRDY_READY,
  DL_RTC_COMMON_COMPENSATION_STATUS_NOT_READY = RTC_STA_RTCTCRDY_NOT_READY
}
 
enum  DL_RTC_COMMON_COMPENSATION_WRITE_RESULT {
  DL_RTC_COMMON_COMPENSATION_WRITE_RESULT_OK = RTC_STA_RTCTCOK_OK,
  DL_RTC_COMMON_COMPENSATION_WRITE_RESULT_NOT_OK = RTC_STA_RTCTCOK_NOT_OK
}
 
enum  DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN {
  DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN_DOWN = RTC_CAL_RTCOCALS_DOWN,
  DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN_UP = RTC_CAL_RTCOCALS_UP
}
 
enum  DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY {
  DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY_512 = RTC_CAL_RTCCALFX_F512HZ,
  DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY_256 = RTC_CAL_RTCCALFX_F256HZ,
  DL_RTC_COMMON_OFFSET_CALIBRATION_FREQUENCY_1 = RTC_CAL_RTCCALFX_F1HZ
}
 
enum  DL_RTC_COMMON_TEMP_CALIBRATION {
  DL_RTC_COMMON_TEMP_CALIBRATION_DOWN1PPM = RTC_TCMP_RTCTCMPS_DOWN,
  DL_RTC_COMMON_TEMP_CALIBRATION_UP1PPM = RTC_TCMP_RTCTCMPS_UP
}
 
enum  DL_RTC_COMMON_FORMAT {
  DL_RTC_COMMON_FORMAT_BINARY = RTC_CTL_RTCBCD_BINARY,
  DL_RTC_COMMON_FORMAT_BCD = RTC_CTL_RTCBCD_BCD
}
 
enum  DL_RTC_COMMON_INTERVAL_ALARM {
  DL_RTC_COMMON_INTERVAL_ALARM_MINUTECHANGE = RTC_CTL_RTCTEVTX_MINUTE,
  DL_RTC_COMMON_INTERVAL_ALARM_HOURCHANGE = RTC_CTL_RTCTEVTX_HOUR,
  DL_RTC_COMMON_INTERVAL_ALARM_NOON = RTC_CTL_RTCTEVTX_NOON,
  DL_RTC_COMMON_INTERVAL_ALARM_MIDNIGHT = RTC_CTL_RTCTEVTX_MIDNIGHT
}
 
enum  DL_RTC_COMMON_PRESCALER0_DIVIDE {
  DL_RTC_COMMON_PRESCALER0_DIVIDE_8 = RTC_PSCTL_RT0IP_DIV8,
  DL_RTC_COMMON_PRESCALER0_DIVIDE_16 = RTC_PSCTL_RT0IP_DIV16,
  DL_RTC_COMMON_PRESCALER0_DIVIDE_32 = RTC_PSCTL_RT0IP_DIV32,
  DL_RTC_COMMON_PRESCALER0_DIVIDE_64 = RTC_PSCTL_RT0IP_DIV64,
  DL_RTC_COMMON_PRESCALER0_DIVIDE_128 = RTC_PSCTL_RT0IP_DIV128,
  DL_RTC_COMMON_PRESCALER0_DIVIDE_256 = RTC_PSCTL_RT0IP_DIV256
}
 
enum  DL_RTC_COMMON_PRESCALER1_DIVIDE {
  DL_RTC_COMMON_PRESCALER1_DIVIDE_2 = RTC_PSCTL_RT1IP_DIV2,
  DL_RTC_COMMON_PRESCALER1_DIVIDE_4 = RTC_PSCTL_RT1IP_DIV4,
  DL_RTC_COMMON_PRESCALER1_DIVIDE_8 = RTC_PSCTL_RT1IP_DIV8,
  DL_RTC_COMMON_PRESCALER1_DIVIDE_16 = RTC_PSCTL_RT1IP_DIV16,
  DL_RTC_COMMON_PRESCALER1_DIVIDE_32 = RTC_PSCTL_RT1IP_DIV32,
  DL_RTC_COMMON_PRESCALER1_DIVIDE_64 = RTC_PSCTL_RT1IP_DIV64,
  DL_RTC_COMMON_PRESCALER1_DIVIDE_128 = RTC_PSCTL_RT1IP_DIV128,
  DL_RTC_COMMON_PRESCALER1_DIVIDE_256 = RTC_PSCTL_RT1IP_DIV256
}
 
enum  DL_RTC_COMMON_PRESCALER2_DIVIDE {
  DL_RTC_COMMON_PRESCALER2_4_SEC = RTC_EXTPSCTL_RT2PS_INT4S,
  DL_RTC_COMMON_PRESCALER2_8_SEC = RTC_EXTPSCTL_RT2PS_INT8S,
  DL_RTC_COMMON_PRESCALER2_16_SEC = RTC_EXTPSCTL_RT2PS_INT16S
}
 
enum  DL_RTC_COMMON_IIDX {
  DL_RTC_COMMON_IIDX_ALARM1 = RTC_CPU_INT_IIDX_STAT_RTCA1,
  DL_RTC_COMMON_IIDX_ALARM2 = RTC_CPU_INT_IIDX_STAT_RTCA2,
  DL_RTC_COMMON_IIDX_PRESCALER0 = RTC_CPU_INT_IIDX_STAT_RT0PS,
  DL_RTC_COMMON_IIDX_PRESCALER1 = RTC_CPU_INT_IIDX_STAT_RT1PS,
  DL_RTC_COMMON_IIDX_PRESCALER2 = RTC_CPU_INT_IIDX_STAT_RT2PS,
  DL_RTC_COMMON_IIDX_INTERVAL_TIMER = RTC_CPU_INT_IIDX_STAT_RTCTEV,
  DL_RTC_COMMON_IIDX_READY = RTC_CPU_INT_IIDX_STAT_RTCRDY
}
 

Functions

__STATIC_INLINE bool DL_RTC_Common_isClockSourceLFCLK (const 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)
 Enables the Peripheral Write Enable (PWREN) register for the RTC. More...
 
__STATIC_INLINE void DL_RTC_Common_disablePower (RTC_Regs *rtc_common)
 Disables the Peripheral Write Enable (PWREN) register for the RTC. More...
 
__STATIC_INLINE bool DL_RTC_Common_isPowerEnabled (const RTC_Regs *rtc_common)
 Returns if the Peripheral Write Enable (PWREN) register for the RTC is enabled. 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 (const 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 (const 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 (const RTC_Regs *rtc_common)
 Gets the interval alarm event condition. More...
 
__STATIC_INLINE bool DL_RTC_Common_isSafeToRead (const RTC_Regs *rtc_common)
 Checks if RTC Common is safe for reading. More...
 
__STATIC_INLINE bool DL_RTC_Common_isReadyToCalibrate (const RTC_Regs *rtc_common)
 Checks if RTC Common is ready to get new calibration values. More...
 
__STATIC_INLINE bool DL_RTC_Common_isCalibrationWriteResultOK (const 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 (const RTC_Regs *rtc_common)
 Gets the offset calibration frequency. More...
 
__STATIC_INLINE DL_RTC_COMMON_OFFSET_CALIBRATION_SIGN DL_RTC_Common_getOffsetCalibrationSign (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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, 1, and 2. 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 (const RTC_Regs *rtc_common)
 Get prescaler 0 interrupt interval. More...
 
__STATIC_INLINE DL_RTC_COMMON_PRESCALER1_DIVIDE DL_RTC_Common_getPrescaler1 (const RTC_Regs *rtc_common)
 Get prescaler 1 interrupt interval. More...
 
__STATIC_INLINE DL_RTC_COMMON_PRESCALER2_DIVIDE DL_RTC_Common_getPrescaler2 (const RTC_Regs *rtc_common)
 Get prescaler 2 interrupt interval. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampSecondsBCD (const RTC_Regs *rtc_common)
 Get the seconds in BCD in the time stamp. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampMinutesBCD (const RTC_Regs *rtc_common)
 Get the minutes in BCD in the time stamp. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampHoursBCD (const RTC_Regs *rtc_common)
 Get the hours in BCD in the time stamp. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampDayOfWeekBCD (const 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 (const 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 (const 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 (const RTC_Regs *rtc_common)
 Get the year in BCD in the time stamp. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampSecondsBinary (const RTC_Regs *rtc_common)
 Get the seconds in binary in the time stamp. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampMinutesBinary (const RTC_Regs *rtc_common)
 Get the minutes in binary in the time stamp. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampHoursBinary (const RTC_Regs *rtc_common)
 Get the hours in binary in the time stamp. More...
 
__STATIC_INLINE uint8_t DL_RTC_Common_getTimeStampDayOfWeekBinary (const 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 (const 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 (const 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 (const 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 (const RTC_Regs *rtc_common, uint32_t interruptMask)
 Check which RTC Common interrupts are enabled. More...
 
__STATIC_INLINE uint32_t DL_RTC_Common_getEnabledInterruptStatus (const RTC_Regs *rtc_common, uint32_t interruptMask)
 Check interrupt flag of enabled RTC Common interrupts. More...
 
__STATIC_INLINE uint32_t DL_RTC_Common_getRawInterruptStatus (const 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 (const 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 (const RTC_Regs *rtc_common, uint32_t eventMask)
 Check which RTC Common events are enabled. More...
 
__STATIC_INLINE uint32_t DL_RTC_Common_getEnabledEventStatus (const RTC_Regs *rtc_common, uint32_t eventMask)
 Check event flag of enabled RTC Common event. More...
 
__STATIC_INLINE uint32_t DL_RTC_Common_getRawEventsStatus (const 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 (const 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 (const 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 (const 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 (const 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...
 
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale