API State machine for UC3L

The QTouch Library State machine diagram captures the different library States, Events that are allowed in each State and Event transition from one State to the other.  The QTouch Library maintains the States of QMatrix, QTouch Group A and QTouch Group B methods independently.  This means that QMatrix can be in a state that is different from the state of QTouch Group A or B and vice versa.

For the case of Autonomous QTouch, only the TOUCH_STATE_NULL and TOUCH_STATE_INIT states apply in the State diagram.  

  1. 1.

    The touch_at_sensor_init event causes a transition from TOUCH_STATE_NULL to TOUCH_STATE_INIT.

  2. 2.

    The touch_deinit event causes a transition from TOUCH_STATE_INIT to TOUCH_STATE_NULL.

Figure 1. State Diagram of QTouch Library for UC3L