 |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
45 #include "mxc_device.h"
int MXC_RTC_GetSubSecond(void)
Get SubSecond.
mxc_rtc_int_en_t
Bitmasks for each of the RTC's interrupt enables.
Definition: rtc.h:74
#define MXC_S_RTC_CTRL_FREQ_SEL_FREQ512HZ
Definition: rtc_regs.h:187
#define MXC_F_RTC_CTRL_READY
Definition: rtc_regs.h:168
int MXC_RTC_SetSubsecondAlarm(uint32_t rssa)
Set Sub-Second alarm value and enable interrupt,.
@ MXC_RTC_F_4KHZ
4Khz
Definition: rtc.h:67
int MXC_RTC_Init(uint32_t sec, uint8_t ssec)
Initialize the sec and ssec registers and enable RTC.
int MXC_RTC_SetTimeofdayAlarm(uint32_t ras)
Set Time-of-Day alarm value and enable Interrupt.
int MXC_RTC_Start(void)
Start the Real Time Clock.
mxc_rtc_freq_sel_t
Bitmasks for each of the RTC's Frequency.
Definition: rtc.h:64
#define MXC_F_RTC_CTRL_READY_INT_EN
Definition: rtc_regs.h:171
#define MXC_S_RTC_CTRL_FREQ_SEL_FREQ4KHZ
Definition: rtc_regs.h:189
#define MXC_F_RTC_CTRL_TOD_ALARM_FL
Definition: rtc_regs.h:174
int MXC_RTC_EnableInt(uint32_t mask)
Enable Interurpts.
@ MXC_RTC_INT_FL_READY
Timer ready interrupt flag.
Definition: rtc.h:86
@ MXC_RTC_INT_FL_SHORT
Short-interval alarm interrupt flag.
Definition: rtc.h:85
#define MXC_F_RTC_CTRL_SSEC_ALARM_FL
Definition: rtc_regs.h:177
@ MXC_RTC_INT_FL_LONG
Long-interval alarm interrupt flag.
Definition: rtc.h:84
#define MXC_F_RTC_CTRL_SSEC_ALARM_EN
Definition: rtc_regs.h:162
int MXC_RTC_GetSecond(void)
Get Second.
@ MXC_RTC_INT_EN_READY
Timer ready interrupt enable.
Definition: rtc.h:77
int MXC_RTC_Trim(int8_t trm)
Set Trim register value.
@ MXC_RTC_INT_EN_SHORT
Short-interval alarm interrupt enable.
Definition: rtc.h:76
int MXC_RTC_SquareWaveStop(void)
Stop the generation of square wave.
@ MXC_RTC_F_512HZ
512Hz (Compensated)
Definition: rtc.h:66
int MXC_RTC_GetFlags(void)
Gets interrupt flags.
int MXC_RTC_DisableInt(uint32_t mask)
Disable Interurpts.
@ MXC_RTC_INT_EN_LONG
Long-interval alarm interrupt enable.
Definition: rtc.h:75
#define MXC_F_RTC_CTRL_TOD_ALARM_EN
Definition: rtc_regs.h:159
mxc_rtc_int_fl_t
Bitmasks for each of the RTC's interrupt flags.
Definition: rtc.h:83
#define MXC_S_RTC_CTRL_FREQ_SEL_FREQ1HZ
Definition: rtc_regs.h:185
int MXC_RTC_GetTime(uint32_t *sec, uint32_t *subsec)
Get the time using nuclear fusion. Or atomically. Something like that.
@ MXC_RTC_F_1HZ
1Hz (Compensated)
Definition: rtc.h:65
int MXC_RTC_SquareWaveStart(mxc_rtc_freq_sel_t fq)
Allow generation of Square Wave on the SQW pin.
int MXC_RTC_ClearFlags(int flags)
Clear interrupt flags.
@ MXC_RTC_F_32KHZ
32Khz
Definition: rtc.h:68
int MXC_RTC_Stop(void)
Stop the Real Time Clock.