STM32F439xx HAL User Manual
Defines
Convert helper Macros
RTC Exported Macros

Defines

#define __LL_RTC_CONVERT_BIN2BCD(__VALUE__)   (uint8_t)((((__VALUE__) / 10U) << 4U) | ((__VALUE__) % 10U))
 Helper macro to convert a value from 2 digit decimal format to BCD format.
#define __LL_RTC_CONVERT_BCD2BIN(__VALUE__)   (uint8_t)(((uint8_t)((__VALUE__) & (uint8_t)0xF0U) >> (uint8_t)0x4U) * 10U + ((__VALUE__) & (uint8_t)0x0FU))
 Helper macro to convert a value from BCD format to 2 digit decimal format.

Define Documentation

#define __LL_RTC_CONVERT_BCD2BIN (   __VALUE__)    (uint8_t)(((uint8_t)((__VALUE__) & (uint8_t)0xF0U) >> (uint8_t)0x4U) * 10U + ((__VALUE__) & (uint8_t)0x0FU))

Helper macro to convert a value from BCD format to 2 digit decimal format.

Parameters:
__VALUE__BCD value to be converted
Return values:
Convertedbyte

Definition at line 689 of file stm32f4xx_ll_rtc.h.

Referenced by LL_RTC_ALMA_Init(), LL_RTC_ALMB_Init(), LL_RTC_DATE_Init(), and LL_RTC_TIME_Init().

#define __LL_RTC_CONVERT_BIN2BCD (   __VALUE__)    (uint8_t)((((__VALUE__) / 10U) << 4U) | ((__VALUE__) % 10U))

Helper macro to convert a value from 2 digit decimal format to BCD format.

Parameters:
__VALUE__Byte to be converted
Return values:
Convertedbyte

Definition at line 682 of file stm32f4xx_ll_rtc.h.

Referenced by LL_RTC_ALMA_Init(), LL_RTC_ALMB_Init(), LL_RTC_DATE_Init(), and LL_RTC_TIME_Init().