Multi-touch capacitive panel controller. More...
Multi-touch capacitive panel controller.
This driver should also support FT5x06,FT5606,FT5x16,FT6x06,Ft6x36 FT5x06i,FT5336,FT3316,FT5436i,FT5336i,FT5x46.
Files | |
| file | ft5x06_constants.h | 
| Internal register addresses, bitfields and constants.  | |
| file | ft5x06_params.h | 
| Default configuration.  | |
| file | ft5x06_touch_dev.h | 
| Definition of the driver for the touch_dev generic interface.  | |
| file | ft5x06.h | 
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.  More... | |
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.  More... | |
| int | ft5x06_read_touch_positions (const ft5x06_t *dev, ft5x06_touch_position_t *positions, size_t len) | 
| Read the touch positions.  More... | |
| int | ft5x06_read_touch_count (const ft5x06_t *dev, uint8_t *count) | 
| Read the number of touch.  More... | |
| int | ft5x06_read_touch_gesture (const ft5x06_t *dev, ft5x06_touch_gesture_t *gesture) | 
| Read the gesture detected.  More... | |
| typedef void(* ft5x06_event_cb_t) (void *arg) | 
| enum ft5x06_touch_conv_t | 
Touch screen coordinate conversions.
Normally the coordinates of the touch device must be converted to the screen coordinates by swapping and/or mirroring. The flags defined by this enumeration can be ORed for a combined conversion. In this case, the swapping is performed before the mirroring.
Touch gesture.
| enum ft5x06_type_t | 
Device type.
| int ft5x06_init | ( | ft5x06_t * | dev, | 
| const ft5x06_params_t * | params, | ||
| ft5x06_event_cb_t | cb, | ||
| void * | arg | ||
| ) | 
Initialize the given device.
| [in,out] | dev | Device descriptor of the driver | 
| [in] | params | Initialization parameters | 
| [in] | cb | Callback function called on touch interrupts | 
| [in] | arg | Context argument used in callback function | 
| int ft5x06_read_touch_count | ( | const ft5x06_t * | dev, | 
| uint8_t * | count | ||
| ) | 
Read the number of touch.
| [in] | dev | Device descriptor of the FT5x06 | 
| [out] | count | Number of touch detected | 
| int ft5x06_read_touch_gesture | ( | const ft5x06_t * | dev, | 
| ft5x06_touch_gesture_t * | gesture | ||
| ) | 
Read the gesture detected.
| [in] | dev | Device descriptor of the FT5X06 | 
| [out] | gesture | Gesture ID | 
| int ft5x06_read_touch_positions | ( | const ft5x06_t * | dev, | 
| ft5x06_touch_position_t * | positions, | ||
| size_t | len | ||
| ) | 
Read the touch positions.
| [in] | dev | Device descriptor of the FT5x06 | 
| [out] | positions | Touch positions | 
| [in] | len | Number of touch positions to read |