Macros
CALENDAR Exported Macros
Peripheral Driver » HAL Driver » CALENDAR » Defines

## Macros
#define | __HAL_CALENDAR_ENABLE() WRITE_REG(CALENDAR->CFG0, RTC_CFG0_CFG | RTC_CFG0_EN)
| Enable the specified CALENDAR peripheral. More...
#define | __HAL_CALENDAR_DISABLE() MODIFY_REG(CALENDAR->CFG0, 0xFFFFFFFF, RTC_CFG0_CFG);
| Disable the specified CALENDAR peripheral. More...
#define | __HAL_CALENDAR_ENABLE_IT(__INTERRUPT__) SET_BITS(CALENDAR->INT_EN, (__INTERRUPT__))
| Enable the specified CALENDAR interrupts. More...
#define | __HAL_CALENDAR_DISABLE_IT(__INTERRUPT__) CLEAR_BITS(CALENDAR->INT_EN, (__INTERRUPT__))
| Disable the specified CALENDAR interrupts. More...
#define | __HAL_CALENDAR_GET_IT_SOURCE(__FLAG__) (READ_BITS(CALENDAR->INT_STAT, (__FLAG__)) == (__FLAG__))
| Check whether the specified CALENDAR interrupt flag is set or not. More...
#define | __HAL_CALENDAR_CLEAR_FLAG(__FLAG__) WRITE_REG(CALENDAR->INT_STAT, (__FLAG__))
| Clear the specified CALENDAR flag. More...
#define | __HAL_CALENDAR_BUSY_FLAG() ((READ_BITS(CALENDAR->STAT, RTC_STAT_BUSY) == RTC_STAT_BUSY))
| Get the CALENDAR busy flag. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_CALENDAR_BUSY_FLAG

#define __HAL_CALENDAR_BUSY_FLAG | ( |  | ) | ((READ_BITS(CALENDAR->STAT, RTC_STAT_BUSY) == RTC_STAT_BUSY))

Get the CALENDAR busy flag.

Return values

  The | new state of __BUSY__ (TRUE or FALSE).

Definition at line 295 of file gr55xx_hal_calendar.h.

## ◆ __HAL_CALENDAR_CLEAR_FLAG

#define __HAL_CALENDAR_CLEAR_FLAG | ( |  | __FLAG__ | ) | WRITE_REG(CALENDAR->INT_STAT, (__FLAG__))

Clear the specified CALENDAR flag.

Parameters

  __FLAG__ | Specifies the flag to clear. This parameter can be one of the following values: CALENDAR_FLAG_ALARM Alarm Interrupt event CALENDAR_FLAG_WARP Warp Interrupt event CALENDAR_FLAG_TICK Tick Interrupt event

Return values

  None |

Definition at line 290 of file gr55xx_hal_calendar.h.

## ◆ __HAL_CALENDAR_DISABLE

#define __HAL_CALENDAR_DISABLE | ( |  | ) | MODIFY_REG(CALENDAR->CFG0, 0xFFFFFFFF, RTC_CFG0_CFG);

Disable the specified CALENDAR peripheral.

Return values

  None |

Definition at line 250 of file gr55xx_hal_calendar.h.

## ◆ __HAL_CALENDAR_DISABLE_IT

#define __HAL_CALENDAR_DISABLE_IT | ( |  | __INTERRUPT__ | ) | CLEAR_BITS(CALENDAR->INT_EN, (__INTERRUPT__))

Disable the specified CALENDAR interrupts.

Parameters

  __INTERRUPT__ | Specifies the interrupt source to disable. This parameter can be one of the following values: CALENDAR_IT_ALARM Alarm Interrupt CALENDAR_IT_WARP Warp Interrupt CALENDAR_IT_TICK Tick Interrupt

Return values

  None |

Definition at line 270 of file gr55xx_hal_calendar.h.

## ◆ __HAL_CALENDAR_ENABLE

#define __HAL_CALENDAR_ENABLE | ( |  | ) | WRITE_REG(CALENDAR->CFG0, RTC_CFG0_CFG | RTC_CFG0_EN)

Enable the specified CALENDAR peripheral.

Return values

  None |

Definition at line 245 of file gr55xx_hal_calendar.h.

## ◆ __HAL_CALENDAR_ENABLE_IT

#define __HAL_CALENDAR_ENABLE_IT | ( |  | __INTERRUPT__ | ) | SET_BITS(CALENDAR->INT_EN, (__INTERRUPT__))

Enable the specified CALENDAR interrupts.

Parameters

  __INTERRUPT__ | Specifies the interrupt source to enable. This parameter can be one of the following values: CALENDAR_IT_ALARM Alarm Interrupt CALENDAR_IT_WARP Warp Interrupt CALENDAR_IT_TICK Tick Interrupt

Return values

  None |

Definition at line 260 of file gr55xx_hal_calendar.h.

## ◆ __HAL_CALENDAR_GET_IT_SOURCE

#define __HAL_CALENDAR_GET_IT_SOURCE | ( |  | __FLAG__ | ) | (READ_BITS(CALENDAR->INT_STAT, (__FLAG__)) == (__FLAG__))

Check whether the specified CALENDAR interrupt flag is set or not.

Parameters

  __FLAG__ | Specifies the interrupt source to check. This parameter can be one of the following values: CALENDAR_FLAG_ALARM Alarm Interrupt event CALENDAR_FLAG_WARP Warp Interrupt event CALENDAR_FLAG_TICK Tick Interrupt event

Return values

  The | new state of __IT__ (TRUE or FALSE).

Definition at line 280 of file gr55xx_hal_calendar.h.