CapSense_Wakeup API for Sleep Functionality – KBA210732

Version 4

    Version: *A


    Translation - Japanese: スリープ機能用のCapSense_Wakeup API – KBA210732- Community Translated (JA)



    How to use the CapSense® and the Sleep modes together in CapSense® CSD component? 



    The user modules will be started after the device wakes up from sleep. However, in PSoC 3, PSoC 4, and PSoC 5LP devices, CapSense has a special API – CapSense_Wakeup() that should be called after waking up from deep sleep power mode.

    The difference between CapSense_Start() and  CapSense_Wakeup() is that the Start function will configure all the hardware connections and configuration of CapSense, and initialize the registers of the CapSense variables such as finger threshold, noise threshold, and debounce. Whereas, CapSense_Wakeup() function just restores the hardware connections and configuration of CapSense. The initialization of the variables after deep sleep might cause unexpected behavior in the CapSense functionality.