Macros
RTC Private Macros
Peripheral Driver » HAL Driver » RTC » Defines

## Macros
#define | __HAL_RTC_DISABLE(RTCx) MODIFY_REG(RTCx->CFG0, 0xFFFFFFFF, RTC_CFG0_CFG);
#define | __HAL_RTC_ENABLE(RTCx) SET_BITS(RTCx->CFG0, RTC_CFG0_CFG | RTC_CFG0_EN);
#define | __HAL_RTC_BUSY_FLAG(RTCx) ((READ_BITS(RTCx->STAT, RTC_STAT_BUSY) == RTC_STAT_BUSY))
#define | __HAL_RTC_CLEAR_FLAG(RTCx, __FLAG__) WRITE_REG(RTCx->INT_STAT, (__FLAG__))
#define | __HAL_RTC_ENABLE_IT(RTCx, __INTERRUPT__) SET_BITS(RTCx->INT_EN, (__INTERRUPT__))
#define | __HAL_RTC_DISABLE_IT(RTCx, __INTERRUPT__) CLEAR_BITS(RTCx->INT_EN, (__INTERRUPT__))
#define | __HAL_RTC_GET_IT_SOURCE(RTCx, __FLAG__) (READ_BITS(RTCx->INT_STAT, (__FLAG__)) == (__FLAG__))
#define | __HAL_RTC_CFG_EFFECT(RTCx) SET_BITS(RTCx->CFG0, RTC_CFG0_CFG)

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_RTC_BUSY_FLAG

#define __HAL_RTC_BUSY_FLAG | ( |  | RTCx | ) | ((READ_BITS(RTCx->STAT, RTC_STAT_BUSY) == RTC_STAT_BUSY))

Definition at line 127 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_CFG_EFFECT

#define __HAL_RTC_CFG_EFFECT | ( |  | RTCx | ) | SET_BITS(RTCx->CFG0, RTC_CFG0_CFG)

set config takes effect

Definition at line 137 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_CLEAR_FLAG

#define __HAL_RTC_CLEAR_FLAG | ( |  | RTCx,
|  |  | __FLAG__
| ) |  | WRITE_REG(RTCx->INT_STAT, (__FLAG__))

Definition at line 129 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_DISABLE

#define __HAL_RTC_DISABLE | ( |  | RTCx | ) | MODIFY_REG(RTCx->CFG0, 0xFFFFFFFF, RTC_CFG0_CFG);

set all 0 to CFG0 registers

Definition at line 123 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_DISABLE_IT

#define __HAL_RTC_DISABLE_IT | ( |  | RTCx,
|  |  | __INTERRUPT__
| ) |  | CLEAR_BITS(RTCx->INT_EN, (__INTERRUPT__))

Definition at line 133 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_ENABLE

#define __HAL_RTC_ENABLE | ( |  | RTCx | ) | SET_BITS(RTCx->CFG0, RTC_CFG0_CFG | RTC_CFG0_EN);

set CFG0[0] to 1

Definition at line 125 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_ENABLE_IT

#define __HAL_RTC_ENABLE_IT | ( |  | RTCx,
|  |  | __INTERRUPT__
| ) |  | SET_BITS(RTCx->INT_EN, (__INTERRUPT__))

Definition at line 131 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_GET_IT_SOURCE

#define __HAL_RTC_GET_IT_SOURCE | ( |  | RTCx,
|  |  | __FLAG__
| ) |  | (READ_BITS(RTCx->INT_STAT, (__FLAG__)) == (__FLAG__))

Definition at line 135 of file gr55xx_hal_rtc.h.