ï‚· RTC_Format : specifies the format of the entered
parameters. This parameter can be one of the following
values:
ï€ RTC_Format_BIN : Binary data format
ï€ RTC_Format_BCD : BCD data format
ï‚· RTC_DateStruct : pointer to a RTC_DateTypeDef structure
that contains the date configuration information for the RTC.
ï‚· An ErrorStatus enumeration value:
ï€ SUCCESS: RTC Date register is configured
ï€ ERROR: RTC Date register is not configured
19.2.25.6 RTC_DateStructInit
void RTC_DateStructInit ( RTC_DateTypeDef *
RTC_DateStruct)
Fills each RTC_DateStruct member with its default value
(Monday, January 01 xx00).
ï‚· RTC_DateStruct : pointer to a RTC_DateTypeDef structure
which will be initialized.
19.2.25.7 RTC_GetDate
void RTC_GetDate ( uint32_t RTC_Format, RTC_DateTypeDef
* RTC_DateStruct)
Get the RTC current date.
ï‚· 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_DateStruct : pointer to a RTC_DateTypeDef structure
that will contain the returned current date configuration.