CAPSENSE™ Touchpad I2C Host 1.0.0.44
 
Loading...
Searching...
No Matches
CAPSENSE™ Touchpad I2C Host

Overview

CAPSENSE™ Touchpad I2C Host is portable middleware for controlling an Infineon PSOC™ 4000T CAPSENSE™ touchpad from a bare-metal or RTOS-based host MCU. It provides C APIs for touch coordinates, gestures, configuration, diagnostics, sensor data and user data.

The portable core uses application-provided I2C callbacks and does not depend on a specific MCU, RTOS, ModusToolbox™, or Peripheral Driver Library (PDL). A PSOC™ Edge reference port and a platform-neutral port template are included.

Features

  • Portable middleware core
  • Callback-based I2C interface
  • Touch position and gesture APIs
  • Configuration, diagnostics, and sensor-data APIs
  • User-data operations
  • PSOC™ Edge reference port for KIT_PSE84_EVAL_EPC2
  • Port template for other host platforms

Quick Start

Refer to the CAPSENSE™ Touchpad I2C Host API Reference for a complete Quick Start Guide.

Add the middleware public header and source to the application, implement the I2C read and write callbacks, and initialize a context:

#include "mtb_touchpad_driver.h"
static mtb_touchpad_intf_context_t touchpad_context;
application_touchpad_write,
application_touchpad_read,
NULL,
&touchpad_context);
#define MTB_TOUCHPAD_RET_TYPE
CAPSENSE™ Touchpad I2C Host middleware API return type.
Definition mtb_touchpad_driver.h:69
MTB_TOUCHPAD_RET_TYPE mtb_touchpad_init(mtb_touchpad_write_handle_t bus_write, mtb_touchpad_read_handle_t bus_read, void *intf_ptr, mtb_touchpad_intf_context_t *context)
Initializes the touchpad interface.
Definition mtb_touchpad_driver.c:38
Structure for touchpad interface context.
Definition mtb_touchpad_driver.h:1249

The touchpad and host I2C controller must be initialized before calling mtb_touchpad_init(). Always check the returned status before using API output values.

For port requirements and transaction diagrams, refer to the porting guide.

Supported Toolchains

Refer to Release Notes for a list of supported toolchains.

Related Projects

More Information

For more information, refer to the following documents:


Copyright (c) 2025-2026, Infineon Technologies AG or an affiliate of Infineon Technologies AG.

Changelog

Version Changes
1.0.0 Initial release.