Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/input/
Dinput_analog_axis.c121 const struct analog_axis_channel_config *axis_cfg = &cfg->channel_cfg[i]; in analog_axis_loop() local
123 sequence.channels |= BIT(axis_cfg->adc.channel_id); in analog_axis_loop()
135 const struct analog_axis_channel_config *axis_cfg = &cfg->channel_cfg[i]; in analog_axis_loop() local
139 int16_t out_range = axis_cfg->out_max - axis_cfg->out_min; in analog_axis_loop()
142 if (axis_cfg->invert) { in analog_axis_loop()
152 out = CLAMP((raw_val - cal->in_min) * out_range / in_range + axis_cfg->out_min, in analog_axis_loop()
153 axis_cfg->out_min, axis_cfg->out_max); in analog_axis_loop()
157 axis_cfg->out_max + axis_cfg->out_min, 2); in analog_axis_loop()
164 input_report_abs(dev, axis_cfg->axis, out, true, K_FOREVER); in analog_axis_loop()
181 const struct analog_axis_channel_config *axis_cfg = &cfg->channel_cfg[i]; in analog_axis_thread() local
[all …]