思澈科技软件开发工具包  2.20

Functions

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

Detailed Description

Function Documentation

◆ RTC_Bcd2ToByte()

uint8_t RTC_Bcd2ToByte ( uint8_t  Value)

Converts from 2 digit BCD to Binary.

Parameters
ValueBCD value to be converted
Return values
Convertedword

◆ RTC_ByteToBcd2()

uint8_t RTC_ByteToBcd2 ( uint8_t  Value)

Converts a 2 digit decimal to BCD format.

Parameters
ValueByte to be converted
Return values
Convertedbyte

◆ 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