About CapSense_SetParam

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

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

We want to change paramId of CapSense V4.10.

We can use cystatus CapSense_SetParam (uint32  paramId, uint32  value).

We refer to "https://community.cypress.com/docs/DOC-14510 ".

In this code, there is "CapSense_Start()" again after "CapSense_SetParam()".

pastedImage_10.png

I tried to write "CapSense_SetParam()" without repeating "CapSense_Start()".

It can run well.

Do we need to repeat "CapSense_Start()"?

    CapSense_Start();                  /* Initialize CapSense Component */

    CapSense_SetParam (CapSense_BUTTON0_FINGER_TH_PARAM_ID, 150);

    CapSense_ScanAllWidgets();             /* Scan all widgets */

    for(;;)

    {

       ...

     }

Best regards,

Yocchi

0 Likes
1 Solution
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hello,

You can export the register map by opening the CapSense component configuration GUI and clicking on Export Register Map.

In the register map, for each register, you can check if re-init is required or not. If re-init is not required for the register you wish to modify, then you need not call CapSense_Start(). Otherwise, you will have to.

Thanks,
Shanmathi

View solution in original post

0 Likes
2 Replies
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hello,

You can export the register map by opening the CapSense component configuration GUI and clicking on Export Register Map.

In the register map, for each register, you can check if re-init is required or not. If re-init is not required for the register you wish to modify, then you need not call CapSense_Start(). Otherwise, you will have to.

Thanks,
Shanmathi

0 Likes

Hello Shanmathi-san,

I greatly appreciate your kindness.

Best regards,

Yocchi

0 Likes