static uint32 CapSense_ExecuteSnsShort(uint32 wdgtId, uint32 snsId)

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

cross mob
Fayne_Meng
Level 4
Level 4
Distributor - Weikeng(GC)
100 sign-ins First like received 10 likes given

Hi,

    如题,这个函数是用来检测sensor对GND/VDD短路的,请问如果检测到短路的话,是什么原因会出现这种情况,是因为软件配置的充放电参数不合理还是ITO膜片制作的有问题?请给解答一下,谢谢。

0 Likes
1 Solution
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

这个比较底层的函数,不建议你直接调用。检测短路请使用 static uint32 CapSense_SnsShortCheckSensor(uint32 widgetId, uint32 sensorId, uint32 mode) 这个函数。函数介绍如下:

/*******************************************************************************

        * Function Name: CapSense_SnsShortCheckSensor

        ****************************************************************************//**

        *

        * \brief

        *  Check if the specified sensor is shorted to VDD or GND level by configuring

        *  each of its electrode to pull-up or pull-down and check its state.

        *

        * \details

        *  Check if the specified sensor is shorted to VDD or GND level by connfiguring

        *  each of its electrodes to pull-up or pull-down and check its state.

        *  An additional delay is added between configuring the electrode and

        *  reading its state to establish the transition process for cases

        *  with big capacitance and short resistance.

        *  The function assumes all rest electrodes are set to strong drive mode,

        *  so the sensor-to-sensor short condition is also detected.

        *

        * \param widgetId

        *  Specifies the ID number of the widget to be processed.

        *

        * \param sensorId

        *  Specifies the ID number of the sensor within the widget

        *  to be processed.

        *

        * \param mode

        *  Specifies the test mode, either:

        *  * CapSense_TST_DR_PIN2GND means sensor is configured

        *    to pull-up and checked for logical 0

        *  * CapSense_TST_DR_PIN2VDD means sensor is configured

        *    to pull-down and checked for logical 1

        *

        * \return

        *  Returns the status of the test processing:

        *  - CYRET_SUCCESS if the sensor of the widget is not shorted.

        *  - CapSense_TST_SNS_SHORT if the sensor is shorted.

        *

        *******************************************************************************/

View solution in original post

0 Likes
1 Reply
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

这个比较底层的函数,不建议你直接调用。检测短路请使用 static uint32 CapSense_SnsShortCheckSensor(uint32 widgetId, uint32 sensorId, uint32 mode) 这个函数。函数介绍如下:

/*******************************************************************************

        * Function Name: CapSense_SnsShortCheckSensor

        ****************************************************************************//**

        *

        * \brief

        *  Check if the specified sensor is shorted to VDD or GND level by configuring

        *  each of its electrode to pull-up or pull-down and check its state.

        *

        * \details

        *  Check if the specified sensor is shorted to VDD or GND level by connfiguring

        *  each of its electrodes to pull-up or pull-down and check its state.

        *  An additional delay is added between configuring the electrode and

        *  reading its state to establish the transition process for cases

        *  with big capacitance and short resistance.

        *  The function assumes all rest electrodes are set to strong drive mode,

        *  so the sensor-to-sensor short condition is also detected.

        *

        * \param widgetId

        *  Specifies the ID number of the widget to be processed.

        *

        * \param sensorId

        *  Specifies the ID number of the sensor within the widget

        *  to be processed.

        *

        * \param mode

        *  Specifies the test mode, either:

        *  * CapSense_TST_DR_PIN2GND means sensor is configured

        *    to pull-up and checked for logical 0

        *  * CapSense_TST_DR_PIN2VDD means sensor is configured

        *    to pull-down and checked for logical 1

        *

        * \return

        *  Returns the status of the test processing:

        *  - CYRET_SUCCESS if the sensor of the widget is not shorted.

        *  - CapSense_TST_SNS_SHORT if the sensor is shorted.

        *

        *******************************************************************************/

0 Likes