3.1.1 Common Data Structures and Enum
touch_ret_t
enum {
TOUCH_SUCCESS = 0u,
TOUCH_ACQ_INCOMPLETE = 1u,
TOUCH_INVALID_INPUT_PARAM = 2u,
TOUCH_INVALID_LIB_STATE = 3u,
TOUCH_FMEA_SUCCESS = 4u,
TOUCH_FMEA_ERROR = 5u,
TOUCH_PC_FUNC_MAGIC_NO_1 = 6u,
TOUCH_PC_FUNC_MAGIC_NO_2 = 7u,
TOUCH_LOGICAL_PROGRAM_FLOW_ERROR = 8u,
TOUCH_LIB_CRC_FAIL = 9u,
TOUCH_LIB_DI_FAIL = 10u,
TOUCH_INVALID_POINTER = 11u,
TOUCH_PC_FUNC_MAGIC_NO_3 =12u,
TOUCH_LIB_UNSAFE =13u,
TOUCH_LIB_NODE_CAL_ERROR = 14u,
TOUCH_BIST_SUCCESS = 15u,
TOUCH_BIST_ERROR = 16u,
}
touch_lib_state_t
enum {
TOUCH_STATE_NULL = 0u,
TOUCH_STATE_INIT = 1u,
TOUCH_STATE_READY = 2u,
TOUCH_STATE_CALIBRATE = 3u,
TOUCH_STATE_BUSY = 4u
}
qtm_acq_node_data_t
struct {
uint8_t node_acq_status;
uint16_t node_acq_signals;
uint16_t node_comp_caps;
}
qtm_touch_key_data_t
struct {
uint8_t sensor_state;
uint8_t sensor_state_counter;
qtm_acq_node_data_t* node_data_struct_ptr;
uint16_t channel_reference;
}