打印

BoosterPack的寄存器ctsStatusReg 问题???

[复制链接]
1437|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
在TI的官方库中ctsStatusReg 这个寄存器的DOI位是这样定义的:DOI Bit 1 Direction of interest:
0: Increasing capacitance                 //这个位为0表示感兴趣的方向是电容增加
1: Decreasing capacitance               //这个位为1表示感兴趣的方向是电容减小

但是库中有这么一个函数,感到纳闷:
void TI_CAPT_Update_Tracking_DOI(uint8_t direction)

{

if(direction)


{


ctsStatusReg |= DOI_INC;         //direction of interest is an increase in capacitance.


}


else


{


ctsStatusReg &= ~DOI_INC;   //direction of interest is a decrease in capacitance.


}
}

Inputs: The direction of interest.
Outputs: None.
Function: If the input is true (non-zero), then the direction of interest is an increase in capacitance. If the
input is 0x00, then the direction of interest is a decrease in capacitance.


这两者岂不是矛盾了,坐等大侠指点迷津


相关帖子

沙发
捡漏王子| | 2012-6-20 21:34 | 只看该作者
感觉确实矛盾,没搞明白,坐等大侠来解答

使用特权

评论回复
板凳
h0610001210|  楼主 | 2012-6-21 11:30 | 只看该作者
论坛里这么多人收到那开发板,大家都还没有开始研究触摸板么,我又看了文档和程序,发现还是有矛盾。

使用特权

评论回复
地板
onlyrcy| | 2012-6-21 12:41 | 只看该作者
有开发板的可以更改程序进行跟踪测试下

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

17

主题

133

帖子

2

粉丝