Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/input/
Dinput_analog_axis.c122 int16_t out_range = axis_cfg->out_max - axis_cfg->out_min; in analog_axis_out_deadzone() local
138 return DIV_ROUND_CLOSEST((raw_val - in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_deadzone()
150 int16_t out_range = axis_cfg->out_max - axis_cfg->out_min; in analog_axis_out_linear() local
152 return DIV_ROUND_CLOSEST((raw_val - cal->in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_linear()