Home
last modified time | relevance | path

Searched refs:min_idx (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/include/zephyr/sys/
Dlinear_range.h67 uint16_t min_idx; member
84 .min_idx = (_min_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()
149 *val = r->min + (int32_t)(r->step * (idx - r->min_idx)); in linear_range_get_value()
197 *idx = r->min_idx; in linear_range_get_index()
207 *idx = r->min_idx; in linear_range_get_index()
209 *idx = r->min_idx + DIV_ROUND_UP((uint32_t)(val - r->min), in linear_range_get_index()
276 *idx = r->min_idx; in linear_range_get_win_index()
[all …]
/Zephyr-latest/tests/lib/linear_range/src/
Dmain.c44 zassert_equal(r[0].min_idx, 0U); in ZTEST()
/Zephyr-latest/drivers/regulator/
Dregulator_npm6001.c305 return linear_range_get_value(&buck2_range, idx + buck2_range.min_idx, volt_uv); in regulator_npm6001_list_voltage()