1.2.2 Status and Output Data

While different target hardware requires that the configuration structure for sensor nodes varies from one device to another, all acquisition modules conform to a standard sensor node data structure. Processed module output data are stored in this data structure during run-time.

The outputs/status information may be used by other post-processing modules or by the application.
ParameterSizeRange/OptionsUsage
node_acq_status1 byteBit 7

Indicates node calibration error

NODE_CAL_ERROR

Bit 6Rise Time calibration complete
Bit 5-
Bit <4:2> (three bits)

Node calibration state

NODE_MEASURE

NODE_CC_CAL

NODE_PRSC_CAL

NODE_RSEL_CAL

NODE_CSD_CAL
Indicates whether a calibration is ongoing and its current stage
Calibration Request

Write to ‘1’ to trigger calibration sequence on this node.

(Reset to ‘0’ by module once actioned)

EnabledWrite to ‘1’ to enable this node for measurement
node_acq_signals2 bytesMost recent measurement for this sensor node

16-bit unsigned value

Accumulated and scaled as per node_oversampling and node_gain_digital settings

node_comp_caps2 bytesHardware calibration dataIndicates the tuning of the compensation circuit for this node
Table 1-1. node_acq_status
Bit76543210
Node Calibration ErrorRise time calibration complete-Node StateCalibrate requestEnabled
NODE_MEASURE0
NODE_CC_CAL1
NODE_PRSC_CAL2
NODE_RSEL_CAL3
NODE_CSD_CAL*4
Note: * CSD calibration is not available on SAM D10/D11, SAM D2x, SAM L21 devices.

Acquisition Library State

Table 1-2. touch_lib_state_t
TOUCH_STATE_NULL0
TOUCH_STATE_INIT1
TOUCH_STATE_READY2
TOUCH_STATE_CALIBRATE3
TOUCH_STATE_BUSY4

Return Parameter

Table 1-3. touch_ret_t. Common Return Type, Used by All QTML Modules
TOUCH_SUCCESS0
TOUCH_ACQ_INCOMPLETE1
TOUCH_INVALID_INPUT_PARAM2
TOUCH_INVALID_LIB_STATE3
TOUCH_INVALID_POINTER11
TOUCH_LIB_NODE_CAL_ERROR14
Note: Other values are reserved for future use.