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, 0xFFFFFFFFU, 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 290 of file 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

  [in] | __FLAG__ | Specifies the flag to clear. This parameter can be one of the following values: CALENDAR_FLAG_ALARM Alarm Interrupt event CALENDAR_FLAG_WRAP Wrap Interrupt event CALENDAR_FLAG_TICK Tick Interrupt event

Return values

  None |

Definition at line 285 of file hal_calendar.h.

## ◆ __HAL_CALENDAR_DISABLE

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

Disable the specified CALENDAR peripheral.

Return values

  None |

Definition at line 247 of file 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

  [in] | __INTERRUPT__ | Specifies the interrupt source to disable. This parameter can be one of the following values: CALENDAR_IT_ALARM Alarm Interrupt CALENDAR_IT_WRAP Wrap Interrupt CALENDAR_IT_TICK Tick Interrupt

Return values

  None |

Definition at line 266 of file 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 243 of file 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

  [in] | __INTERRUPT__ | Specifies the interrupt source to enable. This parameter can be one of the following values: CALENDAR_IT_ALARM Alarm Interrupt CALENDAR_IT_WRAP Wrap Interrupt CALENDAR_IT_TICK Tick Interrupt

Return values

  None |

Definition at line 257 of file 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

  [in] | __FLAG__ | Specifies the interrupt source to check. This parameter can be one of the following values: CALENDAR_FLAG_ALARM Alarm Interrupt event CALENDAR_FLAG_WRAP Wrap Interrupt event CALENDAR_FLAG_TICK Tick Interrupt event

Return values

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

Definition at line 276 of file hal_calendar.h.