SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
TouchDrvGT911 Class Reference

#include <TouchDrvGT911.hpp>

Inheritance diagram for TouchDrvGT911:
[legend]

Public Types

enum  InterruptMode { RISING_EDGE = 0x00 , FALLING_EDGE = 0x01 , LOW_LEVEL_QUERY = 0x02 , HIGH_LEVEL_QUERY = 0x03 }
 
- Public Types inherited from TouchDrvInterface
using HomeButtonCallback = void(*)(void *user_data)
 Callback type for home button events.
 

Public Member Functions

 TouchDrvGT911 ()=default
 Constructor for the touch driver.
 
 ~TouchDrvGT911 ()=default
 Destructor for the touch driver.
 
void sleep () override
 Puts the touch driver to sleep.
 
void wakeup () override
 Wake up the touch driver.
 
const TouchPointsgetTouchPoints () override
 Get the touch points.
 
const char * getModelName () override
 Get the model name.
 
bool setInterruptMode (InterruptMode mode)
 Set the interrupt mode.
 
InterruptMode getInterruptMode ()
 Get the interrupt mode.
 
uint32_t getChipID () override
 Get the chip ID.
 
uint16_t getFwVersion ()
 Get the firmware version.
 
uint8_t getConfigVersion ()
 Get the configuration version.
 
void updateRefreshRate (uint8_t rate_ms)
 Get the refresh rate.
 
uint8_t getRefreshRate ()
 Get the refresh rate.
 
int getVendorID ()
 Get the vendor ID.
 
uint8_t * loadConfig (size_t *output_size, bool print_out=false)
 Load the configuration data.
 
bool reloadConfig ()
 Reload the configuration data.
 
void setMaxTouchPoint (uint8_t num)
 Set the maximum touch points.
 
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).
 
- Public Member Functions inherited from TouchDrvInterface
 TouchDrvInterface ()
 Construct a new TouchDrvInterface object.
 
virtual ~TouchDrvInterface ()=default
 Destroy the TouchDrvInterface object.
 
virtual bool begin (SensorCommCustom::CustomCallback callback, SensorCommCustomHal::CustomHalCallback hal_callback, uint8_t addr)
 Initialize the touch driver with custom communication callbacks.
 
virtual void setGpioCallback (SensorHalCustom::CustomMode mode_cb, SensorHalCustom::CustomWrite write_cb, SensorHalCustom::CustomRead read_cb)
 Set custom GPIO callbacks for pin control (e.g., reset, interrupt).
 
virtual uint8_t getSupportTouchPoint ()
 Get the maximum number of touch points supported by the hardware.
 
virtual void getResolution (uint16_t &x, uint16_t &y)
 Get the raw resolution (maximum coordinate values) of the touch panel.
 
virtual uint16_t getResolutionX ()
 Get the raw maximum X coordinate of the touch panel.
 
virtual uint16_t getResolutionY ()
 Get the raw maximum Y coordinate of the touch panel.
 
virtual void reset ()
 Reset the touch controller.
 
virtual bool isPressed (uint32_t filter_ms=0)
 Check if any touch point is currently pressed.
 
virtual void setPins (int rst, int irq)
 Set the hardware reset and interrupt pin numbers.
 
virtual const TouchPinsCfggetTouchPinsCfg () const
 Get the current touch pins configuration.
 
virtual void setSwapXY (bool swap)
 Enable or disable swapping of X and Y coordinates.
 
virtual bool isSwapXY () const
 Check if X and Y coordinates are swapped.
 
virtual void setMirrorXY (bool mirrorX, bool mirrorY)
 Enable or disable mirroring of X and/or Y coordinates.
 
virtual bool isMirrorX () const
 Check if X coordinates are mirrored.
 
virtual bool isMirrorY () const
 Check if Y coordinates are mirrored.
 
virtual void setMaxCoordinates (uint16_t x, uint16_t y)
 Set the maximum coordinate values used for mirroring.
 
virtual void getMaxCoordinates (uint16_t &x, uint16_t &y)
 Get the maximum coordinates used for mirroring.
 
virtual uint16_t getMaxX ()
 Get the maximum X coordinate (e.g., display width).
 
virtual uint16_t getMaxY ()
 Get the maximum Y coordinate (e.g., display height).
 
virtual bool isScalingEnabled ()
 Check if coordinate scaling is enabled.
 
virtual void setResolution (uint16_t width, uint16_t height)
 Set the raw resolution of the touch panel (physical maximum coordinates).
 
virtual void setTargetResolution (uint16_t width, uint16_t height)
 Set the target display resolution to map touch coordinates to screen pixels.
 
virtual void updateXY (TouchPoints &points) const
 Apply coordinate transformations (swap, scale, mirror) to all touch points.
 
virtual void setHomeButtonCallback (HomeButtonCallback cb, void *user_data)
 Register a callback for home button events.
 
virtual void setCenterButtonCoordinate (int16_t x, int16_t y)
 Set the expected screen coordinates of a hardware home button.
 
- Public Member Functions inherited from I2CDeviceWithHal
bool begin (SensorCommCustom::CustomCallback cb, SensorCommCustomHal::CustomHalCallback hal_cb, uint8_t addr)
 Initialize the sensor using custom callback interface.
 
- Public Member Functions inherited from DeviceBeginCommon
virtual ~DeviceBeginCommon ()
 
uint8_t getAddress () const
 
uint8_t getInterface () const
 
- Public Member Functions inherited from SensorCommWrapper
 SensorCommWrapper ()=default
 
int readReg (uint8_t reg) const
 
int readRegBuff (uint8_t reg, uint8_t *buf, size_t len) const
 
int readBuff (uint8_t *buf, size_t len) const
 
int writeReg (uint8_t reg, uint8_t val)
 
int writeRegBuff (uint8_t reg, uint8_t *buf, size_t len)
 
int writeBuff (uint8_t *buf, size_t len)
 
int writeThenRead (const uint8_t *write_buffer, size_t write_len, uint8_t *read_buffer, size_t read_len)
 
bool setRegBit (uint8_t reg, uint8_t bit)
 
bool clrRegBit (uint8_t reg, uint8_t bit)
 
bool getRegBit (uint8_t reg, uint8_t bit)
 
int updateBits (uint8_t reg, uint8_t mask, uint8_t value_shifted)
 
void setAddress (uint8_t address)
 
void setAck (bool enable)
 
- Public Member Functions inherited from SensorCommInterface
virtual ~SensorCommInterface ()=default
 

Static Protected Attributes

static constexpr uint16_t GT911_COMMAND = (0x8040)
 
static constexpr uint16_t GT911_ESD_CHECK = (0x8041)
 
static constexpr uint16_t GT911_COMMAND_CHECK = (0x8046)
 
static constexpr uint8_t IRQ_TRIGGER_MASK = (0x03)
 
static constexpr uint16_t GT911_CONFIG_START = (0x8047)
 
static constexpr uint16_t GT911_CONFIG_VERSION = (0x8047)
 
static constexpr uint16_t GT911_X_OUTPUT_MAX_LOW = (0x8048)
 
static constexpr uint16_t GT911_X_OUTPUT_MAX_HIGH = (0x8049)
 
static constexpr uint16_t GT911_Y_OUTPUT_MAX_LOW = (0x804A)
 
static constexpr uint16_t GT911_Y_OUTPUT_MAX_HIGH = (0x804B)
 
static constexpr uint16_t GT911_TOUCH_NUMBER = (0x804C)
 
static constexpr uint16_t GT911_MODULE_SWITCH_1 = (0x804D)
 
static constexpr uint16_t GT911_MODULE_SWITCH_2 = (0x804E)
 
static constexpr uint16_t GT911_SHAKE_COUNT = (0x804F)
 
static constexpr uint16_t GT911_FILTER = (0x8050)
 
static constexpr uint16_t GT911_LARGE_TOUCH = (0x8051)
 
static constexpr uint16_t GT911_NOISE_REDUCTION = (0x8052)
 
static constexpr uint16_t GT911_SCREEN_TOUCH_LEVEL = (0x8053)
 
static constexpr uint16_t GT911_SCREEN_RELEASE_LEVEL = (0x8054)
 
static constexpr uint16_t GT911_LOW_POWER_CONTROL = (0x8055)
 
static constexpr uint16_t GT911_REFRESH_RATE = (0x8056)
 
static constexpr uint16_t GT911_X_THRESHOLD = (0x8057)
 
static constexpr uint16_t GT911_Y_THRESHOLD = (0x8058)
 
static constexpr uint16_t GT911_X_SPEED_LIMIT = (0x8059)
 
static constexpr uint16_t GT911_Y_SPEED_LIMIT = (0x805A)
 
static constexpr uint16_t GT911_SPACE_TOP_BOTTOM = (0x805B)
 
static constexpr uint16_t GT911_SPACE_LEFT_RIGHT = (0x805C)
 
static constexpr uint16_t GT911_MINI_FILTER = (0x805D)
 
static constexpr uint16_t GT911_STRETCH_R0 = (0x805E)
 
static constexpr uint16_t GT911_STRETCH_R1 = (0x805F)
 
static constexpr uint16_t GT911_STRETCH_R2 = (0x8060)
 
static constexpr uint16_t GT911_STRETCH_RM = (0x8061)
 
static constexpr uint16_t GT911_DRV_GROUPA_NUM = (0x8062)
 
static constexpr uint16_t GT911_DRV_GROUPB_NUM = (0x8063)
 
static constexpr uint16_t GT911_SENSOR_NUM = (0x8064)
 
static constexpr uint16_t GT911_FREQ_A_FACTOR = (0x8065)
 
static constexpr uint16_t GT911_FREQ_B_FACTOR = (0x8066)
 
static constexpr uint16_t GT911_PANEL_BIT_FREQ_L = (0x8067)
 
static constexpr uint16_t GT911_PANEL_BIT_FREQ_H = (0x8068)
 
static constexpr uint16_t GT911_PANEL_SENSOR_TIME_L = (0x8069)
 
static constexpr uint16_t GT911_PANEL_SENSOR_TIME_H = (0x806A)
 
static constexpr uint16_t GT911_PANEL_TX_GAIN = (0x806B)
 
static constexpr uint16_t GT911_PANEL_RX_GAIN = (0x806C)
 
static constexpr uint16_t GT911_PANEL_DUMP_SHIFT = (0x806D)
 
static constexpr uint16_t GT911_DRV_FRAME_CONTROL = (0x806E)
 
static constexpr uint16_t GT911_CHARGING_LEVEL_UP = (0x806F)
 
static constexpr uint16_t GT911_MODULE_SWITCH3 = (0x8070)
 
static constexpr uint16_t GT911_GESTURE_DIS = (0X8071)
 
static constexpr uint16_t GT911_GESTURE_LONG_PRESS_TIME = (0x8072)
 
static constexpr uint16_t GT911_X_Y_SLOPE_ADJUST = (0X8073)
 
static constexpr uint16_t GT911_GESTURE_CONTROL = (0X8074)
 
static constexpr uint16_t GT911_GESTURE_SWITCH1 = (0X8075)
 
static constexpr uint16_t GT911_GESTURE_SWITCH2 = (0X8076)
 
static constexpr uint16_t GT911_GESTURE_REFRESH_RATE = (0x8077)
 
static constexpr uint16_t GT911_GESTURE_TOUCH_LEVEL = (0x8078)
 
static constexpr uint16_t GT911_NEWGREENWAKEUPLEVEL = (0x8079)
 
static constexpr uint16_t GT911_FREQ_HOPPING_START = (0x807A)
 
static constexpr uint16_t GT911_FREQ_HOPPING_END = (0X807B)
 
static constexpr uint16_t GT911_NOISE_DETECT_TIMES = (0x807C)
 
static constexpr uint16_t GT911_HOPPING_FLAG = (0X807D)
 
static constexpr uint16_t GT911_HOPPING_THRESHOLD = (0X807E)
 
static constexpr uint16_t GT911_NOISE_THRESHOLD = (0X807F)
 
static constexpr uint16_t GT911_NOISE_MIN_THRESHOLD = (0X8080)
 
static constexpr uint16_t GT911_HOPPING_SENSOR_GROUP = (0X8082)
 
static constexpr uint16_t GT911_HOPPING_SEG1_NORMALIZE = (0X8083)
 
static constexpr uint16_t GT911_HOPPING_SEG1_FACTOR = (0X8084)
 
static constexpr uint16_t GT911_MAIN_CLOCK_ADJUST = (0X8085)
 
static constexpr uint16_t GT911_HOPPING_SEG2_NORMALIZE = (0X8086)
 
static constexpr uint16_t GT911_HOPPING_SEG2_FACTOR = (0X8087)
 
static constexpr uint16_t GT911_HOPPING_SEG3_NORMALIZE = (0X8089)
 
static constexpr uint16_t GT911_HOPPING_SEG3_FACTOR = (0X808A)
 
static constexpr uint16_t GT911_HOPPING_SEG4_NORMALIZE = (0X808C)
 
static constexpr uint16_t GT911_HOPPING_SEG4_FACTOR = (0X808D)
 
static constexpr uint16_t GT911_HOPPING_SEG5_NORMALIZE = (0X808F)
 
static constexpr uint16_t GT911_HOPPING_SEG5_FACTOR = (0X8090)
 
static constexpr uint16_t GT911_HOPPING_SEG6_NORMALIZE = (0X8092)
 
static constexpr uint16_t GT911_KEY_1 = (0X8093)
 
static constexpr uint16_t GT911_KEY_2 = (0X8094)
 
static constexpr uint16_t GT911_KEY_3 = (0X8095)
 
static constexpr uint16_t GT911_KEY_4 = (0X8096)
 
static constexpr uint16_t GT911_KEY_AREA = (0X8097)
 
static constexpr uint16_t GT911_KEY_TOUCH_LEVEL = (0X8098)
 
static constexpr uint16_t GT911_KEY_LEAVE_LEVEL = (0X8099)
 
static constexpr uint16_t GT911_KEY_SENS_1_2 = (0X809A)
 
static constexpr uint16_t GT911_KEY_SENS_3_4 = (0X809B)
 
static constexpr uint16_t GT911_KEY_RESTRAIN = (0X809C)
 
static constexpr uint16_t GT911_KEY_RESTRAIN_TIME = (0X809D)
 
static constexpr uint16_t GT911_GESTURE_LARGE_TOUCH = (0X809E)
 
static constexpr uint16_t GT911_HOTKNOT_NOISE_MAP = (0X80A1)
 
static constexpr uint16_t GT911_LINK_THRESHOLD = (0X80A2)
 
static constexpr uint16_t GT911_PXY_THRESHOLD = (0X80A3)
 
static constexpr uint16_t GT911_GHOT_DUMP_SHIFT = (0X80A4)
 
static constexpr uint16_t GT911_GHOT_RX_GAIN = (0X80A5)
 
static constexpr uint16_t GT911_FREQ_GAIN0 = (0X80A6)
 
static constexpr uint16_t GT911_FREQ_GAIN1 = (0X80A7)
 
static constexpr uint16_t GT911_FREQ_GAIN2 = (0X80A8)
 
static constexpr uint16_t GT911_FREQ_GAIN3 = (0X80A9)
 
static constexpr uint16_t GT911_COMBINE_DIS = (0X80B3)
 
static constexpr uint16_t GT911_SPLIT_SET = (0X80B4)
 
static constexpr uint16_t GT911_SENSOR_CH0 = (0X80B7)
 
static constexpr uint16_t GT911_DRIVER_CH0 = (0X80D5)
 
static constexpr uint16_t GT911_CONFIG_CHKSUM = (0X80FF)
 
static constexpr uint16_t GT911_CONFIG_FRESH = (0X8100)
 
static constexpr uint16_t GT911_CONFIG_SIZE = (0xFF - 0x46)
 
static constexpr uint16_t GT911_PRODUCT_ID = (0x8140)
 
static constexpr uint16_t GT911_FIRMWARE_VERSION = (0x8144)
 
static constexpr uint16_t GT911_X_RESOLUTION = (0x8146)
 
static constexpr uint16_t GT911_Y_RESOLUTION = (0x8148)
 
static constexpr uint16_t GT911_VENDOR_ID = (0X8140)
 
static constexpr uint16_t GT911_INFORMATION = (0X8140)
 
static constexpr uint16_t GT911_POINT_INFO = (0X814E)
 
static constexpr uint16_t GT911_POINT_1 = (0X814F)
 
static constexpr uint16_t GT911_POINT_2 = (0X8157)
 
static constexpr uint16_t GT911_POINT_3 = (0X815F)
 
static constexpr uint16_t GT911_POINT_4 = (0X8167)
 
static constexpr uint16_t GT911_POINT_5 = (0X816F)
 
static constexpr uint16_t COMMAND_SIZE = (2)
 
static constexpr uint16_t GT911_DEV_ID = (911)
 
static constexpr uint8_t GT911_BASE_REF_RATE = (5)
 
static constexpr uint8_t GT911_REG_LENGTH = (186)
 

Additional Inherited Members

- Protected Member Functions inherited from I2CDeviceWithHal
bool ensureValid () const override
 Ensure the communication interface is valid.
 
- Protected Member Functions inherited from DeviceBeginCommon
 DeviceBeginCommon ()=default
 
virtual SensorCommBasegetComm () const override
 
virtual void beforeBegin ()
 
virtual void afterInitSuccess (uint8_t param)
 
virtual void onBeginFail ()
 
bool fail ()
 
void clearCommState ()
 
template<typename CreateComm >
bool beginLifecycle (uint8_t addr, uint8_t iface, uint8_t initParam, CreateComm createComm)
 
- Protected Attributes inherited from TouchDrvInterface
SensorHalCustom::CustomMode _halModeCallback
 Custom GPIO mode callback.
 
SensorHalCustom::CustomWrite _halWriteCallback
 Custom GPIO write callback.
 
SensorHalCustom::CustomRead _halReadCallback
 Custom GPIO read callback.
 
uint32_t _chipID
 Chip identification value.
 
HomeButtonCallback _HButtonCallback
 Home button callback function.
 
void * _userData
 User data for home button callback.
 
uint8_t _maxTouchPoints
 Maximum supported touch points.
 
int16_t _center_btn_x
 X coordinate of home button center.
 
int16_t _center_btn_y
 Y coordinate of home button center.
 
uint32_t _lastPulse
 Timestamp of the last touch event.
 
TouchPinsCfg _pinsCfg
 Configuration for reset and interrupt pins.
 
TouchConfig _touchConfig
 Configuration for coordinate transformations.
 
TouchPoints _touchPoints
 Touch points data.
 
- Protected Attributes inherited from DeviceBeginCommon
std::unique_ptr< SensorCommBasecomm
 
std::unique_ptr< SensorHalhal
 
std::unique_ptr< SensorCommStaticstaticComm
 
uint8_t _addr = 0
 
uint8_t _iface = COMM_CUSTOM
 

Detailed Description

Definition at line 50 of file touch/TouchDrvGT911.hpp.

Member Enumeration Documentation

◆ InterruptMode

Enumerator
RISING_EDGE 
FALLING_EDGE 
LOW_LEVEL_QUERY 
HIGH_LEVEL_QUERY 

Definition at line 55 of file touch/TouchDrvGT911.hpp.

Constructor & Destructor Documentation

◆ TouchDrvGT911()

TouchDrvGT911::TouchDrvGT911 ( )
default

Constructor for the touch driver.

Return values
None

◆ ~TouchDrvGT911()

TouchDrvGT911::~TouchDrvGT911 ( )
default

Destructor for the touch driver.

Return values
None

Member Function Documentation

◆ getChipID()

uint32_t TouchDrvGT911::getChipID ( )
overridevirtual

Get the chip ID.

Note
This function will retrieve the chip ID from the touch driver.
Return values
Thechip ID.

Reimplemented from TouchDrvInterface.

Definition at line 172 of file TouchDrvGT911.cpp.

References GT911_PRODUCT_ID, and i.

Referenced by setup().

◆ getConfigVersion()

uint8_t TouchDrvGT911::getConfigVersion ( )

Get the configuration version.

Note
This function will retrieve the configuration version from the touch driver.
Return values
Theconfiguration version.

Definition at line 192 of file TouchDrvGT911.cpp.

References GT911_CONFIG_VERSION.

◆ getFwVersion()

uint16_t TouchDrvGT911::getFwVersion ( )

Get the firmware version.

Note
This function will retrieve the firmware version from the touch driver.
Return values
Thefirmware version.

Definition at line 182 of file TouchDrvGT911.cpp.

References GT911_FIRMWARE_VERSION, and i.

◆ getInterruptMode()

TouchDrvGT911::InterruptMode TouchDrvGT911::getInterruptMode ( )

Get the interrupt mode.

Note
This function will retrieve the current interrupt mode from the touch driver.
Return values
Theinterrupt mode. 0x0: Rising edge trigger 0x1: Falling edge trigger 0x2: Low level query 0x3: High level query

< RISING_EDGE

< FALLING_EDGE

< LOW_LEVEL_QUERY

< HIGH_LEVEL_QUERY

Definition at line 149 of file TouchDrvGT911.cpp.

References TouchDrvInterface::_pinsCfg, GT911_MODULE_SWITCH_1, IRQ_TRIGGER_MASK, and TouchDrvInterface::TouchPinsCfg::irqTriggerLevel.

◆ getModelName()

const char * TouchDrvGT911::getModelName ( )
overridevirtual

Get the model name.

Note
This function will retrieve the model name from the touch driver.
Return values
Themodel name.

Implements TouchDrvInterface.

Definition at line 112 of file TouchDrvGT911.cpp.

Referenced by setup().

◆ getPoint()

virtual uint8_t TouchDrvInterface::getPoint ( int16_t *  x_array,
int16_t *  y_array,
uint8_t  get_point = 1 
)
inlinevirtual

Retrieve touch point coordinates (deprecated).

Deprecated:
Use getTouchPoints() instead, which returns a richer TouchPoints object.
Parameters
[out]x_arrayPointer to array to store X coordinates.
[out]y_arrayPointer to array to store Y coordinates.
get_pointNumber of points to retrieve (max).
Returns
uint8_t Actual number of touch points detected.

Reimplemented from TouchDrvInterface.

Definition at line 288 of file touch/TouchDrvInterface.hpp.

◆ getRefreshRate()

uint8_t TouchDrvGT911::getRefreshRate ( )

Get the refresh rate.

Note
This function will retrieve the current refresh rate from the touch driver.
Return values
Therefresh rate in milliseconds.

Definition at line 210 of file TouchDrvGT911.cpp.

References GT911_BASE_REF_RATE, and GT911_REFRESH_RATE.

◆ getTouchPoints()

const TouchPoints & TouchDrvGT911::getTouchPoints ( )
overridevirtual

Get the touch points.

Note
This function will retrieve the touch points from the touch driver.
Return values
Areference to the touch points.

Implements TouchDrvInterface.

Definition at line 65 of file TouchDrvGT911.cpp.

References TouchDrvInterface::_HButtonCallback, TouchDrvInterface::_touchPoints, TouchDrvInterface::_userData, TouchPoints::addPoint(), addrToBeBuf(), TouchPoints::clear(), COMMAND_SIZE, GT911_POINT_1, GT911_POINT_INFO, i, pressure(), TouchDrvInterface::updateXY(), SensorCommWrapper::writeThenRead(), x, and y.

Referenced by loop().

◆ getVendorID()

int TouchDrvGT911::getVendorID ( )

Get the vendor ID.

Note
This function will retrieve the vendor ID from the touch driver.
Return values
Thevendor ID.

Definition at line 216 of file TouchDrvGT911.cpp.

References GT911_VENDOR_ID.

◆ loadConfig()

uint8_t * TouchDrvGT911::loadConfig ( size_t *  output_size,
bool  print_out = false 
)

Load the configuration data.

Note
This function will load the configuration data from the touch driver. Memory allocation is automatically managed within the class and does not require manual deallocation.
Parameters
*output_sizePointer to store the size of the output data.
print_outFlag to indicate whether to print the output.
Return values
Thepointer to the configuration data buffer.

Definition at line 241 of file TouchDrvGT911.cpp.

References addrToBeBuf(), COMMAND_SIZE, GT911_CONFIG_VERSION, GT911_REG_LENGTH, i, and SensorCommWrapper::writeThenRead().

◆ reloadConfig()

bool TouchDrvGT911::reloadConfig ( )

Reload the configuration data.

Note
This function will reload the configuration data from the touch driver.
Return values
Trueif the operation was successful, false otherwise.

Definition at line 267 of file TouchDrvGT911.cpp.

References sensorlib::_highByte(), sensorlib::_lowByte(), GT911_CONFIG_CHKSUM, GT911_CONFIG_FRESH, GT911_CONFIG_VERSION, GT911_REG_LENGTH, i, SENSORLIB_LOG_D, and SensorCommWrapper::writeThenRead().

Referenced by setInterruptMode(), setMaxTouchPoint(), and updateRefreshRate().

◆ setInterruptMode()

bool TouchDrvGT911::setInterruptMode ( InterruptMode  mode)

Set the interrupt mode.

Note
This function will set the interrupt mode for the touch driver.
Parameters
modeThe interrupt mode to set , see InterruptMode.
Return values
Trueif the operation was successful, false otherwise.

Definition at line 117 of file TouchDrvGT911.cpp.

References TouchDrvInterface::_pinsCfg, FALLING_EDGE, GT911_MODULE_SWITCH_1, HIGH_LEVEL_QUERY, TouchDrvInterface::TouchPinsCfg::irqTriggerLevel, LOW_LEVEL_QUERY, reloadConfig(), and RISING_EDGE.

◆ setMaxTouchPoint()

void TouchDrvGT911::setMaxTouchPoint ( uint8_t  num)

Set the maximum touch points.

Note
This function will set the maximum number of touch points.
Parameters
numThe maximum number of touch points (1-5).
Return values
None

Definition at line 287 of file TouchDrvGT911.cpp.

References GT911_TOUCH_NUMBER, and reloadConfig().

◆ sleep()

void TouchDrvGT911::sleep ( )
overridevirtual

Puts the touch driver to sleep.

Note
This function puts the touch driver into sleep mode. If the device does not have a reset pin connected, it cannot be woken up after being put into sleep mode and must be powered on again.
Return values
None

Implements TouchDrvInterface.

Definition at line 35 of file TouchDrvGT911.cpp.

References TouchDrvInterface::_pinsCfg, DeviceBeginCommon::hal, and TouchDrvInterface::TouchPinsCfg::irqPin.

◆ updateRefreshRate()

void TouchDrvGT911::updateRefreshRate ( uint8_t  rate_ms)

Get the refresh rate.

Note
This function will retrieve the current refresh rate from the touch driver.
Parameters
rate_msPointer to store the refresh rate in milliseconds , 5 ~ 15 ms.
Return values
None

Definition at line 197 of file TouchDrvGT911.cpp.

References GT911_REFRESH_RATE, and reloadConfig().

◆ wakeup()

void TouchDrvGT911::wakeup ( )
overridevirtual

Wake up the touch driver.

Note
This function will wake up the touch driver from sleep mode.
Return values
None

Reimplemented from TouchDrvInterface.

Definition at line 53 of file TouchDrvGT911.cpp.

References TouchDrvInterface::_pinsCfg, DeviceBeginCommon::hal, TouchDrvInterface::TouchPinsCfg::irqPin, and TouchDrvInterface::reset().

Member Data Documentation

◆ COMMAND_SIZE

constexpr uint16_t TouchDrvGT911::COMMAND_SIZE = (2)
staticconstexprprotected

Definition at line 374 of file touch/TouchDrvGT911.hpp.

Referenced by getTouchPoints(), and loadConfig().

◆ GT911_BASE_REF_RATE

constexpr uint8_t TouchDrvGT911::GT911_BASE_REF_RATE = (5)
staticconstexprprotected

Definition at line 377 of file touch/TouchDrvGT911.hpp.

Referenced by getRefreshRate().

◆ GT911_CHARGING_LEVEL_UP

constexpr uint16_t TouchDrvGT911::GT911_CHARGING_LEVEL_UP = (0x806F)
staticconstexprprotected

Definition at line 300 of file touch/TouchDrvGT911.hpp.

◆ GT911_COMBINE_DIS

constexpr uint16_t TouchDrvGT911::GT911_COMBINE_DIS = (0X80B3)
staticconstexprprotected

Definition at line 352 of file touch/TouchDrvGT911.hpp.

◆ GT911_COMMAND

constexpr uint16_t TouchDrvGT911::GT911_COMMAND = (0x8040)
staticconstexprprotected

Definition at line 253 of file touch/TouchDrvGT911.hpp.

◆ GT911_COMMAND_CHECK

constexpr uint16_t TouchDrvGT911::GT911_COMMAND_CHECK = (0x8046)
staticconstexprprotected

Definition at line 255 of file touch/TouchDrvGT911.hpp.

◆ GT911_CONFIG_CHKSUM

constexpr uint16_t TouchDrvGT911::GT911_CONFIG_CHKSUM = (0X80FF)
staticconstexprprotected

Definition at line 356 of file touch/TouchDrvGT911.hpp.

Referenced by reloadConfig().

◆ GT911_CONFIG_FRESH

constexpr uint16_t TouchDrvGT911::GT911_CONFIG_FRESH = (0X8100)
staticconstexprprotected

Definition at line 357 of file touch/TouchDrvGT911.hpp.

Referenced by reloadConfig().

◆ GT911_CONFIG_SIZE

constexpr uint16_t TouchDrvGT911::GT911_CONFIG_SIZE = (0xFF - 0x46)
staticconstexprprotected

Definition at line 358 of file touch/TouchDrvGT911.hpp.

◆ GT911_CONFIG_START

constexpr uint16_t TouchDrvGT911::GT911_CONFIG_START = (0x8047)
staticconstexprprotected

Definition at line 259 of file touch/TouchDrvGT911.hpp.

◆ GT911_CONFIG_VERSION

constexpr uint16_t TouchDrvGT911::GT911_CONFIG_VERSION = (0x8047)
staticconstexprprotected

Definition at line 260 of file touch/TouchDrvGT911.hpp.

Referenced by getConfigVersion(), loadConfig(), and reloadConfig().

◆ GT911_DEV_ID

constexpr uint16_t TouchDrvGT911::GT911_DEV_ID = (911)
staticconstexprprotected

Definition at line 376 of file touch/TouchDrvGT911.hpp.

◆ GT911_DRIVER_CH0

constexpr uint16_t TouchDrvGT911::GT911_DRIVER_CH0 = (0X80D5)
staticconstexprprotected

Definition at line 355 of file touch/TouchDrvGT911.hpp.

◆ GT911_DRV_FRAME_CONTROL

constexpr uint16_t TouchDrvGT911::GT911_DRV_FRAME_CONTROL = (0x806E)
staticconstexprprotected

Definition at line 299 of file touch/TouchDrvGT911.hpp.

◆ GT911_DRV_GROUPA_NUM

constexpr uint16_t TouchDrvGT911::GT911_DRV_GROUPA_NUM = (0x8062)
staticconstexprprotected

Definition at line 287 of file touch/TouchDrvGT911.hpp.

◆ GT911_DRV_GROUPB_NUM

constexpr uint16_t TouchDrvGT911::GT911_DRV_GROUPB_NUM = (0x8063)
staticconstexprprotected

Definition at line 288 of file touch/TouchDrvGT911.hpp.

◆ GT911_ESD_CHECK

constexpr uint16_t TouchDrvGT911::GT911_ESD_CHECK = (0x8041)
staticconstexprprotected

Definition at line 254 of file touch/TouchDrvGT911.hpp.

◆ GT911_FILTER

constexpr uint16_t TouchDrvGT911::GT911_FILTER = (0x8050)
staticconstexprprotected

Definition at line 269 of file touch/TouchDrvGT911.hpp.

◆ GT911_FIRMWARE_VERSION

constexpr uint16_t TouchDrvGT911::GT911_FIRMWARE_VERSION = (0x8144)
staticconstexprprotected

Definition at line 361 of file touch/TouchDrvGT911.hpp.

Referenced by getFwVersion().

◆ GT911_FREQ_A_FACTOR

constexpr uint16_t TouchDrvGT911::GT911_FREQ_A_FACTOR = (0x8065)
staticconstexprprotected

Definition at line 290 of file touch/TouchDrvGT911.hpp.

◆ GT911_FREQ_B_FACTOR

constexpr uint16_t TouchDrvGT911::GT911_FREQ_B_FACTOR = (0x8066)
staticconstexprprotected

Definition at line 291 of file touch/TouchDrvGT911.hpp.

◆ GT911_FREQ_GAIN0

constexpr uint16_t TouchDrvGT911::GT911_FREQ_GAIN0 = (0X80A6)
staticconstexprprotected

Definition at line 348 of file touch/TouchDrvGT911.hpp.

◆ GT911_FREQ_GAIN1

constexpr uint16_t TouchDrvGT911::GT911_FREQ_GAIN1 = (0X80A7)
staticconstexprprotected

Definition at line 349 of file touch/TouchDrvGT911.hpp.

◆ GT911_FREQ_GAIN2

constexpr uint16_t TouchDrvGT911::GT911_FREQ_GAIN2 = (0X80A8)
staticconstexprprotected

Definition at line 350 of file touch/TouchDrvGT911.hpp.

◆ GT911_FREQ_GAIN3

constexpr uint16_t TouchDrvGT911::GT911_FREQ_GAIN3 = (0X80A9)
staticconstexprprotected

Definition at line 351 of file touch/TouchDrvGT911.hpp.

◆ GT911_FREQ_HOPPING_END

constexpr uint16_t TouchDrvGT911::GT911_FREQ_HOPPING_END = (0X807B)
staticconstexprprotected

Definition at line 312 of file touch/TouchDrvGT911.hpp.

◆ GT911_FREQ_HOPPING_START

constexpr uint16_t TouchDrvGT911::GT911_FREQ_HOPPING_START = (0x807A)
staticconstexprprotected

Definition at line 311 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_CONTROL

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_CONTROL = (0X8074)
staticconstexprprotected

Definition at line 305 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_DIS

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_DIS = (0X8071)
staticconstexprprotected

Definition at line 302 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_LARGE_TOUCH

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_LARGE_TOUCH = (0X809E)
staticconstexprprotected

Definition at line 342 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_LONG_PRESS_TIME

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_LONG_PRESS_TIME = (0x8072)
staticconstexprprotected

Definition at line 303 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_REFRESH_RATE

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_REFRESH_RATE = (0x8077)
staticconstexprprotected

Definition at line 308 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_SWITCH1

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_SWITCH1 = (0X8075)
staticconstexprprotected

Definition at line 306 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_SWITCH2

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_SWITCH2 = (0X8076)
staticconstexprprotected

Definition at line 307 of file touch/TouchDrvGT911.hpp.

◆ GT911_GESTURE_TOUCH_LEVEL

constexpr uint16_t TouchDrvGT911::GT911_GESTURE_TOUCH_LEVEL = (0x8078)
staticconstexprprotected

Definition at line 309 of file touch/TouchDrvGT911.hpp.

◆ GT911_GHOT_DUMP_SHIFT

constexpr uint16_t TouchDrvGT911::GT911_GHOT_DUMP_SHIFT = (0X80A4)
staticconstexprprotected

Definition at line 346 of file touch/TouchDrvGT911.hpp.

◆ GT911_GHOT_RX_GAIN

constexpr uint16_t TouchDrvGT911::GT911_GHOT_RX_GAIN = (0X80A5)
staticconstexprprotected

Definition at line 347 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_FLAG

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_FLAG = (0X807D)
staticconstexprprotected

Definition at line 314 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG1_FACTOR

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG1_FACTOR = (0X8084)
staticconstexprprotected

Definition at line 320 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG1_NORMALIZE

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG1_NORMALIZE = (0X8083)
staticconstexprprotected

Definition at line 319 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG2_FACTOR

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG2_FACTOR = (0X8087)
staticconstexprprotected

Definition at line 323 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG2_NORMALIZE

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG2_NORMALIZE = (0X8086)
staticconstexprprotected

Definition at line 322 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG3_FACTOR

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG3_FACTOR = (0X808A)
staticconstexprprotected

Definition at line 325 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG3_NORMALIZE

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG3_NORMALIZE = (0X8089)
staticconstexprprotected

Definition at line 324 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG4_FACTOR

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG4_FACTOR = (0X808D)
staticconstexprprotected

Definition at line 327 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG4_NORMALIZE

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG4_NORMALIZE = (0X808C)
staticconstexprprotected

Definition at line 326 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG5_FACTOR

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG5_FACTOR = (0X8090)
staticconstexprprotected

Definition at line 329 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG5_NORMALIZE

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG5_NORMALIZE = (0X808F)
staticconstexprprotected

Definition at line 328 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SEG6_NORMALIZE

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SEG6_NORMALIZE = (0X8092)
staticconstexprprotected

Definition at line 330 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_SENSOR_GROUP

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_SENSOR_GROUP = (0X8082)
staticconstexprprotected

Definition at line 318 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOPPING_THRESHOLD

constexpr uint16_t TouchDrvGT911::GT911_HOPPING_THRESHOLD = (0X807E)
staticconstexprprotected

Definition at line 315 of file touch/TouchDrvGT911.hpp.

◆ GT911_HOTKNOT_NOISE_MAP

constexpr uint16_t TouchDrvGT911::GT911_HOTKNOT_NOISE_MAP = (0X80A1)
staticconstexprprotected

Definition at line 343 of file touch/TouchDrvGT911.hpp.

◆ GT911_INFORMATION

constexpr uint16_t TouchDrvGT911::GT911_INFORMATION = (0X8140)
staticconstexprprotected

Definition at line 366 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_1

constexpr uint16_t TouchDrvGT911::GT911_KEY_1 = (0X8093)
staticconstexprprotected

Definition at line 331 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_2

constexpr uint16_t TouchDrvGT911::GT911_KEY_2 = (0X8094)
staticconstexprprotected

Definition at line 332 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_3

constexpr uint16_t TouchDrvGT911::GT911_KEY_3 = (0X8095)
staticconstexprprotected

Definition at line 333 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_4

constexpr uint16_t TouchDrvGT911::GT911_KEY_4 = (0X8096)
staticconstexprprotected

Definition at line 334 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_AREA

constexpr uint16_t TouchDrvGT911::GT911_KEY_AREA = (0X8097)
staticconstexprprotected

Definition at line 335 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_LEAVE_LEVEL

constexpr uint16_t TouchDrvGT911::GT911_KEY_LEAVE_LEVEL = (0X8099)
staticconstexprprotected

Definition at line 337 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_RESTRAIN

constexpr uint16_t TouchDrvGT911::GT911_KEY_RESTRAIN = (0X809C)
staticconstexprprotected

Definition at line 340 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_RESTRAIN_TIME

constexpr uint16_t TouchDrvGT911::GT911_KEY_RESTRAIN_TIME = (0X809D)
staticconstexprprotected

Definition at line 341 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_SENS_1_2

constexpr uint16_t TouchDrvGT911::GT911_KEY_SENS_1_2 = (0X809A)
staticconstexprprotected

Definition at line 338 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_SENS_3_4

constexpr uint16_t TouchDrvGT911::GT911_KEY_SENS_3_4 = (0X809B)
staticconstexprprotected

Definition at line 339 of file touch/TouchDrvGT911.hpp.

◆ GT911_KEY_TOUCH_LEVEL

constexpr uint16_t TouchDrvGT911::GT911_KEY_TOUCH_LEVEL = (0X8098)
staticconstexprprotected

Definition at line 336 of file touch/TouchDrvGT911.hpp.

◆ GT911_LARGE_TOUCH

constexpr uint16_t TouchDrvGT911::GT911_LARGE_TOUCH = (0x8051)
staticconstexprprotected

Definition at line 270 of file touch/TouchDrvGT911.hpp.

◆ GT911_LINK_THRESHOLD

constexpr uint16_t TouchDrvGT911::GT911_LINK_THRESHOLD = (0X80A2)
staticconstexprprotected

Definition at line 344 of file touch/TouchDrvGT911.hpp.

◆ GT911_LOW_POWER_CONTROL

constexpr uint16_t TouchDrvGT911::GT911_LOW_POWER_CONTROL = (0x8055)
staticconstexprprotected

Definition at line 274 of file touch/TouchDrvGT911.hpp.

◆ GT911_MAIN_CLOCK_ADJUST

constexpr uint16_t TouchDrvGT911::GT911_MAIN_CLOCK_ADJUST = (0X8085)
staticconstexprprotected

Definition at line 321 of file touch/TouchDrvGT911.hpp.

◆ GT911_MINI_FILTER

constexpr uint16_t TouchDrvGT911::GT911_MINI_FILTER = (0x805D)
staticconstexprprotected

Definition at line 282 of file touch/TouchDrvGT911.hpp.

◆ GT911_MODULE_SWITCH3

constexpr uint16_t TouchDrvGT911::GT911_MODULE_SWITCH3 = (0x8070)
staticconstexprprotected

Definition at line 301 of file touch/TouchDrvGT911.hpp.

◆ GT911_MODULE_SWITCH_1

constexpr uint16_t TouchDrvGT911::GT911_MODULE_SWITCH_1 = (0x804D)
staticconstexprprotected

Definition at line 266 of file touch/TouchDrvGT911.hpp.

Referenced by getInterruptMode(), and setInterruptMode().

◆ GT911_MODULE_SWITCH_2

constexpr uint16_t TouchDrvGT911::GT911_MODULE_SWITCH_2 = (0x804E)
staticconstexprprotected

Definition at line 267 of file touch/TouchDrvGT911.hpp.

◆ GT911_NEWGREENWAKEUPLEVEL

constexpr uint16_t TouchDrvGT911::GT911_NEWGREENWAKEUPLEVEL = (0x8079)
staticconstexprprotected

Definition at line 310 of file touch/TouchDrvGT911.hpp.

◆ GT911_NOISE_DETECT_TIMES

constexpr uint16_t TouchDrvGT911::GT911_NOISE_DETECT_TIMES = (0x807C)
staticconstexprprotected

Definition at line 313 of file touch/TouchDrvGT911.hpp.

◆ GT911_NOISE_MIN_THRESHOLD

constexpr uint16_t TouchDrvGT911::GT911_NOISE_MIN_THRESHOLD = (0X8080)
staticconstexprprotected

Definition at line 317 of file touch/TouchDrvGT911.hpp.

◆ GT911_NOISE_REDUCTION

constexpr uint16_t TouchDrvGT911::GT911_NOISE_REDUCTION = (0x8052)
staticconstexprprotected

Definition at line 271 of file touch/TouchDrvGT911.hpp.

◆ GT911_NOISE_THRESHOLD

constexpr uint16_t TouchDrvGT911::GT911_NOISE_THRESHOLD = (0X807F)
staticconstexprprotected

Definition at line 316 of file touch/TouchDrvGT911.hpp.

◆ GT911_PANEL_BIT_FREQ_H

constexpr uint16_t TouchDrvGT911::GT911_PANEL_BIT_FREQ_H = (0x8068)
staticconstexprprotected

Definition at line 293 of file touch/TouchDrvGT911.hpp.

◆ GT911_PANEL_BIT_FREQ_L

constexpr uint16_t TouchDrvGT911::GT911_PANEL_BIT_FREQ_L = (0x8067)
staticconstexprprotected

Definition at line 292 of file touch/TouchDrvGT911.hpp.

◆ GT911_PANEL_DUMP_SHIFT

constexpr uint16_t TouchDrvGT911::GT911_PANEL_DUMP_SHIFT = (0x806D)
staticconstexprprotected

Definition at line 298 of file touch/TouchDrvGT911.hpp.

◆ GT911_PANEL_RX_GAIN

constexpr uint16_t TouchDrvGT911::GT911_PANEL_RX_GAIN = (0x806C)
staticconstexprprotected

Definition at line 297 of file touch/TouchDrvGT911.hpp.

◆ GT911_PANEL_SENSOR_TIME_H

constexpr uint16_t TouchDrvGT911::GT911_PANEL_SENSOR_TIME_H = (0x806A)
staticconstexprprotected

Definition at line 295 of file touch/TouchDrvGT911.hpp.

◆ GT911_PANEL_SENSOR_TIME_L

constexpr uint16_t TouchDrvGT911::GT911_PANEL_SENSOR_TIME_L = (0x8069)
staticconstexprprotected

Definition at line 294 of file touch/TouchDrvGT911.hpp.

◆ GT911_PANEL_TX_GAIN

constexpr uint16_t TouchDrvGT911::GT911_PANEL_TX_GAIN = (0x806B)
staticconstexprprotected

Definition at line 296 of file touch/TouchDrvGT911.hpp.

◆ GT911_POINT_1

constexpr uint16_t TouchDrvGT911::GT911_POINT_1 = (0X814F)
staticconstexprprotected

Definition at line 368 of file touch/TouchDrvGT911.hpp.

Referenced by getTouchPoints().

◆ GT911_POINT_2

constexpr uint16_t TouchDrvGT911::GT911_POINT_2 = (0X8157)
staticconstexprprotected

Definition at line 369 of file touch/TouchDrvGT911.hpp.

◆ GT911_POINT_3

constexpr uint16_t TouchDrvGT911::GT911_POINT_3 = (0X815F)
staticconstexprprotected

Definition at line 370 of file touch/TouchDrvGT911.hpp.

◆ GT911_POINT_4

constexpr uint16_t TouchDrvGT911::GT911_POINT_4 = (0X8167)
staticconstexprprotected

Definition at line 371 of file touch/TouchDrvGT911.hpp.

◆ GT911_POINT_5

constexpr uint16_t TouchDrvGT911::GT911_POINT_5 = (0X816F)
staticconstexprprotected

Definition at line 372 of file touch/TouchDrvGT911.hpp.

◆ GT911_POINT_INFO

constexpr uint16_t TouchDrvGT911::GT911_POINT_INFO = (0X814E)
staticconstexprprotected

Definition at line 367 of file touch/TouchDrvGT911.hpp.

Referenced by getTouchPoints().

◆ GT911_PRODUCT_ID

constexpr uint16_t TouchDrvGT911::GT911_PRODUCT_ID = (0x8140)
staticconstexprprotected

Definition at line 360 of file touch/TouchDrvGT911.hpp.

Referenced by getChipID().

◆ GT911_PXY_THRESHOLD

constexpr uint16_t TouchDrvGT911::GT911_PXY_THRESHOLD = (0X80A3)
staticconstexprprotected

Definition at line 345 of file touch/TouchDrvGT911.hpp.

◆ GT911_REFRESH_RATE

constexpr uint16_t TouchDrvGT911::GT911_REFRESH_RATE = (0x8056)
staticconstexprprotected

Definition at line 275 of file touch/TouchDrvGT911.hpp.

Referenced by getRefreshRate(), and updateRefreshRate().

◆ GT911_REG_LENGTH

constexpr uint8_t TouchDrvGT911::GT911_REG_LENGTH = (186)
staticconstexprprotected

Definition at line 378 of file touch/TouchDrvGT911.hpp.

Referenced by loadConfig(), and reloadConfig().

◆ GT911_SCREEN_RELEASE_LEVEL

constexpr uint16_t TouchDrvGT911::GT911_SCREEN_RELEASE_LEVEL = (0x8054)
staticconstexprprotected

Definition at line 273 of file touch/TouchDrvGT911.hpp.

◆ GT911_SCREEN_TOUCH_LEVEL

constexpr uint16_t TouchDrvGT911::GT911_SCREEN_TOUCH_LEVEL = (0x8053)
staticconstexprprotected

Definition at line 272 of file touch/TouchDrvGT911.hpp.

◆ GT911_SENSOR_CH0

constexpr uint16_t TouchDrvGT911::GT911_SENSOR_CH0 = (0X80B7)
staticconstexprprotected

Definition at line 354 of file touch/TouchDrvGT911.hpp.

◆ GT911_SENSOR_NUM

constexpr uint16_t TouchDrvGT911::GT911_SENSOR_NUM = (0x8064)
staticconstexprprotected

Definition at line 289 of file touch/TouchDrvGT911.hpp.

◆ GT911_SHAKE_COUNT

constexpr uint16_t TouchDrvGT911::GT911_SHAKE_COUNT = (0x804F)
staticconstexprprotected

Definition at line 268 of file touch/TouchDrvGT911.hpp.

◆ GT911_SPACE_LEFT_RIGHT

constexpr uint16_t TouchDrvGT911::GT911_SPACE_LEFT_RIGHT = (0x805C)
staticconstexprprotected

Definition at line 281 of file touch/TouchDrvGT911.hpp.

◆ GT911_SPACE_TOP_BOTTOM

constexpr uint16_t TouchDrvGT911::GT911_SPACE_TOP_BOTTOM = (0x805B)
staticconstexprprotected

Definition at line 280 of file touch/TouchDrvGT911.hpp.

◆ GT911_SPLIT_SET

constexpr uint16_t TouchDrvGT911::GT911_SPLIT_SET = (0X80B4)
staticconstexprprotected

Definition at line 353 of file touch/TouchDrvGT911.hpp.

◆ GT911_STRETCH_R0

constexpr uint16_t TouchDrvGT911::GT911_STRETCH_R0 = (0x805E)
staticconstexprprotected

Definition at line 283 of file touch/TouchDrvGT911.hpp.

◆ GT911_STRETCH_R1

constexpr uint16_t TouchDrvGT911::GT911_STRETCH_R1 = (0x805F)
staticconstexprprotected

Definition at line 284 of file touch/TouchDrvGT911.hpp.

◆ GT911_STRETCH_R2

constexpr uint16_t TouchDrvGT911::GT911_STRETCH_R2 = (0x8060)
staticconstexprprotected

Definition at line 285 of file touch/TouchDrvGT911.hpp.

◆ GT911_STRETCH_RM

constexpr uint16_t TouchDrvGT911::GT911_STRETCH_RM = (0x8061)
staticconstexprprotected

Definition at line 286 of file touch/TouchDrvGT911.hpp.

◆ GT911_TOUCH_NUMBER

constexpr uint16_t TouchDrvGT911::GT911_TOUCH_NUMBER = (0x804C)
staticconstexprprotected

Definition at line 265 of file touch/TouchDrvGT911.hpp.

Referenced by setMaxTouchPoint().

◆ GT911_VENDOR_ID

constexpr uint16_t TouchDrvGT911::GT911_VENDOR_ID = (0X8140)
staticconstexprprotected

Definition at line 365 of file touch/TouchDrvGT911.hpp.

Referenced by getVendorID().

◆ GT911_X_OUTPUT_MAX_HIGH

constexpr uint16_t TouchDrvGT911::GT911_X_OUTPUT_MAX_HIGH = (0x8049)
staticconstexprprotected

Definition at line 262 of file touch/TouchDrvGT911.hpp.

◆ GT911_X_OUTPUT_MAX_LOW

constexpr uint16_t TouchDrvGT911::GT911_X_OUTPUT_MAX_LOW = (0x8048)
staticconstexprprotected

Definition at line 261 of file touch/TouchDrvGT911.hpp.

◆ GT911_X_RESOLUTION

constexpr uint16_t TouchDrvGT911::GT911_X_RESOLUTION = (0x8146)
staticconstexprprotected

Definition at line 362 of file touch/TouchDrvGT911.hpp.

◆ GT911_X_SPEED_LIMIT

constexpr uint16_t TouchDrvGT911::GT911_X_SPEED_LIMIT = (0x8059)
staticconstexprprotected

Definition at line 278 of file touch/TouchDrvGT911.hpp.

◆ GT911_X_THRESHOLD

constexpr uint16_t TouchDrvGT911::GT911_X_THRESHOLD = (0x8057)
staticconstexprprotected

Definition at line 276 of file touch/TouchDrvGT911.hpp.

◆ GT911_X_Y_SLOPE_ADJUST

constexpr uint16_t TouchDrvGT911::GT911_X_Y_SLOPE_ADJUST = (0X8073)
staticconstexprprotected

Definition at line 304 of file touch/TouchDrvGT911.hpp.

◆ GT911_Y_OUTPUT_MAX_HIGH

constexpr uint16_t TouchDrvGT911::GT911_Y_OUTPUT_MAX_HIGH = (0x804B)
staticconstexprprotected

Definition at line 264 of file touch/TouchDrvGT911.hpp.

◆ GT911_Y_OUTPUT_MAX_LOW

constexpr uint16_t TouchDrvGT911::GT911_Y_OUTPUT_MAX_LOW = (0x804A)
staticconstexprprotected

Definition at line 263 of file touch/TouchDrvGT911.hpp.

◆ GT911_Y_RESOLUTION

constexpr uint16_t TouchDrvGT911::GT911_Y_RESOLUTION = (0x8148)
staticconstexprprotected

Definition at line 363 of file touch/TouchDrvGT911.hpp.

◆ GT911_Y_SPEED_LIMIT

constexpr uint16_t TouchDrvGT911::GT911_Y_SPEED_LIMIT = (0x805A)
staticconstexprprotected

Definition at line 279 of file touch/TouchDrvGT911.hpp.

◆ GT911_Y_THRESHOLD

constexpr uint16_t TouchDrvGT911::GT911_Y_THRESHOLD = (0x8058)
staticconstexprprotected

Definition at line 277 of file touch/TouchDrvGT911.hpp.

◆ IRQ_TRIGGER_MASK

constexpr uint8_t TouchDrvGT911::IRQ_TRIGGER_MASK = (0x03)
staticconstexprprotected

Definition at line 256 of file touch/TouchDrvGT911.hpp.

Referenced by getInterruptMode().


The documentation for this class was generated from the following files: