|
STM32G474xx HAL用户手册
|
宏定义 | |
| #define | __LL_RTC_CONVERT_BIN2BCD(__VALUE__) (uint8_t)((((__VALUE__) / 10U) << 4U) | ((__VALUE__) % 10U)) |
| 辅助宏,用于将值从2位十进制格式转换为BCD格式。 | |
| #define | __LL_RTC_CONVERT_BCD2BIN(__VALUE__) ((uint8_t)((((uint8_t)((__VALUE__) & (uint8_t)0xF0U) >> (uint8_t)0x4U) * 10U) + ((__VALUE__) & (uint8_t)0x0FU))) |
| 辅助宏,用于将值从BCD格式转换为2位十进制格式。 | |
| #define __LL_RTC_CONVERT_BCD2BIN | ( | __VALUE__ | ) | ((uint8_t)((((uint8_t)((__VALUE__) & (uint8_t)0xF0U) >> (uint8_t)0x4U) * 10U) + ((__VALUE__) & (uint8_t)0x0FU))) |
辅助宏,用于将值从BCD格式转换为2位十进制格式。
| __VALUE__ | 要转换的BCD值 |
| 转换后的 | 字节 |
Definition at line 699 of file stm32g4xx_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)) |
辅助宏,用于将值从2位十进制格式转换为BCD格式。
| __VALUE__ | 要转换的字节 |
| 转换后的 | 字节 |
Definition at line 692 of file stm32g4xx_ll_rtc.h.
Referenced by LL_RTC_ALMA_Init(), LL_RTC_ALMB_Init(), LL_RTC_DATE_Init(), and LL_RTC_TIME_Init().
1.7.6.1