#include "touch_api.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_QM_BURST_LENGTHS 0x14 |
#define | QT_CMD_SET_SUBS 0x11 |
#define | QT_CMD_SET_USER_DATA 0x15 |
#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) |
int16_t | qt_get_sensor_delta (uint8_t) |
void | Set_Channel_Config (void) |
void | Set_Global_Config (void) |
void | Set_Measurement_Period (void) |
void | Set_QT_User_Data (uint8_t *) |
void | Set_Subscriptions (void) |
void | Transmit_Delta (void) |
void | Transmit_Dummy (void) |
void | Transmit_Global_Config (void) |
void | Transmit_QT_User_Data (uint8_t *pdata, uint16_t c) |
void | Transmit_Ref (void) |
void | Transmit_Sensor_Config (void) |
void | Transmit_Sign_On (void) |
void | Transmit_Signals (void) |
void | Transmit_State (void) |
void | Transmit_Time_Stamps (void) |
Variables | |
qt_touch_lib_config_data_t | qt_config_data |
qt_touch_lib_measure_data_t | qt_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_QM_BURST_LENGTHS 0x14 |
Referenced by QDebug_ProcessCommands().
#define QT_CMD_SET_SUBS 0x11 |
Referenced by QDebug_ProcessCommands().
#define QT_CMD_SET_USER_DATA 0x15 |
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 eeprom_info_block, Init_Buffers(), qt_lib_sig_info_t::library_version, qt_get_library_sig(), and SPI_Master_Init().
Referenced by touch_init().
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, QT_CMD_SET_USER_DATA, Receive_Message(), RX_Buffer, RX_index, Set_Channel_Config(), Set_Global_Config(), Set_Measurement_Period(), Set_QT_User_Data(), and Set_Subscriptions().
Referenced by touch_handler(), and touch_init().
void QDebug_SendData | ( | uint16_t | qt_lib_flags | ) |
References delivery, qgLibraryChanges, qgSubsAllways, qgSubsChange, qgSubsOnce, QTLIB_CHANNEL_REF_CHANGE, QTLIB_ROTOR_SLIDER_POS_CHANGE, QTLIB_STATUS_CHANGE, SequenceH, SUBS_DELTA, SUBS_GLOBAL_CONFIG, SUBS_REF, SUBS_SENSOR_CONFIG, SUBS_SIGN_ON, SUBS_SIGNALS, SUBS_STATES, Transmit_Delta(), Transmit_Dummy(), Transmit_Global_Config(), Transmit_Ref(), Transmit_Sensor_Config(), Transmit_Sign_On(), Transmit_Signals(), and Transmit_State().
Referenced by touch_handler().
void QDebug_SetSubscriptions | ( | uint16_t | once, |
uint16_t | change, | ||
uint16_t | allways | ||
) |
References qgSubsAllways, qgSubsChange, and qgSubsOnce.
Referenced by Set_Subscriptions().
int16_t qt_get_sensor_delta | ( | uint8_t | ) |
Referenced by Transmit_Delta().
void Set_Channel_Config | ( | void | ) |
References GetChar(), tag_sensor_t::threshold, and tag_sensor_t::type_aks_pos_hyst.
Referenced by QDebug_ProcessCommands().
void Set_Global_Config | ( | void | ) |
References GetChar(), qt_config_data, tag_qt_touch_lib_config_data_t::qt_di, tag_qt_touch_lib_config_data_t::qt_drift_hold_time, tag_qt_touch_lib_config_data_t::qt_max_on_duration, tag_qt_touch_lib_config_data_t::qt_neg_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_recal_delay, and tag_qt_touch_lib_config_data_t::qt_recal_threshold.
Referenced by QDebug_ProcessCommands().
void Set_Measurement_Period | ( | void | ) |
References GetChar(), and measurement_period_ms.
Referenced by QDebug_ProcessCommands().
void Set_QT_User_Data | ( | uint8_t * | ) |
References PutChar(), RX_Buffer, and Send_Message().
Referenced by QDebug_ProcessCommands().
void Set_Subscriptions | ( | void | ) |
References GetChar(), and QDebug_SetSubscriptions().
Referenced by QDebug_ProcessCommands().
void Transmit_Delta | ( | void | ) |
References num_sensors, PutChar(), QT_DELTAS, qt_get_sensor_delta(), and Send_Message().
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 measurement_period_ms, PutChar(), PutInt(), qt_config_data, tag_qt_touch_lib_config_data_t::qt_di, tag_qt_touch_lib_config_data_t::qt_drift_hold_time, QT_GLOBAL_CONFIG, tag_qt_touch_lib_config_data_t::qt_max_on_duration, tag_qt_touch_lib_config_data_t::qt_neg_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_drift_rate, tag_qt_touch_lib_config_data_t::qt_pos_recal_delay, tag_qt_touch_lib_config_data_t::qt_recal_threshold, Send_Message(), and TICKS_PER_MS.
Referenced by QDebug_SendData().
void Transmit_QT_User_Data | ( | uint8_t * | pdata, |
uint16_t | c | ||
) |
References PutChar(), and Send_Message().
void Transmit_Ref | ( | void | ) |
References tag_qt_touch_lib_measure_data_t::channel_references, PutChar(), qt_measure_data, QT_NUM_CHANNELS, QT_REFERENCES, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_Sensor_Config | ( | void | ) |
References PutChar(), QT_NUM_CHANNELS, QT_SENSOR_CONFIG, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_Sign_On | ( | void | ) |
References delivery, INTERFACE, qt_lib_sig_info_t::lib_sig_lword, qt_lib_sig_info_t::library_version, PROJECT_ID, PutChar(), PutInt(), QT_NUM_CHANNELS, QT_SIGN_ON, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_Signals | ( | void | ) |
References tag_qt_touch_lib_measure_data_t::channel_signals, PutChar(), qt_measure_data, QT_NUM_CHANNELS, QT_SIGNALS, and Send_Message().
Referenced by QDebug_SendData().
void Transmit_State | ( | void | ) |
References PutChar(), QT_MAX_NUM_ROTORS_SLIDERS, qt_measure_data, QT_NUM_CHANNELS, QT_NUM_SENSOR_STATE_BYTES, QT_STATES, tag_qt_touch_lib_measure_data_t::qt_touch_status, tag_qt_touch_status_t::rotor_slider_values, Send_Message(), and tag_qt_touch_status_t::sensor_states.
Referenced by QDebug_SendData().
void Transmit_Time_Stamps | ( | void | ) |
References PutInt(), Send_Message(), timestamp1_hword, timestamp1_lword, timestamp2_hword, timestamp2_lword, timestamp3_hword, and timestamp3_lword.
qt_touch_lib_config_data_t qt_config_data |
Referenced by qt_set_parameters(), Set_Global_Config(), and Transmit_Global_Config().
qt_touch_lib_measure_data_t qt_measure_data |
Referenced by touch_handler(), Transmit_Ref(), Transmit_Signals(), and Transmit_State().