Device driver interface for the CST816S touch screen. More...
Device driver interface for the CST816S touch screen.
Definition in file cst816s.h.
Include dependency graph for cst816s.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | cst816s_touch_data_t |
| cst816s touch event data More... | |
| struct | cst816s_params_t |
| cst816s driver struct More... | |
| struct | cst816s_t |
| cst816s device descriptor More... | |
Typedefs | |
| typedef void(* | cst816s_irq_cb_t) (void *arg) |
| callback definition | |
Enumerations | |
| enum | cst816s_touch_t { CST816S_TOUCH_DOWN = 0 , CST816S_TOUCH_UP = 1 , CST816S_TOUCH_CONTACT = 2 } |
| cst816s touch event touch state More... | |
| enum | cst816s_gesture_t { CST816S_GESTURE_NONE = 0x00 , CST816S_GESTURE_SLIDE_DOWN = 0x01 , CST816S_GESTURE_SLIDE_UP = 0x02 , CST816S_GESTURE_SLIDE_LEFT = 0x03 , CST816S_GESTURE_SLIDE_RIGHT = 0x04 , CST816S_GESTURE_SINGLE_CLICK = 0x05 , CST816S_GESTURE_DOUBLE_CLICK = 0x0b , CST816S_GESTURE_LONG_PRESS = 0x0c } |
| CST816S Gesture types. More... | |
| enum | { CST816S_OK = 0 , CST816S_ERR_IRQ = -1 } |
| Status and error return codes. More... | |
Functions | |
| int | cst816s_init (cst816s_t *dev, const cst816s_params_t *params, cst816s_irq_cb_t cb, void *arg) |
| Initialize the given cst816s device. More... | |
| int | cst816s_read (const cst816s_t *dev, cst816s_touch_data_t *data) |
| Read touch data from the cst816s device. More... | |
Variables | |
| const char * | cst816s_gesture_str [] |
| string versions of the cst816 gestures | |