3.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 the 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, and reconfigures RTC to give interrupt every active-measurement-period. This routine EVSYS in case of EVSYS low-power measurement.

Parameters:None.

Return:None.

void touch_enable_lowpower_measurement(void)

Description: Enables PTC low-power measurement, and reconfigures RTC to give interrupt every drift-measurement period. This routine EVSYS in case of EVSYS low-power measurement.

Parameters: None.

Return: None.

void touch_process_lowpower(void)

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

Parameters: None.

Return: None.

void touch_disable_nonlp_sensors(void)

Description: Suspends all the sensors by calling qtm_key_suspend(), except for the low-power sensor.

Parameters:None.

Return: None.

void touch_enable_nonlp_sensors(void)

Description: Reenables all the sensors by calling qtm_key_resume(), except for the low-power sensor.

Parameters: None.

Return: None.

void touch_measure_wcomp_match(void)

Description: Callback function passed to the qtm_autoscan_sensor_node() API, and called when a touch is detected during low-power measurement. In this routine, low-power measurement is disabled and active measurement is enabled.

Parameters: None.

Return: None.