- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the following
the function:
uint32_t Cy_CapSense_IsAnyWidgetActive(const cy_stc_capsense_context_t * context)
returned result is always at maximum one widget, cause the CY_CAPSENSE_WD_ACTIVE_MASK
define.
Is right? because on previous libraries, with PsocCreator Components, this function can returned all widgets mask
Solved! Go to Solution.
- Labels:
-
CapSense
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are correct; However, the API is for telling whether or not any widget out of all the widgets, is active. More like Yes or No. We will work internally to update the API description.
Returns the touch detection status of all the widgets:
- Zero - No touch is detected in any of the widgets or sensors.
- Non-zero - At least one widget or sensor has detected a touch.
Non-Zero, all the widgets could be creating the confusion here.
Thanks!
Kind Regards
Arpit Srivastav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @riccardo-monty ,
Can you please guide which ModusToolbox version are you using? In the meantime, I'll go through the documentation and will try to replicate the issue at my end.
Thanks!
Kind regards
Arpit Srivastav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using ModusToolbox 3.0.
what I'm expecting from that istruction is this:
capStatus |= (((uint32)(cy_capsense_context.ptrWdContext[wdIndex].status & CY_CAPSENSE_WD_ACTIVE_MASK)) << wdIndex);
but the bit left-shift is missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are correct; However, the API is for telling whether or not any widget out of all the widgets, is active. More like Yes or No. We will work internally to update the API description.
Returns the touch detection status of all the widgets:
- Zero - No touch is detected in any of the widgets or sensors.
- Non-zero - At least one widget or sensor has detected a touch.
Non-Zero, all the widgets could be creating the confusion here.
Thanks!
Kind Regards
Arpit Srivastav