Home
last modified time | relevance | path

Searched +full:res +full:- +full:y +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:
26 The input code for the Y axis to report for the device, typically any of
27 INPUT_REL_*. No report produced for the device Y axis if unspecified.
29 res-x-cpi:
32 CPI resolution for the X 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:
28 The input code for the Y axis to report for the device, typically any of
29 INPUT_REL_*. No report produced for the device Y axis if unspecified.
31 res-cpi:
34 CPI resolution for the sensor. This can also be changed in runtime using
[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:
33 The input code for the Y axis to report for the device, typically any of
34 INPUT_REL_*. No report produced for the device Y axis if unspecified.
[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()
85 int32_t x, y; in pat912x_motion_work_handler() local
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()
104 y = xy[1]; in pat912x_motion_work_handler()
106 ret = i2c_reg_read_byte_dt(&cfg->i2c, PAT912X_DELTA_XY_HI, &val); in pat912x_motion_work_handler()
110 y |= (val << 8) & 0xf00; in pat912x_motion_work_handler()
113 x = sign_extend(x, PAT912X_DATA_SIZE_BITS - 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()
148 static int paw32xx_read_xy(const struct device *dev, int16_t *x, int16_t *y) in paw32xx_read_xy() argument
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()
187 *y = ((rx_data[5] << 8) & 0xf00) | rx_data[3]; in paw32xx_read_xy()
189 *x = sign_extend(*x, PAW32XX_DATA_SIZE_BITS - 1); in paw32xx_read_xy()
[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()
197 int32_t x, y; in pmw3610_motion_work_handler() local
200 if (cfg->smart_mode) { in pmw3610_motion_work_handler()
216 y = ((burst_data[BURST_DELTA_XY_H] << 8) & 0xf00) | burst_data[BURST_DELTA_Y_L]; in pmw3610_motion_work_handler()
[all …]