![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* linux/spi/ads7846.h */ 0003 0004 struct ads7846_platform_data { 0005 u16 model; /* 7843, 7845, 7846, 7873. */ 0006 u16 vref_delay_usecs; /* 0 for external vref; etc */ 0007 u16 vref_mv; /* external vref value, milliVolts 0008 * ads7846: if 0, use internal vref */ 0009 bool keep_vref_on; /* set to keep vref on for differential 0010 * measurements as well */ 0011 bool swap_xy; /* swap x and y axes */ 0012 0013 /* Settling time of the analog signals; a function of Vcc and the 0014 * capacitance on the X/Y drivers. If set to non-zero, two samples 0015 * are taken with settle_delay us apart, and the second one is used. 0016 * ~150 uSec with 0.01uF caps. 0017 */ 0018 u16 settle_delay_usecs; 0019 0020 /* If set to non-zero, after samples are taken this delay is applied 0021 * and penirq is rechecked, to help avoid false events. This value 0022 * is affected by the material used to build the touch layer. 0023 */ 0024 u16 penirq_recheck_delay_usecs; 0025 0026 u16 x_plate_ohms; 0027 u16 y_plate_ohms; 0028 0029 u16 x_min, x_max; 0030 u16 y_min, y_max; 0031 u16 pressure_min, pressure_max; 0032 0033 u16 debounce_max; /* max number of additional readings 0034 * per sample */ 0035 u16 debounce_tol; /* tolerance used for filtering */ 0036 u16 debounce_rep; /* additional consecutive good readings 0037 * required after the first two */ 0038 int gpio_pendown; /* the GPIO used to decide the pendown 0039 * state if get_pendown_state == NULL */ 0040 int gpio_pendown_debounce; /* platform specific debounce time for 0041 * the gpio_pendown */ 0042 int (*get_pendown_state)(void); 0043 void (*wait_for_sync)(void); 0044 bool wakeup; 0045 unsigned long irq_flags; 0046 }; 0047
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |