34#ifdef MODULE_TOUCH_DEV
129#ifdef MODULE_TOUCH_DEV
Low-level GPIO peripheral driver interface definitions.
Internal register addresses, bitfields and constants.
ft5x06_touch_conv_t
Touch screen coordinate conversions.
int ft5x06_read_touch_gesture(const ft5x06_t *dev, ft5x06_touch_gesture_t *gesture)
Read the gesture detected.
ft5x06_type_t
Device type.
void(* ft5x06_event_cb_t)(void *arg)
Signature of the touch event callback triggered from interrupt.
int ft5x06_read_touch_positions(const ft5x06_t *dev, ft5x06_touch_position_t *positions, size_t len)
Read the touch positions.
int ft5x06_read_touch_count(const ft5x06_t *dev, uint8_t *count)
Read the number of touch.
int ft5x06_init(ft5x06_t *dev, const ft5x06_params_t *params, ft5x06_event_cb_t cb, void *arg)
Initialize the given device.
ft5x06_touch_gesture_t
Touch gesture.
@ FT5X06_SWAP_XY
Swap XY, applied before optional mirroring.
@ FT5X06_MIRROR_X
Mirror X, applied after optional swapping.
@ FT5X06_NO_CONV
No conversion.
@ FT5X06_MIRROR_Y
Mirror Y, applied after optional swapping.
@ FT5X06_TYPE_FT5X06
FT5X06.
@ FT5X06_TYPE_FT5X46
FT5X46.
@ FT5X06_TYPE_FT3316
FT3316.
@ FT5X06_TYPE_FT6X36
FT6X36.
@ FT5X06_TYPE_FT5606
FT5606.
@ FT5X06_TYPE_FT5336
FT5336.
@ FT5X06_TYPE_FT6X06
FT6X06.
@ FT5X06_TYPE_FT5X16
FT5X16.
@ FT5X06_TYPE_FT5436I
FT5436I.
@ FT5X06_TYPE_FT5X06I
FT5X06I.
@ FT5X06_TYPE_FT5336I
FT5336I.
@ FT5X06_TOUCH_ZOOM_OUT
Zoom out gesture detected.
@ FT5X06_TOUCH_MOVE_RIGHT
Move right gesture detected.
@ FT5X06_TOUCH_MOVE_LEFT
Move left gesture detected.
@ FT5X06_TOUCH_NO_GESTURE
No gesture detected.
@ FT5X06_TOUCH_ZOOM_IN
Zoom int gesture detected.
@ FT5X06_TOUCH_MOVE_DOWN
Move down gesture detected.
@ FT5X06_TOUCH_MOVE_UP
Move up gesture detected.
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Device initialization parameters.
uint16_t ymax
Touch screen max Y position.
ft5x06_type_t type
Device type.
uint8_t addr
Device I2C address.
i2c_t i2c
I2C device which is used.
uint16_t xmax
Touch screen max X position.
ft5x06_touch_conv_t xyconv
Touch screen coordinates conversion, swapping is performed before mirroring.
gpio_t int_pin
Touch screen interrupt pin.
Device descriptor for the driver.
const ft5x06_params_t * params
Initialization parameters.
Touch position structure.
Generic type for a touch device.