Lines Matching refs:sAlarm

1076 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Form…  in HAL_RTC_SetAlarm()  argument
1083 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm()
1084 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1085 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm()
1096 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1097 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1101 sAlarm->AlarmTime.TimeFormat = 0x00; in HAL_RTC_SetAlarm()
1102 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm()
1104 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm()
1105 assert_param(IS_RTC_SECONDS(sAlarm->AlarmTime.Seconds)); in HAL_RTC_SetAlarm()
1107 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1109 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1113 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm()
1116 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << 16U) | \ in HAL_RTC_SetAlarm()
1117 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << 8U) | \ in HAL_RTC_SetAlarm()
1118 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ in HAL_RTC_SetAlarm()
1119 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16U) | \ in HAL_RTC_SetAlarm()
1120 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << 24U) | \ in HAL_RTC_SetAlarm()
1121 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1122 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1128 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1129 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm()
1133 sAlarm->AlarmTime.TimeFormat = 0x00; in HAL_RTC_SetAlarm()
1134 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm()
1137 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm()
1138 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm()
1140 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm()
1142 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1146 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm()
1149 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << 16U) | \ in HAL_RTC_SetAlarm()
1150 ((uint32_t)(sAlarm->AlarmTime.Minutes) << 8U) | \ in HAL_RTC_SetAlarm()
1151 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ in HAL_RTC_SetAlarm()
1152 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16U) | \ in HAL_RTC_SetAlarm()
1153 ((uint32_t)(sAlarm->AlarmDateWeekDay) << 24U) | \ in HAL_RTC_SetAlarm()
1154 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm()
1155 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm()
1162 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm()
1250 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t F… in HAL_RTC_SetAlarm_IT() argument
1257 assert_param(IS_RTC_ALARM(sAlarm->Alarm)); in HAL_RTC_SetAlarm_IT()
1258 assert_param(IS_RTC_ALARM_MASK(sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1259 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); in HAL_RTC_SetAlarm_IT()
1270 assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1271 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1275 sAlarm->AlarmTime.TimeFormat = 0x00; in HAL_RTC_SetAlarm_IT()
1276 assert_param(IS_RTC_HOUR24(sAlarm->AlarmTime.Hours)); in HAL_RTC_SetAlarm_IT()
1278 assert_param(IS_RTC_MINUTES(sAlarm->AlarmTime.Minutes)); in HAL_RTC_SetAlarm_IT()
1279 assert_param(IS_RTC_SECONDS(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(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1287 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); in HAL_RTC_SetAlarm_IT()
1289 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << 16U) | \ in HAL_RTC_SetAlarm_IT()
1290 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << 8U) | \ in HAL_RTC_SetAlarm_IT()
1291 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ in HAL_RTC_SetAlarm_IT()
1292 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16U) | \ in HAL_RTC_SetAlarm_IT()
1293 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << 24U) | \ 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()
1301 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1302 assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); in HAL_RTC_SetAlarm_IT()
1306 sAlarm->AlarmTime.TimeFormat = 0x00; in HAL_RTC_SetAlarm_IT()
1307 assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); in HAL_RTC_SetAlarm_IT()
1310 assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes))); in HAL_RTC_SetAlarm_IT()
1311 assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds))); in HAL_RTC_SetAlarm_IT()
1313 if (sAlarm->AlarmDateWeekDaySel == RTC_ALARMDATEWEEKDAYSEL_DATE) in HAL_RTC_SetAlarm_IT()
1315 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_DATE(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1319 assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); in HAL_RTC_SetAlarm_IT()
1321 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << 16U) | \ in HAL_RTC_SetAlarm_IT()
1322 ((uint32_t)(sAlarm->AlarmTime.Minutes) << 8U) | \ in HAL_RTC_SetAlarm_IT()
1323 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ in HAL_RTC_SetAlarm_IT()
1324 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16U) | \ in HAL_RTC_SetAlarm_IT()
1325 ((uint32_t)(sAlarm->AlarmDateWeekDay) << 24U) | \ in HAL_RTC_SetAlarm_IT()
1326 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ in HAL_RTC_SetAlarm_IT()
1327 ((uint32_t)sAlarm->AlarmMask)); in HAL_RTC_SetAlarm_IT()
1334 if (sAlarm->Alarm == RTC_ALARM_A) in HAL_RTC_SetAlarm_IT()
1522 HAL_StatusTypeDef HAL_RTC_GetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Alar… in HAL_RTC_GetAlarm() argument
1533 sAlarm->Alarm = RTC_ALARM_A; in HAL_RTC_GetAlarm()
1539 sAlarm->Alarm = RTC_ALARM_B; in HAL_RTC_GetAlarm()
1545 sAlarm->AlarmTime.Hours = (uint32_t)((tmpreg & (RTC_ALRMAR_HT | RTC_ALRMAR_HU)) >> 16U); in HAL_RTC_GetAlarm()
1546 sAlarm->AlarmTime.Minutes = (uint32_t)((tmpreg & (RTC_ALRMAR_MNT | RTC_ALRMAR_MNU)) >> 8U); in HAL_RTC_GetAlarm()
1547 sAlarm->AlarmTime.Seconds = (uint32_t)(tmpreg & (RTC_ALRMAR_ST | RTC_ALRMAR_SU)); in HAL_RTC_GetAlarm()
1548 sAlarm->AlarmTime.TimeFormat = (uint32_t)((tmpreg & RTC_ALRMAR_PM) >> 16U); in HAL_RTC_GetAlarm()
1549 sAlarm->AlarmDateWeekDay = (uint32_t)((tmpreg & (RTC_ALRMAR_DT | RTC_ALRMAR_DU)) >> 24U); in HAL_RTC_GetAlarm()
1550 sAlarm->AlarmDateWeekDaySel = (uint32_t)(tmpreg & RTC_ALRMAR_WDSEL); in HAL_RTC_GetAlarm()
1551 sAlarm->AlarmMask = (uint32_t)(tmpreg & RTC_ALARMMASK_ALL); in HAL_RTC_GetAlarm()
1555 sAlarm->AlarmTime.Hours = RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours); in HAL_RTC_GetAlarm()
1556 sAlarm->AlarmTime.Minutes = RTC_Bcd2ToByte(sAlarm->AlarmTime.Minutes); in HAL_RTC_GetAlarm()
1557 sAlarm->AlarmTime.Seconds = RTC_Bcd2ToByte(sAlarm->AlarmTime.Seconds); in HAL_RTC_GetAlarm()
1558 sAlarm->AlarmDateWeekDay = RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay); in HAL_RTC_GetAlarm()