Searched +full:res +full:- +full:x +full:- +full:cpi (Results 1 – 7 of 7) sorted by relevance
/Zephyr-latest/dts/bindings/input/ |
D | pixart,pat912x.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: i2c-device.yaml 11 motion-gpios: 12 type: phandle-array 17 zephyr,axis-x: 20 The input code for the X axis to report for the device, typically any of 21 INPUT_REL_*. No report produced for the device X axis if unspecified. 23 zephyr,axis-y: 29 res-x-cpi: 32 CPI resolution for the X axis, range 0 to 1275, rounded down to the [all …]
|
D | pixart,paw32xx.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: spi-device.yaml 11 motion-gpios: 12 type: phandle-array 17 zephyr,axis-x: 21 The input code for the X axis to report for the device, typically any of 22 INPUT_REL_*. No report produced for the device X axis if unspecified. 24 zephyr,axis-y: 31 res-cpi: 34 CPI resolution for the sensor. This can also be changed in runtime using [all …]
|
D | pixart,pmw3610.yaml | 2 # 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: 26 The input code for the X axis to report for the device, typically any of 27 INPUT_REL_*. No report produced for the device X axis if unspecified. 29 zephyr,axis-y: [all …]
|
/Zephyr-latest/tests/drivers/build_all/input/ |
D | app.overlay | 4 * 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/ |
D | input_pat912x.c | 4 * 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() 103 x = xy[0]; in pat912x_motion_work_handler() 106 ret = i2c_reg_read_byte_dt(&cfg->i2c, PAT912X_DELTA_XY_HI, &val); in pat912x_motion_work_handler() 111 x |= (val << 4) & 0xf00; in pat912x_motion_work_handler() 113 x = sign_extend(x, PAT912X_DATA_SIZE_BITS - 1); in pat912x_motion_work_handler() [all …]
|
D | input_paw32xx.c | 4 * 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() 186 *x = ((rx_data[5] << 4) & 0xf00) | rx_data[1]; in paw32xx_read_xy() 189 *x = sign_extend(*x, PAW32XX_DATA_SIZE_BITS - 1); in paw32xx_read_xy() [all …]
|
D | input_pmw3610.c | 4 * 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() 215 x = ((burst_data[BURST_DELTA_XY_H] << 4) & 0xf00) | burst_data[BURST_DELTA_X_L]; in pmw3610_motion_work_handler() [all …]
|