Download HAL Driver User Manual

Transcript
HAL RTC Generic Driver
Function Description
UM1725
Enters the RTC Initialization mode.
Parameters

hrtc : pointer to a RTC_HandleTypeDef structure that
contains the configuration information for RTC.
Return values

HAL status
Notes

The RTC Initialization mode is write protected, use the
__HAL_RTC_WRITEPROTECTION_DISABLE() before
calling this function.
39.2.14.3 RTC_ByteToBcd2
Function Name
uint8_t RTC_ByteToBcd2 ( uint8_t Value)
Function Description
Converts a 2 digit decimal to BCD format.
Parameters

Value : Byte to be converted
Return values

Converted byte
Notes

None.
39.2.14.4 RTC_Bcd2ToByte
39.2.15
Function Name
uint8_t RTC_Bcd2ToByte ( uint8_t Value)
Function Description
Converts from 2 digit BCD to Binary.
Parameters

Value : BCD value to be converted
Return values

Converted word
Notes

None.
Peripheral State functions
39.2.15.1 HAL_RTC_GetState
604/865
DocID025834 Rev 1