Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/input/
Dinput_analog_axis.c121 int16_t in_range = cal->in_max - cal->in_min; in analog_axis_out_deadzone() local
130 in_range -= cal->in_deadzone * 2; 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() local
152 return DIV_ROUND_CLOSEST((raw_val - cal->in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_linear()
/Zephyr-latest/subsys/shell/
Dshell.c545 const bool in_range = IN_RANGE(argc, mand, mand + opt); in exec_cmd() local
548 ret_val = cmd_precheck(sh, in_range); in exec_cmd()