13#ifndef ZEPHYR_INCLUDE_INPUT_TOUCH_H_
14#define ZEPHYR_INCLUDE_INPUT_TOUCH_H_
55#define INPUT_TOUCH_DT_COMMON_CONFIG_INIT(node_id) \
57 .screen_width = DT_PROP(node_id, screen_width), \
58 .screen_height = DT_PROP(node_id, screen_height), \
59 .inverted_x = DT_PROP(node_id, inverted_x), \
60 .inverted_y = DT_PROP(node_id, inverted_y), \
61 .swapped_x_y = DT_PROP(node_id, swapped_x_y) \
69#define INPUT_TOUCH_DT_INST_COMMON_CONFIG_INIT(inst) \
70 INPUT_TOUCH_DT_COMMON_CONFIG_INIT(DT_DRV_INST(inst))
77#define INPUT_TOUCH_STRUCT_CHECK(config) \
78 BUILD_ASSERT(offsetof(config, common) == 0, \
79 "struct input_touchscreen_common_config must be placed first");
void input_touchscreen_report_pos(const struct device *dev, uint32_t x, uint32_t y, k_timeout_t timeout)
Common utility for reporting touchscreen position events.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Runtime device structure (in ROM) per driver instance.
Definition device.h:510
Kernel timeout type.
Definition clock.h:65