Searched refs:linear_range_get_index (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/lib/linear_range/src/ |
D | main.c | 185 ret = linear_range_get_index(&r[0], -10, &idx); in ZTEST() 189 ret = linear_range_get_index(&r[0], -7, &idx); in ZTEST() 194 ret = linear_range_get_index(&r[1], -1, &idx); in ZTEST() 198 ret = linear_range_get_index(&r[1], 2, &idx); in ZTEST() 203 ret = linear_range_get_index(&r[2], 100, &idx); in ZTEST() 207 ret = linear_range_get_index(&r[2], 280, &idx); in ZTEST() 212 ret = linear_range_get_index(&r[2], 120, &idx); in ZTEST() 217 ret = linear_range_get_index(&r[3], 400, &idx); in ZTEST()
|
/Zephyr-latest/include/zephyr/sys/ |
D | linear_range.h | 193 static inline int linear_range_get_index(const struct linear_range *r, in linear_range_get_index() function 241 return linear_range_get_index(&r[i], val, idx); in linear_range_group_get_index()
|
/Zephyr-latest/drivers/sensor/nordic/npm2100_vbat/ |
D | npm2100_vbat.c | 377 ret = linear_range_get_index(&adcdelay_range, val_usec, &delay); in npm2100_vbat_attr_set() 412 ret = linear_range_get_index(&oversample_range, val->val1, &oversample); in npm2100_vbat_attr_set() 430 ret = linear_range_get_index(npm2100_attr[idx].range, in npm2100_vbat_attr_set()
|
/Zephyr-latest/drivers/charger/ |
D | charger_max20335.c | 215 ret = linear_range_get_index(&charger_uv_range, voltage_uv, &idx); in max20335_set_constant_charge_voltage() 265 ret = linear_range_get_index(&system_uv_range, voltage_uv, &idx); in max20335_set_sys_voltage_min_threshold()
|