Low-Power Application Programming Interfaces (APIs)
DO_NOT_REMOVE
The Application Programming Interfaces (APIs) defined in this section are applicable only if the low-power feature is used. Not all APIs are available for all devices.
touch_configure_pm_supc
Description: Additional configuration on Power Manager (PM) and Supply Controller (SUPC) peripherals are done in this function.
Parameters: None
Return: None
touch_disable_lowpower_measurement
Description: This function disables the Peripheral Touch Controller (PTC) low-power measurement. It reconfigures the Real-Time Clock (RTC) to generate an interrupt every active-measurement period. It also disables the Event System (EVSYS) in case EVSYS low-power measurement is being used.
Parameters: None
Return: None
touch_enable_lowpower_measurement
Description: This function enables the PTC low-power measurement. It reconfigures the RTC to generate an interrupt every drift-measurement period. It also enables the EVSYS in case EVSYS low-power measurement is being used.
Parameters: None
Return: None
touch_process_lowpower
Description: Similar to touch_process(), this function monitors various flags and executes the low-power related APIs as per different flags. This function is also responsible for calling the qtm_autoscan_sensor_node() and qtm_autoscan_node_cancel() APIs and other low-power related APIs discussed in this document.
Parameters: None
Return: None
touch_disable_nonlp_sensors
Description: This function suspends all sensors except the low-power sensor by calling qtm_key_suspend().
Parameters: None
Return: None
touch_enable_nonlp_sensors
Description: This function reenables all sensors except the low-power sensor by calling qtm_key_resume().
Parameters: None
Return: None
touch_measure_wcomp_match
Description: This is the callback function passed to the qtm_autoscan_sensor_node() API. When a touch is detected during low-power measurement, this function will be called. In this function, low-power measurement is disabled and active measurement is enabled.
Parameters: None
Return: None