STM32F4xx_HAL_Driver  1.8.3
RTC Private Functions
+ Collaboration diagram for RTC Private Functions:

Functions

HAL_StatusTypeDef RTC_EnterInitMode (RTC_HandleTypeDef *hrtc)
 Enters the RTC Initialization mode. More...
 
HAL_StatusTypeDef RTC_ExitInitMode (RTC_HandleTypeDef *hrtc)
 Exits the RTC Initialization mode. More...
 
uint8_t RTC_ByteToBcd2 (uint8_t number)
 Converts a 2-digit number from decimal to BCD format. More...
 
uint8_t RTC_Bcd2ToByte (uint8_t number)
 Converts a 2-digit number from BCD to decimal format. More...
 

Detailed Description

Function Documentation

◆ RTC_Bcd2ToByte()

uint8_t RTC_Bcd2ToByte ( uint8_t  number)

Converts a 2-digit number from BCD to decimal format.

Parameters
numberBCD-formatted number (from 00 to 99) to be converted
Return values
Convertedword

Definition at line 1892 of file stm32f4xx_hal_rtc.c.

◆ RTC_ByteToBcd2()

uint8_t RTC_ByteToBcd2 ( uint8_t  number)

Converts a 2-digit number from decimal to BCD format.

Parameters
numberdecimal-formatted number (from 0 to 99) to be converted
Return values
Convertedbyte

Definition at line 1874 of file stm32f4xx_hal_rtc.c.

◆ RTC_EnterInitMode()

HAL_StatusTypeDef RTC_EnterInitMode ( RTC_HandleTypeDef hrtc)

Enters the RTC Initialization mode.

Note
The RTC Initialization mode is write protected, use the __HAL_RTC_WRITEPROTECTION_DISABLE() before calling this function.
Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Return values
HALstatus

Definition at line 1813 of file stm32f4xx_hal_rtc.c.

◆ RTC_ExitInitMode()

HAL_StatusTypeDef RTC_ExitInitMode ( RTC_HandleTypeDef hrtc)

Exits the RTC Initialization mode.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Return values
HALstatus

Definition at line 1848 of file stm32f4xx_hal_rtc.c.