STM32H735xx HAL User Manual
Functions
RTC Private Functions
RTC

Functions

HAL_StatusTypeDef RTC_EnterInitMode (RTC_HandleTypeDef *hrtc)
 Enter the RTC Initialization mode.
HAL_StatusTypeDef RTC_ExitInitMode (RTC_HandleTypeDef *hrtc)
 Exit the RTC Initialization mode.
uint8_t RTC_ByteToBcd2 (uint8_t Value)
 Convert a 2 digit decimal to BCD format.
uint8_t RTC_Bcd2ToByte (uint8_t Value)
 Convert from 2 digit BCD to Binary.

Function Documentation

uint8_t RTC_Bcd2ToByte ( uint8_t  Value)

Convert from 2 digit BCD to Binary.

Parameters:
ValueBCD value to be converted
Return values:
Convertedword

Definition at line 2064 of file stm32h7xx_hal_rtc.c.

Referenced by HAL_RTC_GetAlarm(), HAL_RTC_GetDate(), HAL_RTC_GetTime(), HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), HAL_RTC_SetDate(), HAL_RTC_SetTime(), and HAL_RTCEx_GetTimeStamp().

uint8_t RTC_ByteToBcd2 ( uint8_t  Value)

Convert a 2 digit decimal to BCD format.

Parameters:
ValueByte to be converted
Return values:
Convertedbyte

Definition at line 2045 of file stm32h7xx_hal_rtc.c.

Referenced by HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), HAL_RTC_SetDate(), and HAL_RTC_SetTime().

HAL_StatusTypeDef RTC_EnterInitMode ( RTC_HandleTypeDef hrtc)

Enter the RTC Initialization mode.

Note:
The RTC Initialization mode is write protected, use the __HAL_RTC_WRITEPROTECTION_DISABLE() before calling this function.
Parameters:
hrtcRTC handle
Return values:
HALstatus

Definition at line 1949 of file stm32h7xx_hal_rtc.c.

References HAL_GetTick(), HAL_RTC_STATE_TIMEOUT, __RTC_HandleTypeDef::Instance, RTC_INIT_MASK, RTC_TIMEOUT_VALUE, and __RTC_HandleTypeDef::State.

Referenced by HAL_RTC_DeInit(), HAL_RTC_Init(), HAL_RTC_SetDate(), HAL_RTC_SetTime(), HAL_RTCEx_DeactivateRefClock(), and HAL_RTCEx_SetRefClock().

HAL_StatusTypeDef RTC_ExitInitMode ( RTC_HandleTypeDef hrtc)

Exit the RTC Initialization mode.

Parameters:
hrtcRTC handle
Return values:
HALstatus

Definition at line 1999 of file stm32h7xx_hal_rtc.c.

References HAL_RTC_STATE_TIMEOUT, HAL_RTC_WaitForSynchro(), and __RTC_HandleTypeDef::State.

Referenced by HAL_RTC_DeInit(), HAL_RTC_Init(), HAL_RTC_SetDate(), HAL_RTC_SetTime(), HAL_RTCEx_DeactivateRefClock(), and HAL_RTCEx_SetRefClock().