#include "touch_api_at32uc3l.h"
Macros | |
#define | QT_CMD_DUMMY 0x10 |
#define | QT_CMD_SET_CH_CONFIG 0x13 |
#define | QT_CMD_SET_GLOBAL_CONFIG 0x12 |
#define | QT_CMD_SET_MEASUREMENT_PERIOD 0x14 |
#define | QT_CMD_SET_QM_BURST_LENGTHS 0x15 |
#define | QT_CMD_SET_SUBS 0x11 |
#define | QT_DELTAS 0x26 |
#define | QT_DUMMY 0x20 |
#define | QT_GLOBAL_CONFIG 0x22 |
#define | QT_REFERENCES 0x25 |
#define | QT_SENSOR_CONFIG 0x23 |
#define | QT_SIGN_ON 0x21 |
#define | QT_SIGNALS 0x24 |
#define | QT_STATES 0x27 |
#define | SUBS_DELTA 5 |
#define | SUBS_GLOBAL_CONFIG 1 |
#define | SUBS_REF 4 |
#define | SUBS_SENSOR_CONFIG 2 |
#define | SUBS_SIGN_ON 0 |
#define | SUBS_SIGNALS 3 |
#define | SUBS_STATES 6 |
Functions | |
void | QDebug_Init (void) |
void | QDebug_ProcessCommands (void) |
void | QDebug_SendData (uint16_t qt_lib_flags) |
void | QDebug_SetSubscriptions (uint16_t once, uint16_t change, uint16_t allways) |
void | Set_Channel_Config (void) |
void | Set_Global_Config (void) |
void | Set_Measurement_Period (void) |
void | Set_QM_Burst_Lengths (void) |
void | Set_Subscriptions (void) |
void | Transmit_Delta (void) |
void | Transmit_Dummy (void) |
void | Transmit_Global_Config (void) |
void | Transmit_Ref (void) |
void | Transmit_Sensor_Config (void) |
void | Transmit_Sign_On (void) |
void | Transmit_Signals (void) |
void | Transmit_State (void) |
Variables | |
touch_measure_data_t * | p_qm_measure_data |
QMatrix measured data pointer. More... | |
touch_measure_data_t * | p_qta_measure_data |
QTouch Group A measure data structure pointer. More... | |
touch_measure_data_t * | p_qtb_measure_data |
#define QT_CMD_DUMMY 0x10 |
Referenced by QDebug_ProcessCommands().
#define QT_CMD_SET_CH_CONFIG 0x13 |
Referenced by QDebug_ProcessCommands().
#define QT_CMD_SET_GLOBAL_CONFIG 0x12 |
Referenced by QDebug_ProcessCommands().
#define QT_CMD_SET_MEASUREMENT_PERIOD 0x14 |
#define QT_CMD_SET_QM_BURST_LENGTHS 0x15 |
Referenced by QDebug_ProcessCommands().
#define QT_CMD_SET_SUBS 0x11 |
Referenced by QDebug_ProcessCommands().
#define QT_DELTAS 0x26 |
Referenced by Transmit_Delta().
#define QT_DUMMY 0x20 |
Referenced by Transmit_Dummy().
#define QT_GLOBAL_CONFIG 0x22 |
Referenced by Transmit_Global_Config().
#define QT_REFERENCES 0x25 |
Referenced by Transmit_Ref().
#define QT_SENSOR_CONFIG 0x23 |
Referenced by Transmit_Sensor_Config().
#define QT_SIGN_ON 0x21 |
Referenced by Transmit_Sign_On().
#define QT_SIGNALS 0x24 |
Referenced by Transmit_Signals().
#define QT_STATES 0x27 |
Referenced by Transmit_State().
#define SUBS_DELTA 5 |
Referenced by QDebug_SendData().
#define SUBS_GLOBAL_CONFIG 1 |
Referenced by QDebug_SendData().
#define SUBS_REF 4 |
Referenced by QDebug_SendData().
#define SUBS_SENSOR_CONFIG 2 |
Referenced by QDebug_SendData().
#define SUBS_SIGN_ON 0 |
Referenced by QDebug_SendData().
#define SUBS_SIGNALS 3 |
Referenced by QDebug_SendData().
#define SUBS_STATES 6 |
Referenced by QDebug_SendData().
void QDebug_Init | ( | void | ) |
References Init_Buffers(), SERIAL_Init(), SPI_Master_Init(), and TOUCH_SUCCESS.
Referenced by init_touch(), and main().
void QDebug_ProcessCommands | ( | void | ) |
References GetChar(), QT_CMD_DUMMY, QT_CMD_SET_CH_CONFIG, QT_CMD_SET_GLOBAL_CONFIG, QT_CMD_SET_QM_BURST_LENGTHS, QT_CMD_SET_SUBS, Receive_Message(), RX_Buffer, RX_index, Set_Channel_Config(), Set_Global_Config(), Set_Measurement_Period(), Set_QM_Burst_Lengths(), and Set_Subscriptions().
Referenced by main(), and touch_handler().
void QDebug_SendData | ( | uint16_t | qt_lib_flags | ) |
References delivery, qgLibraryChanges, qgSubsAllways, qgSubsChange, qgSubsOnce, SequenceH, SUBS_DELTA, SUBS_GLOBAL_CONFIG, SUBS_REF, SUBS_SENSOR_CONFIG, SUBS_SIGN_ON, SUBS_SIGNALS, SUBS_STATES, TOUCH_CHANNEL_REF_CHANGE, TOUCH_ROTOR_SLIDER_POS_CHANGE, TOUCH_STATUS_CHANGE, Transmit_Delta(), Transmit_Dummy(), Transmit_Global_Config(), Transmit_Ref(), Transmit_Sensor_Config(), Transmit_Sign_On(), Transmit_Signals(), and Transmit_State().
Referenced by main(), and touch_handler().
void QDebug_SetSubscriptions | ( | uint16_t | once, |
uint16_t | change, | ||
uint16_t | allways | ||
) |
References qgSubsAllways, qgSubsChange, and qgSubsOnce.
Referenced by Set_Subscriptions().
void Set_Channel_Config | ( | void | ) |
void Set_Global_Config | ( | void | ) |
References tag_touch_global_param_t::di, tag_touch_global_param_t::drift_hold_time, tag_touch_at_param_t::filter, GetChar(), tag_touch_global_param_t::max_on_duration, tag_touch_at_param_t::ndrift, tag_touch_global_param_t::neg_drift_rate, tag_touch_at_param_t::pdrift, tag_touch_global_param_t::pos_drift_rate, tag_touch_global_param_t::pos_recal_delay, tag_touch_at_param_t::pthr, tag_touch_global_param_t::recal_threshold, TOUCH_SUCCESS, and UNUSED.
Referenced by QDebug_ProcessCommands().
void Set_Measurement_Period | ( | void | ) |
Referenced by QDebug_ProcessCommands().
void Set_QM_Burst_Lengths | ( | void | ) |
Referenced by QDebug_ProcessCommands().
void Set_Subscriptions | ( | void | ) |
References a(), b, c, GetChar(), and QDebug_SetSubscriptions().
Referenced by QDebug_ProcessCommands().
void Transmit_Delta | ( | void | ) |
References c, PutChar(), QT_DELTAS, Send_Message(), and UNUSED.
Referenced by QDebug_SendData().
void Transmit_Dummy | ( | void | ) |
References PutChar(), QT_DUMMY, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_Global_Config | ( | void | ) |
References tag_touch_global_param_t::di, tag_touch_global_param_t::drift_hold_time, tag_touch_at_param_t::filter, tag_touch_global_param_t::max_on_duration, measurement_period_ms, tag_touch_at_param_t::ndrift, tag_touch_global_param_t::neg_drift_rate, tag_touch_at_param_t::pdrift, tag_touch_global_param_t::pos_drift_rate, tag_touch_global_param_t::pos_recal_delay, tag_touch_at_param_t::pthr, PutChar(), PutInt(), QT_GLOBAL_CONFIG, tag_touch_global_param_t::recal_threshold, Send_Message(), TOUCH_SUCCESS, and UNUSED.
Referenced by QDebug_SendData().
void Transmit_Ref | ( | void | ) |
References c, PutChar(), QT_REFERENCES, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_Sensor_Config | ( | void | ) |
References c, PutChar(), QT_SENSOR_CONFIG, Send_Message(), tag_touch_at_param_t::sense, and TOUCH_SUCCESS.
Referenced by QDebug_SendData().
void Transmit_Sign_On | ( | void | ) |
References delivery, INTERFACE, PROJECT_ID, PutChar(), PutInt(), QT_SIGN_ON, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_Signals | ( | void | ) |
References c, PutChar(), QT_SIGNALS, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_State | ( | void | ) |
References autonomous_qtouch_in_touch, c, PutChar(), QT_STATES, and Send_Message().
Referenced by QDebug_SendData().
touch_measure_data_t* p_qm_measure_data |
QMatrix measured data pointer.
QMatrix measured data pointer.
Needs to be global since it is required for the QDebug module.
touch_measure_data_t* p_qta_measure_data |
QTouch Group A measure data structure pointer.
touch_measure_data_t* p_qtb_measure_data |