Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/input/
Dinput_analog_axis.c121 int16_t in_range = cal->in_max - cal->in_min; in analog_axis_out_deadzone()
123 int16_t in_mid = DIV_ROUND_CLOSEST(cal->in_min + cal->in_max, 2); in analog_axis_out_deadzone()
124 int16_t in_min = cal->in_min; in analog_axis_out_deadzone() local
131 in_min += cal->in_deadzone; in analog_axis_out_deadzone()
138 return DIV_ROUND_CLOSEST((raw_val - in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_deadzone()
149 int16_t in_range = cal->in_max - cal->in_min; in analog_axis_out_linear()
152 return DIV_ROUND_CLOSEST((raw_val - cal->in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_linear()
341 .in_min = (int16_t)DT_PROP(node_id, in_min), \
Dinput_analog_axis_settings.c30 dev->name, i, cal.in_min, cal.in_max, cal.in_deadzone); in analog_axis_calibration_log()
/Zephyr-Core-3.7.0/include/zephyr/input/
Dinput_analog_axis.h29 int16_t in_min; member