qt_enable_rotor

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

void qt_enable_rotor (
	channel_t from_channel,
	channel_t to_channel,
	aks_group_t aks_group,
	threshold_t detect_threshold,
	hysterisis_t detect_hysterisis,
	resoulution_t angle_resolution,
	uint8_t angle_hysterisis )

Arguments

Type

Comment

from_channel

Channel_t

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

to_channel

Channel_t

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

aks_group

aks_group

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

detect_threshold

threshold_t

Specifies the detect threshold for the sensor

detect_hysterisis

hysterisis_t

Specifies the detection hysteresis for the sensor

angle_resolution

resolution_t

Specifies the resolution of the reported angle value

angle_hysterisis

uint8_t

Specifies the hysteresis of the reported angle value

Note:
  1. 1.

    A “Rotor” sensor requires contiguous channel numbers.

  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 rotor 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 channel numbers apart (i.e. it can support 3 to 8 channel rotors).

  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 rotors).