Home
last modified time | relevance | path

Searched refs:datetime (Results 1 – 10 of 10) sorted by relevance

/hal_nxp-2.7.6/mcux/drivers/imxrt6xx/
Dfsl_rtc.c37 static bool RTC_CheckDatetimeFormat(const rtc_datetime_t *datetime);
46 static uint32_t RTC_ConvertDatetimeToSeconds(const rtc_datetime_t *datetime);
54 static void RTC_ConvertSecondsToDatetime(uint32_t seconds, rtc_datetime_t *datetime);
59 static bool RTC_CheckDatetimeFormat(const rtc_datetime_t *datetime) in RTC_CheckDatetimeFormat() argument
61 assert(datetime); in RTC_CheckDatetimeFormat()
69 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in RTC_CheckDatetimeFormat()
70 …(datetime->month < 1U) || (datetime->hour >= 24U) || (datetime->minute >= 60U) || (datetime->secon… in RTC_CheckDatetimeFormat()
77 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in RTC_CheckDatetimeFormat()
83 if ((datetime->day > daysPerMonth[datetime->month]) || (datetime->day < 1U)) in RTC_CheckDatetimeFormat()
91 static uint32_t RTC_ConvertDatetimeToSeconds(const rtc_datetime_t *datetime) in RTC_ConvertDatetimeToSeconds() argument
[all …]
Dfsl_rtc.h111 status_t RTC_SetDatetime(RTC_Type *base, const rtc_datetime_t *datetime);
119 void RTC_GetDatetime(RTC_Type *base, rtc_datetime_t *datetime);
142 void RTC_GetAlarm(RTC_Type *base, rtc_datetime_t *datetime);
/hal_nxp-2.7.6/mcux/drivers/lpc/
Dfsl_rtc.c37 static bool RTC_CheckDatetimeFormat(const rtc_datetime_t *datetime);
46 static uint32_t RTC_ConvertDatetimeToSeconds(const rtc_datetime_t *datetime);
54 static void RTC_ConvertSecondsToDatetime(uint32_t seconds, rtc_datetime_t *datetime);
59 static bool RTC_CheckDatetimeFormat(const rtc_datetime_t *datetime) in RTC_CheckDatetimeFormat() argument
61 assert(datetime); in RTC_CheckDatetimeFormat()
69 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in RTC_CheckDatetimeFormat()
70 …(datetime->month < 1U) || (datetime->hour >= 24U) || (datetime->minute >= 60U) || (datetime->secon… in RTC_CheckDatetimeFormat()
77 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in RTC_CheckDatetimeFormat()
83 if ((datetime->day > daysPerMonth[datetime->month]) || (datetime->day < 1U)) in RTC_CheckDatetimeFormat()
91 static uint32_t RTC_ConvertDatetimeToSeconds(const rtc_datetime_t *datetime) in RTC_ConvertDatetimeToSeconds() argument
[all …]
Dfsl_rtc.h111 status_t RTC_SetDatetime(RTC_Type *base, const rtc_datetime_t *datetime);
119 void RTC_GetDatetime(RTC_Type *base, rtc_datetime_t *datetime);
142 void RTC_GetAlarm(RTC_Type *base, rtc_datetime_t *datetime);
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_snvs_hp.c44 static bool SNVS_HP_CheckDatetimeFormat(const snvs_hp_rtc_datetime_t *datetime);
53 static uint32_t SNVS_HP_ConvertDatetimeToSeconds(const snvs_hp_rtc_datetime_t *datetime);
61 static void SNVS_HP_ConvertSecondsToDatetime(uint32_t seconds, snvs_hp_rtc_datetime_t *datetime);
98 static bool SNVS_HP_CheckDatetimeFormat(const snvs_hp_rtc_datetime_t *datetime) in SNVS_HP_CheckDatetimeFormat() argument
100 assert(datetime != NULL); in SNVS_HP_CheckDatetimeFormat()
108 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in SNVS_HP_CheckDatetimeFormat()
109 …(datetime->month < 1U) || (datetime->hour >= 24U) || (datetime->minute >= 60U) || (datetime->secon… in SNVS_HP_CheckDatetimeFormat()
116 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in SNVS_HP_CheckDatetimeFormat()
122 if ((datetime->day > daysPerMonth[datetime->month]) || (datetime->day < 1U)) in SNVS_HP_CheckDatetimeFormat()
130 static uint32_t SNVS_HP_ConvertDatetimeToSeconds(const snvs_hp_rtc_datetime_t *datetime) in SNVS_HP_ConvertDatetimeToSeconds() argument
[all …]
Dfsl_snvs_lp.c39 static bool SNVS_LP_CheckDatetimeFormat(const snvs_lp_srtc_datetime_t *datetime);
48 static uint32_t SNVS_LP_ConvertDatetimeToSeconds(const snvs_lp_srtc_datetime_t *datetime);
56 static void SNVS_LP_ConvertSecondsToDatetime(uint32_t seconds, snvs_lp_srtc_datetime_t *datetime);
93 static bool SNVS_LP_CheckDatetimeFormat(const snvs_lp_srtc_datetime_t *datetime) in SNVS_LP_CheckDatetimeFormat() argument
95 assert(datetime != NULL); in SNVS_LP_CheckDatetimeFormat()
103 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in SNVS_LP_CheckDatetimeFormat()
104 …(datetime->month < 1U) || (datetime->hour >= 24U) || (datetime->minute >= 60U) || (datetime->secon… in SNVS_LP_CheckDatetimeFormat()
111 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in SNVS_LP_CheckDatetimeFormat()
117 if ((datetime->day > daysPerMonth[datetime->month]) || (datetime->day < 1U)) in SNVS_LP_CheckDatetimeFormat()
125 static uint32_t SNVS_LP_ConvertDatetimeToSeconds(const snvs_lp_srtc_datetime_t *datetime) in SNVS_LP_ConvertDatetimeToSeconds() argument
[all …]
Dfsl_snvs_hp.h210 status_t SNVS_HP_RTC_SetDatetime(SNVS_Type *base, const snvs_hp_rtc_datetime_t *datetime);
218 void SNVS_HP_RTC_GetDatetime(SNVS_Type *base, snvs_hp_rtc_datetime_t *datetime);
242 void SNVS_HP_RTC_GetAlarm(SNVS_Type *base, snvs_hp_rtc_datetime_t *datetime);
Dfsl_snvs_lp.h251 status_t SNVS_LP_SRTC_SetDatetime(SNVS_Type *base, const snvs_lp_srtc_datetime_t *datetime);
259 void SNVS_LP_SRTC_GetDatetime(SNVS_Type *base, snvs_lp_srtc_datetime_t *datetime);
287 void SNVS_LP_SRTC_GetAlarm(SNVS_Type *base, snvs_lp_srtc_datetime_t *datetime);
/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_rtc.c37 static bool RTC_CheckDatetimeFormat(const rtc_datetime_t *datetime);
46 static uint32_t RTC_ConvertDatetimeToSeconds(const rtc_datetime_t *datetime);
54 static void RTC_ConvertSecondsToDatetime(uint32_t seconds, rtc_datetime_t *datetime);
59 static bool RTC_CheckDatetimeFormat(const rtc_datetime_t *datetime) in RTC_CheckDatetimeFormat() argument
61 assert(NULL != datetime); in RTC_CheckDatetimeFormat()
69 …if ((datetime->year < YEAR_RANGE_START) || (datetime->year > YEAR_RANGE_END) || (datetime->month >… in RTC_CheckDatetimeFormat()
70 …(datetime->month < 1U) || (datetime->hour >= 24U) || (datetime->minute >= 60U) || (datetime->secon… in RTC_CheckDatetimeFormat()
77 …if ((((datetime->year & 3U) == 0U) && (datetime->year % 100U != 0U)) || (datetime->year % 400U == … in RTC_CheckDatetimeFormat()
83 if ((datetime->day > daysPerMonth[datetime->month]) || (datetime->day < 1U)) in RTC_CheckDatetimeFormat()
91 static uint32_t RTC_ConvertDatetimeToSeconds(const rtc_datetime_t *datetime) in RTC_ConvertDatetimeToSeconds() argument
[all …]
Dfsl_rtc.h222 status_t RTC_SetDatetime(RTC_Type *base, const rtc_datetime_t *datetime);
230 void RTC_GetDatetime(RTC_Type *base, rtc_datetime_t *datetime);
253 void RTC_GetAlarm(RTC_Type *base, rtc_datetime_t *datetime);