Lines Matching refs:sAlarm
1013 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Form… in HAL_RTC_SetAlarm() argument
1021 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm()
1022 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1023 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm()
1024 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm()
1025 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm()
1039 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1040 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1044 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1045 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1047 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm()
1048 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm()
1050 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1052 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1056 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1059 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1060 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1061 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ in HAL_RTC_SetAlarm()
1062 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1063 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1064 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1065 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1071 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1072 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1076 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1077 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1080 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm()
1081 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm()
1083 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1085 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1089 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1092 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1093 ((uint32_t)(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1094 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ in HAL_RTC_SetAlarm()
1095 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1096 ((uint32_t)(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1097 ((uint32_t) sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1098 ((uint32_t) sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1102 subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | \ in HAL_RTC_SetAlarm()
1103 (uint32_t)(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm()
1109 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm()
1210 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t F… in HAL_RTC_SetAlarm_IT() argument
1218 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm_IT()
1219 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1220 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm_IT()
1221 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm_IT()
1222 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm_IT()
1236 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1237 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1241 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1242 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1244 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm_IT()
1245 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm_IT()
1247 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1249 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1253 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1256 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1257 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1258 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ in HAL_RTC_SetAlarm_IT()
1259 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1260 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1261 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1262 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1268 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1269 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1273 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1274 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1277 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm_IT()
1278 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm_IT()
1280 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1282 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1286 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1289 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1290 ((uint32_t)(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1291 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ in HAL_RTC_SetAlarm_IT()
1292 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1293 ((uint32_t)(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1294 ((uint32_t) sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1295 ((uint32_t) sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1299 subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | \ in HAL_RTC_SetAlarm_IT()
1300 (uint32_t)(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm_IT()
1306 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm_IT()
1502 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alar… in HAL_RTC_GetAlarm() argument
1513 sAlarm->Alarm = RTC_ALARM_A; in HAL_RTC_GetAlarm()
1520 sAlarm->Alarm = RTC_ALARM_B; in HAL_RTC_GetAlarm()
1527 …sAlarm->AlarmTime.Hours = (uint8_t) ((tmpreg & (RTC_ALRMAR_HT | RTC_ALRMAR_HU)) >> RTC_ALRM… in HAL_RTC_GetAlarm()
1528 …sAlarm->AlarmTime.Minutes = (uint8_t) ((tmpreg & (RTC_ALRMAR_MNT | RTC_ALRMAR_MNU)) >> RTC_ALRM… in HAL_RTC_GetAlarm()
1529 sAlarm->AlarmTime.Seconds = (uint8_t) ( tmpreg & (RTC_ALRMAR_ST | RTC_ALRMAR_SU)); in HAL_RTC_GetAlarm()
1530 …sAlarm->AlarmTime.TimeFormat = (uint8_t) ((tmpreg & RTC_ALRMAR_PM) >> RTC_TR_P… in HAL_RTC_GetAlarm()
1531 sAlarm->AlarmTime.SubSeconds = (uint32_t) subsecondtmpreg; in HAL_RTC_GetAlarm()
1532 …sAlarm->AlarmDateWeekDay = (uint8_t) ((tmpreg & (RTC_ALRMAR_DT | RTC_ALRMAR_DU)) >> RTC_ALRM… in HAL_RTC_GetAlarm()
1533 sAlarm->AlarmDateWeekDaySel = (uint32_t) (tmpreg & RTC_ALRMAR_WDSEL); in HAL_RTC_GetAlarm()
1534 sAlarm->AlarmMask = (uint32_t) (tmpreg & RTC_ALARMMASK_ALL); in HAL_RTC_GetAlarm()
1538 sAlarm->AlarmTime.Hours = RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours); in HAL_RTC_GetAlarm()
1539 sAlarm->AlarmTime.Minutes = RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes); in HAL_RTC_GetAlarm()
1540 sAlarm->AlarmTime.Seconds = RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds); in HAL_RTC_GetAlarm()
1541 sAlarm->AlarmDateWeekDay = RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay); in HAL_RTC_GetAlarm()