touch_ret_t touch_qm_sensor_config( sensor_type_t
sensor_type,channel_t from_channel, channel_t to_channel, aks_group_t
aks_group, threshold_t detect_threshold, hysteresis_t
detect_hysteresis, resolution_t position_resolution, uint8_t
position_hysteresis, sensor_id_t *p_sensor_id)
Arguments |
Type |
Comment |
---|---|---|
sensor_type |
sensor_type_t |
Specifies sensor type – SENSOR_TYPE_KEY or SENSOR_TYPE_ROTOR or SENSOR_TYPE_SLIDER. The SENSOR_TYPE_UNASSIGNED enum is not a valid input to this API. |
from_channel |
channel_t |
Start channel of the Sensor (rotor, slider or key). |
to_channel |
channel_t |
End channel of the Sensor (rotor, slider or key). For a key, the start and end channels must be the same. |
aks_group |
aks_group_t |
AKS group of this sensor. |
detect_threshold |
threshold_t |
Touch Detect threshold level for Sensor. |
detect_hysteresis |
hysteresis_t |
Value for detection hysteresis. |
position_resolution |
resolution_t |
Position resolution when configuring rotor / slider |
position_hysteresis |
uint8_t |
Position hysteresis when configuring rotor / slider |
p_sensor_id |
sensor_id_t* |
The Sensor ID is updated by the Touch Library upon successful sensor configuration. The Sensor ID starts with 0. |
This API configures a single QMatrix Key, Rotor or Slider.
The user must provide all the sensor specific settings as input to this API.
Rotor / Slider sensor will occupy contiguous channels from from_channel to to_channel.
For QMatrix acquisition method, 3 to 8 Touch channels per rotor / slider are supported. Keys are always formed using 1 Touch channel.