HI8561 Touchscreen Display Chip Touch Class This class provides the touch reading functionality for the HI8561.
More...
|
| | TouchDrvHI8561 ()=default |
| | Constructor for the touch driver.
|
| |
| | ~TouchDrvHI8561 ()=default |
| | Destructor for the touch driver.
|
| |
| void | sleep () override |
| | Puts the touch driver to sleep.
|
| |
| const TouchPoints & | getTouchPoints () override |
| | Get the touch points.
|
| |
| const char * | getModelName () override |
| | Get the model name.
|
| |
| | 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 void | wakeup () |
| | Wake the touch controller from sleep mode (pure virtual).
|
| |
| 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).
|
| |
| virtual bool | isPressed (uint32_t filter_ms=0) |
| | Check if any touch point is currently pressed.
|
| |
| virtual uint32_t | getChipID () |
| | Get the chip identifier (e.g., ID register value).
|
| |
| 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.
|
| |
| bool | begin (SensorCommCustom::CustomCallback cb, SensorCommCustomHal::CustomHalCallback hal_cb, uint8_t addr) |
| | Initialize the sensor using custom callback interface.
|
| |
| virtual | ~DeviceBeginCommon () |
| |
| uint8_t | getAddress () const |
| |
| uint8_t | getInterface () const |
| |
| | 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) |
| |
| virtual | ~SensorCommInterface ()=default |
| |
HI8561 Touchscreen Display Chip Touch Class This class provides the touch reading functionality for the HI8561.
Note: This class cannot be used independently; the screen must be initialized first before calling this class for initialization. This is a characteristic of most touchscreen display chips.
Definition at line 46 of file touch/TouchDrvHI8561.hpp.