ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_touch_point_t Struct Reference

One decoded touch contact. More...

#include <ra8_touch.h>

Data Fields

uint16_t x
 Panel X coordinate.
uint16_t y
 Panel Y coordinate.
uint8_t track_id
 Persistent contact id (0..15).
uint8_t pressure
 Approximate pressure / contact-area, 0..255.

Detailed Description

One decoded touch contact.

Coordinates are reported in panel-native units (the GT911 reports the X/Y resolution it was configured for; ra8_touch does not transform them). track_id is persistent across consecutive ra8_touch_read calls for the same physical contact, so callers can implement gesture recognisers without re-keying.

Invariant
track_id < 16 (GT911 stores it in 4 bits).

Definition at line 93 of file ra8_touch.h.

Field Documentation

◆ pressure

uint8_t ra8_touch_point_t::pressure

Approximate pressure / contact-area, 0..255.

Definition at line 97 of file ra8_touch.h.

Referenced by internal_decode_one().

◆ track_id

uint8_t ra8_touch_point_t::track_id

Persistent contact id (0..15).

Definition at line 96 of file ra8_touch.h.

Referenced by internal_decode_one().

◆ x

uint16_t ra8_touch_point_t::x

Panel X coordinate.

Definition at line 94 of file ra8_touch.h.

Referenced by cm_poll_touch(), er_poll_touch(), ez_poll_touch(), internal_decode_one(), internal_td_poll_points(), and mg_poll_touch().

◆ y

uint16_t ra8_touch_point_t::y

The documentation for this struct was generated from the following file: