Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

PAT912x Miniature Optical Navigation Chip. More...

Files

file  input_pat912x.h
 Header file for PAT912x input driver.
 

Functions

int pat912x_set_resolution (const struct device *dev, int16_t res_x_cpi, int16_t res_y_cpi)
 Set resolution on a pat912x device.
 

Detailed Description

PAT912x Miniature Optical Navigation Chip.

Function Documentation

◆ pat912x_set_resolution()

int pat912x_set_resolution ( const struct device dev,
int16_t  res_x_cpi,
int16_t  res_y_cpi 
)

#include <include/zephyr/input/input_pat912x.h>

Set resolution on a pat912x device.

Parameters
devpat912x device.
res_x_cpiCPI resolution for the X axis, 0 to 1275, -1 to keep the current value.
res_y_cpiCPI resolution for the Y axis, 0 to 1275, -1 to keep the current value.