forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
input: pmw3610: add few config options
Add config options for resolution, force awake and smart mode. Signed-off-by: Fabio Baltieri <[email protected]>
- Loading branch information
1 parent
edbfe9a
commit 2c5b992
Showing
4 changed files
with
200 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef ZEPHYR_INCLUDE_INPUT_PMW3610_H_ | ||
#define ZEPHYR_INCLUDE_INPUT_PMW3610_H_ | ||
|
||
/** | ||
* @brief Set resolution on a pmw3610 device | ||
* | ||
* @param dev pmw3610 device. | ||
* @param res_cpi CPI resolution, 200 to 3200. | ||
*/ | ||
int pmw3610_set_resolution(const struct device *dev, uint16_t res_cpi); | ||
|
||
/** | ||
* @brief Set force awake mode on a pmw3610 device | ||
* | ||
* @param dev pmw3610 device. | ||
* @param enable whether to enable or disable force awake mode. | ||
*/ | ||
int pmw3610_force_awake(const struct device *dev, bool enable); | ||
|
||
#endif /* ZEPHYR_INCLUDE_INPUT_PMW3610_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,6 +248,8 @@ | |
zephyr,axis-y = <1>; | ||
invert-x; | ||
invert-y; | ||
force-awake; | ||
smart-mode; | ||
}; | ||
}; | ||
}; | ||
|