STMicroelectronics STMPE610 resistive touch controller interface. More...


Go to the source code of this file.
Data Structures | |
| struct | dev_stmpe610_config_t |
| Optional STMPE610 initialization options. More... | |
Typedefs | |
| typedef struct dev_stmpe610_t | dev_stmpe610_t |
| Opaque STMPE610 handle. | |
| typedef void(* | dev_stmpe610_callback_t) (dev_stmpe610_t *stmpe610, const hid_touch_t *touch, void *userdata) |
| Touch event callback invoked from dev_stmpe610_poll(). More... | |
Functions | |
Lifecycle | |
| void | dev_stmpe610_default_config (dev_stmpe610_config_t *config) |
| Fill an STMPE610 config struct with safe defaults. More... | |
| dev_stmpe610_t * | dev_stmpe610_init (hw_deviceio_t *device, const dev_stmpe610_config_t *config) |
| Initialize an STMPE610 resistive touch controller over SPI. More... | |
| void | dev_stmpe610_deinit (dev_stmpe610_t *stmpe610) |
| Deinitialize an STMPE610 controller. More... | |
| void | dev_stmpe610_set_callback (dev_stmpe610_t *stmpe610, dev_stmpe610_callback_t callback, void *userdata) |
| Set (or replace) the callback invoked from dev_stmpe610_poll(). More... | |
Properties | |
| bool | dev_stmpe610_irq_active (const dev_stmpe610_t *stmpe610) |
| Report whether the STMPE610 interrupt line is currently asserted. More... | |
Methods | |
| void | dev_stmpe610_poll (dev_stmpe610_t *stmpe610) |
| Poll the controller, invoking the callback if the touch state changed. More... | |
HID | |
| hid_device_t * | dev_stmpe610_register_hid (hid_t *instance, dev_stmpe610_t *stmpe610, uint32_t polling_interval_ms, void *userdata) |
| Register an STMPE610 controller as a HID touchscreen source. More... | |
STMicroelectronics STMPE610 resistive touch controller interface.
Definition in file stmpe610.h.