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

The two touch settings that are an APPLICATION choice, not a board fact. More...

#include <ra8_board_ek_ra8d2_touch.h>

Data Fields

uint8_t max_points
 Cap on reported contacts; 0 selects the board default (the GT911's full k_ra8_touch_max_points capacity).
uint8_t irq_pin
 Attention pin, or k_ra8_touch_irq_pin_unset for a polled controller.

Detailed Description

The two touch settings that are an APPLICATION choice, not a board fact.

Everything else – channel, target address, bus rate, source clock – comes from the board (ra8_board_touch_wiring_t) or from CGC, so it is not offered here. Zero-initialise (= {}) to take the board defaults: the GT911's full contact capacity, polled.

Invariant
max_points is 0 (meaning "board default") or at most k_ra8_touch_max_points.
// Single-contact tap detection, polled:
const ra8_board_touch_cfg_t cfg = {.max_points = 1U,
@ k_ra8_touch_irq_pin_unset
Sentinel for "no IRQ pin attached".
Definition ra8_touch.h:72
The two touch settings that are an APPLICATION choice, not a board fact.
See also
ra8_board_touch_open Consumes this descriptor.
ra8_touch_cfg_t The driver-level descriptor it is expanded into.
Since
0.1.0

Definition at line 83 of file ra8_board_ek_ra8d2_touch.h.

Field Documentation

◆ irq_pin

uint8_t ra8_board_touch_cfg_t::irq_pin

Attention pin, or k_ra8_touch_irq_pin_unset for a polled controller.

Zero-initialising selects pin 0, so state the sentinel explicitly when polling a board whose pin 0 is wired to something else.

Definition at line 86 of file ra8_board_ek_ra8d2_touch.h.

Referenced by ra8_board_touch_open().

◆ max_points

uint8_t ra8_board_touch_cfg_t::max_points

Cap on reported contacts; 0 selects the board default (the GT911's full k_ra8_touch_max_points capacity).

Definition at line 84 of file ra8_board_ek_ra8d2_touch.h.

Referenced by ra8_board_touch_open().


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