Home
last modified time | relevance | path

Searched +full:res +full:- +full:cpi (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/dts/bindings/input/
Dpixart,pat912x.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: i2c-device.yaml
11 motion-gpios:
12 type: phandle-array
17 zephyr,axis-x:
23 zephyr,axis-y:
29 res-x-cpi:
32 CPI resolution for the X axis, range 0 to 1275, rounded down to the
35 res-y-cpi:
38 CPI resolution for the Y axis, range 0 to 1275, rounded down to the
[all …]
Dpixart,paw32xx.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: spi-device.yaml
11 motion-gpios:
12 type: phandle-array
17 zephyr,axis-x:
24 zephyr,axis-y:
31 res-cpi:
34 CPI resolution for the sensor. This can also be changed in runtime using
37 invert-x:
42 invert-y:
[all …]
Dpixart,pmw3610.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: spi-device.yaml
11 motion-gpios:
12 type: phandle-array
17 reset-gpios:
18 type: phandle-array
22 zephyr,axis-x:
29 zephyr,axis-y:
36 res-cpi:
39 CPI resolution for the sensor, range from 200 to 3200, rounded down to
[all …]
/Zephyr-latest/tests/drivers/build_all/input/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
17 #io-channel-cells = <1>;
18 #address-cells = <1>;
19 #size-cells = <0>;
26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
32 gpio-controller;
34 #gpio-cells = <0x2>;
[all …]
/Zephyr-latest/drivers/input/
Dinput_pat912x.c4 * SPDX-License-Identifier: Apache-2.0
83 const struct device *dev = data->dev; in pat912x_motion_work_handler()
84 const struct pat912x_config *cfg = dev->config; in pat912x_motion_work_handler()
90 ret = i2c_reg_read_byte_dt(&cfg->i2c, PAT912X_MOTION_STATUS, &val); in pat912x_motion_work_handler()
99 ret = i2c_burst_read_dt(&cfg->i2c, PAT912X_DELTA_X_LO, xy, sizeof(xy)); in pat912x_motion_work_handler()
106 ret = i2c_reg_read_byte_dt(&cfg->i2c, PAT912X_DELTA_XY_HI, &val); in pat912x_motion_work_handler()
113 x = sign_extend(x, PAT912X_DATA_SIZE_BITS - 1); in pat912x_motion_work_handler()
114 y = sign_extend(y, PAT912X_DATA_SIZE_BITS - 1); in pat912x_motion_work_handler()
116 if (cfg->invert_x) { in pat912x_motion_work_handler()
117 x *= -1; in pat912x_motion_work_handler()
[all …]
Dinput_paw32xx.c4 * SPDX-License-Identifier: Apache-2.0
82 const struct paw32xx_config *cfg = dev->config; in paw32xx_read_reg()
108 return spi_transceive_dt(&cfg->spi, &tx, &rx); in paw32xx_read_reg()
113 const struct paw32xx_config *cfg = dev->config; in paw32xx_write_reg()
125 return spi_write_dt(&cfg->spi, &tx); in paw32xx_write_reg()
150 const struct paw32xx_config *cfg = dev->config; in paw32xx_read_xy()
181 ret = spi_transceive_dt(&cfg->spi, &tx, &rx); in paw32xx_read_xy()
189 *x = sign_extend(*x, PAW32XX_DATA_SIZE_BITS - 1); in paw32xx_read_xy()
190 *y = sign_extend(*y, PAW32XX_DATA_SIZE_BITS - 1); in paw32xx_read_xy()
199 const struct device *dev = data->dev; in paw32xx_motion_work_handler()
[all …]
Dinput_pmw3610.c4 * SPDX-License-Identifier: Apache-2.0
122 const struct pmw3610_config *cfg = dev->config; in pmw3610_read()
148 return spi_transceive_dt(&cfg->spi, &tx, &rx); in pmw3610_read()
158 const struct pmw3610_config *cfg = dev->config; in pmw3610_write_reg()
170 return spi_write_dt(&cfg->spi, &tx); in pmw3610_write_reg()
193 const struct device *dev = data->dev; in pmw3610_motion_work_handler()
194 const struct pmw3610_config *cfg = dev->config; in pmw3610_motion_work_handler()
200 if (cfg->smart_mode) { in pmw3610_motion_work_handler()
218 x = sign_extend(x, PMW3610_DATA_SIZE_BITS - 1); in pmw3610_motion_work_handler()
219 y = sign_extend(y, PMW3610_DATA_SIZE_BITS - 1); in pmw3610_motion_work_handler()
[all …]