Home
last modified time | relevance | path

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

/Zephyr-latest/include/zephyr/sys/
Dlinear_range.h69 uint16_t max_idx; member
85 .max_idx = (_max_idx), \
97 return r->max_idx - r->min_idx + 1U; in linear_range_values_count()
129 return r->min + (int32_t)(r->step * (r->max_idx - r->min_idx)); in linear_range_get_max_value()
145 if ((idx < r->min_idx) || (idx > r->max_idx)) { in linear_range_get_value()
202 *idx = r->max_idx; in linear_range_get_index()
281 *idx = r->max_idx; in linear_range_get_win_index()
/Zephyr-latest/tests/lib/linear_range/src/
Dmain.c45 zassert_equal(r[0].max_idx, 1U); in ZTEST()