Home
last modified time | relevance | path

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

/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/sub_sets/
Disoal_test_tx.c363 static bool isoal_get_time_diff_test(uint32_t time_before, uint32_t time_after, uint32_t *result) in isoal_get_time_diff_test() argument
365 bool valid = isoal_get_time_diff(time_before, time_after, result); in isoal_get_time_diff_test()
370 time_before, in isoal_get_time_diff_test()
375 time_before, in isoal_get_time_diff_test()
1570 uint32_t time_before; in ZTEST() local
1578 time_before = ISOAL_TIME_WRAPPING_POINT_US; in ZTEST()
1580 valid = isoal_get_time_diff_test(time_before, time_after, &result); in ZTEST()
1587 time_before = 0; in ZTEST()
1589 valid = isoal_get_time_diff_test(time_before, time_after, &result); in ZTEST()
1592 time_before = ISOAL_TIME_WRAPPING_POINT_US; in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Disoal.c150 static bool isoal_get_time_diff(uint32_t time_before, uint32_t time_after, uint32_t *result) in isoal_get_time_diff() argument
154 LL_ASSERT(time_before <= ISOAL_TIME_WRAPPING_POINT_US); in isoal_get_time_diff()
157 if (time_before > time_after) { in isoal_get_time_diff()
158 if (time_before >= ISOAL_TIME_MID_POINT_US && in isoal_get_time_diff()
160 if ((time_before - time_after) <= ISOAL_TIME_SPAN_HALF_US) { in isoal_get_time_diff()
164 *result = time_after + ISOAL_TIME_SPAN_FULL_US - time_before; in isoal_get_time_diff()
172 *result = time_after - time_before; in isoal_get_time_diff()