qt_enable_slider

This function is used to configure a set of channels as a rotor.

void qt_enable_slider (
	channel_t from_channel,
	channel_t to_channel,
	aks_group_t aks_group,
	threshold_t detect_threshold,
	hysterisis_t detect_hysterisis,
	resolution_t position_resolution,
	uint8_t position_hysteresis)

Arguments

Type

Comment

from_channel

Channel_t

Specifies the starting channel number to be configured for use as a “Slider”

to_channel

Channel_t

Specifies the end channel number to be configured for use as a “Slider”

aks_group

aks_group

Specifies the aks group associated with the sensor being configured as “Slider”

detect_threshold

threshold_t

Specifies the detect threshold for the sensor

detect_hysterisis

hysterisis_t

Specifies the detection hysteresis for the sensor

position_resolution

resolution_t

Specifies the resolution of the reported position value

position_hysterisis

uint8_t

Specifies the hysteresis of the reported position value

Note:
  1. 1.

    A “Slider” sensor requires a contiguous numbers of channels.

  2. 2.

    The rotor / slider number depends on the order in which the rotor or sliders are enabled. The first rotor or slider enabled will use “rotor_slider_values[0]”, the second will use. “rotor_slider_values[1]”, and so on. The reported rotor value is valid when the slider is reported as being in detect.

  3. 3.

    In case of QMatrix acquisition method library, the from_channel and to_channel can be between 3 to 8 channels apart (i.e. it can support 3 to 8 channel sliders).

  4. 4.

    In case of QTouch acquisition method library, the from_channel and to_channel can be 3 channels apart (i.e. can support only 3 channel sliders).