48#ifdef MODULE_TOUCH_DEV 
  114#ifdef MODULE_TOUCH_DEV 
 
Low-level GPIO peripheral driver interface definitions.
 
cst816s_touch_t
cst816s touch event touch state
 
const char * cst816s_gesture_str[]
string versions of the cst816 gestures
 
int cst816s_init(cst816s_t *dev, const cst816s_params_t *params, cst816s_irq_cb_t cb, void *arg)
Initialize the given cst816s device.
 
void(* cst816s_irq_cb_t)(void *arg)
callback definition
 
cst816s_gesture_t
CST816S Gesture types.
 
int cst816s_read(const cst816s_t *dev, cst816s_touch_data_t *data)
Read touch data from the cst816s device.
 
@ CST816S_ERR_IRQ
IRQ initialization error.
 
@ CST816S_OK
everything was fine
 
@ CST816S_TOUCH_DOWN
Touch press.
 
@ CST816S_TOUCH_CONTACT
Touch contact.
 
@ CST816S_TOUCH_UP
Touch release.
 
@ CST816S_GESTURE_LONG_PRESS
long press detected
 
@ CST816S_GESTURE_DOUBLE_CLICK
double click detected
 
@ CST816S_GESTURE_SLIDE_DOWN
downward slide detected
 
@ CST816S_GESTURE_NONE
no gesture detected
 
@ CST816S_GESTURE_SINGLE_CLICK
single click detected
 
@ CST816S_GESTURE_SLIDE_UP
upward slide detected
 
@ CST816S_GESTURE_SLIDE_LEFT
left slide detected
 
@ CST816S_GESTURE_SLIDE_RIGHT
right slide detected
 
uint_fast8_t i2c_t
Default i2c_t type definition.
 
struct touch_dev touch_dev_t
Forward declaration for touch device struct.
 
Low-level I2C peripheral driver interface definition.
 
uint8_t i2c_addr
I2C address.
 
i2c_t i2c_dev
I2C device which is used.
 
gpio_t reset
Device reset GPIO.
 
gpio_flank_t irq_flank
IRQ flank.
 
cst816s device descriptor
 
void * cb_arg
Extra argument for the callback.
 
cst816s_irq_cb_t cb
Configured IRQ event callback.
 
const cst816s_params_t * params
Device parameters.
 
cst816s_gesture_t gesture
Detected gesture.
 
cst816s_touch_t action
Press or release event.