/* Gets the RTC module alarm time value in standard format  */
void XMC_RTC_GetAlarmStdFormat(struct tm *const stdtime)
/* Gets the RTC module alarm time value in standard format  */
void XMC_RTC_GetAlarmStdFormat(struct tm *const stdtime)
{
  XMC_RTC_ALARM_t alarm;
  alarm.raw0 = RTC->ATIM0;
  alarm.raw1 = RTC->ATIM1;
  stdtime->tm_sec = (int8_t)alarm.seconds;
  stdtime->tm_min = (int8_t)alarm.minutes;
  stdtime->tm_hour = (int8_t)alarm.hours;
  stdtime->tm_mday = ((int8_t)alarm.days + (int8_t)1);
  stdtime->tm_mon = (int8_t)alarm.month;
  stdtime->tm_year = (int32_t)alarm.year - (int32_t)XMC_RTC_YEAR_OFFSET;
}