Home
last modified time | relevance | path

Searched refs:device_time (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/subsys/lorawan/clock_sync/src/
Dmain.c69 uint32_t device_time; in ZTEST() local
82 device_time = sys_get_le32(req.data + 1); in ZTEST()
84 zassert_within((int)device_time, k_uptime_seconds(), 1); in ZTEST()
105 uint32_t device_time; in ZTEST() local
119 device_time = sys_get_le32(ans.data + 2); in ZTEST()
121 zassert_within(device_time, gps_time, 1); in ZTEST()
/Zephyr-latest/subsys/lorawan/services/
Dclock_sync.c74 uint32_t device_time = k_uptime_seconds() + ctx.time_offset; in clock_sync_serialize_device_time() local
80 buf[0] = (device_time >> 0) & 0xFF; in clock_sync_serialize_device_time()
81 buf[1] = (device_time >> 8) & 0xFF; in clock_sync_serialize_device_time()
82 buf[2] = (device_time >> 16) & 0xFF; in clock_sync_serialize_device_time()
83 buf[3] = (device_time >> 24) & 0xFF; in clock_sync_serialize_device_time()