#include "fw_conf.h"
#include "fw_types.h"
Go to the source code of this file.
|
| #define | RTC_SetRunState(__STATE__) SFRX_ASSIGN(RTCCR, 0, (__STATE__)) |
| |
| #define | RTC_SetClockSource(__SOURCE__) SFRX_ASSIGN(RTCCFG, 1, (__SOURCE__)) |
| |
| #define | RTC_ConfigClockApply() SFRX_SET(RTCCFG, 0) |
| |
| #define | RTC_ClearAllInterrupts() (RTCIF = 0x00) |
| |
| #define | RTC_IsAlarmInterrupt() (RTCIF & 0x80) |
| |
| #define | RTC_ClearAlarmInterrupt() (RTCIF &= ~0x80) |
| |
| #define | RTC_IsDayInterrupt() (RTCIF & 0x40) |
| |
| #define | RTC_ClearDayInterrupt() (RTCIF &= ~0x40) |
| |
| #define | RTC_IsHourInterrupt() (RTCIF & 0x20) |
| |
| #define | RTC_ClearHourInterrupt() (RTCIF &= ~0x20) |
| |
| #define | RTC_IsMinuteInterrupt() (RTCIF & 0x10) |
| |
| #define | RTC_ClearMinuteInterrupt() (RTCIF &= ~0x10) |
| |
| #define | RTC_IsSecondInterrupt() (RTCIF & 0x08) |
| |
| #define | RTC_ClearSecondInterrupt() (RTCIF &= ~0x08) |
| |
| #define | RTC_IsSecondDiv2Interrupt() (RTCIF & 0x04) |
| |
| #define | RTC_ClearSecondDiv2Interrupt() (RTCIF &= ~0x04) |
| |
| #define | RTC_IsSecondDiv8Interrupt() (RTCIF & 0x02) |
| |
| #define | RTC_ClearSecondDiv8Interrupt() (RTCIF &= ~0x02) |
| |
| #define | RTC_IsSecondDiv32Interrupt() (RTCIF & 0x01) |
| |
| #define | RTC_ClearSecondDiv32Interrupt() (RTCIF &= ~0x01) |
| |
| #define | RTC_ConfigAlarm(__HOUR__, __MIN__, __SEC__, __SSEC__) |
| |
| #define | RTC_ConfigClock(__YEAR__, __MON__, __DAY__, __HOUR__, __MIN__, __SEC__, __SSEC__) |
| |
◆ RTC_ClearAlarmInterrupt
| #define RTC_ClearAlarmInterrupt |
( |
| ) |
(RTCIF &= ~0x80) |
◆ RTC_ClearAllInterrupts
| #define RTC_ClearAllInterrupts |
( |
| ) |
(RTCIF = 0x00) |
◆ RTC_ClearDayInterrupt
| #define RTC_ClearDayInterrupt |
( |
| ) |
(RTCIF &= ~0x40) |
◆ RTC_ClearHourInterrupt
| #define RTC_ClearHourInterrupt |
( |
| ) |
(RTCIF &= ~0x20) |
◆ RTC_ClearMinuteInterrupt
| #define RTC_ClearMinuteInterrupt |
( |
| ) |
(RTCIF &= ~0x10) |
◆ RTC_ClearSecondDiv2Interrupt
| #define RTC_ClearSecondDiv2Interrupt |
( |
| ) |
(RTCIF &= ~0x04) |
◆ RTC_ClearSecondDiv32Interrupt
| #define RTC_ClearSecondDiv32Interrupt |
( |
| ) |
(RTCIF &= ~0x01) |
◆ RTC_ClearSecondDiv8Interrupt
| #define RTC_ClearSecondDiv8Interrupt |
( |
| ) |
(RTCIF &= ~0x02) |
◆ RTC_ClearSecondInterrupt
| #define RTC_ClearSecondInterrupt |
( |
| ) |
(RTCIF &= ~0x08) |
◆ RTC_ConfigAlarm
| #define RTC_ConfigAlarm |
( |
|
__HOUR__, |
|
|
|
__MIN__, |
|
|
|
__SEC__, |
|
|
|
__SSEC__ |
|
) |
| |
Value: do { \
SFRX_ON(); \
SFRX_OFF(); \
} while(0)
Set Alarm
Definition at line 55 of file fw_rtc.h.
◆ RTC_ConfigClock
| #define RTC_ConfigClock |
( |
|
__YEAR__, |
|
|
|
__MON__, |
|
|
|
__DAY__, |
|
|
|
__HOUR__, |
|
|
|
__MIN__, |
|
|
|
__SEC__, |
|
|
|
__SSEC__ |
|
) |
| |
Value: do { \
SFRX_ON(); \
SFRX_OFF(); \
} while(0)
Set clock initial value
Definition at line 66 of file fw_rtc.h.
◆ RTC_ConfigClockApply
◆ RTC_IsAlarmInterrupt
| #define RTC_IsAlarmInterrupt |
( |
| ) |
(RTCIF & 0x80) |
◆ RTC_IsDayInterrupt
| #define RTC_IsDayInterrupt |
( |
| ) |
(RTCIF & 0x40) |
◆ RTC_IsHourInterrupt
| #define RTC_IsHourInterrupt |
( |
| ) |
(RTCIF & 0x20) |
◆ RTC_IsMinuteInterrupt
| #define RTC_IsMinuteInterrupt |
( |
| ) |
(RTCIF & 0x10) |
◆ RTC_IsSecondDiv2Interrupt
| #define RTC_IsSecondDiv2Interrupt |
( |
| ) |
(RTCIF & 0x04) |
◆ RTC_IsSecondDiv32Interrupt
| #define RTC_IsSecondDiv32Interrupt |
( |
| ) |
(RTCIF & 0x01) |
◆ RTC_IsSecondDiv8Interrupt
| #define RTC_IsSecondDiv8Interrupt |
( |
| ) |
(RTCIF & 0x02) |
◆ RTC_IsSecondInterrupt
| #define RTC_IsSecondInterrupt |
( |
| ) |
(RTCIF & 0x08) |
◆ RTC_SetClockSource
◆ RTC_SetRunState
◆ RTC_ClockSource_t
| Enumerator |
|---|
| RTC_ClockSource_External | |
| RTC_ClockSource_Internal | |
Definition at line 21 of file fw_rtc.h.
22{
@ RTC_ClockSource_Internal
@ RTC_ClockSource_External