MSPM0G1X0X_G3X0X Driver Library  1.10.01.05
Data Structures | Macros | Enumerations | Functions
dl_rtc.h File Reference

Detailed Description

Real Time Clock (RTC) 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.h:

Go to the source code of this file.

Data Structures

struct  DL_RTC_CalendarAlarm
 Alarm struct to use in DL_RTC_setCalendarAlarm. More...
 
struct  DL_RTC_Calendar
 Calendar struct to use in DL_RTC_initCalendar() More...
 

Macros

#define DL_RTC_INTERRUPT_CALENDAR_ALARM1   (RTC_CPU_INT_IMASK_RTCA1_SET)
 RTC alarm 1 interrupt.
 
#define DL_RTC_INTERRUPT_CALENDAR_ALARM2   (RTC_CPU_INT_IMASK_RTCA2_SET)
 RTC alarm 2 interrupt.
 
#define DL_RTC_INTERRUPT_PRESCALER0   (RTC_CPU_INT_IMASK_RT0PS_SET)
 RTC prescaler 0 interrupt.
 
#define DL_RTC_INTERRUPT_PRESCALER1   (RTC_CPU_INT_IMASK_RT1PS_SET)
 RTC prescaler 1 interrupt.
 
#define DL_RTC_INTERRUPT_INTERVAL_ALARM   (RTC_CPU_INT_IMASK_RTCTEV_SET)
 RTC interval timer interrupt.
 
#define DL_RTC_INTERRUPT_READY   (RTC_CPU_INT_IMASK_RTCRDY_SET)
 RTC ready interrupt.
 
#define DL_RTC_EVENT_CALENDAR_ALARM1   (RTC_GEN_EVENT_IMASK_RTCA1_SET)
 RTC alarm 1 event.
 
#define DL_RTC_EVENT_CALENDAR_ALARM2   (RTC_GEN_EVENT_IMASK_RTCA2_SET)
 RTC alarm 2 event.
 
#define DL_RTC_EVENT_PRESCALER0   (RTC_GEN_EVENT_IMASK_RT0PS_SET)
 RTC prescaler 0 event.
 
#define DL_RTC_EVENT_PRESCALER1   (RTC_GEN_EVENT_IMASK_RT1PS_SET)
 RTC prescaler 1 event.
 
#define DL_RTC_EVENT_INTERVAL_ALARM   (RTC_GEN_EVENT_IMASK_RTCTEV_SET)
 RTC interval timer event.
 
#define DL_RTC_EVENT_READY   (RTC_GEN_EVENT_IMASK_RTCRDY_SET)
 RTC ready event.
 

Enumerations

enum  DL_RTC_STATUS {
  DL_RTC_STATUS_READY = RTC_STA_RTCRDY_READY,
  DL_RTC_STATUS_NOT_READY = RTC_STA_RTCRDY_NOT_READY
}
 
enum  DL_RTC_COMPENSATION_STATUS {
  DL_RTC_COMPENSATION_STATUS_READY = RTC_STA_RTCTCRDY_READY,
  DL_RTC_COMPENSATION_STATUS_NOT_READY = RTC_STA_RTCTCRDY_NOT_READY
}
 
enum  DL_RTC_COMPENSATION_WRITE_RESULT {
  DL_RTC_COMPENSATION_WRITE_RESULT_OK = RTC_STA_RTCTCOK_OK,
  DL_RTC_COMPENSATION_WRITE_RESULT_NOT_OK = RTC_STA_RTCTCOK_NOT_OK
}
 
enum  DL_RTC_OFFSET_CALIBRATION_SIGN {
  DL_RTC_OFFSET_CALIBRATION_SIGN_DOWN = RTC_CAL_RTCOCALS_DOWN,
  DL_RTC_OFFSET_CALIBRATION_SIGN_UP = RTC_CAL_RTCOCALS_UP
}
 
enum  DL_RTC_OFFSET_CALIBRATION_FREQUENCY {
  DL_RTC_OFFSET_CALIBRATION_FREQUENCY_OFF = RTC_CAL_RTCCALFX_OFF,
  DL_RTC_OFFSET_CALIBRATION_FREQUENCY_512 = RTC_CAL_RTCCALFX_F512HZ,
  DL_RTC_OFFSET_CALIBRATION_FREQUENCY_256 = RTC_CAL_RTCCALFX_F256HZ,
  DL_RTC_OFFSET_CALIBRATION_FREQUENCY_1 = RTC_CAL_RTCCALFX_F1HZ
}
 
enum  DL_RTC_TEMP_CALIBRATION {
  DL_RTC_TEMP_CALIBRATION_DOWN1PPM = RTC_TCMP_RTCTCMPS_DOWN,
  DL_RTC_TEMP_CALIBRATION_UP1PPM = RTC_TCMP_RTCTCMPS_UP
}
 
enum  DL_RTC_FORMAT {
  DL_RTC_FORMAT_BINARY = RTC_CTL_RTCBCD_BINARY,
  DL_RTC_FORMAT_BCD = RTC_CTL_RTCBCD_BCD
}
 
enum  DL_RTC_INTERVAL_ALARM {
  DL_RTC_INTERVAL_ALARM_MINUTECHANGE = RTC_CTL_RTCTEVTX_MINUTE,
  DL_RTC_INTERVAL_ALARM_HOURCHANGE = RTC_CTL_RTCTEVTX_HOUR,
  DL_RTC_INTERVAL_ALARM_NOON = RTC_CTL_RTCTEVTX_NOON,
  DL_RTC_INTERVAL_ALARM_MIDNIGHT = RTC_CTL_RTCTEVTX_MIDNIGHT
}
 
enum  DL_RTC_PRESCALER0_DIVIDE {
  DL_RTC_PRESCALER0_DIVIDE_8 = RTC_PSCTL_RT0IP_DIV8,
  DL_RTC_PRESCALER0_DIVIDE_16 = RTC_PSCTL_RT0IP_DIV16,
  DL_RTC_PRESCALER0_DIVIDE_32 = RTC_PSCTL_RT0IP_DIV32,
  DL_RTC_PRESCALER0_DIVIDE_64 = RTC_PSCTL_RT0IP_DIV64,
  DL_RTC_PRESCALER0_DIVIDE_128 = RTC_PSCTL_RT0IP_DIV128,
  DL_RTC_PRESCALER0_DIVIDE_256 = RTC_PSCTL_RT0IP_DIV256
}
 
enum  DL_RTC_PRESCALER1_DIVIDE {
  DL_RTC_PRESCALER1_DIVIDE_2 = RTC_PSCTL_RT1IP_DIV2,
  DL_RTC_PRESCALER1_DIVIDE_4 = RTC_PSCTL_RT1IP_DIV4,
  DL_RTC_PRESCALER1_DIVIDE_8 = RTC_PSCTL_RT1IP_DIV8,
  DL_RTC_PRESCALER1_DIVIDE_16 = RTC_PSCTL_RT1IP_DIV16,
  DL_RTC_PRESCALER1_DIVIDE_32 = RTC_PSCTL_RT1IP_DIV32,
  DL_RTC_PRESCALER1_DIVIDE_64 = RTC_PSCTL_RT1IP_DIV64,
  DL_RTC_PRESCALER1_DIVIDE_128 = RTC_PSCTL_RT1IP_DIV128,
  DL_RTC_PRESCALER1_DIVIDE_256 = RTC_PSCTL_RT1IP_DIV256
}
 
enum  DL_RTC_IIDX {
  DL_RTC_IIDX_ALARM1 = RTC_CPU_INT_IIDX_STAT_RTCA1,
  DL_RTC_IIDX_ALARM2 = RTC_CPU_INT_IIDX_STAT_RTCA2,
  DL_RTC_IIDX_PRESCALER0 = RTC_CPU_INT_IIDX_STAT_RT0PS,
  DL_RTC_IIDX_PRESCALER1 = RTC_CPU_INT_IIDX_STAT_RT1PS,
  DL_RTC_IIDX_INTERVAL_TIMER = RTC_CPU_INT_IIDX_STAT_RTCTEV,
  DL_RTC_IIDX_READY = RTC_CPU_INT_IIDX_STAT_RTCRDY
}
 

Functions

__STATIC_INLINE void DL_RTC_enablePower (RTC_Regs *rtc)
 Enable power to the RTC module. More...
 
__STATIC_INLINE void DL_RTC_disablePower (RTC_Regs *rtc)
 Disable power to the RTC module. More...
 
__STATIC_INLINE bool DL_RTC_isPowerEnabled (RTC_Regs *rtc)
 Returns if power is enabled for the RTC module. More...
 
__STATIC_INLINE void DL_RTC_reset (RTC_Regs *rtc)
 Resets all registers in the RTC module. More...
 
__STATIC_INLINE bool DL_RTC_isReset (RTC_Regs *rtc)
 Returns if the RTC module was reset. More...
 
__STATIC_INLINE void DL_RTC_enableClockControl (RTC_Regs *rtc)
 Enables the supply of the 32kHz clock to the RTC. It will not power up the 32kHz crystal oscillator. This needs to be done in the Clock System Module. More...
 
__STATIC_INLINE void DL_RTC_disableClockControl (RTC_Regs *rtc)
 Disables the supply of the 32kHz clock to the RTC. More...
 
__STATIC_INLINE void DL_RTC_enableDebugInterrupts (RTC_Regs *rtc)
 Enables interrupts when the CPU is in debug mode. Interrupt requests are signaled to the interrupt controller. More...
 
__STATIC_INLINE void DL_RTC_disableDebugInterrupts (RTC_Regs *rtc)
 Disables interrupts when the CPU is in debug mode. Interrupts of the RTC module will not be captured. There will be no updates to the RTCRIS, RTCMISC and RTCIIDX registers. More...
 
__STATIC_INLINE void DL_RTC_enableDebugMode (RTC_Regs *rtc)
 Enables the RTC modules debug mode. More...
 
__STATIC_INLINE void DL_RTC_disableDebugMode (RTC_Regs *rtc)
 Disables the RTC modules debug mode. More...
 
__STATIC_INLINE void DL_RTC_setClockFormat (RTC_Regs *rtc, DL_RTC_FORMAT formatSelect)
 Set the format of the real-time clock. More...
 
__STATIC_INLINE DL_RTC_FORMAT DL_RTC_getClockFormat (RTC_Regs *rtc)
 Get the format currently being used for counting the real-time clock. More...
 
__STATIC_INLINE void DL_RTC_setIntervalAlarm (RTC_Regs *rtc, DL_RTC_INTERVAL_ALARM alarmEvent)
 Sets the interval alarm event condition. More...
 
__STATIC_INLINE DL_RTC_INTERVAL_ALARM DL_RTC_getIntervalAlarm (RTC_Regs *rtc)
 Gets the interval alarm event condition. More...
 
__STATIC_INLINE bool DL_RTC_isSafetoRead (RTC_Regs *rtc)
 Checks if RTC is safe for reading. More...
 
__STATIC_INLINE bool DL_RTC_isReadyToCalibrate (RTC_Regs *rtc)
 Checks if RTC is ready to get new calibration values. More...
 
__STATIC_INLINE bool DL_RTC_isCalibrationWriteResultOK (RTC_Regs *rtc)
 Checks if RTC new calibration values were written OK. More...
 
__STATIC_INLINE void DL_RTC_setOffsetCalibrationFrequency (RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_FREQUENCY offsetFrequency)
 Sets output frequency for offset calibration. More...
 
__STATIC_INLINE void DL_RTC_setOffsetCalibrationAdjValue (RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue)
 Sets the offset error calibration adjustment value. More...
 
__STATIC_INLINE void DL_RTC_setOffsetCalibration (RTC_Regs *rtc, DL_RTC_OFFSET_CALIBRATION_FREQUENCY offsetFrequency, DL_RTC_OFFSET_CALIBRATION_SIGN offsetSign, uint8_t offsetValue)
 Sets the offset error calibration. More...
 
__STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_FREQUENCY DL_RTC_getOffsetCalibrationFrequency (RTC_Regs *rtc)
 Gets the offset calibration frequency. More...
 
__STATIC_INLINE DL_RTC_OFFSET_CALIBRATION_SIGN DL_RTC_getOffsetCalibrationSign (RTC_Regs *rtc)
 Gets the offset calibration sign. More...
 
__STATIC_INLINE uint32_t DL_RTC_getOffsetCalibrationValue (RTC_Regs *rtc)
 Gets the offset error calibration value. More...
 
__STATIC_INLINE void DL_RTC_setTemperatureCompensation (RTC_Regs *rtc, DL_RTC_TEMP_CALIBRATION offsetDirection, uint32_t offsetValue)
 Set the specified RTC temperature compensation. More...
 
__STATIC_INLINE uint32_t DL_RTC_getTemperatureCompensation (RTC_Regs *rtc)
 Get the RTC temperature compensation. More...
 
__STATIC_INLINE void DL_RTC_setCalendarSecondsBCD (RTC_Regs *rtc, uint8_t seconds)
 Set the seconds in BCD in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarSecondsBCD (RTC_Regs *rtc)
 Get the seconds in in BCD the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarMinutesBCD (RTC_Regs *rtc, uint8_t minutes)
 Set the minutes in in BCD the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarMinutesBCD (RTC_Regs *rtc)
 Get the minutes in in BCD the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarHoursBCD (RTC_Regs *rtc, uint8_t hours)
 Set the hours in in BCD the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarHoursBCD (RTC_Regs *rtc)
 Get the hours in in BCD the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarDayOfWeekBCD (RTC_Regs *rtc, uint8_t day)
 Set the day of the week in BCD in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfWeekBCD (RTC_Regs *rtc)
 Get the day of the week in BCD in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarDayOfMonthBCD (RTC_Regs *rtc, uint8_t day)
 Set the day of the month in BCD in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfMonthBCD (RTC_Regs *rtc)
 Get the day of the month in BCD in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarMonthBCD (RTC_Regs *rtc, uint8_t month)
 Set the month in in BCD the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarMonthBCD (RTC_Regs *rtc)
 Get the month of the year in BCD in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarYearBCD (RTC_Regs *rtc, uint16_t year)
 Set the year in in BCD the RTC calendar. More...
 
__STATIC_INLINE uint16_t DL_RTC_getCalendarYearBCD (RTC_Regs *rtc)
 Get the year in in BCD the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1MinutesBCD (RTC_Regs *rtc)
 Enable minutes in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1MinutesBCD (RTC_Regs *rtc)
 Disable minutes in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1MinutesBCD (RTC_Regs *rtc, uint8_t minutes)
 Set the minutes in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1MinutesBCD (RTC_Regs *rtc)
 Get the minutes in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1HoursBCD (RTC_Regs *rtc)
 Enable hours in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1HoursBCD (RTC_Regs *rtc)
 Disable hours in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1HoursBCD (RTC_Regs *rtc, uint8_t hours)
 Set the hours in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1HoursBCD (RTC_Regs *rtc)
 Get the hours in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfWeekBCD (RTC_Regs *rtc)
 Enable day of the week in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfWeekBCD (RTC_Regs *rtc)
 Disable day of the week in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1DayOfWeekBCD (RTC_Regs *rtc, uint8_t day)
 Set the day of the week in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfWeekBCD (RTC_Regs *rtc)
 Get the day of the week in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfMonthBCD (RTC_Regs *rtc)
 Enable day of the month in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfMonthBCD (RTC_Regs *rtc)
 Disable day of the month in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1DayOfMonthBCD (RTC_Regs *rtc, uint8_t day)
 Set the day of the month in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfMonthBCD (RTC_Regs *rtc)
 Get the day of the month in BCD for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2MinutesBCD (RTC_Regs *rtc)
 Enable minutes in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2MinutesBCD (RTC_Regs *rtc)
 Disable minutes in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2MinutesBCD (RTC_Regs *rtc, uint8_t minutes)
 Set the minutes in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2MinutesBCD (RTC_Regs *rtc)
 Get the minutes in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2HoursBCD (RTC_Regs *rtc)
 Enable hours in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2HoursBCD (RTC_Regs *rtc)
 Disable hours in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2HoursBCD (RTC_Regs *rtc, uint8_t hours)
 Set the hours in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2HoursBCD (RTC_Regs *rtc)
 Get the hours in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfWeekBCD (RTC_Regs *rtc)
 Enable day of the week in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfWeekBCD (RTC_Regs *rtc)
 Disable day of the week in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2DayOfWeekBCD (RTC_Regs *rtc, uint8_t day)
 Set the day of the week in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfWeekBCD (RTC_Regs *rtc)
 Get the day of the week in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfMonthBCD (RTC_Regs *rtc)
 Enable day of the month in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfMonthBCD (RTC_Regs *rtc)
 Disable day of the month in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2DayOfMonthBCD (RTC_Regs *rtc, uint8_t day)
 Set the day of the month in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfMonthBCD (RTC_Regs *rtc)
 Get the day of the month in BCD for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setCalendarSecondsBinary (RTC_Regs *rtc, uint8_t seconds)
 Set the seconds in binary the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarSecondsBinary (RTC_Regs *rtc)
 Get the seconds in binary in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarMinutesBinary (RTC_Regs *rtc, uint8_t minutes)
 Set the minutes in binary in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarMinutesBinary (RTC_Regs *rtc)
 Get the minutes in binary in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarHoursBinary (RTC_Regs *rtc, uint8_t hours)
 Set the hours in binary in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarHoursBinary (RTC_Regs *rtc)
 Get the hours in binary in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarDayOfWeekBinary (RTC_Regs *rtc, uint8_t day)
 Set the day of the week in binary in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfWeekBinary (RTC_Regs *rtc)
 Get the day of the week in binary in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarDayOfMonthBinary (RTC_Regs *rtc, uint8_t day)
 Set the day of the month in binary in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarDayOfMonthBinary (RTC_Regs *rtc)
 Get the day of the month in binary in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarMonthBinary (RTC_Regs *rtc, uint8_t month)
 Set the month in binary in the RTC calendar. More...
 
__STATIC_INLINE uint8_t DL_RTC_getCalendarMonthBinary (RTC_Regs *rtc)
 Get the month of the year in binary in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_setCalendarYearBinary (RTC_Regs *rtc, uint16_t year)
 Set the year in binary in the RTC calendar. More...
 
__STATIC_INLINE uint16_t DL_RTC_getCalendarYearBinary (RTC_Regs *rtc)
 Get the year in binary in the RTC calendar. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1MinutesBinary (RTC_Regs *rtc)
 Enable minutes in binary in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1MinutesBinary (RTC_Regs *rtc)
 Disable minutes in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1MinutesBinary (RTC_Regs *rtc, uint8_t minutes)
 Set the minutes in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1MinutesBinary (RTC_Regs *rtc)
 Get the minutes in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1HoursBinary (RTC_Regs *rtc)
 Enable hours in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1HoursBinary (RTC_Regs *rtc)
 Disable hours in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1HoursBinary (RTC_Regs *rtc, uint8_t hours)
 Set the hours in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1HoursBinary (RTC_Regs *rtc)
 Get the hours in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfWeekBinary (RTC_Regs *rtc)
 Enable day of the week in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfWeekBinary (RTC_Regs *rtc)
 Disable day of the week in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1DayOfWeekBinary (RTC_Regs *rtc, uint8_t day)
 Set the day of the week in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfWeekBinary (RTC_Regs *rtc)
 Get the day of the week in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm1DayOfMonthBinary (RTC_Regs *rtc)
 Enable day of the month in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm1DayOfMonthBinary (RTC_Regs *rtc)
 Disable day of the month in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_setAlarm1DayOfMonthBinary (RTC_Regs *rtc, uint8_t day)
 Set the day of the month in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm1DayOfMonthBinary (RTC_Regs *rtc)
 Get the day of the month in binary for RTC Calendar Alarm 1. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2MinutesBinary (RTC_Regs *rtc)
 Enable minutes in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2MinutesBinary (RTC_Regs *rtc)
 Disable minutes in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2MinutesBinary (RTC_Regs *rtc, uint8_t minutes)
 Set the minutes in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2MinutesBinary (RTC_Regs *rtc)
 Get the minutes in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2HoursBinary (RTC_Regs *rtc)
 Enable hours in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2HoursBinary (RTC_Regs *rtc)
 Disable hours in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2HoursBinary (RTC_Regs *rtc, uint8_t hours)
 Set the hours in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2HoursBinary (RTC_Regs *rtc)
 Get the hours in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfWeekBinary (RTC_Regs *rtc)
 Enable day of the week in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfWeekBinary (RTC_Regs *rtc)
 Disable day of the week in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2DayOfWeekBinary (RTC_Regs *rtc, uint8_t day)
 Set the day of the week in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfWeekBinary (RTC_Regs *rtc)
 Get the day of the week in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_enableAlarm2DayOfMonthBinary (RTC_Regs *rtc)
 Enable day of the month in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_disableAlarm2DayOfMonthBinary (RTC_Regs *rtc)
 Disable day of the month in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setAlarm2DayOfMonthBinary (RTC_Regs *rtc, uint8_t day)
 Set the day of the month in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE uint8_t DL_RTC_getAlarm2DayOfMonthBinary (RTC_Regs *rtc)
 Get the day of the month in binary for RTC Calendar Alarm 2. More...
 
__STATIC_INLINE void DL_RTC_setPrescalerEvents (RTC_Regs *rtc, DL_RTC_PRESCALER0_DIVIDE prescaler0Divider, DL_RTC_PRESCALER1_DIVIDE prescaler1Divider)
 Set prescale interrupt interval for timer 0 and 1. More...
 
__STATIC_INLINE void DL_RTC_setPeriodicAlarm0 (RTC_Regs *rtc, DL_RTC_PRESCALER0_DIVIDE prescaler0Divider)
 Set periodic alarm 0. More...
 
__STATIC_INLINE void DL_RTC_setPeriodicAlarm1 (RTC_Regs *rtc, DL_RTC_PRESCALER1_DIVIDE prescaler1Divider)
 Set periodic alarm 1. More...
 
__STATIC_INLINE DL_RTC_PRESCALER0_DIVIDE DL_RTC_getPrescaler0 (RTC_Regs *rtc)
 Get prescaler 0 interrupt interval. More...
 
__STATIC_INLINE DL_RTC_PRESCALER1_DIVIDE DL_RTC_getPrescaler1 (RTC_Regs *rtc)
 Get prescaler 1 interrupt interval. More...
 
__STATIC_INLINE void DL_RTC_enableInterrupt (RTC_Regs *rtc, uint32_t interruptMask)
 Enable RTC interrupts. More...
 
__STATIC_INLINE void DL_RTC_disableInterrupt (RTC_Regs *rtc, uint32_t interruptMask)
 Disable RTC interrupts. More...
 
__STATIC_INLINE uint32_t DL_RTC_getEnabledInterrupts (RTC_Regs *rtc, uint32_t interruptMask)
 Check which RTC interrupts are enabled. More...
 
__STATIC_INLINE uint32_t DL_RTC_getEnabledInterruptStatus (RTC_Regs *rtc, uint32_t interruptMask)
 Check interrupt flag of enabled RTC interrupts. More...
 
__STATIC_INLINE uint32_t DL_RTC_getRawInterruptStatus (RTC_Regs *rtc, uint32_t interruptMask)
 Check interrupt flag of any RTC interrupt. More...
 
__STATIC_INLINE DL_RTC_IIDX DL_RTC_getPendingInterrupt (RTC_Regs *rtc)
 Get highest priority pending RTC interrupt. More...
 
__STATIC_INLINE void DL_RTC_clearInterruptStatus (RTC_Regs *rtc, uint32_t interruptMask)
 Clear pending RTC interrupts. More...
 
__STATIC_INLINE void DL_RTC_enableEvent (RTC_Regs *rtc, uint32_t eventMask)
 Enable RTC event. More...
 
__STATIC_INLINE void DL_RTC_disableEvent (RTC_Regs *rtc, uint32_t eventMask)
 Disable RTC event. More...
 
__STATIC_INLINE uint32_t DL_RTC_getEnabledEvents (RTC_Regs *rtc, uint32_t eventMask)
 Check which RTC events are enabled. More...
 
__STATIC_INLINE uint32_t DL_RTC_getEnabledEventStatus (RTC_Regs *rtc, uint32_t eventMask)
 Check event flag of enabled RTC event. More...
 
__STATIC_INLINE uint32_t DL_RTC_getRawEventsStatus (RTC_Regs *rtc, uint32_t eventMask)
 Check interrupt flag of any RTC event. More...
 
__STATIC_INLINE void DL_RTC_clearEventsStatus (RTC_Regs *rtc, uint32_t eventMask)
 Clear pending RTC events. More...
 
__STATIC_INLINE void DL_RTC_setPublisherChanID (RTC_Regs *rtc, uint8_t chanID)
 Sets the event publisher channel ID. More...
 
__STATIC_INLINE uint8_t DL_RTC_getPublisherChanID (RTC_Regs *rtc)
 Gets the event publisher channel ID. More...
 
void DL_RTC_initCalendar (RTC_Regs *rtc, DL_RTC_Calendar calendarTime, DL_RTC_FORMAT formatSelect)
 Initializes the settings to operate the RTC in Calendar mode. More...
 
DL_RTC_Calendar DL_RTC_getCalendarTime (RTC_Regs *rtc)
 Returns the Calendar Time. More...
 
void DL_RTC_setCalendarAlarm1 (RTC_Regs *rtc, DL_RTC_CalendarAlarm alarmTime)
 Set calendar alarm 1. More...
 
DL_RTC_CalendarAlarm DL_RTC_getCalendarAlarm1 (RTC_Regs *rtc)
 Get calendar alarm 1. More...
 
void DL_RTC_enableCalendarAlarm1 (RTC_Regs *rtc)
 Enable calendar alarm 1. More...
 
void DL_RTC_disableCalendarAlarm1 (RTC_Regs *rtc)
 Disable calendar alarm 1. More...
 
void DL_RTC_setCalendarAlarm2 (RTC_Regs *rtc, DL_RTC_CalendarAlarm alarmTime)
 Set calendar alarm 2. More...
 
DL_RTC_CalendarAlarm DL_RTC_getCalendarAlarm2 (RTC_Regs *rtc)
 Get calendar alarm 2. More...
 
void DL_RTC_enableCalendarAlarm2 (RTC_Regs *rtc)
 Enable calendar alarm 2. More...
 
void DL_RTC_disableCalendarAlarm2 (RTC_Regs *rtc)
 Disable calendar alarm 2. More...
 
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale