BoosterPack的寄存器ctsStatusReg 问题???

[复制链接]
2199|3
 楼主| h0610001210 发表于 2012-6-20 20:52 | 显示全部楼层 |阅读模式
在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

粉丝
快速回复 在线客服 返回列表 返回顶部