Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Touch Events API . More...
Data Structures | |
struct | input_touchscreen_common_config |
Common touchscreen config. More... | |
Macros | |
#define | INPUT_TOUCH_DT_COMMON_CONFIG_INIT(node_id) |
Initialize common touchscreen config from devicetree. | |
#define | INPUT_TOUCH_DT_INST_COMMON_CONFIG_INIT(inst) |
Initialize common touchscreen config from devicetree instance. | |
#define | INPUT_TOUCH_STRUCT_CHECK(config) |
Validate the offset of the common config structure. | |
Functions | |
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. | |
Touch Events API .
#define INPUT_TOUCH_DT_COMMON_CONFIG_INIT | ( | node_id | ) |
#include <zephyr/input/input_touch.h>
Initialize common touchscreen config from devicetree.
node_id | The devicetree node identifier. |
#define INPUT_TOUCH_DT_INST_COMMON_CONFIG_INIT | ( | inst | ) |
#include <zephyr/input/input_touch.h>
Initialize common touchscreen config from devicetree instance.
inst | Instance. |
#define INPUT_TOUCH_STRUCT_CHECK | ( | config | ) |
#include <zephyr/input/input_touch.h>
Validate the offset of the common config structure.
config | Name of the config structure. |
void input_touchscreen_report_pos | ( | const struct device * | dev, |
uint32_t | x, | ||
uint32_t | y, | ||
k_timeout_t | timeout ) |
#include <zephyr/input/input_touch.h>
Common utility for reporting touchscreen position events.
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 |