STM32H735xx 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)0xF0) >> (uint8_t)0x4) * 10U) + ((__VALUE__) & (uint8_t)0x0F)))
 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)0xF0) >> (uint8_t)0x4) * 10U) + ((__VALUE__) & (uint8_t)0x0F)))

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 859 of file stm32h7xx_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 852 of file stm32h7xx_ll_rtc.h.

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