HAL + 0/38 examples
CodeScope will show references to HAL_RTC_GetDate() from the following samples and libraries:
Examples
STM32446E_EVAL
Demonstrations
Examples
PWR
RTC
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
Examples
PWR
RTC
STM324xG_EVAL
Demonstrations
Examples
PWR
RTC
STM32F412G-Discovery
Demonstrations
Examples
RTC
STM32F413H-Discovery
Demonstrations
Examples
RTC
STM32F429I-Discovery
Demonstrations
STM32446E-Nucleo
Examples
RTC
STM324x9I_EVAL
Demonstrations
STemWin
Examples
PWR
RTC
STM32F410xx-Nucleo
Examples
RTC
STM32F411RE-Nucleo
Examples
RTC
STM32F412ZG-Nucleo
Examples
RTC
STM32F413ZH-Nucleo
Examples
RTC
STM32F429ZI-Nucleo
Applications
NetXDuo
Examples
RTC
STM32F446ZE-Nucleo
Examples
RTC
 
Symbols
loading...
Files
loading...

HAL_RTC_GetDate() function

Gets RTC current date.

Syntax

HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc,     RTC_DateTypeDef *sDate,     uint32_t Format);
Implemented in stm32f4xx_hal_rtc.c:946

Arguments

hrtc

pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.

sDate

Pointer to Date structure

Format

Specifies the format of the entered parameters. This parameter can be one of the following values: @arg RTC_FORMAT_BIN: Binary data format @arg RTC_FORMAT_BCD: BCD data format

Return value

HAL status

Notes

You must call HAL_RTC_GetDate() after HAL_RTC_GetTime() to unlock the values in the higher-order calendar shadow registers to ensure consistency between the time and date values. Reading RTC current time locks the values in calendar shadow registers until current date is read to ensure consistency between the time and date values.

Examples

HAL_RTC_GetDate() is referenced by 38 libraries and example projects.

Call Tree

Functions called by HAL_RTC_GetDate()
HAL_RTC_GetDate()
assert_failed()
all items filtered out
Type of HAL_RTC_GetDate()
HAL_RTC_GetDate()
uint32_t
all items filtered out