PIC software documentation
 All Classes Files Functions Variables Enumerations Enumerator Groups
Classes | Macros | Enumerations | Functions
ft5x06.h File Reference

Go to the source code of this file.

Classes

struct  touchCoor
 Information about where the touch occurred on the touch surface and what kind of event it is. More...
struct  touchInfo
 Information about gesture (if recognised) and the registered touch points. More...

Macros

#define FT5X06_I2C_ADDR   0x38
 FT5x06 I²C address.

Enumerations

enum  ft5x06_gesture {
  FT5X06_GESTURE_none = 0x00, FT5X06_GESTURE_up = 0x10, FT5X06_GESTURE_left = 0x14, FT5X06_GESTURE_down = 0x18,
  FT5X06_GESTURE_right = 0x1c, FT5X06_GESTURE_zoomIn = 0x48, FT5X06_GESTURE_zoomOut = 0x49
}
 Types of gestures the FT5x06 can recognise. More...
enum  ft5x06_touchEvent { FT5X06_EVENT_putDown = 0, FT5X06_EVENT_putUp = 1, FT5X06_EVENT_contact = 2, FT5X06_EVENT_invalid = 3 }
 Type of touch event. More...
enum  ft5x06_retrieveTouchInfoRetVal {
  FT5X06_RETTOUCH_OK = 0, FT5X06_RETTOUCH_ERR_I2C_ERROR = 1, FT5X06_RETTOUCH_NULL_ARG = 2, FT5X06_RETTOUCH_ERR_NUM_POINTS = 3,
  FT5X06_RETTOUCH_ERR_EVENT = 4
}
 ft5x06_queryTouchInfo() return values More...

Functions

void ft5x06_queryTouchInfo (int numPoints)
 Query the FT5x06 chip on the I²C bus for touch data.
int ft5x06_retrieveTouchInfo (struct touchInfo *touchInfo)
 Parse touch data from I²C RX buffer.

Detailed Description