Home
last modified time | relevance | path

Searched refs:touch_device (Results 1 – 12 of 12) sorted by relevance

/bsp/allwinner/libraries/drivers/touch/
A Ddrv_touch.c34 static struct rt_touch_device touch_device; variable
212 if (RT_NULL != touch_device.parent.rx_indicate) in touch_poll_entry()
215 touch_device.parent.rx_indicate(&touch_device.parent, 1); in touch_poll_entry()
303 touch_device.info.type = RT_TOUCH_TYPE_CAPACITANCE; in rt_touch_init()
305 touch_device.info.point_num = 1; in rt_touch_init()
306 touch_device.info.range_x = 480; in rt_touch_init()
307 touch_device.info.range_y = 272; in rt_touch_init()
308 touch_device.config.user_data = RT_NULL; in rt_touch_init()
309 touch_device.ops = &touch_ops; in rt_touch_init()
310 touch_device.irq_handle = tp_irq_handle; in rt_touch_init()
[all …]
/bsp/raspberry-pi/raspi4-32/driver/touch/
A Ddrv_dsi_touch.c20 static rt_touch_t touch_device = RT_NULL; variable
118 touch_device = (rt_touch_t)rt_calloc(1, sizeof(struct rt_touch_device)); in hw_dsi_touch_init()
120 if (touch_device == RT_NULL) in hw_dsi_touch_init()
124 touch_device->info.type = RT_TOUCH_TYPE_RESISTANCE; in hw_dsi_touch_init()
125 touch_device->info.vendor = RT_TOUCH_VENDOR_UNKNOWN; in hw_dsi_touch_init()
127 touch_device->ops = &dsi_touch_ops; in hw_dsi_touch_init()
128 rt_hw_touch_register(touch_device, "dsi_touch", RT_DEVICE_FLAG_INT_RX, RT_NULL); in hw_dsi_touch_init()
A Ddrv_xpt2046.c34 static rt_touch_t touch_device = RT_NULL; variable
236 touch_device = (rt_touch_t)rt_calloc(1, sizeof(struct rt_touch_device)); in hw_xpt2046_touch_init()
238 if (touch_device == RT_NULL) in hw_xpt2046_touch_init()
242 touch_device->info.type = RT_TOUCH_TYPE_RESISTANCE; in hw_xpt2046_touch_init()
243 touch_device->info.vendor = RT_TOUCH_VENDOR_UNKNOWN; in hw_xpt2046_touch_init()
245 touch_device->ops = &touch_ops; in hw_xpt2046_touch_init()
247 rt_hw_touch_register(touch_device, "xpt2046", RT_DEVICE_FLAG_INT_RX, RT_NULL); in hw_xpt2046_touch_init()
/bsp/nuvoton/libraries/nu_packages/TPC/
A Dst1663i.c271 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_st1663i_init() local
275 if (touch_device == RT_NULL) in rt_hw_st1663i_init()
280 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_st1663i_init()
323 touch_device->info.type = RT_TOUCH_TYPE_CAPACITANCE; in rt_hw_st1663i_init()
324 touch_device->info.vendor = RT_TOUCH_VENDOR_UNKNOWN; in rt_hw_st1663i_init()
325 touch_device->info.range_x = BSP_LCD_WIDTH; in rt_hw_st1663i_init()
326 touch_device->info.range_y = BSP_LCD_HEIGHT; in rt_hw_st1663i_init()
327 touch_device->info.point_num = ST_MAX_TOUCH; in rt_hw_st1663i_init()
329 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_st1663i_init()
330 touch_device->ops = &st1663i_touch_ops; in rt_hw_st1663i_init()
[all …]
A Dft5446.c276 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_ft5446_init() local
280 if (touch_device == RT_NULL) in rt_hw_ft5446_init()
285 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_ft5446_init()
328 touch_device->info.type = RT_TOUCH_TYPE_CAPACITANCE; in rt_hw_ft5446_init()
329 touch_device->info.vendor = RT_TOUCH_VENDOR_FT; in rt_hw_ft5446_init()
330 touch_device->info.range_x = BSP_LCD_WIDTH; in rt_hw_ft5446_init()
331 touch_device->info.range_y = BSP_LCD_HEIGHT; in rt_hw_ft5446_init()
332 touch_device->info.point_num = FT_MAX_TOUCH; in rt_hw_ft5446_init()
334 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_ft5446_init()
335 touch_device->ops = &ft5446_touch_ops; in rt_hw_ft5446_init()
[all …]
A Dgt911.c424 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_gt911_init() local
427 touch_device = (struct rt_touch_device *)rt_malloc(sizeof(struct rt_touch_device)); in rt_hw_gt911_init()
428 if (touch_device == RT_NULL) in rt_hw_gt911_init()
433 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_gt911_init()
477 touch_device->info.type = RT_TOUCH_TYPE_CAPACITANCE; in rt_hw_gt911_init()
478 touch_device->info.vendor = RT_TOUCH_VENDOR_GT; in rt_hw_gt911_init()
479 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_gt911_init()
480 touch_device->ops = &gt911_touch_ops; in rt_hw_gt911_init()
482 rt_hw_touch_register(touch_device, name, RT_DEVICE_FLAG_INT_RX, RT_NULL); in rt_hw_gt911_init()
A Dili.c49 struct rt_touch_device touch_device; member
587 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_ili_tpc_init() local
590 touch_device = (struct rt_touch_device *)&g_iliTsData.touch_device; in rt_hw_ili_tpc_init()
591 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_ili_tpc_init()
625 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_ili_tpc_init()
626 touch_device->ops = &ili_touch_ops; in rt_hw_ili_tpc_init()
627 if (rt_hw_touch_register(touch_device, name, RT_DEVICE_FLAG_INT_RX, RT_NULL) != RT_EOK) in rt_hw_ili_tpc_init()
642 if (ili_get_info(&g_iliTsData, &touch_device->info) != RT_EOK) in rt_hw_ili_tpc_init()
/bsp/raspberry-pi/raspi4-64/drivers/
A Ddrv_dsi_touch.c32 static rt_touch_t touch_device = RT_NULL; variable
227 touch_device = (rt_touch_t)rt_malloc(sizeof(struct rt_touch_device)); in hw_dsi_touch_init()
229 if (touch_device == RT_NULL) in hw_dsi_touch_init()
235 touch_device->info.type = RT_TOUCH_TYPE_RESISTANCE; in hw_dsi_touch_init()
236 touch_device->info.vendor = RT_TOUCH_VENDOR_UNKNOWN; in hw_dsi_touch_init()
238 touch_device->ops = &dsi_touch_ops; in hw_dsi_touch_init()
239 rt_hw_touch_register(touch_device, "dsi_touch", RT_DEVICE_FLAG_INT_RX, RT_NULL); in hw_dsi_touch_init()
/bsp/renesas/ra6m3-hmi-board/board/ports/touch/gt911/src/
A Dgt911.c452 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_gt911_init() local
454 touch_device = (struct rt_touch_device *)rt_malloc(sizeof(struct rt_touch_device)); in rt_hw_gt911_init()
455 if (touch_device == RT_NULL) in rt_hw_gt911_init()
460 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_gt911_init()
503 touch_device->info.type = RT_TOUCH_TYPE_CAPACITANCE; in rt_hw_gt911_init()
504 touch_device->info.vendor = RT_TOUCH_VENDOR_GT; in rt_hw_gt911_init()
505 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_gt911_init()
506 touch_device->ops = &gt911_touch_ops; in rt_hw_gt911_init()
508 rt_hw_touch_register(touch_device, name, RT_DEVICE_FLAG_INT_RX, RT_NULL); in rt_hw_gt911_init()
/bsp/nxp/imx/imx6ull-smart/drivers/
A Ddrv_touch.c438 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_gt911_init() local
440 touch_device = (struct rt_touch_device *)rt_malloc(sizeof(struct rt_touch_device)); in rt_hw_gt911_init()
441 if(touch_device == RT_NULL) in rt_hw_gt911_init()
446 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_gt911_init()
476 touch_device->info.type = RT_TOUCH_TYPE_CAPACITANCE; in rt_hw_gt911_init()
477 touch_device->info.vendor = RT_TOUCH_VENDOR_GT; in rt_hw_gt911_init()
478 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_gt911_init()
479 touch_device->ops = &gt911_touch_ops; in rt_hw_gt911_init()
481 rt_hw_touch_register(touch_device, name, RT_DEVICE_FLAG_INT_RX, RT_NULL); in rt_hw_gt911_init()
/bsp/nuvoton/libraries/nu_packages/ILI_TPC/
A Dili.c49 struct rt_touch_device touch_device; member
579 struct rt_touch_device *touch_device = RT_NULL; in rt_hw_ili_tpc_init() local
582 touch_device = (struct rt_touch_device *)&g_iliTsData.touch_device; in rt_hw_ili_tpc_init()
583 rt_memset((void *)touch_device, 0, sizeof(struct rt_touch_device)); in rt_hw_ili_tpc_init()
611 rt_memcpy(&touch_device->config, cfg, sizeof(struct rt_touch_config)); in rt_hw_ili_tpc_init()
612 touch_device->ops = &ili_touch_ops; in rt_hw_ili_tpc_init()
613 if (rt_hw_touch_register(touch_device, name, RT_DEVICE_FLAG_INT_RX, RT_NULL) != RT_EOK) in rt_hw_ili_tpc_init()
628 if (ili_get_info(&g_iliTsData, &touch_device->info) != RT_EOK) in rt_hw_ili_tpc_init()
/bsp/loongson/ls1cdev/drivers/
A Dtouch.c365 struct rtgui_touch_device * touch_device = (struct rtgui_touch_device *)dev; in rtgui_touch_init() local

Completed in 30 milliseconds