2.3 Low Power APIs

The APIs defined in this sections are applicable only if low-power feature is used. Not all APIs are available for all devices.

void touch_configure_pm_supc(void)

Description: Additional configuration on PM and SUPC peripherals are done in this function.

Parameters:None

Return:None

void touch_disable_lowpower_measurement(void)

Description: Disables PTC low-power measurement. Reconfigure RTC to give interrupt every active-measurement-period. Disables EVSYS incase of EVSYS low-power measurement.

Parameters:None

Return:None

void touch_enable_lowpower_measurement(void)

Description: Enables PTC low-power measurement. Reconfigure RTC to give interrupt every drift-measurement-period. Enables EVSYS incase of EVSYS low-power measurement.

Parameters:None

Return:None

void touch_process_lowpower(void)

Description: Similar to touch_process(), this function monitors various flags and execute the low-power related APIs as per different flags. This function is also responsible for calling qtm_autoscan_sensor_node(), qtm_autoscan_node_cancel() APIs and other low-power related APIs discussed in this document.

Parameters:None

Return:None

void touch_disable_nonlp_sensors(void)

Description: Except low-power sensor, suspends all the sensors by calling qtm_key_suspend().

Parameters:None

Return:None

void touch_enable_nonlp_sensors(void)

Description: Except low-power sensor, reenables all the sensors by calling qtm_key_resume().

Parameters:None

Return:None

void touch_measure_wcomp_match(void)

Description:This is the callback function passed to 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