Touch Events API .
More...
Touch Events API .
- Since
- 3.7
- Version
- 0.1.0
◆ INPUT_TOUCH_DT_COMMON_CONFIG_INIT
#define INPUT_TOUCH_DT_COMMON_CONFIG_INIT |
( |
| node_id | ) |
|
#include <zephyr/input/input_touch.h>
Value: { \
.screen_width =
DT_PROP(node_id, screen_width), \
.screen_height =
DT_PROP(node_id, screen_height), \
.inverted_x =
DT_PROP(node_id, inverted_x), \
.inverted_y =
DT_PROP(node_id, inverted_y), \
.swapped_x_y =
DT_PROP(node_id, swapped_x_y) \
}
#define DT_PROP(node_id, prop)
Get a devicetree property value.
Definition devicetree.h:663
Initialize common touchscreen config from devicetree.
- Parameters
-
node_id | The devicetree node identifier. |
◆ INPUT_TOUCH_DT_INST_COMMON_CONFIG_INIT
#define INPUT_TOUCH_DT_INST_COMMON_CONFIG_INIT |
( |
| inst | ) |
|
#include <zephyr/input/input_touch.h>
Value:
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:3623
#define INPUT_TOUCH_DT_COMMON_CONFIG_INIT(node_id)
Initialize common touchscreen config from devicetree.
Definition input_touch.h:50
Initialize common touchscreen config from devicetree instance.
- Parameters
-
◆ INPUT_TOUCH_STRUCT_CHECK
#define INPUT_TOUCH_STRUCT_CHECK |
( |
| config | ) |
|
#include <zephyr/input/input_touch.h>
Value: BUILD_ASSERT(offsetof(config, common) == 0, \
"struct input_touchscreen_common_config must be placed first");
Validate the offset of the common config structure.
- Parameters
-
config | Name of the config structure. |
◆ input_touchscreen_report_pos()
#include <zephyr/input/input_touch.h>
Common utility for reporting touchscreen position events.
- Parameters
-
dev | Touchscreen controller |
x | X coordinate as reported by the controller |
y | Y coordinate as reported by the controller |
timeout | Timeout for reporting the event |