mtouch_test_read_product_id()

Updated: April 19, 2023

Test the ability to read the product ID of the driver

Synopsis:

#include <input/mtouch_driver.h>
int mtouch_test_read_product_id(void *dev,
                                uint8_t **product)

Arguments:

dev
Handle to the device driver.
product
product ID read from the driver. The product ID is updated by this function and is valid until the next call of any one of the test functions.

Library:

libinputevents

Description:

This function reads the product ID from the driver. The first byte in product represents the number of additional bytes in the buffer.

Returns:

A test result type. The test result will be one of type Driver test result types.