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

One (x, y) integer coordinate pair. More...

#include <ra8_touch_cal.h>

Data Fields

int32_t x
 Horizontal coordinate.
int32_t y
 Vertical coordinate.

Detailed Description

One (x, y) integer coordinate pair.

Used both for screen-space target locations (passed to draw_target_fn) and for the raw controller-space samples returned by read_raw_fn. Components are int32_t so transforms that temporarily produce negative intermediate values do not wrap. Final mapped pixel coordinates are still clipped into the panel rectangle by ra8_touch_cal_apply.

Invariant
Components fit a 16-bit panel; the wider type is for arithmetic head-room only.

Definition at line 150 of file ra8_touch_cal.h.

Field Documentation

◆ x

int32_t ra8_touch_cal_point_t::x

Horizontal coordinate.

Definition at line 151 of file ra8_touch_cal.h.

Referenced by internal_tc_apply_and_measure(), internal_tc_draw_target(), internal_tc_read_raw(), and ra8_touch_cal_apply().

◆ y

int32_t ra8_touch_cal_point_t::y

Vertical coordinate.

Definition at line 152 of file ra8_touch_cal.h.

Referenced by internal_tc_apply_and_measure(), internal_tc_draw_target(), internal_tc_read_raw(), and ra8_touch_cal_apply().


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