STM32L443xx HAL User Manual
|
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 __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.
__VALUE__ | BCD value to be converted |
Converted | byte |
Definition at line 858 of file stm32l4xx_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.
__VALUE__ | Byte to be converted |
Converted | byte |
Definition at line 851 of file stm32l4xx_ll_rtc.h.
Referenced by LL_RTC_ALMA_Init(), LL_RTC_ALMB_Init(), LL_RTC_DATE_Init(), and LL_RTC_TIME_Init().