| /bsp/allwinner/libraries/drivers/touch/ |
| A D | drv_touch.c | 34 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 D | drv_dsi_touch.c | 20 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 D | drv_xpt2046.c | 34 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 D | st1663i.c | 271 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 D | ft5446.c | 276 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 D | gt911.c | 424 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 = >911_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 D | ili.c | 49 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 D | drv_dsi_touch.c | 32 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 D | gt911.c | 452 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 = >911_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 D | drv_touch.c | 438 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 = >911_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 D | ili.c | 49 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 D | touch.c | 365 struct rtgui_touch_device * touch_device = (struct rtgui_touch_device *)dev; in rtgui_touch_init() local
|