FocalTech FT6236 capacitive touch controller interface. More...


Go to the source code of this file.
Data Structures | |
| struct | dev_ft6236_config_t |
| Optional FT6236 initialization options. More... | |
Macros | |
| #define | DEV_FT6236_I2C_ADDR_DEFAULT 0x38u |
| Fixed 7-bit I2C address. | |
| #define | DEV_FT6236_MAX_POINTS 2u |
| Maximum number of simultaneous touch contacts reported by FT6236. | |
Typedefs | |
| typedef struct dev_ft6236_t | dev_ft6236_t |
| Opaque FT6236 handle. | |
| typedef void(* | dev_ft6236_callback_t) (dev_ft6236_t *ft6236, const hid_touch_t *touch, void *userdata) |
| Touch event callback invoked from dev_ft6236_poll(). More... | |
Functions | |
Lifecycle | |
| void | dev_ft6236_default_config (dev_ft6236_config_t *config) |
| Fill an FT6236 config struct with safe defaults. More... | |
| dev_ft6236_t * | dev_ft6236_init (hw_deviceio_t *device, const dev_ft6236_config_t *config) |
| Initialize an FT6236-compatible touch controller over I2C. More... | |
| void | dev_ft6236_deinit (dev_ft6236_t *ft6236) |
| Deinitialize an FT6236 controller. More... | |
| void | dev_ft6236_set_callback (dev_ft6236_t *ft6236, dev_ft6236_callback_t callback, void *userdata) |
| Set (or replace) the callback invoked from dev_ft6236_poll(). More... | |
Properties | |
| bool | dev_ft6236_irq_active (const dev_ft6236_t *ft6236) |
| Report whether the FT6236 interrupt line is currently asserted. More... | |
| bool | dev_ft6236_has_interrupt_pin (const dev_ft6236_t *ft6236) |
| Report whether an interrupt pin was configured for this handle. More... | |
Methods | |
| void | dev_ft6236_poll (dev_ft6236_t *ft6236) |
| Poll the controller, invoking the callback for each touch slot whose state actually changed. More... | |
HID Integration | |
| hid_device_t * | dev_ft6236_register_hid (hid_t *instance, dev_ft6236_t *ft6236, uint32_t polling_interval_ms, void *userdata) |
| Register an FT6236 controller as a HID touchscreen source. More... | |
FocalTech FT6236 capacitive touch controller interface.
Definition in file ft6236.h.