Generic type for a touch driver. More...
Generic type for a touch driver.
Definition at line 59 of file touch_dev.h.
#include <touch_dev.h>
Data Fields | |
uint16_t(* | height )(const touch_dev_t *dev) |
Get the height of the touch device. | |
uint16_t(* | width )(const touch_dev_t *dev) |
Get the width of the touch device. | |
uint8_t(* | max_numof )(const touch_dev_t *dev) |
Get the maximum number of touches the touch device supports. | |
uint8_t(* | touches )(const touch_dev_t *dev, touch_t *touches, size_t len) |
Get the current touches on the touch device. | |
void(* | set_event_callback )(const touch_dev_t *dev, touch_event_cb_t cb, void *arg) |
Set and configure the touch event callback. | |
uint16_t(* touch_dev_driver_t::height) (const touch_dev_t *dev) |
Get the height of the touch device.
[in] | dev | Pointer to the touch device |
Definition at line 68 of file touch_dev.h.
uint8_t(* touch_dev_driver_t::max_numof) (const touch_dev_t *dev) |
Get the maximum number of touches the touch device supports.
This function pointer can be NULL. In this case, the maximum number of touches is assumed to be 1.
[in] | dev | Pointer to the touch device |
Definition at line 89 of file touch_dev.h.
void(* touch_dev_driver_t::set_event_callback) (const touch_dev_t *dev, touch_event_cb_t cb, void *arg) |
Set and configure the touch event callback.
[in] | dev | Pointer to the touch device |
[in] | cb | The callback function |
[in] | arg | Context argument |
Definition at line 110 of file touch_dev.h.
uint8_t(* touch_dev_driver_t::touches) (const touch_dev_t *dev, touch_t *touches, size_t len) |
Get the current touches on the touch device.
If touches
is NULL, this function only returns the number of touches.
[in] | dev | Pointer to the touch device |
[out] | touches | The array of touches |
[in] | len | The touches array len |
Definition at line 101 of file touch_dev.h.
uint16_t(* touch_dev_driver_t::width) (const touch_dev_t *dev) |
Get the width of the touch device.
[in] | dev | Pointer to the touch device |
Definition at line 77 of file touch_dev.h.