25#if IS_USED(MODULE_STMPE811_SPI) 
   31#ifdef MODULE_TOUCH_DEV 
   90#if IS_USED(MODULE_STMPE811_SPI) 
 
  112#ifdef MODULE_TOUCH_DEV 
 
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
 
Low-level GPIO peripheral driver interface definitions.
 
uint_fast8_t i2c_t
Default i2c_t type definition.
 
void(* stmpe811_event_cb_t)(void *arg)
Signature of touch event callback triggered from interrupt.
 
int stmpe811_read_touch_position(stmpe811_t *dev, stmpe811_touch_position_t *position)
Read the touch position.
 
int stmpe811_read_touch_state(const stmpe811_t *dev, stmpe811_touch_state_t *state)
Read the touch state (pressed or released)
 
stmpe811_touch_state_t
Touch state enum.
 
int stmpe811_init(stmpe811_t *dev, const stmpe811_params_t *params, stmpe811_event_cb_t cb, void *arg)
Initialize the given STMPE811 device.
 
stmpe811_touch_conv_t
Touch screen coordinate conversions.
 
@ STMPE811_TOUCH_STATE_RELEASED
Touchscreen is released.
 
@ STMPE811_TOUCH_STATE_PRESSED
Touchscreen is pressed.
 
@ STMPE811_MIRROR_X
Mirror X, applied after optional swapping.
 
@ STMPE811_NO_CONV
No conversion.
 
@ STMPE811_SWAP_XY
Swap XY, applied before optional mirroring.
 
@ STMPE811_MIRROR_Y
Mirror Y, applied after optional swapping.
 
struct touch_dev touch_dev_t
Forward declaration for touch device struct.
 
Low-level I2C peripheral driver interface definition.
 
spi_mode_t
Support SPI modes.
 
Low-level SPI peripheral driver interface definition.
 
Device initialization parameters.
 
gpio_t int_pin
Touch screen interrupt pin.
 
uint16_t ymax
Touch screen max Y position.
 
stmpe811_touch_conv_t xyconv
Touch screen coordinates conversion, swapping is applied before mirroring.
 
uint8_t addr
Device I2C address.
 
i2c_t i2c
I2C device which is used.
 
uint16_t xmax
Touch screen max X position.
 
Device descriptor for the STMPE811 sensor.
 
stmpe811_event_cb_t cb
Configured IRQ event callback.
 
uint16_t prev_x
Previous X coordinate.
 
uint16_t prev_y
Previous Y coordinate.
 
void * cb_arg
Extra argument for the callback.
 
stmpe811_params_t params
Device parameters.
 
Touch position structure.