Lines Matching refs:sAlarm
1046 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Form… in HAL_RTC_SetAlarm() argument
1052 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm()
1053 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1054 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm()
1055 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm()
1056 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm()
1067 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1068 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1072 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1073 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1075 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm()
1076 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm()
1078 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1080 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1084 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1086 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1087 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1088 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds) << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm()
1089 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1090 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1091 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1092 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1098 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1099 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1103 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1104 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1107 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm()
1108 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm()
1111 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1113 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1117 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1121 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1122 ((uint32_t)(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1123 ((uint32_t)(sAlarm->AlarmTime.Seconds) << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm()
1124 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1125 ((uint32_t)(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1126 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1127 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1131 …subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | (uint32_t)(sAlarm->AlarmSu… in HAL_RTC_SetAlarm()
1137 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm()
1191 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t F… in HAL_RTC_SetAlarm_IT() argument
1197 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm_IT()
1198 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1199 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm_IT()
1200 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm_IT()
1201 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm_IT()
1212 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1213 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1217 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1218 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1220 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm_IT()
1221 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm_IT()
1223 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1225 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1229 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1231 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1232 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1233 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds) << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1234 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1235 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1236 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1237 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1243 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1244 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1248 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1249 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1252 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm_IT()
1253 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm_IT()
1256 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1258 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1262 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1266 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1267 ((uint32_t)(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1268 ((uint32_t)(sAlarm->AlarmTime.Seconds) << RTC_ALRMAR_SU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1269 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_ALRMAR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1270 ((uint32_t)(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1271 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1272 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1275 …subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | (uint32_t)(sAlarm->AlarmSu… in HAL_RTC_SetAlarm_IT()
1281 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm_IT()
1379 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alar… in HAL_RTC_GetAlarm() argument
1391 sAlarm->Alarm = RTC_ALARM_A; in HAL_RTC_GetAlarm()
1397 …sAlarm->AlarmTime.Hours = (uint8_t)((tmpreg & (RTC_ALRMAR_HT | RTC_ALRMAR_HU)) >> RTC_ALRMAR_HU_Po… in HAL_RTC_GetAlarm()
1398 …sAlarm->AlarmTime.Minutes = (uint8_t)((tmpreg & (RTC_ALRMAR_MNT | RTC_ALRMAR_MNU)) >> RTC_ALRMAR_M… in HAL_RTC_GetAlarm()
1399 …sAlarm->AlarmTime.Seconds = (uint8_t)((tmpreg & (RTC_ALRMAR_ST | RTC_ALRMAR_SU)) >> RTC_ALRMAR_SU_… in HAL_RTC_GetAlarm()
1400 sAlarm->AlarmTime.TimeFormat = (uint8_t)((tmpreg & RTC_ALRMAR_PM) >> RTC_ALRMAR_PM_Pos); in HAL_RTC_GetAlarm()
1401 sAlarm->AlarmTime.SubSeconds = (uint32_t) subsecondtmpreg; in HAL_RTC_GetAlarm()
1402 …sAlarm->AlarmDateWeekDay = (uint8_t)((tmpreg & (RTC_ALRMAR_DT | RTC_ALRMAR_DU)) >> RTC_ALRMAR_DU_P… in HAL_RTC_GetAlarm()
1403 sAlarm->AlarmDateWeekDaySel = (uint32_t)(tmpreg & RTC_ALRMAR_WDSEL); in HAL_RTC_GetAlarm()
1404 sAlarm->AlarmMask = (uint32_t)(tmpreg & RTC_ALARMMASK_ALL); in HAL_RTC_GetAlarm()
1408 sAlarm->Alarm = RTC_ALARM_B; in HAL_RTC_GetAlarm()
1414 …sAlarm->AlarmTime.Hours = (uint8_t)((tmpreg & (RTC_ALRMBR_HT | RTC_ALRMBR_HU)) >> RTC_ALRMBR_HU_Po… in HAL_RTC_GetAlarm()
1415 …sAlarm->AlarmTime.Minutes = (uint8_t)((tmpreg & (RTC_ALRMBR_MNT | RTC_ALRMBR_MNU)) >> RTC_ALRMBR_M… in HAL_RTC_GetAlarm()
1416 …sAlarm->AlarmTime.Seconds = (uint8_t)((tmpreg & (RTC_ALRMBR_ST | RTC_ALRMBR_SU)) >> RTC_ALRMBR_SU_… in HAL_RTC_GetAlarm()
1417 sAlarm->AlarmTime.TimeFormat = (uint8_t)((tmpreg & RTC_ALRMBR_PM) >> RTC_ALRMBR_PM_Pos); in HAL_RTC_GetAlarm()
1418 sAlarm->AlarmTime.SubSeconds = (uint32_t) subsecondtmpreg; in HAL_RTC_GetAlarm()
1419 …sAlarm->AlarmDateWeekDay = (uint8_t)((tmpreg & (RTC_ALRMBR_DT | RTC_ALRMBR_DU)) >> RTC_ALRMBR_DU_P… in HAL_RTC_GetAlarm()
1420 sAlarm->AlarmDateWeekDaySel = (uint32_t)(tmpreg & RTC_ALRMBR_WDSEL); in HAL_RTC_GetAlarm()
1421 sAlarm->AlarmMask = (uint32_t)(tmpreg & RTC_ALARMMASK_ALL); in HAL_RTC_GetAlarm()
1426 sAlarm->AlarmTime.Hours = RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours); in HAL_RTC_GetAlarm()
1427 sAlarm->AlarmTime.Minutes = RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes); in HAL_RTC_GetAlarm()
1428 sAlarm->AlarmTime.Seconds = RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds); in HAL_RTC_GetAlarm()
1429 sAlarm->AlarmDateWeekDay = RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay); in HAL_RTC_GetAlarm()