Searched refs:sDate (Results 1 – 6 of 6) sorted by relevance
/loramac-node-latest/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/ |
D | stm32l1xx_hal_rtc.c | 467 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format) in HAL_RTC_SetDate() argument 479 if((Format == RTC_FORMAT_BIN) && ((sDate->Month & 0x10) == 0x10)) in HAL_RTC_SetDate() 481 sDate->Month = (uint8_t)((sDate->Month & (uint8_t)~(0x10)) + (uint8_t)0x0A); in HAL_RTC_SetDate() 484 assert_param(IS_RTC_WEEKDAY(sDate->WeekDay)); in HAL_RTC_SetDate() 488 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 489 assert_param(IS_RTC_MONTH(sDate->Month)); in HAL_RTC_SetDate() 490 assert_param(IS_RTC_DATE(sDate->Date)); in HAL_RTC_SetDate() 492 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << 16) | \ in HAL_RTC_SetDate() 493 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << 8) | \ in HAL_RTC_SetDate() 494 ((uint32_t)RTC_ByteToBcd2(sDate->Date)) | \ in HAL_RTC_SetDate() [all …]
|
/loramac-node-latest/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/ |
D | stm32l0xx_hal_rtc.c | 588 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format) in HAL_RTC_SetDate() argument 600 if((Format == RTC_FORMAT_BIN) && ((sDate->Month & 0x10U) == 0x10U)) in HAL_RTC_SetDate() 602 sDate->Month = (uint8_t)((sDate->Month & (uint8_t)~(0x10U)) + (uint8_t)0x0AU); in HAL_RTC_SetDate() 605 assert_param(IS_RTC_WEEKDAY(sDate->WeekDay)); in HAL_RTC_SetDate() 609 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 610 assert_param(IS_RTC_MONTH(sDate->Month)); in HAL_RTC_SetDate() 611 assert_param(IS_RTC_DATE(sDate->Date)); in HAL_RTC_SetDate() 613 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << 16U) | \ in HAL_RTC_SetDate() 614 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << 8U) | \ in HAL_RTC_SetDate() 615 ((uint32_t)RTC_ByteToBcd2(sDate->Date)) | \ in HAL_RTC_SetDate() [all …]
|
/loramac-node-latest/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/ |
D | stm32l4xx_hal_rtc.c | 988 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format) in HAL_RTC_SetDate() argument 1000 if((Format == RTC_FORMAT_BIN) && ((sDate->Month & 0x10U) == 0x10U)) in HAL_RTC_SetDate() 1002 sDate->Month = (uint8_t)((sDate->Month & (uint8_t)~(0x10U)) + (uint8_t)0x0AU); in HAL_RTC_SetDate() 1005 assert_param(IS_RTC_WEEKDAY(sDate->WeekDay)); in HAL_RTC_SetDate() 1009 assert_param(IS_RTC_YEAR(sDate->Year)); in HAL_RTC_SetDate() 1010 assert_param(IS_RTC_MONTH(sDate->Month)); in HAL_RTC_SetDate() 1011 assert_param(IS_RTC_DATE(sDate->Date)); in HAL_RTC_SetDate() 1013 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << RTC_DR_YU_Pos) | \ in HAL_RTC_SetDate() 1014 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << RTC_DR_MU_Pos) | \ in HAL_RTC_SetDate() 1015 ((uint32_t)RTC_ByteToBcd2(sDate->Date) << RTC_DR_DU_Pos) | \ in HAL_RTC_SetDate() [all …]
|
/loramac-node-latest/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/ |
D | stm32l1xx_hal_rtc.h | 603 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format); 604 HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
|
/loramac-node-latest/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/ |
D | stm32l0xx_hal_rtc.h | 707 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format); 708 HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
|
/loramac-node-latest/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/ |
D | stm32l4xx_hal_rtc.h | 864 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format); 865 HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
|