EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #377 background imageLoading...
Page #377 background image
UM1581
Real-time clock (RTC)
DocID023800 Rev 1
377/584
19.2.26.3 RTC_GetAlarm
Function Name
void RTC_GetAlarm ( uint32_t RTC_Format, uint32_t
RTC_Alarm, RTC_AlarmTypeDef * RTC_AlarmStruct)
Function Description
Get the RTC Alarm value and masks.
Parameters
ï‚· 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.
Return values
ï‚· None.
Notes
ï‚· None.
19.2.26.4 RTC_AlarmCmd
Function Name
ErrorStatus RTC_AlarmCmd ( uint32_t RTC_Alarm,
FunctionalState NewState)
Function Description
Enables or disables the specified RTC Alarm.
Parameters
ï‚· 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.
Return values
ï‚· An ErrorStatus enumeration value:
 SUCCESS: RTC Alarm is enabled/disabled
 ERROR: RTC Alarm is not enabled/disabled
Notes
ï‚· None.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals