Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/input/
Dinput_paw32xx.c68 int16_t res_cpi; member
240 int paw32xx_set_resolution(const struct device *dev, uint16_t res_cpi) in paw32xx_set_resolution() argument
245 if (!IN_RANGE(res_cpi, RES_MIN, RES_MAX)) { in paw32xx_set_resolution()
246 LOG_ERR("res_cpi out of range: %d", res_cpi); in paw32xx_set_resolution()
250 val = res_cpi / RES_STEP; in paw32xx_set_resolution()
348 if (cfg->res_cpi > 0) { in paw32xx_configure()
349 paw32xx_set_resolution(dev, cfg->res_cpi); in paw32xx_configure()
446 BUILD_ASSERT(IN_RANGE(DT_INST_PROP_OR(n, res_cpi, RES_MIN), \
454 .res_cpi = DT_INST_PROP_OR(n, res_cpi, -1), \
Dinput_pmw3610.c105 int16_t res_cpi; member
263 int pmw3610_set_resolution(const struct device *dev, uint16_t res_cpi) in pmw3610_set_resolution() argument
268 if (!IN_RANGE(res_cpi, RES_MIN, RES_MAX)) { in pmw3610_set_resolution()
269 LOG_ERR("res_cpi out of range: %d", res_cpi); in pmw3610_set_resolution()
289 val |= res_cpi / RES_STEP; in pmw3610_set_resolution()
471 if (cfg->res_cpi > 0) { in pmw3610_configure()
472 pmw3610_set_resolution(dev, cfg->res_cpi); in pmw3610_configure()
568 BUILD_ASSERT(IN_RANGE(DT_INST_PROP_OR(n, res_cpi, RES_MIN), \
577 .res_cpi = DT_INST_PROP_OR(n, res_cpi, -1), \
/Zephyr-latest/include/zephyr/input/
Dinput_pmw3610.h16 int pmw3610_set_resolution(const struct device *dev, uint16_t res_cpi);
Dinput_paw32xx.h16 int paw32xx_set_resolution(const struct device *dev, uint16_t res_cpi);