32#include "../SensorBuildOpt.h"
33#if !SENSORLIB_EXCLUDE_TOUCH_GT9895
37static constexpr uint8_t GT9895_SLAVE_ADDRESS_H = (0x14);
38static constexpr uint8_t GT9895_SLAVE_ADDRESS_L = (0x5D);
63 void sleep()
override;
96 bool initImpl(uint8_t)
override;
106 int calculateChecksum(
const uint8_t *data,
int size, CheckSumMode mode);
113 uint32_t getChipPID();
134 static constexpr uint32_t
REG_CMD = (0x010174);
static constexpr uint8_t IRQ_EVENT_HEAD_LEN
const char * getModelName() override
Get the model name.
void wakeup() override
Wake up the touch driver.
static constexpr uint32_t REG_INFO
void sleep() override
Puts the touch driver to sleep.
static constexpr uint8_t MAX_FINGER_NUM
static constexpr uint32_t REG_CMD
static constexpr uint8_t BYTES_PER_POINT
const TouchPoints & getTouchPoints() override
Get the touch points.
static constexpr uint8_t POINT_TYPE_STYLUS
static constexpr uint32_t CHIP_PID
static constexpr uint32_t REG_FW_VERSION
static constexpr uint32_t REG_NUM_POINT
static constexpr uint8_t COORDS_DATA_CHECKSUM_SIZE
static constexpr uint32_t REG_POINT
TouchDrvGT9895()=default
Constructor for the touch driver.
~TouchDrvGT9895()=default
Destructor for the touch driver.
static constexpr uint8_t POINT_TYPE_STYLUS_HOVER
Abstract base class for touch screen drivers.
virtual uint8_t getPoint(int16_t *x_array, int16_t *y_array, uint8_t get_point=1) __attribute__((deprecated("use getTouchPoints instead of getPoint")))
Retrieve touch point coordinates (deprecated).
Container for touch point data and optional gesture information.