TI中文支持网
TI专业的中文技术问题搜集分享网站

请教个触摸屏 配置的 “ steps_to_configure ”这个参数的意义的问题,谢谢!

最近偶然看了下 AM335x 的TSc controller的代码,在 4-wire TSC with 4 general-purpose ADC channels 模式下,为什么steps_to_configure 的赋值是5?

我跟了下代码,发现在tscadc_probe()中 将 这个配置值steps_to_config * 2 + 1 写进了 TSCADC_REG_FIFO0THR去,看手册也没一时搞明白。还得请教下IT诸位给个简明的解答,谢谢

/* TSc controller */
static struct tsc_data am335x_touchscreen_data = {
.wires = 4,//四线电阻: 横向X1,X2,纵向Y1,Y2,四条电阻线构成
.x_plate_resistance = 200,
.steps_to_configure = 5,
};

static struct adc_data am335x_adc_data = {
.adc_channels = 4,
};

Steven Liu1:

哪个版本的Linux code?这个应该是配置采样的步数吧。一个点下去了后,有很多step的采样,印象中之前EZSDK 6.0中的貌似是14个step,6个X,6个Y,2个Z。

赞(0)
未经允许不得转载:TI中文支持网 » 请教个触摸屏 配置的 “ steps_to_configure ”这个参数的意义的问题,谢谢!
分享到: 更多 (0)