45#include "driver/i2c_master.h"
57#define TOUCH_INJECT_ADDR TOUCH_MERGE_INJECT_ADDR
A DOWN, MOVE or UP of one contact.
Definition touch_types.h:69
Definition touch_map.h:17
One contact.
Definition touch_types.h:23
Touch input for the 7-inch ESP32-P4 display board.
void touch_inject_mark(touch_event_t *evts, int n)
Mark the UP of every injected contact the merge cut to make room for the glass's TOUCH_FLAG_NO_TAP (t...
Definition touch_inject.c:197
void touch_inject_attach(i2c_master_bus_handle_t bus, uint16_t glass_addr, touch_role_t glass_role, uint32_t now_ms)
Look for the injector on bus beside the controller touch_init() found.
Definition touch_inject.c:49
touch_map_t touch_inject_map(void)
The map for the injector's contacts: panel pixels of the UI's BOARD_UI_H_RES x BOARD_UI_V_RES area,...
Definition touch_inject.c:99
uint32_t touch_inject_age_ms(uint32_t now_ms)
How old the injector's share of touch is.
Definition touch_inject.c:204
bool touch_inject_glass(touch_point_t *pts, int *count, bool fresh)
Merge the glass's set with the injector's last one. No bus traffic.
Definition touch_inject.c:121
bool touch_inject_read(touch_point_t *pts, int *count, uint32_t now_ms)
Read the injector when it is attached and due, detach it when it has been silent too long,...
Definition touch_inject.c:153
Two touch controllers, one contact set: the glass's GT911 at 0x5D and a touch injector at 0x14 (testb...
touch_role_t
What a controller found at start-up is to the touch task.
Definition touch_merge.h:88
Plain data types shared by the touch controller driver, the coordinate mapper and the event tracker....