Searched refs:touch_data (Results 1 – 12 of 12) sorted by relevance
| /bsp/hpmicro/libraries/hpm_sdk/components/touch/ft5406/ |
| A D | hpm_touch_ft5406.c | 15 ft5406_touch_data_t touch_data = {0}; in touch_get_data() local 17 stat = ft5406_read_touch_data(&ft5406, &touch_data); in touch_get_data() 22 if ((touch_data.status < FT5406_MAX_TOUCH_POINTS) && (touch_data.status)) { in touch_get_data() 23 for (i = 0; touch_data.points[i].x_h > 0 && touch_data.points[i].x_h < 0xFF; i++) { in touch_get_data() 24 points[i].x = (touch_data.points[i].x_h & 0xF) << 8 | touch_data.points[i].x_l; in touch_get_data() 25 points[i].y = (touch_data.points[i].y_h & 0xF) << 8 | touch_data.points[i].y_l; in touch_get_data()
|
| A D | hpm_ft5406.c | 47 hpm_stat_t ft5406_read_touch_data(ft5406_context_t *context, ft5406_touch_data_t *touch_data) in ft5406_read_touch_data() argument 49 …return ft5406_read_data(context, FT5406_GEST_ID, (uint8_t *)touch_data, sizeof(ft5406_touch_data_t… in ft5406_read_touch_data()
|
| A D | hpm_ft5406.h | 150 ft5406_touch_data_t *touch_data);
|
| /bsp/hpmicro/libraries/hpm_sdk/components/touch/gt911/ |
| A D | hpm_touch_gt911.c | 19 gt911_touch_data_t touch_data = {0}; in touch_get_data() local 22 stat = gt911_read_touch_data(>911, &touch_data); in touch_get_data() 28 if (GT911_GET_STATUS_BUFFER_STAT(touch_data.status) == 1) { in touch_get_data() 29 num = GT911_GET_STATUS_NUM_OF_POINTS(touch_data.status); in touch_get_data() 33 points[i].x = (touch_data.points[i].x_h & 0xF) << 8 | touch_data.points[i].x_l; in touch_get_data() 34 points[i].y = (touch_data.points[i].y_h & 0xF) << 8 | touch_data.points[i].y_l; in touch_get_data()
|
| A D | hpm_gt911.c | 120 gt911_touch_data_t *touch_data) in gt911_read_touch_data() argument 125 (uint8_t *)touch_data, sizeof(gt911_touch_data_t)); in gt911_read_touch_data()
|
| A D | hpm_gt911.h | 104 gt911_touch_data_t *touch_data);
|
| /bsp/hpmicro/libraries/hpm_sdk/components/touch/gt9xx/ |
| A D | hpm_touch_gt9xx.c | 19 gt9xx_touch_data_t touch_data = {0}; in touch_get_data() local 23 stat = gt9xx_read_touch_data(>9xx, &touch_data); in touch_get_data() 29 if (GT9XX_GET_STATUS_BUFFER_STAT(touch_data.status) == 1) { in touch_get_data() 30 num = GT9XX_GET_STATUS_NUM_OF_POINTS(touch_data.status); in touch_get_data() 34 points[i].x = (touch_data.points[i].x_h & 0xF) << 8 | touch_data.points[i].x_l; in touch_get_data() 35 points[i].y = (touch_data.points[i].y_h & 0xF) << 8 | touch_data.points[i].y_l; in touch_get_data()
|
| A D | hpm_gt9xx.c | 133 gt9xx_touch_data_t *touch_data) in gt9xx_read_touch_data() argument 138 (uint8_t *)touch_data, sizeof(gt9xx_touch_data_t)); in gt9xx_read_touch_data()
|
| A D | hpm_gt9xx.h | 110 gt9xx_touch_data_t *touch_data);
|
| /bsp/allwinner/libraries/drivers/touch/ |
| A D | drv_touch_gt9xx.c | 177 static rt_err_t gt9xx_read_point(struct rt_touch_data *touch_data, rt_size_t touch_num) in gt9xx_read_point() argument 192 touch_data->event = RT_TOUCH_EVENT_UP; in gt9xx_read_point() 196 touch_data->event = RT_TOUCH_EVENT_NONE; in gt9xx_read_point() 201 touch_data->x_coordinate = ((rt_uint16_t)buf[3] << 8) | buf[2]; in gt9xx_read_point() 202 touch_data->y_coordinate = ((rt_uint16_t)buf[5] << 8) | buf[4]; in gt9xx_read_point() 208 touch_data->event = RT_TOUCH_EVENT_MOVE; in gt9xx_read_point() 213 touch_data->event = RT_TOUCH_EVENT_DOWN; in gt9xx_read_point()
|
| A D | drv_touch.h | 23 rt_err_t (*read_point)(struct rt_touch_data *touch_data, rt_size_t touch_num);
|
| /bsp/nxp/lpc/lpc54608-LPCXpresso/drivers/ |
| A D | drv_ft5406.c | 166 ft5406_touch_data_t touch_data; in ft5406_read_touch() local 168 _ft5406_read(0, &touch_data, sizeof(ft5406_touch_data_t)); in ft5406_read_touch() 170 dp->TOUCH_X = TOUCH_POINT_GET_Y(touch_data.TOUCH); in ft5406_read_touch() 171 dp->TOUCH_Y = TOUCH_POINT_GET_X(touch_data.TOUCH); in ft5406_read_touch() 173 FTDEBUG(" ==> status : %d (%d, %d)\n", touch_data.TD_STATUS, dp->TOUCH_X, dp->TOUCH_Y); in ft5406_read_touch() 175 if (touch_data.TD_STATUS != 0) in ft5406_read_touch()
|
Completed in 18 milliseconds