Home
last modified time | relevance | path

Searched refs:Month (Results 1 – 23 of 23) sorted by relevance

/loramac-node-latest/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/
Dstm32l1xx_hal_rtc.c479 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()
489 assert_param(IS_RTC_MONTH(sDate->Month)); in HAL_RTC_SetDate()
493 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << 8) | \ in HAL_RTC_SetDate()
500 datetmpreg = RTC_Bcd2ToByte(sDate->Month); in HAL_RTC_SetDate()
506 (((uint32_t)sDate->Month) << 8) | \ in HAL_RTC_SetDate()
588 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> 8); in HAL_RTC_GetDate()
597 sDate->Month = (uint8_t)RTC_Bcd2ToByte(sDate->Month); in HAL_RTC_GetDate()
Dstm32l1xx_ll_rtc.c406 if ((RTC_Format == LL_RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10U) == 0x10U)) in LL_RTC_DATE_Init()
408 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t)~(0x10U)) + 0x0AU; in LL_RTC_DATE_Init()
413 assert_param(IS_LL_RTC_MONTH(RTC_DateStruct->Month)); in LL_RTC_DATE_Init()
419 assert_param(IS_LL_RTC_MONTH(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Month))); in LL_RTC_DATE_Init()
433 …LL_RTC_DATE_Config(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_… in LL_RTC_DATE_Init()
438 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init()
474 RTC_DateStruct->Month = LL_RTC_MONTH_JANUARY; in LL_RTC_DATE_StructInit()
Dstm32l1xx_hal_rtc_ex.c1037 sTimeStampDate->Month = (uint8_t)((tmpdate & (RTC_DR_MT | RTC_DR_MU)) >> 8); in HAL_RTCEx_GetTimeStamp()
1050 sTimeStampDate->Month = (uint8_t)RTC_Bcd2ToByte(sTimeStampDate->Month); in HAL_RTCEx_GetTimeStamp()
/loramac-node-latest/src/boards/NucleoL476/
Drtc-board.c167 date.Month = RTC_MONTH_JANUARY; in RtcInit()
379 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
381 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
386 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
388 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
450 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/SKiM881AXL/
Drtc-board.c168 date.Month = RTC_MONTH_JANUARY; in RtcInit()
380 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
382 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
387 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
389 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
451 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/NucleoL152/
Drtc-board.c167 date.Month = RTC_MONTH_JANUARY; in RtcInit()
379 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
381 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
386 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
388 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
450 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/NucleoL073/
Drtc-board.c168 date.Month = RTC_MONTH_JANUARY; in RtcInit()
380 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
382 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
387 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
389 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
451 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/NAMote72/
Drtc-board.c167 date.Month = RTC_MONTH_JANUARY; in RtcInit()
379 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
381 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
386 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
388 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
450 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/B-L072Z-LRWAN1/
Drtc-board.c168 date.Month = RTC_MONTH_JANUARY; in RtcInit()
380 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
382 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
387 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
389 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
451 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/SKiM980A/
Drtc-board.c167 date.Month = RTC_MONTH_JANUARY; in RtcInit()
379 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
381 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
386 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
388 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
450 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/SKiM880B/
Drtc-board.c167 date.Month = RTC_MONTH_JANUARY; in RtcInit()
379 if( rtcAlarmDays > DaysInMonthLeapYear[date.Month - 1] ) in RtcStartAlarm()
381 rtcAlarmDays = rtcAlarmDays % DaysInMonthLeapYear[date.Month - 1]; in RtcStartAlarm()
386 if( rtcAlarmDays > DaysInMonth[date.Month - 1] ) in RtcStartAlarm()
388 rtcAlarmDays = rtcAlarmDays % DaysInMonth[date.Month - 1]; in RtcStartAlarm()
450 …seconds += ( DIVC( ( date->Month-1 ) * ( 30 + 31 ), 2 ) - ( ( ( correction >> ( ( date->Month - 1 … in RtcGetCalendarValue()
/loramac-node-latest/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_ll_rtc.c398 if ((RTC_Format == LL_RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10U) == 0x10U)) in LL_RTC_DATE_Init()
400 RTC_DateStruct->Month = (uint8_t)((RTC_DateStruct->Month & (uint32_t)~(0x10U)) + 0x0AU); in LL_RTC_DATE_Init()
405 assert_param(IS_LL_RTC_MONTH(RTC_DateStruct->Month)); in LL_RTC_DATE_Init()
411 assert_param(IS_LL_RTC_MONTH(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Month))); in LL_RTC_DATE_Init()
425 …LL_RTC_DATE_Config(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_… in LL_RTC_DATE_Init()
430 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init()
462 RTC_DateStruct->Month = LL_RTC_MONTH_JANUARY; in LL_RTC_DATE_StructInit()
Dstm32l4xx_hal_rtc.c1000 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()
1010 assert_param(IS_RTC_MONTH(sDate->Month)); in HAL_RTC_SetDate()
1014 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << RTC_DR_MU_Pos) | \ in HAL_RTC_SetDate()
1021 assert_param(IS_RTC_MONTH(RTC_Bcd2ToByte(sDate->Month))); in HAL_RTC_SetDate()
1025 (((uint32_t)sDate->Month) << RTC_DR_MU_Pos) | \ in HAL_RTC_SetDate()
1113 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> RTC_DR_MU_Pos); in HAL_RTC_GetDate()
1122 sDate->Month = (uint8_t)RTC_Bcd2ToByte(sDate->Month); in HAL_RTC_GetDate()
Dstm32l4xx_hal_rtc_ex.c448 sTimeStampDate->Month = (uint8_t)((tmpdate & (RTC_TSDR_MT | RTC_TSDR_MU)) >> RTC_TSDR_MU_Pos); in HAL_RTCEx_GetTimeStamp()
461 sTimeStampDate->Month = (uint8_t)RTC_Bcd2ToByte(sTimeStampDate->Month); in HAL_RTCEx_GetTimeStamp()
/loramac-node-latest/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/
Dstm32l0xx_ll_rtc.c399 if ((RTC_Format == LL_RTC_FORMAT_BIN) && ((RTC_DateStruct->Month & 0x10U) == 0x10U)) in LL_RTC_DATE_Init()
401 RTC_DateStruct->Month = (RTC_DateStruct->Month & (uint32_t)~(0x10U)) + 0x0AU; in LL_RTC_DATE_Init()
406 assert_param(IS_LL_RTC_MONTH(RTC_DateStruct->Month)); in LL_RTC_DATE_Init()
412 assert_param(IS_LL_RTC_MONTH(__LL_RTC_CONVERT_BCD2BIN(RTC_DateStruct->Month))); in LL_RTC_DATE_Init()
426 …LL_RTC_DATE_Config(RTCx, RTC_DateStruct->WeekDay, RTC_DateStruct->Day, RTC_DateStruct->Month, RTC_… in LL_RTC_DATE_Init()
431 … __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Month), __LL_RTC_CONVERT_BIN2BCD(RTC_DateStruct->Year)); in LL_RTC_DATE_Init()
463 RTC_DateStruct->Month = LL_RTC_MONTH_JANUARY; in LL_RTC_DATE_StructInit()
Dstm32l0xx_hal_rtc.c600 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()
610 assert_param(IS_RTC_MONTH(sDate->Month)); in HAL_RTC_SetDate()
614 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << 8U) | \ in HAL_RTC_SetDate()
621 datetmpreg = RTC_Bcd2ToByte(sDate->Month); in HAL_RTC_SetDate()
627 (((uint32_t)sDate->Month) << 8U) | \ in HAL_RTC_SetDate()
711 sDate->Month = (uint8_t)((datetmpreg & (RTC_DR_MT | RTC_DR_MU)) >> 8U); in HAL_RTC_GetDate()
720 sDate->Month = (uint8_t)RTC_Bcd2ToByte(sDate->Month); in HAL_RTC_GetDate()
Dstm32l0xx_hal_rtc_ex.c338 sTimeStampDate->Month = (uint8_t)((tmpdate & (RTC_DR_MT | RTC_DR_MU)) >> 8U); in HAL_RTCEx_GetTimeStamp()
351 sTimeStampDate->Month = (uint8_t)RTC_Bcd2ToByte(sTimeStampDate->Month); in HAL_RTCEx_GetTimeStamp()
/loramac-node-latest/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc/
Dstm32l1xx_ll_rtc.h160 uint8_t Month; /*!< Specifies the RTC Date Month. member
1489 __STATIC_INLINE void LL_RTC_DATE_SetMonth(RTC_TypeDef *RTCx, uint32_t Month) in LL_RTC_DATE_SetMonth() argument
1492 (((Month & 0xF0U) << (RTC_DR_MT_Pos - 4U)) | ((Month & 0x0FU) << RTC_DR_MU_Pos))); in LL_RTC_DATE_SetMonth()
1593 …L_RTC_DATE_Config(RTC_TypeDef *RTCx, uint32_t WeekDay, uint32_t Day, uint32_t Month, uint32_t Year) in LL_RTC_DATE_Config() argument
1599 (((Month & 0xF0U) << (RTC_DR_MT_Pos - 4U)) | ((Month & 0x0FU) << RTC_DR_MU_Pos)) | \ in LL_RTC_DATE_Config()
Dstm32l1xx_hal_rtc.h105 uint8_t Month; /*!< Specifies the RTC Date Month (in BCD format). member
/loramac-node-latest/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/
Dstm32l0xx_ll_rtc.h198 uint8_t Month; /*!< Specifies the RTC Date Month. member
1496 __STATIC_INLINE void LL_RTC_DATE_SetMonth(RTC_TypeDef *RTCx, uint32_t Month) in LL_RTC_DATE_SetMonth() argument
1499 … (((Month & 0xF0U) << (RTC_POSITION_DR_MT - 4U)) | ((Month & 0x0FU) << RTC_POSITION_DR_MU))); in LL_RTC_DATE_SetMonth()
1600 …L_RTC_DATE_Config(RTC_TypeDef *RTCx, uint32_t WeekDay, uint32_t Day, uint32_t Month, uint32_t Year) in LL_RTC_DATE_Config() argument
1606 … (((Month & 0xF0U) << (RTC_POSITION_DR_MT - 4U)) | ((Month & 0x0FU) << RTC_POSITION_DR_MU)) | \ in LL_RTC_DATE_Config()
Dstm32l0xx_hal_rtc.h144 uint8_t Month; /*!< Specifies the RTC Date Month (in BCD format). member
/loramac-node-latest/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_ll_rtc.h160 uint8_t Month; /*!< Specifies the RTC Date Month. member
1756 __STATIC_INLINE void LL_RTC_DATE_SetMonth(RTC_TypeDef *RTCx, uint32_t Month) in LL_RTC_DATE_SetMonth() argument
1759 (((Month & 0xF0U) << (RTC_DR_MT_Pos - 4U)) | ((Month & 0x0FU) << RTC_DR_MU_Pos))); in LL_RTC_DATE_SetMonth()
1854 …L_RTC_DATE_Config(RTC_TypeDef *RTCx, uint32_t WeekDay, uint32_t Day, uint32_t Month, uint32_t Year) in LL_RTC_DATE_Config() argument
1860 (((Month & 0xF0U) << (RTC_DR_MT_Pos - 4U)) | ((Month & 0x0FU) << RTC_DR_MU_Pos)) | \ in LL_RTC_DATE_Config()
Dstm32l4xx_hal_rtc.h148 uint8_t Month; /*!< Specifies the RTC Date Month (in BCD format). member