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.

Data structuresThis section lists the data structures that hold sensor status, settings, and diagnostics informationqt_touch_status_tStructure qt_touch_status_tInput / Output Output from the <strong>Library</strong>UseHolds the status ( On/ Off ) of the sensors and the linear and angular positionsof sliders and rotors respectivelyFieldsCommentsensor_states[] For Sensor, the sensor_states. Bit “n” = state of nth sensor :Bit Value 0 - indicates the sensor is not in detectBit Value 1 - indicates the sensor is in detectrotor_slider_values[]Rotors angles or slider positions if rotors and sliders are used. Thesevalues are valid when sensor states shows that the corresponding rotor orslider is in detectThe macro that can get the sensor state when the sensor number is provided can be somethingas below:#define GET_SENSOR_STATE(SENSOR_NUMBER)qt_measure_data.qt_touch_status.sensor_states[(SENSOR_NUMBER/8)] &(1

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

Saved successfully!

Ooh no, something went wrong!