Atmel AVR262
9
8375A-AVR-03/11
6.1 Functions related to initialization
6.1.1 config_keys
The config_keys function is responsible for configuring the sensors as keys to the
respective channels.
6.1.2 CHANNEL_t
The CHANNEL_t function specifies the channel number to be configured for a key.
6.1.3 AKS_GROUP
The AKS_GROUP function specifies the adjacent key suppression (AKS
®)
group
associated with the sensor being configured as “key.”
6.1.4 10u
The 10u function specifies the detect threshold for the sensor.
6.1.5 HYST_6_25
The HYST_6_25 function specifies the detection hysteresis for the sensor.
qt_enable_key( CHANNEL_0, AKS_GROUP_1, 10u, HYST_6_25 );
qt_enable_key( CHANNEL_1, AKS_GROUP_1, 10u, HYST_6_25 );
qt_enable_key( CHANNEL_2, AKS_GROUP_1, 10u, HYST_6_25 );
qt_enable_key( CHANNEL_3, AKS_GROUP_1, 10u, HYST_6_25 );
qt_enable_key( CHANNEL_4, AKS_GROUP_1, 10u, HYST_6_25 );
qt_enable_key( CHANNEL_5, AKS_GROUP_1, 10u, HYST_6_25 );
qt_enable_key( CHANNEL_6, AKS_GROUP_1, 10u, HYST_6_25 );
qt_enable_key( CHANNEL_7, AKS_GROUP_1, 10u, HYST_6_25 );
for more information on this function.
6.1.6 qt_init_sensing
The qt_init_sensing function is used to initialize the touch sensing for all enabled
channels. All required sensors should be configured before calling this function.
#define qt_init_sensing( ) qt_init_sensing_with_burst(
BURST_FUNC_NAME ,CALCULATE_MASKS)
6.1.7 qt_set_parameters
The qt_set_parameters function is used to initialize the global configuration settings in
the variable qt_config_data of the QTouch acquisition method libraries. In other
words, this will fill the default threshold values in the configuration data structure.