|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
#include <TouchDrvGT911.hpp>
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 TouchPoints & | getTouchPoints () 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 TouchPinsCfg & | getTouchPinsCfg () 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 SensorCommBase * | getComm () 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< SensorCommBase > | comm |
| std::unique_ptr< SensorHal > | hal |
| std::unique_ptr< SensorCommStatic > | staticComm |
| uint8_t | _addr = 0 |
| uint8_t | _iface = COMM_CUSTOM |
Definition at line 50 of file touch/TouchDrvGT911.hpp.
| Enumerator | |
|---|---|
| RISING_EDGE | |
| FALLING_EDGE | |
| LOW_LEVEL_QUERY | |
| HIGH_LEVEL_QUERY | |
Definition at line 55 of file touch/TouchDrvGT911.hpp.
|
default |
Constructor for the touch driver.
| None |
|
default |
Destructor for the touch driver.
| None |
|
overridevirtual |
Get the chip ID.
| The | chip ID. |
Reimplemented from TouchDrvInterface.
Definition at line 172 of file TouchDrvGT911.cpp.
References GT911_PRODUCT_ID, and i.
Referenced by setup().
| uint8_t TouchDrvGT911::getConfigVersion | ( | ) |
Get the configuration version.
| The | configuration version. |
Definition at line 192 of file TouchDrvGT911.cpp.
References GT911_CONFIG_VERSION.
| uint16_t TouchDrvGT911::getFwVersion | ( | ) |
Get the firmware version.
| The | firmware version. |
Definition at line 182 of file TouchDrvGT911.cpp.
References GT911_FIRMWARE_VERSION, and i.
| TouchDrvGT911::InterruptMode TouchDrvGT911::getInterruptMode | ( | ) |
Get the interrupt mode.
| The | interrupt 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.
|
overridevirtual |
Get the model name.
| The | model name. |
Implements TouchDrvInterface.
Definition at line 112 of file TouchDrvGT911.cpp.
Referenced by setup().
|
inlinevirtual |
Retrieve touch point coordinates (deprecated).
getTouchPoints() instead, which returns a richer TouchPoints object.| [out] | x_array | Pointer to array to store X coordinates. |
| [out] | y_array | Pointer to array to store Y coordinates. |
| get_point | Number of points to retrieve (max). |
Reimplemented from TouchDrvInterface.
Definition at line 288 of file touch/TouchDrvInterface.hpp.
| uint8_t TouchDrvGT911::getRefreshRate | ( | ) |
Get the refresh rate.
| The | refresh rate in milliseconds. |
Definition at line 210 of file TouchDrvGT911.cpp.
References GT911_BASE_REF_RATE, and GT911_REFRESH_RATE.
|
overridevirtual |
Get the touch points.
| A | reference 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().
| int TouchDrvGT911::getVendorID | ( | ) |
Get the vendor ID.
| The | vendor ID. |
Definition at line 216 of file TouchDrvGT911.cpp.
References GT911_VENDOR_ID.
| uint8_t * TouchDrvGT911::loadConfig | ( | size_t * | output_size, |
| bool | print_out = false |
||
| ) |
Load the configuration data.
| *output_size | Pointer to store the size of the output data. |
| print_out | Flag to indicate whether to print the output. |
| The | pointer 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().
| bool TouchDrvGT911::reloadConfig | ( | ) |
Reload the configuration data.
| True | if 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().
| bool TouchDrvGT911::setInterruptMode | ( | InterruptMode | mode | ) |
Set the interrupt mode.
| mode | The interrupt mode to set , see InterruptMode. |
| True | if 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.
| void TouchDrvGT911::setMaxTouchPoint | ( | uint8_t | num | ) |
Set the maximum touch points.
| num | The maximum number of touch points (1-5). |
| None |
Definition at line 287 of file TouchDrvGT911.cpp.
References GT911_TOUCH_NUMBER, and reloadConfig().
|
overridevirtual |
Puts the touch driver to sleep.
| None |
Implements TouchDrvInterface.
Definition at line 35 of file TouchDrvGT911.cpp.
References TouchDrvInterface::_pinsCfg, DeviceBeginCommon::hal, and TouchDrvInterface::TouchPinsCfg::irqPin.
| void TouchDrvGT911::updateRefreshRate | ( | uint8_t | rate_ms | ) |
Get the refresh rate.
| rate_ms | Pointer to store the refresh rate in milliseconds , 5 ~ 15 ms. |
| None |
Definition at line 197 of file TouchDrvGT911.cpp.
References GT911_REFRESH_RATE, and reloadConfig().
|
overridevirtual |
Wake up the touch driver.
| None |
Reimplemented from TouchDrvInterface.
Definition at line 53 of file TouchDrvGT911.cpp.
References TouchDrvInterface::_pinsCfg, DeviceBeginCommon::hal, TouchDrvInterface::TouchPinsCfg::irqPin, and TouchDrvInterface::reset().
|
staticconstexprprotected |
Definition at line 374 of file touch/TouchDrvGT911.hpp.
Referenced by getTouchPoints(), and loadConfig().
|
staticconstexprprotected |
Definition at line 377 of file touch/TouchDrvGT911.hpp.
Referenced by getRefreshRate().
|
staticconstexprprotected |
Definition at line 300 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 352 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 253 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 255 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 356 of file touch/TouchDrvGT911.hpp.
Referenced by reloadConfig().
|
staticconstexprprotected |
Definition at line 357 of file touch/TouchDrvGT911.hpp.
Referenced by reloadConfig().
|
staticconstexprprotected |
Definition at line 358 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 259 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 260 of file touch/TouchDrvGT911.hpp.
Referenced by getConfigVersion(), loadConfig(), and reloadConfig().
|
staticconstexprprotected |
Definition at line 376 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 355 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 299 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 287 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 288 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 254 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 269 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 361 of file touch/TouchDrvGT911.hpp.
Referenced by getFwVersion().
|
staticconstexprprotected |
Definition at line 290 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 291 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 348 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 349 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 350 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 351 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 312 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 311 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 305 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 302 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 342 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 303 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 308 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 306 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 307 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 309 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 346 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 347 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 314 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 320 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 319 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 323 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 322 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 325 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 324 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 327 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 326 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 329 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 328 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 330 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 318 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 315 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 343 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 366 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 331 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 332 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 333 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 334 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 335 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 337 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 340 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 341 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 338 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 339 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 336 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 270 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 344 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 274 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 321 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 282 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 301 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 266 of file touch/TouchDrvGT911.hpp.
Referenced by getInterruptMode(), and setInterruptMode().
|
staticconstexprprotected |
Definition at line 267 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 310 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 313 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 317 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 271 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 316 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 293 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 292 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 298 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 297 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 295 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 294 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 296 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 368 of file touch/TouchDrvGT911.hpp.
Referenced by getTouchPoints().
|
staticconstexprprotected |
Definition at line 369 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 370 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 371 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 372 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 367 of file touch/TouchDrvGT911.hpp.
Referenced by getTouchPoints().
|
staticconstexprprotected |
Definition at line 360 of file touch/TouchDrvGT911.hpp.
Referenced by getChipID().
|
staticconstexprprotected |
Definition at line 345 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 275 of file touch/TouchDrvGT911.hpp.
Referenced by getRefreshRate(), and updateRefreshRate().
|
staticconstexprprotected |
Definition at line 378 of file touch/TouchDrvGT911.hpp.
Referenced by loadConfig(), and reloadConfig().
|
staticconstexprprotected |
Definition at line 273 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 272 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 354 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 289 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 268 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 281 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 280 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 353 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 283 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 284 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 285 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 286 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 265 of file touch/TouchDrvGT911.hpp.
Referenced by setMaxTouchPoint().
|
staticconstexprprotected |
Definition at line 365 of file touch/TouchDrvGT911.hpp.
Referenced by getVendorID().
|
staticconstexprprotected |
Definition at line 262 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 261 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 362 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 278 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 276 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 304 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 264 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 263 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 363 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 279 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 277 of file touch/TouchDrvGT911.hpp.
|
staticconstexprprotected |
Definition at line 256 of file touch/TouchDrvGT911.hpp.
Referenced by getInterruptMode().