Macros
RTC Private Macros
Peripheral Driver » HAL Driver » RTC » Defines
Collaboration diagram for RTC Private Macros:

## Macros
#define | __HAL_RTC_DISABLE(RTCx) MODIFY_REG(RTCx->CFG0, 0xFFFFFFFF, RTC_CFG0_CFG);
| Disable RTC. More...
#define | __HAL_RTC_ENABLE(RTCx) SET_BITS(RTCx->CFG0, RTC_CFG0_CFG | RTC_CFG0_EN);
| Enable RTC. More...
#define | __HAL_RTC_BUSY_FLAG(RTCx) ((READ_BITS(RTCx->STAT, RTC_STAT_BUSY) == RTC_STAT_BUSY))
| Check RTC busy state. More...
#define | __HAL_RTC_CLEAR_FLAG(RTCx, __FLAG__) WRITE_REG(RTCx->INT_STAT, (__FLAG__))
| Clear RTC flag. More...
#define | __HAL_RTC_ENABLE_IT(RTCx, __INTERRUPT__) SET_BITS(RTCx->INT_EN, (__INTERRUPT__))
| Enable RTC interrupt. More...
#define | __HAL_RTC_DISABLE_IT(RTCx, __INTERRUPT__) CLEAR_BITS(RTCx->INT_EN, (__INTERRUPT__))
| Disable RTC interrupt. More...
#define | __HAL_RTC_GET_IT_SOURCE(RTCx, __FLAG__) (READ_BITS(RTCx->INT_STAT, (__FLAG__)) == (__FLAG__))
| Get RTC interrupt source. More...
#define | __HAL_RTC_CFG_EFFECT(RTCx) SET_BITS(RTCx->CFG0, RTC_CFG0_CFG)
| Set RTC config takes effect. More...

## 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))

Check RTC busy state.

Parameters

  RTCx | Specifies the RTC instance.

Return values

  TRUE | or FALSE

Definition at line 139 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_CFG_EFFECT

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

Set RTC config takes effect.

Parameters

  RTCx | Specifies the RTC instance.

Return values

  None |

Definition at line 173 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_CLEAR_FLAG

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

Clear RTC flag.

Parameters

  RTCx | Specifies the RTC instance.
  <strong>FLAG</strong> | Specifies the RTC Interrupt Status.

Return values

  None |

Definition at line 146 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_DISABLE

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

Disable RTC.

Parameters

  RTCx | Specifies the RTC instance.

Return values

  None |

Definition at line 127 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_DISABLE_IT

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

Disable RTC interrupt.

Parameters

  RTCx | Specifies the RTC instance.
  <strong>INTERRUPT</strong> | Specifies the RTC Interrupt Type.

Return values

  None |

Definition at line 160 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_ENABLE

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

Enable RTC.

Parameters

  RTCx | Specifies the RTC instance.

Return values

  None |

Definition at line 133 of file gr55xx_hal_rtc.h.

## ◆ __HAL_RTC_ENABLE_IT

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

Enable RTC interrupt.

Parameters

  RTCx | Specifies the RTC instance.
  <strong>INTERRUPT</strong> | Specifies the RTC Interrupt Type.

Return values

  None |

Definition at line 153 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__))

Get RTC interrupt source.

Parameters

  RTCx | Specifies the RTC instance.
  <strong>FLAG</strong> | Specifies the RTC Interrupt Status.

Return values

  TRUE | or FALSE

Definition at line 167 of file gr55xx_hal_rtc.h.