 |
MAX32675 Peripheral Driver API
Peripheral Driver API for the MAX32675
|
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:73
#define MXC_S_RTC_CTRL_SQW_SEL_FREQ1HZ
Definition: rtc_regs.h:196
#define MXC_F_RTC_CTRL_TOD_ALARM_IE
Definition: rtc_regs.h:170
int MXC_RTC_SetSubsecondAlarm(uint32_t rssa)
Set Sub-Second alarm value and enable interrupt,.
@ MXC_RTC_F_4KHZ
4Khz
Definition: rtc.h:66
#define MXC_F_RTC_CTRL_RDY
Definition: rtc_regs.h:179
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:63
#define MXC_F_RTC_CTRL_SSEC_ALARM_IE
Definition: rtc_regs.h:173
int MXC_RTC_EnableInt(uint32_t mask)
Enable Interurpts.
#define MXC_S_RTC_CTRL_SQW_SEL_FREQ512HZ
Definition: rtc_regs.h:198
@ MXC_RTC_INT_FL_READY
Timer ready interrupt flag.
Definition: rtc.h:85
@ MXC_RTC_INT_FL_SHORT
Short-interval alarm interrupt flag.
Definition: rtc.h:84
@ MXC_RTC_INT_FL_LONG
Long-interval alarm interrupt flag.
Definition: rtc.h:83
int MXC_RTC_GetSecond(void)
Get Second.
@ MXC_RTC_INT_EN_READY
Timer ready interrupt enable.
Definition: rtc.h:76
#define MXC_F_RTC_CTRL_TOD_ALARM
Definition: rtc_regs.h:185
int MXC_RTC_Trim(int8_t trm)
Set Trim register value.
@ MXC_RTC_INT_EN_SHORT
Short-interval alarm interrupt enable.
Definition: rtc.h:75
int MXC_RTC_SquareWaveStop(void)
Stop the generation of square wave.
#define MXC_S_RTC_CTRL_SQW_SEL_FREQ4KHZ
Definition: rtc_regs.h:200
@ MXC_RTC_F_512HZ
512Hz (Compensated)
Definition: rtc.h:65
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:74
mxc_rtc_int_fl_t
Bitmasks for each of the RTC's interrupt flags.
Definition: rtc.h:82
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_RDY_IE
Definition: rtc_regs.h:182
@ MXC_RTC_F_1HZ
1Hz (Compensated)
Definition: rtc.h:64
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.
#define MXC_F_RTC_CTRL_SSEC_ALARM
Definition: rtc_regs.h:188
@ MXC_RTC_F_32KHZ
32Khz
Definition: rtc.h:67
int MXC_RTC_Stop(void)
Stop the Real Time Clock.