11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

touch_ret_t touch_qt_sensor_config(touch_qt_grp_t touch_qt_grp,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_resolutionsensor_id_t *p_sensor_id)Arguments Type Commenttouch_qt_grp touch_qt_grp_t Specify if the operation is to be performed on Group ASensors or Group B Sensors.sensor_type sensor_type_t Specifies sensor type – SENSOR_TYPE_KEY orSENSOR_TYPE_ROTOR orSENSOR_TYPE_SLIDER.The SENSOR_TYPE_UNASSIGNED enum is not a validinput 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 akey, 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 / sliderp_sensor_id sensor_id_t* The Sensor ID is updated by the Touch <strong>Library</strong> uponsuccessful sensor configuration. The Sensor ID starts with0.• This API configures a single <strong>QTouch</strong> 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 <strong>QTouch</strong> acquisition method, 3 Touch channels per rotor / slider are supported. Keysare always formed using 1 Touch channel.touch_qt_sensor_update_configtouch_ret_t touch_qt_sensor_update_config(touch_qt_grp_t touch_qt_grp,sensor_id_t sensor_id,touch_qt_param_t *p_touch_sensor_param)Arguments Type Commenttouch_qt_grp touch_qt_grp_t Specify if the operation is to beperformed on Group A Sensors orGroup B Sensors.sensor_id sensor_id_t Sensor ID for which the configurationneeds to be updated.p_touch_sensor_param touch_qt_param_t * Pointer to the user sensor configurationstructure.1608207K-AT42-09/11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!