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

PSoC™ 4 Forum Discussions

NaMo_1534561
Level 5
Level 5
100 replies posted 100 sign-ins 50 replies posted

Hello,

According to the history of CapSense component Ver7, version 7 is not compatible with the previous version.

Please tell me the API changed from version 6 specifically.

Component Changes

”This version is not backward compatible with the previous version. We tried to keep the established API, but your design may need to be updated to operate with v7.0.”

Best Regards,

Naoaki Morimoto

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

Hello NaMo_1534561

As mentioned previously, BIST was redesigned for improved performance and reliability.

The following functions were added:

     cystatus CapSense_SetupWidgetExt(uint32 widgetId, uint32 sensorId)

     cystatus CapSense_ScanExt(void)

     uint32_t CapSense_SetInactiveElectrodeState(CapSense_OPERATION_MODE_ENUM mode, uint32_t state)

The return type of CapSense_CSXCalibrateWidget(uint32 widgetId, uint16 target) was changed from void to cystatus.

A few functions are marked as deprecated but not removed. You can still use these functions but it is recommended to move to the new function. These functions have the following text in as note in description: This function is obsolete and kept for backward compatibility only. The <corresponding new function> function should be used instead.

Thanks,
Hari

View solution in original post

0 Likes
4 Replies
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello NaMo_1534561

Most of the APIs are backwards compatible. The note is regarding BIST APIs. All BIST APIs are modified in CapSense V7.0 component to include CapSense_TST_MEASUREMENT_STATUS_ENUM * measurementStatusPtr as a parameter to return the status of measurement.

This includes returning information such as CapSense_TST_MEASUREMENT_SUCCESS, CapSense_TST_MEASUREMENT_LOW_LIMIT etc.

Thanks,
Hari

0 Likes

Hello Hari-san,

Thank you for your reply. I understand that BIST has many changes.

Also, I found the following description in the component datasheet ver7.

void CapSense_CSDScanExt (void)

void CapSense_CSDSetupWidgetExt (uint32 widgetId, uint32 sensorId)

This function is obsolete and kept for backward compatibility only. The CapSense_ScanExt() and CapSense_SetupWidgetExt() function should be used instead.

This is also true for CSX.

I would like to provide a complete list of changes.

Best Regards,

Naoaki Morimoto

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

Hello NaMo_1534561

As mentioned previously, BIST was redesigned for improved performance and reliability.

The following functions were added:

     cystatus CapSense_SetupWidgetExt(uint32 widgetId, uint32 sensorId)

     cystatus CapSense_ScanExt(void)

     uint32_t CapSense_SetInactiveElectrodeState(CapSense_OPERATION_MODE_ENUM mode, uint32_t state)

The return type of CapSense_CSXCalibrateWidget(uint32 widgetId, uint16 target) was changed from void to cystatus.

A few functions are marked as deprecated but not removed. You can still use these functions but it is recommended to move to the new function. These functions have the following text in as note in description: This function is obsolete and kept for backward compatibility only. The <corresponding new function> function should be used instead.

Thanks,
Hari

0 Likes

Hari-san,

Thank you for the answer.

Please close this case.

Best Regards,

Naoaki Morimoto

0 Likes