48 #include "mxc_config.h" 178 rtc_osc_mode_t x32kmd,
const sys_cfg_rtc_t* sys_cfg);
int RTC_EnableRTCE(mxc_rtc_regs_t *rtc)
Enable/Start the Real Time Clock.
4Khz
Definition: rtc.h:72
int RTC_SetSubsecondAlarm(mxc_rtc_regs_t *rtc, uint32_t rssa)
Set Sub-Second alarm value and enable interrupt,.
#define MXC_S_RTC_CTRL_X32KMD_NOISEIMMUNEMODE
CTRL_X32KMD_NOISEIMMUNEMODE Setting.
Definition: rtc_regs.h:196
int RTC_EnableSubsecondInterrupt(mxc_rtc_regs_t *rtc)
Enables Sub-Second's Alarm Interrupt.
int RTC_GetFlags(void)
Gets Interrupt flags.
int RTC_DisableTimeofdayInterrupt(mxc_rtc_regs_t *rtc)
Disable Time-of-Day's Alarm Interrupt.
1Hz (Compensated)
Definition: rtc.h:70
#define MXC_S_RTC_CTRL_X32KMD_QUIETINSTOPNOWARMUP
CTRL_X32KMD_QUIETINSTOPNOWARMUP Setting.
Definition: rtc_regs.h:202
int RTC_SetTimeofdayAlarm(mxc_rtc_regs_t *rtc, uint32_t ras)
Set Time-of-Day alarm value and enable Interrupt.
#define MXC_S_RTC_CTRL_FT_FREQ512HZ
CTRL_FT_FREQ512HZ Setting.
Definition: rtc_regs.h:187
Structure type to access the RTC Registers.
Definition: rtc_regs.h:88
int RTC_CheckBusy(void)
Check if BUSY bit is 0.
int RTC_ClearFlags(int flags)
Clear Interrupt flag.
int RTC_Init(mxc_rtc_regs_t *rtc, uint32_t sec, uint16_t ssec, sys_cfg_rtc_t *sys_cfg)
Initialize the sec and ssec registers and enable RTC.
int RTC_GetTime(uint32_t *sec, uint32_t *subsec)
Read seconds, then subseconds, and finally seconds.
int RTC_GetSecond(void)
Get Second.
int RTC_SquareWave(mxc_rtc_regs_t *rtc, rtc_sqwave_en_t sqe, rtc_freq_sel_t ft, rtc_osc_mode_t x32kmd, const sys_cfg_rtc_t *sys_cfg)
Allow generation of Square Wave on the SQW pin.
#define MXC_S_RTC_CTRL_FT_FREQ4KHZ
CTRL_FT_FREQ4KHZ Setting.
Definition: rtc_regs.h:189
512Hz (Compensated)
Definition: rtc.h:71
int RTC_GetSubSecond(void)
Get SubSecond.
rtc_sqwave_en_t
Definition: rtc.h:64
int RTC_Trim(mxc_rtc_regs_t *rtc, int8_t trm)
Set Trim register value.
#define MXC_S_RTC_CTRL_X32KMD_QUIETINSTOPWITHWARMUP
CTRL_X32KMD_QUIETINSTOPWITHWARMUP Setting.
Definition: rtc_regs.h:200
int RTC_DisableSubsecondInterrupt(mxc_rtc_regs_t *rtc)
Disable Sub-Second's Alarm Interrupt.
#define MXC_S_RTC_CTRL_FT_FREQ1HZ
CTRL_FT_FREQ1HZ Setting.
Definition: rtc_regs.h:185
32Khz
Definition: rtc.h:73
#define MXC_S_RTC_CTRL_X32KMD_QUIETMODE
CTRL_X32KMD_QUIETMODE Setting.
Definition: rtc_regs.h:198
int RTC_DisableRTCE(mxc_rtc_regs_t *rtc)
Disable/Stop the Real Time Clock.
rtc_freq_sel_t
Definition: rtc.h:69
int RTC_EnableTimeofdayInterrupt(mxc_rtc_regs_t *rtc)
Enables Time-of-Day's Alarm Interrupt.