cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

YoIs_1298666
Contributor II

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

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

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
YoIs_1298666
Contributor II

Hello Shanmathi-san,

I greatly appreciate your kindness.

Best regards,

Yocchi

0 Likes