Lines Matching refs:sAlarm

1109 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Form…  in HAL_RTC_SetAlarm()  argument
1117 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm()
1118 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1119 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm()
1120 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm()
1121 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm()
1132 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1133 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1137 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1138 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1140 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm()
1141 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm()
1143 if(sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1145 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1149 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1152 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1153 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1154 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds) << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm()
1155 ((uint32_t)sAlarm->AlarmTime.TimeFormat << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1156 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1157 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1158 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1164 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1165 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1169 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1170 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1173 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm()
1174 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm()
1176 if(sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1178 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1182 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1185 tmpreg = (((uint32_t)sAlarm->AlarmTime.Hours << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1186 ((uint32_t)sAlarm->AlarmTime.Minutes << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1187 ((uint32_t)sAlarm->AlarmTime.Seconds << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm()
1188 ((uint32_t)sAlarm->AlarmTime.TimeFormat << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1189 ((uint32_t)sAlarm->AlarmDateWeekDay << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1190 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1191 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1195 …subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | (uint32_t)(sAlarm->AlarmSu… in HAL_RTC_SetAlarm()
1201 if(sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm()
1301 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t F… in HAL_RTC_SetAlarm_IT() argument
1309 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm_IT()
1310 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1311 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm_IT()
1312 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm_IT()
1313 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm_IT()
1324 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1325 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1329 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1330 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1332 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm_IT()
1333 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm_IT()
1335 if(sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1337 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1341 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1344 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1345 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1346 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds) << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1347 ((uint32_t)sAlarm->AlarmTime.TimeFormat << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1348 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1349 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1350 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1356 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1357 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1361 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1362 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1365 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm_IT()
1366 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm_IT()
1368 if(sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1370 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1374 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1377 tmpreg = (((uint32_t)sAlarm->AlarmTime.Hours << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1378 ((uint32_t)sAlarm->AlarmTime.Minutes << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1379 ((uint32_t)sAlarm->AlarmTime.Seconds << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1380 ((uint32_t)sAlarm->AlarmTime.TimeFormat << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1381 ((uint32_t)sAlarm->AlarmDateWeekDay << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1382 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1383 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1386 …subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | (uint32_t)(sAlarm->AlarmSu… in HAL_RTC_SetAlarm_IT()
1392 if(sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm_IT()
1607 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alar… in HAL_RTC_GetAlarm() argument
1619 sAlarm->Alarm = RTC_ALARM_A; in HAL_RTC_GetAlarm()
1625sAlarm->AlarmTime.Hours = (uint8_t)((tmpreg & (RTC_ALRMAR_HT | RTC_ALRMAR_HU)) >> RTC_ALRMA… in HAL_RTC_GetAlarm()
1626sAlarm->AlarmTime.Minutes = (uint8_t)((tmpreg & (RTC_ALRMAR_MNT | RTC_ALRMAR_MNU)) >> RTC_ALRMA… in HAL_RTC_GetAlarm()
1627sAlarm->AlarmTime.Seconds = (uint8_t)((tmpreg & (RTC_ALRMAR_ST | RTC_ALRMAR_SU)) >> RTC_ALRMA… in HAL_RTC_GetAlarm()
1628sAlarm->AlarmTime.TimeFormat = (uint8_t)((tmpreg & RTC_ALRMAR_PM) >> RTC_ALRMA… in HAL_RTC_GetAlarm()
1629 sAlarm->AlarmTime.SubSeconds = (uint32_t) subsecondtmpreg; in HAL_RTC_GetAlarm()
1630sAlarm->AlarmDateWeekDay = (uint8_t)((tmpreg & (RTC_ALRMAR_DT | RTC_ALRMAR_DU)) >> RTC_ALRMA… in HAL_RTC_GetAlarm()
1631 sAlarm->AlarmDateWeekDaySel = (uint32_t)(tmpreg & RTC_ALRMAR_WDSEL); in HAL_RTC_GetAlarm()
1632 sAlarm->AlarmMask = (uint32_t)(tmpreg & RTC_ALARMMASK_ALL); in HAL_RTC_GetAlarm()
1636 sAlarm->Alarm = RTC_ALARM_B; in HAL_RTC_GetAlarm()
1642sAlarm->AlarmTime.Hours = (uint8_t)((tmpreg & (RTC_ALRMBR_HT | RTC_ALRMBR_HU)) >> RTC_ALRMB… in HAL_RTC_GetAlarm()
1643sAlarm->AlarmTime.Minutes = (uint8_t)((tmpreg & (RTC_ALRMBR_MNT | RTC_ALRMBR_MNU)) >> RTC_ALRMB… in HAL_RTC_GetAlarm()
1644sAlarm->AlarmTime.Seconds = (uint8_t)((tmpreg & (RTC_ALRMBR_ST | RTC_ALRMBR_SU)) >> RTC_ALRMB… in HAL_RTC_GetAlarm()
1645sAlarm->AlarmTime.TimeFormat = (uint8_t)((tmpreg & RTC_ALRMBR_PM) >> RTC_ALRMB… in HAL_RTC_GetAlarm()
1646 sAlarm->AlarmTime.SubSeconds = (uint32_t) subsecondtmpreg; in HAL_RTC_GetAlarm()
1647sAlarm->AlarmDateWeekDay = (uint8_t)((tmpreg & (RTC_ALRMBR_DT | RTC_ALRMBR_DU)) >> RTC_ALRMB… in HAL_RTC_GetAlarm()
1648 sAlarm->AlarmDateWeekDaySel = (uint32_t)(tmpreg & RTC_ALRMBR_WDSEL); in HAL_RTC_GetAlarm()
1649 sAlarm->AlarmMask = (uint32_t)(tmpreg & RTC_ALARMMASK_ALL); in HAL_RTC_GetAlarm()
1654 sAlarm->AlarmTime.Hours = RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours); in HAL_RTC_GetAlarm()
1655 sAlarm->AlarmTime.Minutes = RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes); in HAL_RTC_GetAlarm()
1656 sAlarm->AlarmTime.Seconds = RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds); in HAL_RTC_GetAlarm()
1657 sAlarm->AlarmDateWeekDay = RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay); in HAL_RTC_GetAlarm()