Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Functions | |
HAL_StatusTypeDef | RTC_EnterInitMode (RTC_HandleTypeDef *hrtc) |
Enter 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:
-
Value,: BCD value to be converted
- Return values:
-
Converted word
Definition at line 1510 of file stm32l4xx_hal_rtc.c.
uint8_t RTC_ByteToBcd2 | ( | uint8_t | Value ) |
Convert a 2 digit decimal to BCD format.
- Parameters:
-
Value,: Byte to be converted
- Return values:
-
Converted byte
Definition at line 1492 of file stm32l4xx_hal_rtc.c.
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:
-
hrtc,: RTC handle
- Return values:
-
HAL status
Definition at line 1462 of file stm32l4xx_hal_rtc.c.
Generated on Tue Jul 12 2022 11:00:05 by
