Loading...
Searching...
No Matches

Detailed Description

#include <stdint.h>
#include "periph/gpio.h"
#include "periph/i2c.h"
#include "ft5x06_constants.h"
+ Include dependency graph for ft5x06.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ft5x06_touch_position_t
 Touch position structure. More...
 
struct  ft5x06_params_t
 Device initialization parameters. More...
 
struct  ft5x06_t
 Device descriptor for the driver. More...
 

Typedefs

typedef void(* ft5x06_event_cb_t) (void *arg)
 Signature of the touch event callback triggered from interrupt.
 

Enumerations

enum  ft5x06_touch_gesture_t {
  FT5X06_TOUCH_NO_GESTURE , FT5X06_TOUCH_MOVE_UP , FT5X06_TOUCH_MOVE_LEFT , FT5X06_TOUCH_MOVE_DOWN ,
  FT5X06_TOUCH_MOVE_RIGHT , FT5X06_TOUCH_ZOOM_IN , FT5X06_TOUCH_ZOOM_OUT
}
 Touch gesture. More...
 
enum  ft5x06_type_t {
  FT5X06_TYPE_FT5X06 , FT5X06_TYPE_FT5606 , FT5X06_TYPE_FT5X16 , FT5X06_TYPE_FT6X06 ,
  FT5X06_TYPE_FT6X36 , FT5X06_TYPE_FT5X06I , FT5X06_TYPE_FT5336 , FT5X06_TYPE_FT3316 ,
  FT5X06_TYPE_FT5436I , FT5X06_TYPE_FT5336I , FT5X06_TYPE_FT5X46
}
 Device type. More...
 
enum  ft5x06_touch_conv_t { FT5X06_NO_CONV = 0x00 , FT5X06_MIRROR_X = 0x01 , FT5X06_MIRROR_Y = 0x02 , FT5X06_SWAP_XY = 0x04 }
 Touch screen coordinate conversions. More...
 

Functions

int ft5x06_init (ft5x06_t *dev, const ft5x06_params_t *params, ft5x06_event_cb_t cb, void *arg)
 Initialize the given device.
 
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_read_touch_gesture (const ft5x06_t *dev, ft5x06_touch_gesture_t *gesture)
 Read the gesture detected.