ZRC profile related.
Functions | |
uint8_t | comms_match (void) |
Compares last sent values again current values of pertinent registersdetermine match based on key status registers, general status and slider position. More... | |
static void | config_sensors (void) |
Configure the sensors, assign the channel number, aks_group, hysteresis. More... | |
static void | init_timer_isr (void) |
configure timer ISR to fire regularly More... | |
static void | qt_avr477_filter_cb (void) |
This function is called every time the qt measuremement is done. More... | |
static void | qt_set_parameters (void) |
This will fill the default threshold values in the configuration data structure.But User can change the values of these parameters . More... | |
uint8_t comms_match | ( | void | ) |
Compares last sent values again current values of pertinent registersdetermine match based on key status registers, general status and slider position.
References tag_memory_map_t::array, FIRST_STATUS_BYTE, MATCH, NO_MATCH, NUM_STATUS_BYTES, and sent_status_out.
|
static |
Configure the sensors, assign the channel number, aks_group, hysteresis.
References AKS_GROUP_1, CHANNEL_0, CHANNEL_1, CHANNEL_2, CHANNEL_3, HYST_25, HYST_6_25, qt_enable_key(), qt_enable_rotor(), and RES_8_BIT.
Referenced by BSP_InitQTouch().
|
static |
configure timer ISR to fire regularly
References qt_measurement_period_msec, tc_enable(), and TICKS_PER_MS.
Referenced by BSP_InitQTouch().
|
static |
This function is called every time the qt measuremement is done.
This is the pointer to callback function called before processing the signal
References tag_qt_touch_lib_measure_data_t::channel_signals, filter, qt_measure_data, and QT_NUM_CHANNELS.
Referenced by BSP_InitQTouch().
|
static |
This will fill the default threshold values in the configuration data structure.But User can change the values of these parameters .
This is used to initialize the configuration data for processing.
References DEF_QT_DI, DEF_QT_DRIFT_HOLD_TIME, DEF_QT_MAX_ON_DURATION, DEF_QT_NEG_DRIFT_RATE, DEF_QT_POS_DRIFT_RATE, 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, tag_qt_touch_lib_config_data_t::qt_recal_threshold, and RECAL_100.
Referenced by BSP_InitQTouch(), main(), and touch_init().