touch_general_config_t

structure

touch_general_config_t

Input / Output

Input to the library

Use

Data structure which holds the configuration parameters & register values common to all acquisition methods.

Fields

Type

Comment

sync_pin

general_pin_options_t

Specify one of the following values indicating the pin to be assigned as SYNC pin. Refer to the device datasheet for more details.

USE_NO_PIN

USE_PIN_PA15_AS_SYNC

USE_PIN_PA18_AS_SYNC

USE_PIN_PA19_AS_SYNC

USE_PIN_PB08_AS_SYNC

USE_PIN_PB12_AS_SYNC

maxdev

uint8_t

Corresponds to MAXDEV field of SSCFG register that indicates the maximum deviation when spread spectrum is enabled.

Ensure that maxdev is always less than or equal to (2*div + 1).

div represents div field in touch_qm_reg_t & touch_at_reg_t structures.

csares

uint32_t

Corresponds to RES field of CSARES register.

csbres

uint32_t

Corresponds to RES field of CSBRES register.