Go to the documentation of this file.
28 #ifdef MODULE_TOUCH_DEV
29 #include "touch_dev.h"
84 #ifdef MODULE_TOUCH_DEV
i2c_t i2c
I2C device which is used.
Device descriptor for the STMPE811 sensor.
uint16_t xmax
Touch screen max X position.
Device initialization parameters.
stmpe811_params_t params
Device parameters.
@ STMPE811_TOUCH_STATE_RELEASED
Touchscreen is released.
unsigned int i2c_t
Default i2c_t type definition.
uint16_t prev_x
Previous X coordinate.
uint16_t ymax
Touch screen max Y position.
Touch position structure.
int stmpe811_init(stmpe811_t *dev, const stmpe811_params_t *params, touch_event_cb_t cb, void *arg)
Initialize the given STMPE811 device.
@ STMPE811_ERR_RESET
Software reset failed.
int stmpe811_read_touch_position(stmpe811_t *dev, stmpe811_touch_position_t *position)
Read the touch position.
@ STMPE811_ERR_NODEV
No valid device on I2C bus.
uint16_t prev_y
Previous Y coordinate.
@ STMPE811_ERR_I2C
Error on the I2C bus.
Generic type for a touch device.
void(* touch_event_cb_t)(void *arg)
Signature of touch event callback triggered from interrupt.
@ STMPE811_TOUCH_STATE_PRESSED
Touchscreen is pressed.
Low-level GPIO peripheral driver interface definitions.
int stmpe811_read_touch_state(const stmpe811_t *dev, stmpe811_touch_state_t *state)
Read the touch state (pressed or released)
gpio_t int_pin
Touch screen interrupt pin.
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
@ STMPE811_OK
Everything was fine.
uint8_t addr
Device I2C address.
Low-level I2C peripheral driver interface definition.
stmpe811_touch_state_t
Touch state enum.