MG32F10x Standard Peripherals Firmware Library
Macros

Macros

#define RTC_FLAG_RTOFF   ((uint16_t)0x0020)
 
#define RTC_FLAG_RSF   ((uint16_t)0x0008)
 
#define RTC_FLAG_OW   ((uint16_t)0x0004)
 
#define RTC_FLAG_ALR   ((uint16_t)0x0002)
 
#define RTC_FLAG_SEC   ((uint16_t)0x0001)
 
#define IS_RTC_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint16_t)0xFFF0) == 0x00) && ((FLAG) != 0x00))
 
#define IS_RTC_GET_FLAG(FLAG)
 
#define IS_RTC_PRESCALER(PRESCALER)   ((PRESCALER) <= 0xFFFFF)
 

Detailed Description

Macro Definition Documentation

◆ IS_RTC_GET_FLAG

#define IS_RTC_GET_FLAG (   FLAG)
Value:
(((FLAG) == RTC_FLAG_RTOFF) || ((FLAG) == RTC_FLAG_RSF) || \
((FLAG) == RTC_FLAG_OW) || ((FLAG) == RTC_FLAG_ALR) || \
((FLAG) == RTC_FLAG_SEC))
#define RTC_FLAG_OW
Definition: mg32f10x_rtc.h:56
#define RTC_FLAG_ALR
Definition: mg32f10x_rtc.h:57
#define RTC_FLAG_RTOFF
Definition: mg32f10x_rtc.h:54
#define RTC_FLAG_RSF
Definition: mg32f10x_rtc.h:55
#define RTC_FLAG_SEC
Definition: mg32f10x_rtc.h:58

◆ RTC_FLAG_ALR

#define RTC_FLAG_ALR   ((uint16_t)0x0002)

Alarm flag

◆ RTC_FLAG_OW

#define RTC_FLAG_OW   ((uint16_t)0x0004)

Overflow flag

◆ RTC_FLAG_RSF

#define RTC_FLAG_RSF   ((uint16_t)0x0008)

Registers Synchronized flag

◆ RTC_FLAG_RTOFF

#define RTC_FLAG_RTOFF   ((uint16_t)0x0020)

RTC Operation OFF flag

◆ RTC_FLAG_SEC

#define RTC_FLAG_SEC   ((uint16_t)0x0001)

Second flag