Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
QTouch related API's

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.

Returns
returns a NO_MATCH if registers don't match, MATCH if they do

References tag_memory_map_t::array, FIRST_STATUS_BYTE, MATCH, NO_MATCH, NUM_STATUS_BYTES, and sent_status_out.

void config_sensors ( void  )
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 void init_timer_isr ( void  )
static

configure timer ISR to fire regularly

References qt_measurement_period_msec, tc_enable(), and TICKS_PER_MS.

Referenced by BSP_InitQTouch().

static void qt_avr477_filter_cb ( void  )
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().