Lines Matching refs:sAlarm

1014 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Form…  in HAL_RTC_SetAlarm()  argument
1022 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm()
1023 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1024 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm()
1025 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm()
1026 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm()
1040 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1041 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1045 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1046 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1048 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm()
1049 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm()
1051 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1053 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1057 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1060 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1061 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1062 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ in HAL_RTC_SetAlarm()
1063 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1064 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1065 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1066 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1072 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1073 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1077 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm()
1078 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1081 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm()
1082 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm()
1084 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1086 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1090 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1093 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm()
1094 ((uint32_t)(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm()
1095 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ in HAL_RTC_SetAlarm()
1096 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm()
1097 ((uint32_t)(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm()
1098 ((uint32_t) sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1099 ((uint32_t) sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1103 subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | \ in HAL_RTC_SetAlarm()
1104 (uint32_t)(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm()
1110 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm()
1211 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t F… in HAL_RTC_SetAlarm_IT() argument
1219 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm_IT()
1220 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1221 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm_IT()
1222 assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); in HAL_RTC_SetAlarm_IT()
1223 assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm_IT()
1237 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1238 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1242 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1243 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1245 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm_IT()
1246 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm_IT()
1248 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1250 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1254 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1257 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1258 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1259 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ in HAL_RTC_SetAlarm_IT()
1260 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1261 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1262 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1263 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1269 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1270 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1274 sAlarm->AlarmTime.TimeFormat = 0x00U; in HAL_RTC_SetAlarm_IT()
1275 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1278 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm_IT()
1279 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm_IT()
1281 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1283 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1287 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1290 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << RTC_ALRMAR_HU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1291 ((uint32_t)(sAlarm->AlarmTime.Minutes) << RTC_ALRMAR_MNU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1292 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ in HAL_RTC_SetAlarm_IT()
1293 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << RTC_TR_PM_Pos) | \ in HAL_RTC_SetAlarm_IT()
1294 ((uint32_t)(sAlarm->AlarmDateWeekDay) << RTC_ALRMAR_DU_Pos) | \ in HAL_RTC_SetAlarm_IT()
1295 ((uint32_t) sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1296 ((uint32_t) sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1300 subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | \ in HAL_RTC_SetAlarm_IT()
1301 (uint32_t)(sAlarm->AlarmSubSecondMask)); in HAL_RTC_SetAlarm_IT()
1307 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm_IT()
1501 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alar… in HAL_RTC_GetAlarm() argument
1512 sAlarm->Alarm = RTC_ALARM_A; in HAL_RTC_GetAlarm()
1519 sAlarm->Alarm = RTC_ALARM_B; in HAL_RTC_GetAlarm()
1526sAlarm->AlarmTime.Hours = (uint8_t) ((tmpreg & (RTC_ALRMAR_HT | RTC_ALRMAR_HU)) >> RTC_ALRM… in HAL_RTC_GetAlarm()
1527sAlarm->AlarmTime.Minutes = (uint8_t) ((tmpreg & (RTC_ALRMAR_MNT | RTC_ALRMAR_MNU)) >> RTC_ALRM… in HAL_RTC_GetAlarm()
1528 sAlarm->AlarmTime.Seconds = (uint8_t) ( tmpreg & (RTC_ALRMAR_ST | RTC_ALRMAR_SU)); in HAL_RTC_GetAlarm()
1529sAlarm->AlarmTime.TimeFormat = (uint8_t) ((tmpreg & RTC_ALRMAR_PM) >> RTC_TR_P… in HAL_RTC_GetAlarm()
1530 sAlarm->AlarmTime.SubSeconds = (uint32_t) subsecondtmpreg; in HAL_RTC_GetAlarm()
1531sAlarm->AlarmDateWeekDay = (uint8_t) ((tmpreg & (RTC_ALRMAR_DT | RTC_ALRMAR_DU)) >> RTC_ALRM… in HAL_RTC_GetAlarm()
1532 sAlarm->AlarmDateWeekDaySel = (uint32_t) (tmpreg & RTC_ALRMAR_WDSEL); in HAL_RTC_GetAlarm()
1533 sAlarm->AlarmMask = (uint32_t) (tmpreg & RTC_ALARMMASK_ALL); in HAL_RTC_GetAlarm()
1537 sAlarm->AlarmTime.Hours = RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours); in HAL_RTC_GetAlarm()
1538 sAlarm->AlarmTime.Minutes = RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes); in HAL_RTC_GetAlarm()
1539 sAlarm->AlarmTime.Seconds = RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds); in HAL_RTC_GetAlarm()
1540 sAlarm->AlarmDateWeekDay = RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay); in HAL_RTC_GetAlarm()