19.2.26 Alarm configuration functions
19.2.26.1 RTC_SetAlarm
void RTC_SetAlarm ( uint32_t RTC_Format, uint32_t
RTC_Alarm, RTC_AlarmTypeDef * RTC_AlarmStruct)
Set the specified RTC Alarm.
ï‚· RTC_Format : specifies the format of the returned
parameters. This parameter can be one of the following
values:
ï€ RTC_Format_BIN : Binary data format
ï€ RTC_Format_BCD : BCD data format
ï‚· RTC_Alarm : specifies the alarm to be configured. This
parameter can be one of the following values:
ï€ RTC_Alarm_A : to select Alarm A
ï€ RTC_Alarm_B : to select Alarm B
ï‚· RTC_AlarmStruct : pointer to a RTC_AlarmTypeDef
structure that contains the alarm configuration parameters.
ï‚· The Alarm register can only be written when the
corresponding Alarm is disabled (Use the
RTC_AlarmCmd(DISABLE)).
19.2.26.2 RTC_AlarmStructInit
void RTC_AlarmStructInit ( RTC_AlarmTypeDef *
RTC_AlarmStruct)
Fills each RTC_AlarmStruct member with its default value (Time =
00h:00mn:00sec / Date = 1st day of the month/Mask = all fields
are masked).
ï‚· RTC_AlarmStruct : pointer to a RTC_AlarmTypeDef
structure which will be initialized.