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, AKS_GROUP_2, CHANNEL_0, CHANNEL_1, CHANNEL_11, CHANNEL_12, CHANNEL_16, CHANNEL_17, CHANNEL_18, CHANNEL_19, CHANNEL_2, CHANNEL_20, CHANNEL_24, CHANNEL_25, CHANNEL_26, CHANNEL_27, CHANNEL_3, CHANNEL_4, CHANNEL_8, HYST_25, HYST_6_25, qt_enable_key(), qt_enable_rotor(), and RES_8_BIT.
Referenced by main().
|
static |
configure timer ISR to fire regularly
References qt_measurement_period_msec, and TICKS_PER_MS.
Referenced by main().
|
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 ACCELERO_SIG_REF_DEFAULT, tag_memory_map_body_t::accelero_status, tag_memory_map_t::body, tag_qt_touch_lib_measure_data_t::channel_references, tag_qt_touch_lib_measure_data_t::channel_signals, CTRL_REG2_DOM, CTRL_REG2_FDM, CTRL_REG2_FUM, CTRL_REG2_LEM, CTRL_REG2_RIM, CTRL_REG2_UPM, filter, memory_map, qt_measure_data, and QT_NUM_CHANNELS.
Referenced by main().
|
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 main().