Home
last modified time | relevance | path

Searched refs:tm_hour (Results 1 – 25 of 49) sorted by relevance

12

/Zephyr-latest/tests/unit/timeutil/
Dtest_s32.c19 .tm_hour = 23,
31 .tm_hour = 0,
43 .tm_hour = 15,
60 .tm_hour = 20,
72 .tm_hour = 3,
86 .tm_hour = 23,
98 .tm_hour = 0,
110 .tm_hour = 0,
122 .tm_hour = 0,
134 .tm_hour = 0,
[all …]
Dtest_s64.c20 .tm_hour = 20,
32 .tm_hour = 20,
44 .tm_hour = 3,
56 .tm_hour = 23,
68 .tm_hour = 0,
81 .tm_hour = 23,
93 .tm_hour = 0,
105 .tm_hour = 0,
117 .tm_hour = 0,
129 .tm_hour = 0,
[all …]
Dmain.c32 zassert_equal(tm.tm_hour, tp->tm.tm_hour, in timeutil_check()
34 tp->civil, tm.tm_hour, tp->tm.tm_hour); in timeutil_check()
/Zephyr-latest/drivers/rtc/
Drtc_utils.c25 if ((mask & RTC_ALARM_TIME_MASK_HOUR) && (timeptr->tm_hour < 0 || timeptr->tm_hour > 23)) { in rtc_utils_validate_rtc_time()
Drtc_ds1307.c57 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, tm->tm_hour, tm->tm_min, in ds1307_set_time()
62 regs[2] = bin2bcd(tm->tm_hour); in ds1307_set_time()
92 timeptr->tm_hour = bcd2bin(regs[2] & HOURS_BITS); /* 24hr mode */ in ds1307_get_time()
113 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ds1307_get_time()
Drtc_mc146818.c154 if (timeptr->tm_hour < MIN_HOUR || timeptr->tm_hour > MAX_HOUR) { in rtc_mc146818_validate_time()
201 rtc_write(RTC_HOUR, (uint8_t)timeptr->tm_hour); in rtc_mc146818_set_time()
246 timeptr->tm_hour = rtc_read(RTC_HOUR); in rtc_mc146818_get_time()
281 (timeptr->tm_hour < MIN_HOUR || timeptr->tm_hour > MAX_HOUR)) { in rtc_mc146818_validate_alarm()
340 rtc_write(RTC_ALARM_HOUR, timeptr->tm_hour); in rtc_mc146818_alarm_set_time()
387 timeptr->tm_hour = value; in rtc_mc146818_alarm_get_time()
Drtc_ambiq.c57 atm->ui32Hour = tm->tm_hour; in rtc_time_to_ambiq_time_set()
91 tm->tm_hour = atm->ui32Hour; in ambiq_time_to_rtc_time_set()
127 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ambiq_rtc_set_time()
166 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in ambiq_rtc_get_time()
217 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, *mask); in ambiq_rtc_alarm_get_time()
268 timeptr->tm_sec, timeptr->tm_min, timeptr->tm_hour, timeptr->tm_mday, in ambiq_rtc_alarm_set_time()
Drtc_emul.c104 datetime->tm_hour++; in rtc_emul_increment_tm()
107 if (datetime->tm_hour < 24) { in rtc_emul_increment_tm()
111 datetime->tm_hour = 0; in rtc_emul_increment_tm()
168 (alarm->datetime.tm_hour != data->datetime.tm_hour)) { in rtc_emul_test_alarms()
Drtc_am1805.c135 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, tm->tm_hour, tm->tm_min, in am1805_set_time()
140 regs[2] = bin2bcd(tm->tm_hour) & HOURS_BITS; in am1805_set_time()
190 timeptr->tm_hour = bcd2bin(regs[2] & HOURS_BITS); in am1805_get_time()
199 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); in am1805_get_time()
343 timeptr->tm_hour = bcd2bin(regs[2] & HOURS_BITS); in am1805_alarm_get_time()
352 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, *mask); in am1805_alarm_get_time()
410 regs[2] = bin2bcd(timeptr->tm_hour) & HOURS_BITS; in am1805_alarm_set_time()
417 timeptr->tm_sec, timeptr->tm_min, timeptr->tm_hour, timeptr->tm_mday, in am1805_alarm_set_time()
Drtc_nxp_irtc.c83 RTC_HOURMIN_HOUR_CNT(timeptr->tm_hour); in nxp_irtc_set_time()
111 timeptr->tm_hour = RTC_NXP_GET_REG_FIELD(irtc_reg, HOURMIN, HOUR_CNT); in nxp_irtc_get_time()
172 irtc_reg->ALM_HOURMIN |= RTC_ALM_HOURMIN_ALM_HOUR(timeptr->tm_hour); in nxp_irtc_alarm_set_time()
237 timeptr->tm_hour = RTC_NXP_GET_REG_FIELD(irtc_reg, HOURMIN, HOUR_CNT); in nxp_irtc_alarm_get_time()
/Zephyr-latest/samples/drivers/rtc/src/
Dmain.c21 .tm_hour = 4, in set_date_time()
46 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); in get_date_time()
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/
Dtest_alarm.c25 .tm_hour = 13,
39 .tm_hour = 13,
52 .tm_hour = 25,
142 zassert_equal(alarm_time_get.tm_hour, test_alarm_time_set.tm_hour, in ZTEST()
Dtest_time.c46 zassert_true((datetime_get.tm_hour > -1) && (datetime_get.tm_hour < 24), in ZTEST()
Dtest_y2k.c68 zassert_equal(rtm[Y2K].tm_hour, 0, "wrong hour: %d", rtm[Y2K].tm_hour); in ZTEST()
Dtest_alarm_callback.c29 .tm_hour = 13,
43 .tm_hour = 13,
/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/
Dtest_rtc_time_to_tm.c19 zassert_equal(offsetof(struct rtc_time, tm_hour), offsetof(struct tm, tm_hour), in ZTEST()
/Zephyr-latest/subsys/shell/modules/
Ddate_service.c33 t->tm_hour, in date_print()
94 t->tm_hour = strtol(time_str, &endptr, 10); in get_h_m_s()
98 if ((t->tm_hour < 0) || (t->tm_hour > 23)) { in get_h_m_s()
/Zephyr-latest/subsys/bluetooth/services/
Dcts.c45 date_time.tm_hour = ct_time->hours; /* hours of day */ in bt_cts_time_to_unix_ms()
51 date_time.tm_mday, date_time.tm_hour, date_time.tm_min, date_time.tm_sec); in bt_cts_time_to_unix_ms()
85 date_time.tm_mday, date_time.tm_hour, date_time.tm_min, date_time.tm_sec); in bt_cts_time_from_unix_ms()
94 ct_time->hours = date_time.tm_hour; /* hours */ in bt_cts_time_from_unix_ms()
/Zephyr-latest/lib/libc/common/source/time/
Dgmtime_r.c92 result->tm_hour = rem / 60U / 60U; in gmtime_r()
93 rem -= result->tm_hour * 60 * 60; in gmtime_r()
Dasctime.c34 mon_str[tp->tm_mon], tp->tm_mday, tp->tm_hour, tp->tm_min, tp->tm_sec, in asctime_impl()
/Zephyr-latest/tests/drivers/rtc/shell/src/
Dmain.c64 get_time_mock.rtc.tm_hour = 12; in configure_get_time_mock()
82 zassert_equal(hour, rtctime->tm_hour, "Hour mismatch"); in assert_set_time()
137 assert_set_time(2022, 5, 17, get_time_mock.rtc.tm_hour, get_time_mock.rtc.tm_min, in ZTEST()
/Zephyr-latest/tests/drivers/rtc/rtc_utils/src/
Dtest_rtc_utils.c17 .tm_hour = 25, in ZTEST()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dmain.c25 (DWORD)cal->tm_mday << 16 | (DWORD)cal->tm_hour << 11 | (DWORD)cal->tm_min << 5 | in get_fattime()
/Zephyr-latest/lib/libc/minimal/include/
Dtime.h27 int tm_hour; member
/Zephyr-latest/samples/boards/nuvoton/numaker/system_off/src/
Dmain.c41 alarm_time_set.tm_hour = RTC_TEST_ALARM_TIME_HOUR; in set_alarm_10s()

12