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

## Macros
#define | IS_CALENDAR_ALARM_TYPE(__TYPE__)
| Check if CALENDAR Alarm Type is valid. More...
#define | IS_CALENDAR_DATE(__DATE__) (((__DATE__) > 0) && ((__DATE__) <= 31))
| Check if CALENDAR Date is valid. More...
#define | IS_CALENDAR_WEEKDAY(__WEEKDAY__) (((__WEEKDAY__) >= 0) && ((__WEEKDAY__) <= 6))
| Check if CALENDAR Weekday is valid. More...
#define | IS_CALENDAR_LEAP_YEAR(__YEAR__)
| Check if CALENDAR year is leap year. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_CALENDAR_ALARM_TYPE

#define IS_CALENDAR_ALARM_TYPE | ( |  | __TYPE__ | ) |

Value:
(((__TYPE__) == CALENDAR_ALARM_SEL_DATE) || \
((__TYPE__) == CALENDAR_ALARM_SEL_WEEKDAY))

Check if CALENDAR Alarm Type is valid.

Parameters

  <strong>TYPE</strong> | CALENDAR Alarm Type.

Return values

  SET | (TYPE is valid) or RESET (TYPE is invalid)

Definition at line 316 of file gr55xx_hal_calendar.h.

## ◆ IS_CALENDAR_DATE

#define IS_CALENDAR_DATE | ( |  | __DATE__ | ) | (((__DATE__) > 0) && ((__DATE__) <= 31))

Check if CALENDAR Date is valid.

Parameters

  <strong>DATE</strong> | CALENDAR Date.

Return values

  SET | (DATE is valid) or RESET (DATE is invalid)

Definition at line 323 of file gr55xx_hal_calendar.h.

## ◆ IS_CALENDAR_LEAP_YEAR

#define IS_CALENDAR_LEAP_YEAR | ( |  | __YEAR__ | ) |

Value:
((((__YEAR__) % 4) == 0 && ((__YEAR__) % 100) != 0) || \
((__YEAR__) % 400) == 0)

Check if CALENDAR year is leap year.

Parameters

  <strong>YEAR</strong> | CALENDAR Year.

Return values

  SET | (YEAR is leap year) or RESET (YEAR is nonleap year)

Definition at line 335 of file gr55xx_hal_calendar.h.

## ◆ IS_CALENDAR_WEEKDAY

#define IS_CALENDAR_WEEKDAY | ( |  | __WEEKDAY__ | ) | (((__WEEKDAY__) >= 0) && ((__WEEKDAY__) <= 6))

Check if CALENDAR Weekday is valid.

Parameters

  <strong>WEEKDAY</strong> | CALENDAR Weekday.

Return values

  SET | (WEEKDAY is valid) or RESET (WEEKDAY is invalid)

Definition at line 329 of file gr55xx_hal_calendar.h.

CALENDAR_ALARM_SEL_DATE
#define CALENDAR_ALARM_SEL_DATE
Alarm in date
Definition: gr55xx_hal_calendar.h:228
CALENDAR_ALARM_SEL_WEEKDAY
#define CALENDAR_ALARM_SEL_WEEKDAY
Alarm in weekday.
Definition: gr55xx_hal_calendar.h:229