| /bsp/mini2440/drivers/ |
| A D | touch.c | 138 if (touch->max_x > touch->min_x) in report_touch_input() 140 touch->x = touch->width * (ts.xp-touch->min_x)/(touch->max_x-touch->min_x); in report_touch_input() 144 touch->x = touch->width * ( touch->min_x - ts.xp ) / (touch->min_x-touch->max_x); in report_touch_input() 147 if (touch->max_y > touch->min_y) in report_touch_input() 149 touch->y = touch->height * ( ts.yp - touch->min_y ) / (touch->max_y-touch->min_y); in report_touch_input() 153 touch->y = touch->height * ( touch->min_y - ts.yp ) / (touch->min_y-touch->max_y); in report_touch_input() 209 if (touch->max_x > touch->min_x) in report_touch_input() 211 touch->x = touch->width * ( ts.xp - touch->min_x ) / (touch->max_x-touch->min_x); in report_touch_input() 215 touch->x = touch->width * ( touch->min_x - ts.xp ) / (touch->min_x-touch->max_x); in report_touch_input() 220 touch->y = touch->height * ( ts.yp - touch->min_y ) / (touch->max_y-touch->min_y); in report_touch_input() [all …]
|
| A D | SConscript | 30 src += ['touch.c']
|
| /bsp/loongson/ls1cdev/drivers/ |
| A D | touch.c | 215 if (touch != RT_NULL) in rtgui_touch_calculate() 283 rt_kprintf("touch->x:%d touch->y:%d\r\n", touch->x, touch->y); in rtgui_touch_calculate() 291 if (touch->max_x > touch->min_x) in rtgui_touch_calculate() 293 touch->x = (touch->x - touch->min_x) * X_WIDTH/(touch->max_x - touch->min_x); in rtgui_touch_calculate() 297 touch->x = (touch->min_x - touch->x) * X_WIDTH/(touch->min_x - touch->max_x); in rtgui_touch_calculate() 300 if (touch->max_y > touch->min_y) in rtgui_touch_calculate() 302 touch->y = (touch->y - touch->min_y) * Y_WIDTH /(touch->max_y - touch->min_y); in rtgui_touch_calculate() 306 touch->y = (touch->min_y - touch->y) * Y_WIDTH /(touch->min_y - touch->max_y); in rtgui_touch_calculate() 449 if ((touch->calibrating == RT_TRUE) && (touch->calibration_func != RT_NULL)) in touch_thread_entry() 572 touch->calibrating = false; in rtgui_touch_hw_init() [all …]
|
| /bsp/stm32/stm32f407-atk-explorer/board/ports/touch/ |
| A D | drv_touch_xpt.c | 41 if (touch == RT_NULL) in xpt2046_calibration() 72 touch->min_raw_x = 0; in xpt2046_calibration() 73 touch->min_raw_y = 0; in xpt2046_calibration() 74 touch->max_raw_x = 4096; in xpt2046_calibration() 75 touch->max_raw_y = 4096; in xpt2046_calibration() 76 touch->parent.info.range_x = 4096; in xpt2046_calibration() 140 touch->min_raw_x = min_x; in xpt2046_calibration() 141 touch->min_raw_y = min_y; in xpt2046_calibration() 142 touch->max_raw_x = max_x; in xpt2046_calibration() 143 touch->max_raw_y = max_y; in xpt2046_calibration() [all …]
|
| A D | drv_xpt2046_init.c | 39 rt_device_t touch = rt_device_find(TOUCH_DEVICE_NAME); in xpt2046_init_hw() local 40 if (touch == RT_NULL) in xpt2046_init_hw() 45 if (rt_device_open(touch, RT_DEVICE_FLAG_INT_RX) != RT_EOK) in xpt2046_init_hw() 67 rt_xpt2046_t tc = (rt_xpt2046_t)touch; in xpt2046_init_hw() 91 rt_device_t touch = rt_device_find(TOUCH_DEVICE_NAME); in xpt2046_entry() local 92 if (touch == RT_NULL) in xpt2046_entry() 110 if (rt_device_read(touch, 0, &read_data, 1) == 1) in xpt2046_entry()
|
| A D | drv_touch.c | 110 touch_drv_t touch = (touch_drv_t)parameter; in touch_thread_entry() local 113 touch->ops->isr_enable(RT_TRUE); in touch_thread_entry() 116 if (rt_sem_take(touch->isr_sem, 10) != RT_EOK) in touch_thread_entry() 121 while(touch->ops->read_point(&msg) == RT_EOK) in touch_thread_entry() 140 touch->ops->isr_enable(RT_TRUE); in touch_thread_entry()
|
| /bsp/stm32/stm32f407-atk-explorer/board/ports/ |
| A D | SConscript | 18 src += Glob('touch/drv_touch_ft.c') 19 src += Glob('touch/drv_touch.c') 20 path += [cwd + '/touch'] 23 src += Glob('touch/drv_touch_xpt.c') 24 src += Glob('touch/drv_xpt2046_init.c') 25 path += [cwd + '/touch']
|
| /bsp/stm32/stm32f429-st-disco/board/ports/touch/ |
| A D | drv_touch.c | 212 static struct rt_device touch; in rt_hw_touch_init() local 215 touch.type = RT_Device_Class_Unknown; in rt_hw_touch_init() 216 touch.init = stmpe811_touch_init; in rt_hw_touch_init() 217 touch.user_data = RT_NULL; in rt_hw_touch_init() 220 rt_device_register(&touch, "touch", RT_DEVICE_FLAG_RDWR); in rt_hw_touch_init()
|
| /bsp/allwinner/libraries/drivers/touch/ |
| A D | drv_touch.c | 102 rt_touch_t touch = (rt_touch_t)parameter; in touch_timeout_handle() local 103 rt_device_t device = &touch->parent; in touch_timeout_handle() 110 static rt_err_t tp_irq_handle(rt_touch_t touch) in tp_irq_handle() argument 113 device = &touch->parent; in tp_irq_handle() 155 static rt_ssize_t touch_readpoint(struct rt_touch_device *touch, void *buf, rt_size_t touch_num) in touch_readpoint() argument 160 device = &touch->parent; in touch_readpoint() 189 static rt_err_t touch_control(struct rt_touch_device *touch, int cmd, void *arg) in touch_control() argument
|
| A D | SConscript | 14 group = DefineGroup('touch', src, depend = ['BSP_USING_TOUCH'],LIBS = LIBS, LIBPATH = LIBPATH, CPPP…
|
| /bsp/nuvoton/libraries/nu_packages/TPC/ |
| A D | st1663i.c | 135 static rt_ssize_t st1663i_read_point(struct rt_touch_device *touch, void *buf, rt_size_t read_num) in st1663i_read_point() argument 142 RT_ASSERT(touch); in st1663i_read_point() 201 if (x >= touch->info.range_x || y >= touch->info.range_y) in st1663i_read_point() 204 0, x, touch->info.range_x, in st1663i_read_point() 205 0, y, touch->info.range_y); in st1663i_read_point() 230 static rt_err_t st1663i_control(struct rt_touch_device *touch, int cmd, void *arg) in st1663i_control() argument 239 rt_memcpy(info, &touch->info, sizeof(struct rt_touch_info)); in st1663i_control()
|
| A D | ft5446.c | 135 static rt_ssize_t ft5446_read_point(struct rt_touch_device *touch, void *buf, rt_size_t read_num) in ft5446_read_point() argument 142 RT_ASSERT(touch); in ft5446_read_point() 206 if (x >= touch->info.range_x || y >= touch->info.range_y) in ft5446_read_point() 209 0, x, touch->info.range_x, in ft5446_read_point() 210 0, y, touch->info.range_y); in ft5446_read_point() 235 static rt_err_t ft5446_control(struct rt_touch_device *touch, int cmd, void *arg) in ft5446_control() argument 244 rt_memcpy(info, &touch->info, sizeof(struct rt_touch_info)); in ft5446_control()
|
| A D | ili.c | 390 struct ili_ts_data *ts = (ili_ts_data_t)touch; in ili_read_point() 400 RT_ASSERT(touch); in ili_read_point() 453 uint32_t range_x = touch->info.range_x; in ili_read_point() 454 uint32_t range_y = touch->info.range_y; in ili_read_point() 497 static rt_err_t ili_control(struct rt_touch_device *touch, int cmd, void *arg) in ili_control() argument 513 touch->info.type = RT_TOUCH_TYPE_CAPACITANCE; in ili_control() 514 touch->info.vendor = RT_TOUCH_VENDOR_UNKNOWN; in ili_control() 515 touch->info.point_num = g_iliTsData.max_tp; in ili_control() 517 rt_memcpy(arg, &touch->info, sizeof(struct rt_touch_info)); in ili_control() 531 touch->info.range_x = range_x; in ili_control() [all …]
|
| /bsp/stm32/stm32l4r9-st-eval/board/ports/ |
| A D | drv_touch.c | 97 touch_drv_t touch = (touch_drv_t)parameter; in touch_thread_entry() local 100 touch->ops->isr_enable(RT_TRUE); in touch_thread_entry() 104 if (rt_sem_take(touch->isr_sem, 10) != RT_EOK) in touch_thread_entry() 108 while(touch->ops->read_point(&msg) == RT_EOK) in touch_thread_entry() 127 touch->ops->isr_enable(RT_TRUE); in touch_thread_entry()
|
| /bsp/nuvoton/libraries/nu_packages/ILI_TPC/ |
| A D | ili.c | 384 static rt_ssize_t ili_read_point(struct rt_touch_device *touch, void *buf, rt_size_t read_num) in ili_read_point() argument 388 struct ili_ts_data *ts = (ili_ts_data_t)touch; in ili_read_point() 447 uint32_t range_x = touch->info.range_x; in ili_read_point() 448 uint32_t range_y = touch->info.range_y; in ili_read_point() 489 static rt_err_t ili_control(struct rt_touch_device *touch, int cmd, void *arg) in ili_control() argument 505 touch->info.type = RT_TOUCH_TYPE_CAPACITANCE; in ili_control() 506 touch->info.vendor = RT_TOUCH_VENDOR_UNKNOWN; in ili_control() 507 touch->info.point_num = g_iliTsData.max_tp; in ili_control() 509 rt_memcpy(arg, &touch->info, sizeof(struct rt_touch_info)); in ili_control() 523 touch->info.range_x = range_x; in ili_control() [all …]
|
| /bsp/hpmicro/libraries/hpm_sdk/components/ |
| A D | SConscript | 11 path = [ os.path.join(cwd, 'debug_console'), os.path.join(cwd, 'touch'), os.path.join(cwd, 'usb'), … 20 src += [os.path.join(cwd, 'touch', 'gt9xx', 'hpm_touch_gt9xx.c') ] 21 src += [os.path.join(cwd, 'touch', 'gt9xx', 'hpm_gt9xx.c') ] 22 path += [ os.path.join(cwd, 'touch', 'gt9xx') ] 25 src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_touch_ft5406.c') ] 26 src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_ft5406.c') ] 27 path += [ os.path.join(cwd, 'touch', 'ft5406') ]
|
| /bsp/loongson/ls1cdev/ |
| A D | Kconfig | 100 bool "with no touch" 104 bool "with XPT2046 touch" 108 bool "with TINA touch"
|
| /bsp/renesas/ra2l1-cpk/docs/ |
| A D | Captouch板载触摸按键配置说明.md | 83 …/www.renesas.com/cn/zh/software-tool/qe-capacitive-touch-development-assistance-tool-capacitive-to… 91 进入目录 eclipse,找到qe-touch.exe双击打开。 153 可以看到命令行打印出日志信息,touch功能的sample已启动。
|
| /bsp/stm32/stm32f429-st-disco/board/ports/ |
| A D | SConscript | 18 src += Glob('touch/drv_touch.c') 19 path = [cwd + '/touch']
|
| /bsp/raspberry-pi/raspi4-32/driver/touch/ |
| A D | drv_dsi_touch.c | 39 struct touch struct 79 static rt_ssize_t dsi_read_point(struct rt_touch_device *touch, void *buf, rt_size_t read_num) in dsi_read_point() argument
|
| /bsp/raspberry-pi/raspi4-64/drivers/ |
| A D | drv_dsi_touch.c | 51 struct touch struct 137 static rt_size_t dsi_read_point(struct rt_touch_device *touch, void *buf, rt_size_t read_num) in dsi_read_point() argument
|
| /bsp/nxp/lpc/lpc55sxx/Libraries/drivers/sample/ |
| A D | touch_sample.c | 47 MSH_CMD_EXPORT(touch_sample, the capt touch test);
|
| /bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/ |
| A D | link.icf | 1 /*###ICF### Section handled by ICF editor, don't touch! ****/
|
| /bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/ |
| A D | link.icf | 1 /*###ICF### Section handled by ICF editor, don't touch! ****/
|
| /bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/ |
| A D | link.icf | 1 /*###ICF### Section handled by ICF editor, don't touch! ****/
|