You will need the RTC component from system components to maintain time, date and alarms.
PS: Datasheet for CYBL10x6x shows "Not for new designs"
Thanks Bob. I did use the RTC from the system components in the schematic and enabled the alarm in the customizer. My question is how can I set the alarm in such a way that, alarm occurs every Monday, Tuesday and Wednesday. I tried using masks like this
RTC_SetAlarmMask(RTC_ALARM_MIN_MASK | RTC_ALARM_HOUR_MASK);
But, this enables the alarm for every day at given hour and min. I want it to be enabled only for 3 days of the week. Is it possible? if yes, how to do it?
You cannot set multiple different alarms. You will need to handle that in your alarm handler by setting the next alarm time/date.