Communicate with the hardware

A separate thread is used to communicate directly with the hardware via the hardware interface (e.g., I2C, SPI, USB, etc.).

You need to create a separate thread as part of your implementation of the mtouch_driver_init() callback function. Refer to pthread_create() in the QNX Neutrino C Library Reference for more details.

The routine you provide as the argument to pthread_create() needs to retrieve coordinate information from the hardware and then call mtouch_driver_process_packet() to trigger the start or processing the data for the touch-related event.