|
Zephyr API Documentation 4.4.0
A Scalable Open Source RTOS
|
Public API for the Microchip PTC driver. More...
Go to the source code of this file.
Macros | |
| #define | QTM_KEY_STATE_DISABLE 0x00u |
| Disabled sensor state. | |
| #define | QTM_KEY_STATE_INIT 0x01u |
| Sensor initialization state. | |
| #define | QTM_KEY_STATE_CAL 0x02u |
| Sensor calibration state. | |
| #define | QTM_KEY_STATE_NO_DET 0x03u |
| No-touch-detected sensor state. | |
| #define | QTM_KEY_STATE_FILT_IN 0x04u |
| Touch filter-in state. | |
| #define | QTM_KEY_STATE_DETECT 0x85u |
| Touch-detected sensor state. | |
| #define | QTM_KEY_STATE_FILT_OUT 0x86u |
| Touch filter-out state. | |
| #define | QTM_KEY_STATE_ANTI_TCH 0x07u |
| Anti-touch sensor state. | |
| #define | QTM_KEY_STATE_SUSPEND 0x08u |
| Sensor suspend state. | |
| #define | QTM_KEY_STATE_CAL_ERR 0x09u |
| Sensor calibration-error state. | |
| #define | KEY_TOUCHED_MASK 0x80u |
| Mask for the logical in-detect state. | |
Functions | |
| uint16_t | get_sensor_node_signal (const struct device *dev, uint16_t sensor_node) |
| Get the signal value of a sensor node. | |
| void | update_sensor_node_signal (const struct device *dev, uint16_t sensor_node, uint16_t new_signal) |
| Update the signal value of a sensor node. | |
| uint16_t | get_sensor_node_reference (const struct device *dev, uint16_t sensor_node) |
| Get the reference value of a sensor node. | |
| void | update_sensor_node_reference (const struct device *dev, uint16_t sensor_node, uint16_t new_reference) |
| Update the reference value of a sensor node. | |
| uint16_t | get_sensor_cc_val (const struct device *dev, uint16_t sensor_node) |
| Get the compensation capacitance of a sensor node. | |
| void | update_sensor_cc_val (const struct device *dev, uint16_t sensor_node, uint16_t new_cc_value) |
| Update the compensation capacitance of a sensor node. | |
| uint8_t | get_sensor_state (const struct device *dev, uint16_t sensor_node) |
| Get the state of a sensor node. | |
| void | update_sensor_state (const struct device *dev, uint16_t sensor_node, uint8_t new_state) |
| Update the state of a sensor node. | |
| void | calibrate_node (const struct device *dev, uint16_t sensor_node) |
| Calibrate a sensor node. | |
| void | suspend_sensor (const struct device *dev, uint16_t sensor_node) |
| Suspend a sensor node. | |
| void | resume_sensor (const struct device *dev, uint16_t sensor_node) |
| Resume a suspended sensor node. | |
| uint8_t | get_def_no_of_sensors (const struct device *dev) |
| Get the number of configured sensor nodes. | |
| uint8_t | get_scroller_state (const struct device *dev, uint16_t sensor_node) |
| Get the state of a scroller sensor. | |
| uint16_t | get_scroller_position (const struct device *dev, uint16_t sensor_node) |
| Get the position of a scroller sensor. | |
Public API for the Microchip PTC driver.