Loading...
Searching...
No Matches

Detailed Description

#include "saul.h"
#include "periph/gpio.h"
#include "periph/i2c.h"
+ Include dependency graph for stmpe811.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stmpe811_touch_position_t
 Touch position structure. More...
 
struct  stmpe811_params_t
 Device initialization parameters. More...
 
struct  stmpe811_t
 Device descriptor for the STMPE811 sensor. More...
 

Typedefs

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

Enumerations

enum  stmpe811_touch_state_t { STMPE811_TOUCH_STATE_PRESSED , STMPE811_TOUCH_STATE_RELEASED }
 Touch state enum. More...
 
enum  stmpe811_touch_conv_t { STMPE811_NO_CONV = 0x00 , STMPE811_MIRROR_X = 0x01 , STMPE811_MIRROR_Y = 0x02 , STMPE811_SWAP_XY = 0x04 }
 Touch screen coordinate conversions. More...
 

Functions

int stmpe811_init (stmpe811_t *dev, const stmpe811_params_t *params, stmpe811_event_cb_t cb, void *arg)
 Initialize the given STMPE811 device.
 
int stmpe811_read_touch_position (stmpe811_t *dev, stmpe811_touch_position_t *position)
 Read the touch position.
 
int stmpe811_read_touch_state (const stmpe811_t *dev, stmpe811_touch_state_t *state)
 Read the touch state (pressed or released)