dev-touch.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: V4L
  3. .. _touch:
  4. *************
  5. Touch Devices
  6. *************
  7. Touch devices are accessed through character device special files named
  8. ``/dev/v4l-touch0`` to ``/dev/v4l-touch255`` with major number 81 and
  9. dynamically allocated minor numbers 0 to 255.
  10. Overview
  11. ========
  12. Sensors may be Optical, or Projected Capacitive touch (PCT).
  13. Processing is required to analyse the raw data and produce input events. In
  14. some systems, this may be performed on the ASIC and the raw data is purely a
  15. side-channel for diagnostics or tuning. In other systems, the ASIC is a simple
  16. analogue front end device which delivers touch data at high rate, and any touch
  17. processing must be done on the host.
  18. For capacitive touch sensing, the touchscreen is composed of an array of
  19. horizontal and vertical conductors (alternatively called rows/columns, X/Y
  20. lines, or tx/rx). Mutual Capacitance measured is at the nodes where the
  21. conductors cross. Alternatively, Self Capacitance measures the signal from each
  22. column and row independently.
  23. A touch input may be determined by comparing the raw capacitance measurement to
  24. a no-touch reference (or "baseline") measurement:
  25. Delta = Raw - Reference
  26. The reference measurement takes account of variations in the capacitance across
  27. the touch sensor matrix, for example manufacturing irregularities,
  28. environmental or edge effects.
  29. Querying Capabilities
  30. =====================
  31. Devices supporting the touch interface set the ``V4L2_CAP_VIDEO_CAPTURE`` flag
  32. and the ``V4L2_CAP_TOUCH`` flag in the ``capabilities`` field of
  33. :c:type:`v4l2_capability` returned by the
  34. :ref:`VIDIOC_QUERYCAP` ioctl.
  35. At least one of the read/write or streaming I/O methods must be
  36. supported.
  37. The formats supported by touch devices are documented in
  38. :ref:`Touch Formats <tch-formats>`.
  39. Data Format Negotiation
  40. =======================
  41. A touch device may support any I/O method.