48 #include "mxc_device.h" int MXC_RTC_GetSubSecond(void)
Get SubSecond.
int MXC_RTC_SetSubsecondAlarm(uint32_t rssa)
Set Sub-Second alarm value and enable interrupt,.
#define MXC_F_RTC_CTRL_RDY
Definition: rtc_regs.h:179
int MXC_RTC_ClearFlags(int flags)
Clear interrupt flags.
int MXC_RTC_SetTimeofdayAlarm(uint32_t ras)
Set Time-of-Day alarm value and enable Interrupt.
int MXC_RTC_GetTime(uint32_t *sec, uint32_t *subsec)
Get the time using nuclear fusion. Or atomically. Something like that.
#define MXC_F_RTC_CTRL_TOD_ALARM_IE
Definition: rtc_regs.h:170
#define MXC_F_RTC_CTRL_RDY_IE
Definition: rtc_regs.h:182
mxc_rtc_freq_sel_t
Definition: rtc.h:66
int MXC_RTC_Start(void)
Start the Real Time Clock.
#define MXC_S_RTC_CTRL_SQW_SEL_FREQ512HZ
Definition: rtc_regs.h:198
int MXC_RTC_Init(uint32_t sec, uint8_t ssec)
Initialize the sec and ssec registers and enable RTC.
int MXC_RTC_SquareWaveStop(void)
Stop the generation of square wave.
int MXC_RTC_EnableInt(uint32_t mask)
Enable Interurpts.
#define MXC_S_RTC_CTRL_SQW_SEL_FREQ1HZ
Definition: rtc_regs.h:196
#define MXC_F_RTC_CTRL_TOD_ALARM
Definition: rtc_regs.h:185
#define MXC_F_RTC_CTRL_SSEC_ALARM
Definition: rtc_regs.h:188
int MXC_RTC_DisableInt(uint32_t mask)
Disable Interurpts.
int MXC_RTC_GetSecond(void)
Get Second.
int MXC_RTC_GetFlags(void)
Gets interrupt flags.
mxc_rtc_int_fl_t
Bitmasks for each of the RTC's interrupt flags.
Definition: rtc.h:85
int MXC_RTC_Stop(void)
Stop the Real Time Clock.
int MXC_RTC_Trim(int8_t trm)
Set Trim register value.
mxc_rtc_int_en_t
Bitmasks for each of the RTC's interrupt enables.
Definition: rtc.h:76
int MXC_RTC_SquareWaveStart(mxc_rtc_freq_sel_t fq)
Allow generation of Square Wave on the SQW pin.
#define MXC_S_RTC_CTRL_SQW_SEL_FREQ4KHZ
Definition: rtc_regs.h:200
#define MXC_F_RTC_CTRL_SSEC_ALARM_IE
Definition: rtc_regs.h:173