Read Capsense finger signal

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AdamCheng
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Hi everyone,

 

When I press button.

I want to read Capsense finger signal value and output to another software .

Which is finger signal in capsense data structure ?

 

 

0 Likes
1 Solution
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @AdamCheng

 

You can read the CapSense raw counts or difference counts (diff counts is the signal level that you see when touched. It is 0 when not touched and raw - baseline when touched) by using the CapSense_GetParam API. This returns the values and the param ID can be found in CapSense_RegisterMap.h file. 

You can also read the value directly from the data structure. It is present in the following location - 

CapSense_dsRam.snsList.<wdgtid>[0u].raw[0u]

CapSense_dsRam.snsList.<wdgtid>[0u].diff

 

Best regards, 
Hari

View solution in original post

2 Replies
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @AdamCheng

 

You can read the CapSense raw counts or difference counts (diff counts is the signal level that you see when touched. It is 0 when not touched and raw - baseline when touched) by using the CapSense_GetParam API. This returns the values and the param ID can be found in CapSense_RegisterMap.h file. 

You can also read the value directly from the data structure. It is present in the following location - 

CapSense_dsRam.snsList.<wdgtid>[0u].raw[0u]

CapSense_dsRam.snsList.<wdgtid>[0u].diff

 

Best regards, 
Hari

AdamCheng
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Dear Hari,

Thank you for the information.

0 Likes