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

General Description

Data structures for the CAPSENSE™ Touchpad I2C Host middleware.

Data Structures

struct  mtb_touchpad_intf_context_t
 Structure for touchpad interface context. More...
 
struct  mtb_touchpad_fw_ver_t
 Structure for touchpad firmware version information. More...
 
struct  mtb_touchpad_coordinates
 Structure representing touch coordinates. More...
 
struct  mtb_touchpad_pos_t
 Structure representing touchpad position data. More...
 

Data Structure Documentation

◆ mtb_touchpad_intf_context_t

struct mtb_touchpad_intf_context_t
Data Fields
mtb_touchpad_read_handle_t bus_read Function pointer for read operation.

Function pointer to platform-specific read operation.

mtb_touchpad_write_handle_t bus_write Function pointer for write operation.

Function pointer to platform-specific write operation.

void * intf_ptr Interface-specific context pointer.

Pointer to interface-specific descriptor (e.g., slave address, bus handle).

uint8_t num_sensors Number of sensors.

Number of sensors configured in the CapSense configurator.

◆ mtb_touchpad_fw_ver_t

struct mtb_touchpad_fw_ver_t
Data Fields
uint8_t major Major firmware version number.

Indicates the major revision of the firmware.

uint16_t minor Minor firmware version number.

Indicates the minor revision of the firmware.

uint16_t build Build firmware version number.

Indicates the build revision of the firmware.

◆ mtb_touchpad_coordinates

struct mtb_touchpad_coordinates
Data Fields
uint16_t x X coordinate.

X coordinate of the touch.

uint16_t y Y coordinate.

Y coordinate of the touch.

uint16_t z Z coordinate.

Z coordinate value of the touch.

◆ mtb_touchpad_pos_t

struct mtb_touchpad_pos_t
Data Fields
mtb_touchpad_coordinates tch0 First touch coordinates.

Coordinates of the first touch point.

mtb_touchpad_coordinates tch1 Second touch coordinates.

Coordinates of the second touch point.

uint8_t num_touch Number of touches detected.

Number of touches currently detected.