19.2.26.3 RTC_GetAlarm
void RTC_GetAlarm ( uint32_t RTC_Format, uint32_t
RTC_Alarm, RTC_AlarmTypeDef * RTC_AlarmStruct)
Get the RTC Alarm value and masks.
ï‚· RTC_Format : specifies the format of the output 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 read. 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 will contains the output alarm configuration
values.
19.2.26.4 RTC_AlarmCmd
ErrorStatus RTC_AlarmCmd ( uint32_t RTC_Alarm,
FunctionalState NewState)
Enables or disables the specified RTC Alarm.
ï‚· RTC_Alarm : specifies the alarm to be configured. This
parameter can be any combination of the following values:
ï€ RTC_Alarm_A : to select Alarm A
ï€ RTC_Alarm_B : to select Alarm B
ï‚· NewState : new state of the specified alarm. This parameter
can be: ENABLE or DISABLE.
ï‚· An ErrorStatus enumeration value:
ï€ SUCCESS: RTC Alarm is enabled/disabled
ï€ ERROR: RTC Alarm is not enabled/disabled