Atmel QTouch Library User Guide
Atmel QTouch Library User Guide
Atmel QTouch Library User Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
qt_enable_sliderThis 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_tposition_hysteresis)Arguments Type Commentfrom_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 sensordetect_hysterisis hysterisis_t Specifies the detection hysteresis for the sensorposition_resolution resolution_t Specifies the resolution of the reported position valueposition_hysterisis uint8_t Specifies the hysteresis of the reported position valueNOTE:• A “Slider” sensor requires a contiguous numbers of channels.• 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 isreported as being in detect.• In case of QMatrix acquisition method library, the from_channel and to_channel can bebetween 3 to 8 channels apart (i.e. it can support 3 to 8 channel sliders).• In case of <strong>QTouch</strong> acquisition method library, the from_channel and to_channel can be 3channels apart (i.e. can support only 3 channel sliders).qt_init_sensingThis function is used to initialize the touch sensing for all enabled channels. All required sensorsshould be configured before calling this function.void qt_init_sensing ( void )Arguments Type CommentVoid - -NOTE:• All sensors must be configured (using qt_enable_key, qt_enable_rotor orqt_enable_slider ) before calling this function.• This functions initializes all the configured sensors, performs calibration.qt_measure_sensorsThis function performs a capacitive measurement on all enabled sensors. The measured signalsfor each sensor are then processed to check for user touches, releases, changes in rotor angleand changes in slider position.31