Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/rtc/rtc_api/src/
Dtest_time.c31 datetime_set.tm_nsec = 0; in ZTEST()
63 zassert_true((datetime_get.tm_nsec > -1) && (datetime_get.tm_nsec < 1000000000), in ZTEST()
Dtest_alarm.c32 .tm_nsec = 0,
46 .tm_nsec = 0,
58 .tm_nsec = INT32_MAX,
172 zassert_equal(alarm_time_get.tm_nsec, test_alarm_time_set.tm_nsec, in ZTEST()
Dtest_y2k.c32 {.tm_isdst = -1, .tm_nsec = 0}, in ZTEST()
33 {.tm_isdst = -1, .tm_nsec = 0}, in ZTEST()
Dtest_time_incrementing.c33 datetime_set.tm_nsec = 0; in ZTEST()
Dtest_alarm_callback.c36 .tm_nsec = 0,
50 .tm_nsec = 0,
/Zephyr-latest/drivers/rtc/
Drtc_utils.c53 (timeptr->tm_nsec < 0 || timeptr->tm_nsec > 999999999)) { in rtc_utils_validate_rtc_time()
Drtc_ambiq.c62 atm->ui32Hundredths = tm->tm_nsec / 10000000; in rtc_time_to_ambiq_time_set()
96 tm->tm_nsec = atm->ui32Hundredths * 10000000; in ambiq_time_to_rtc_time_set()
Drtc_smartbond.c193 timeptr->tm_nsec = 0; /*Unknown*/ in bcd_to_rtc_time()
225 if ((timeptr->tm_yday != -1) || (timeptr->tm_isdst != -1) || (timeptr->tm_nsec != 0)) { in rtc_smartbond_set_time()
354 timeptr->tm_nsec = 0; in bcd_to_alarm_time()
Drtc_ds1307.c100 timeptr->tm_nsec = 0; in ds1307_get_time()
Drtc_shell.c215 rtctime.tm_sec, rtctime.tm_nsec / 1000000); in cmd_get()
Drtc_xmc4xxx.c67 timeptr->tm_nsec = 0; in rtc_xmc4xxx_get_time()
Drtc_ifx_cat1.c142 z_time->tm_nsec = 0; in _ifx_cat1_rtc_from_pdl_time()
Drtc_rpi_pico.c153 timeptr->tm_nsec = 0; in rtc_rpi_pico_get_time()
Drtc_emul.c247 data->datetime.tm_nsec = 0; in rtc_emul_set_time()
Drtc_nxp_irtc.c123 timeptr->tm_nsec = 0; in nxp_irtc_get_time()
Drtc_pcf8563.c169 timeptr->tm_nsec = 0; in pcf8563_get_time()
Drtc_numaker.c121 timeptr->tm_nsec = 0; in rtc_numaker_get_time()
Drtc_ll_stm32.c547 timeptr->tm_nsec = temp / (cfg->sync_prescaler + 1); in rtc_stm32_get_time()
549 timeptr->tm_nsec = 0; in rtc_stm32_get_time()
Drtc_mc146818.c252 timeptr->tm_nsec = 0; in rtc_mc146818_get_time()
Drtc_sam.c180 timeptr->tm_nsec = 0; in rtc_sam_get_time()
Drtc_rv8263.c258 timeptr->tm_nsec = 0; in rv8263c8_time_get()
/Zephyr-latest/tests/drivers/rtc/rtc_utils/src/
Dtest_rtc_utils.c23 .tm_nsec = INT32_MAX, in ZTEST()
/Zephyr-latest/samples/boards/nuvoton/numaker/system_off/src/
Dmain.c34 time_set.tm_nsec = 0; in set_alarm_10s()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt/src/
Dos_mgmt.c884 , (uint16_t)(current_time.tm_nsec / RTC_DATETIME_MS_TO_NS) in os_mgmt_datetime_read()
914 .tm_nsec = 0, in os_mgmt_datetime_write()
1002 new_time.tm_nsec = strtol(pos, &new_pos, RTC_DATETIME_NUMERIC_BASE); in os_mgmt_datetime_write()
1004 if (new_time.tm_nsec < RTC_DATETIME_MILLISECOND_MIN || in os_mgmt_datetime_write()
1005 new_time.tm_nsec > RTC_DATETIME_MILLISECOND_MAX) { in os_mgmt_datetime_write()
1009 new_time.tm_nsec *= RTC_DATETIME_MS_TO_NS; in os_mgmt_datetime_write()
/Zephyr-latest/include/zephyr/drivers/
Drtc.h71 int tm_nsec; /**< Nanoseconds [0, 999999999] (Unknown = 0) */ member